Belle II Software  release-05-01-25
SectorMapBasedSVDPairFilter.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2016 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Nils Braun *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 #pragma once
11 
12 #include <tracking/ckf/svd/filters/relations/BaseSVDPairFilter.h>
13 #include <tracking/ckf/svd/entities/CKFToSVDState.h>
14 
15 #include <tracking/trackFindingVXD/filterMap/map/FiltersContainer.h>
16 #include <tracking/trackFindingVXD/environment/VXDTFFilters.h>
17 #include <tracking/spacePointCreation/SpacePoint.h>
18 
19 namespace Belle2 {
24  class SectorMapBasedSVDPairFilter : public BaseSVDPairFilter {
27  using Super = BaseSVDPairFilter;
28 
30  using SectorMapFilter = VXDTFFilters<SpacePoint>;
32  using FilterContainer = FiltersContainer<SpacePoint>;
33 
34  public:
36  SectorMapBasedSVDPairFilter() = default;
37 
39  void exposeParameters(ModuleParamList* moduleParamList, const std::string& prefix) final;
40 
42  TrackFindingCDC::Weight operator()(const std::pair<const CKFToSVDState*, const CKFToSVDState*>& relation) override;
43 
45  void beginRun() final;
46 
47  private:
53  std::string m_param_sectorMapName = "SVDOnlyDefault";
54  };
56 }
Belle2::SectorMapBasedSVDPairFilter::beginRun
void beginRun() final
Initialize the sector map.
Definition: SectorMapBasedSVDPairFilter.cc:32
Belle2::FiltersContainer
This class contains everything needed by the VXDTF that is not going to change during a RUN,...
Definition: FiltersContainer.h:38
Belle2::VXDTFFilters
Class that contains all the static sectors to which the filters are attached.
Definition: VXDTFFilters.h:75
Belle2::SectorMapBasedSVDPairFilter::SectorMapFilter
VXDTFFilters< SpacePoint > SectorMapFilter
The VXDTF filter.
Definition: SectorMapBasedSVDPairFilter.h:38
Belle2::SectorMapBasedSVDPairFilter::exposeParameters
void exposeParameters(ModuleParamList *moduleParamList, const std::string &prefix) final
Expose the parameters of the filter.
Definition: SectorMapBasedSVDPairFilter.cc:42
Belle2::SectorMapBasedSVDPairFilter::m_vxdtfFilters
SectorMapFilter * m_vxdtfFilters
The sector map filter, will be set in begin run.
Definition: SectorMapBasedSVDPairFilter.h:59
Belle2::SpacePoint
SpacePoint typically is build from 1 PXDCluster or 1-2 SVDClusters.
Definition: SpacePoint.h:52
Belle2::BaseSVDPairFilter
TrackFindingCDC::Filter< std::pair< const CKFToSVDState *, const CKFToSVDState * > > BaseSVDPairFilter
Base filter for CKF SVD states.
Definition: BaseSVDPairFilter.h:29
Belle2::SectorMapBasedSVDPairFilter::FilterContainer
FiltersContainer< SpacePoint > FilterContainer
The filter container.
Definition: SectorMapBasedSVDPairFilter.h:40
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::SectorMapBasedSVDPairFilter::SectorMapBasedSVDPairFilter
SectorMapBasedSVDPairFilter()=default
default constructor to silence cppcheck warnings
Belle2::SectorMapBasedSVDPairFilter::m_filtersContainer
FilterContainer & m_filtersContainer
The filter container to use.
Definition: SectorMapBasedSVDPairFilter.h:57
Belle2::SectorMapBasedSVDPairFilter::m_param_sectorMapName
std::string m_param_sectorMapName
Name of the sector map to use.
Definition: SectorMapBasedSVDPairFilter.h:61
Belle2::SectorMapBasedSVDPairFilter::Super
BaseSVDPairFilter Super
The parent class.
Definition: SectorMapBasedSVDPairFilter.h:35
Belle2::ModuleParamList
The Module parameter list class.
Definition: ModuleParamList.h:46
Belle2::SectorMapBasedSVDPairFilter::operator()
TrackFindingCDC::Weight operator()(const std::pair< const CKFToSVDState *, const CKFToSVDState * > &relation) override
Give a final weight to the possibilities by asking the filter.
Definition: SectorMapBasedSVDPairFilter.cc:48