Belle II Software  release-05-02-19
MCRecoTracksMatcherModule.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2013 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Oliver Frost *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 #pragma once
11 
12 #include <framework/core/Module.h>
13 #include <framework/gearbox/Const.h>
14 
15 namespace Belle2 {
127  class MCRecoTracksMatcherModule : public Module {
128 
129  public:
132 
134  void initialize() final;
135 
137  void event() final;
138 
139  private: //Parameters
142 
145 
147  bool m_param_usePXDHits;
148 
150  bool m_param_useSVDHits;
151 
153  bool m_param_useCDCHits;
154 
157 
165 
173 
174  public: // Other variables
176  using NDF = int;
177 
179  std::map<int, NDF> m_ndf_by_detId = {{Const::PXD, 2}, {Const::SVD, 1}, {Const::CDC, 1}};
180 
182  bool m_mcParticlesPresent = false;
183  };
185 }
Belle2::MCRecoTracksMatcherModule::m_ndf_by_detId
std::map< int, NDF > m_ndf_by_detId
Map storing the standard number degrees of freedom for a single hit by detector *‍/.
Definition: MCRecoTracksMatcherModule.h:187
Belle2::MCRecoTracksMatcherModule::event
void event() final
Process the event.
Definition: MCRecoTracksMatcherModule.cc:261
Belle2::MCRecoTracksMatcherModule::m_param_minimalPurity
double m_param_minimalPurity
Parameter : Minimal purity of a PRTrack to be considered matchable to a MCTrack.
Definition: MCRecoTracksMatcherModule.h:172
Belle2::MCRecoTracksMatcherModule::m_mcParticlesPresent
bool m_mcParticlesPresent
Flag to indicated whether the Monte Carlo track are on the DataStore.
Definition: MCRecoTracksMatcherModule.h:190
Belle2::MCRecoTracksMatcherModule::initialize
void initialize() final
Signal the beginning of the event processing.
Definition: MCRecoTracksMatcherModule.cc:206
Belle2::MCRecoTracksMatcherModule::m_param_useSVDHits
bool m_param_useSVDHits
Parameter : Switch whether SVDHits should be used in the matching.
Definition: MCRecoTracksMatcherModule.h:158
Belle2::MCRecoTracksMatcherModule::MCRecoTracksMatcherModule
MCRecoTracksMatcherModule()
Constructor setting up the parameter.
Definition: MCRecoTracksMatcherModule.cc:149
Belle2::MCRecoTracksMatcherModule::m_param_usePXDHits
bool m_param_usePXDHits
Parameter : Switch whether PXDHits should be used in the matching.
Definition: MCRecoTracksMatcherModule.h:155
Belle2::MCRecoTracksMatcherModule::m_param_mcRecoTracksStoreArrayName
std::string m_param_mcRecoTracksStoreArrayName
Parameter : RecoTracks store array name from the mc recognition.
Definition: MCRecoTracksMatcherModule.h:152
Belle2::MCRecoTracksMatcherModule::m_param_minimalEfficiency
double m_param_minimalEfficiency
Parameter : Minimal efficiency for a MCTrack to be considered matchable to a PRTrack.
Definition: MCRecoTracksMatcherModule.h:180
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::MCRecoTracksMatcherModule::NDF
int NDF
Descriptive type defintion for a number of degrees of freedom.
Definition: MCRecoTracksMatcherModule.h:184
Belle2::MCRecoTracksMatcherModule::m_param_useCDCHits
bool m_param_useCDCHits
Parameter : Switch whether CDCHits should be used in the matching.
Definition: MCRecoTracksMatcherModule.h:161
Belle2::MCRecoTracksMatcherModule::m_param_prRecoTracksStoreArrayName
std::string m_param_prRecoTracksStoreArrayName
Parameter : RecoTracks store array name from the patter recognition.
Definition: MCRecoTracksMatcherModule.h:149
Belle2::MCRecoTracksMatcherModule::m_param_useOnlyAxialCDCHits
bool m_param_useOnlyAxialCDCHits
Parameter : Switch whether only axial CDCHits should be used.
Definition: MCRecoTracksMatcherModule.h:164