Belle II Software  release-05-02-19
MuidModule.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2010-2011 Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Leo Piilonen *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 
11 #pragma once
12 
13 /* Belle 2 headers. */
14 #include <framework/core/Module.h>
15 #include <framework/gearbox/Const.h>
16 
17 /* C++ headers. */
18 #include <string>
19 #include <vector>
20 
21 namespace Belle2 {
27  class TrackExtrapolateG4e;
28 
40  class MuidModule : public Module {
41 
42  public:
43 
45  MuidModule();
46 
49 
51  void initialize() override;
52 
54  void beginRun() override;
55 
57  void event() override;
58 
60  void endRun() override;
61 
63  void terminate() override;
64 
65  protected:
66 
68  std::vector<int> m_PDGCodes;
69 
71  std::vector<Const::ChargedStable> m_Hypotheses;
72 
74  double m_MeanDt;
75 
77  double m_MaxDt;
78 
80  double m_MinPt;
81 
83  double m_MinKE;
84 
86  double m_MaxStep;
87 
90 
93 
96 
99 
102 
104  std::string m_MagneticFieldStepperName;
105 
108 
111 
113  bool m_addHitsToRecoTrack = false;
114 
116  std::vector<std::string> m_UICommands;
117 
118  private:
119 
122 
123  };
124 
126 } // end of namespace Belle2
Belle2::MuidModule::m_MaxKLMTrackClusterDistance
double m_MaxKLMTrackClusterDistance
user-defined maximum distance in cm between KLMCluster and associated track
Definition: MuidModule.h:100
Belle2::MuidModule::m_PDGCodes
std::vector< int > m_PDGCodes
PDG code for the particle-ID hypotheses.
Definition: MuidModule.h:76
Belle2::MuidModule::m_TrackingVerbosity
int m_TrackingVerbosity
Tracking verbosity: 0=Silent; 1=Min info per step; 2=sec particles; 3=pre/post step info; 4=like 3 bu...
Definition: MuidModule.h:106
Belle2::MuidModule::beginRun
void beginRun() override
Perform beginning-of-run actions.
Definition: MuidModule.cc:149
Belle2::MuidModule::m_MagneticCacheDistance
double m_MagneticCacheDistance
minimal distance for magnetic field lookup. If distance is smaller, return cached value
Definition: MuidModule.h:115
Belle2::MuidModule::initialize
void initialize() override
Initialize for muon identification.
Definition: MuidModule.cc:98
Belle2::MuidModule::terminate
void terminate() override
Terminates the module.
Definition: MuidModule.cc:164
Belle2::MuidModule::m_UICommands
std::vector< std::string > m_UICommands
A list of Geant4 UI commands that should be applied before the extrapolation starts.
Definition: MuidModule.h:124
Belle2::MuidModule::m_MeanDt
double m_MeanDt
Mean hit - trigger time (ns)
Definition: MuidModule.h:82
Belle2::MuidModule::m_MaxStep
double m_MaxStep
Maximum step size in cm (0 for no upper limit)
Definition: MuidModule.h:94
Belle2::MuidModule::~MuidModule
~MuidModule()
destructor
Definition: MuidModule.cc:94
Belle2::MuidModule::m_Extrapolator
TrackExtrapolateG4e * m_Extrapolator
Pointer to the TrackExtrapoleG4e singleton.
Definition: MuidModule.h:129
Belle2::MuidModule::m_EnableVisualization
bool m_EnableVisualization
If set to true the Geant4 visualization support is enabled.
Definition: MuidModule.h:109
Belle2::MuidModule::m_MaxDt
double m_MaxDt
Coincidence window half-width for in-time KLM hits (ns)
Definition: MuidModule.h:85
Belle2::TrackExtrapolateG4e
geant4e-based track extrapolation.
Definition: TrackExtrapolateG4e.h:168
Belle2::MuidModule::m_MaxECLTrackClusterDistance
double m_MaxECLTrackClusterDistance
user-defined maximum distance in cm between ECLCluster and associated track
Definition: MuidModule.h:103
Belle2::MuidModule::event
void event() override
Performs muon identification for all tracks in one event.
Definition: MuidModule.cc:154
Belle2::MuidModule::MuidModule
MuidModule()
constructor
Definition: MuidModule.cc:35
Belle2::MuidModule::m_DeltaChordInMagneticField
double m_DeltaChordInMagneticField
maximum miss-distance between the trajectory curve and its linear chord(s) approximation
Definition: MuidModule.h:118
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::MuidModule::m_MinKE
double m_MinKE
Minimum kinetic energy in GeV for extrapolation to continue.
Definition: MuidModule.h:91
Belle2::MuidModule::endRun
void endRun() override
Perform end-of-run actions.
Definition: MuidModule.cc:159
Belle2::MuidModule::m_MagneticFieldStepperName
std::string m_MagneticFieldStepperName
magnetic field stepper to use
Definition: MuidModule.h:112
Belle2::MuidModule::m_MinPt
double m_MinPt
Minimum transverse momentum in GeV/c for extrapolation to be started.
Definition: MuidModule.h:88
Belle2::MuidModule::m_addHitsToRecoTrack
bool m_addHitsToRecoTrack
Parameter to add the found hits also to the reco tracks or not. Is turned off by default.
Definition: MuidModule.h:121
Belle2::MuidModule::m_Hypotheses
std::vector< Const::ChargedStable > m_Hypotheses
ChargedStable hypotheses.
Definition: MuidModule.h:79
Belle2::MuidModule::m_MaxDistSqInVariances
double m_MaxDistSqInVariances
user-defined maximum squared-distance (#variances) for matching hit to extrapolation
Definition: MuidModule.h:97