Belle II Software  release-05-02-19
TOPReconstructorModule.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2010 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Marko Petric, Marko Staric *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 
11 #pragma once
12 
13 #include <framework/core/Module.h>
14 #include <framework/gearbox/Const.h>
15 #include <string>
16 // framework - DataStore
17 #include <framework/datastore/StoreArray.h>
18 #include <framework/datastore/StoreObjPtr.h>
19 // Hit classes
20 #include <mdst/dataobjects/Track.h>
21 #include <tracking/dataobjects/ExtHit.h>
22 #include <top/dataobjects/TOPDigit.h>
23 #include <top/dataobjects/TOPRecBunch.h>
24 #include <top/dataobjects/TOPBarHit.h>
25 #include <top/dataobjects/TOPLikelihood.h>
26 #include <top/dataobjects/TOPPull.h>
27 
28 
29 namespace Belle2 {
38  class TOPReconstructorModule : public Module {
39 
40  public:
41 
46 
50  virtual ~TOPReconstructorModule();
51 
57  virtual void initialize() override;
58 
64  virtual void beginRun() override;
65 
70  virtual void event() override;
71 
77  virtual void endRun() override;
78 
84  virtual void terminate() override;
85 
86 
87  private:
88 
89  // Module steering parameters
90  double m_minBkgPerBar = 0;
91  double m_scaleN0 = 0;
92  double m_sigmaRphi = 0;
93  double m_sigmaZ = 0;
94  double m_sigmaTheta = 0;
95  double m_sigmaPhi = 0;
96  double m_minTime = 0;
97  double m_maxTime = 0;
98  int m_PDGCode = 0;
103  // others
104  int m_debugLevel = 0;
105  bool m_smearTrack = false;
107  // Masses of particle hypotheses
108 
112  // datastore objects
113 
122  };
123 
125 } // Belle2 namespace
126 
Belle2::TOPReconstructorModule::m_recBunch
StoreObjPtr< TOPRecBunch > m_recBunch
reconstructed bunch
Definition: TOPReconstructorModule.h:126
Belle2::TOPReconstructorModule::m_minTime
double m_minTime
optional lower time limit for photons
Definition: TOPReconstructorModule.h:104
Belle2::TOPReconstructorModule::m_topDigitCollectionName
std::string m_topDigitCollectionName
name of the collection of TOPDigits
Definition: TOPReconstructorModule.h:107
Belle2::Const::ChargedStable::c_SetSize
static const unsigned int c_SetSize
Number of elements (for use in array bounds etc.)
Definition: Const.h:491
Belle2::TOPReconstructorModule::m_scaleN0
double m_scaleN0
scale factor for N0
Definition: TOPReconstructorModule.h:99
Belle2::TOPReconstructorModule::m_smearTrack
bool m_smearTrack
set to true, if at least one sigma > 0
Definition: TOPReconstructorModule.h:113
Belle2::TOPReconstructorModule::m_topPullCollectionName
std::string m_topPullCollectionName
name of the collection of created TOPPulls
Definition: TOPReconstructorModule.h:109
Belle2::TOPReconstructorModule::m_sigmaZ
double m_sigmaZ
track smearing in Z (r.m.s)
Definition: TOPReconstructorModule.h:101
Belle2::TOPReconstructorModule::m_sigmaTheta
double m_sigmaTheta
track smearing in Theta (r.m.s)
Definition: TOPReconstructorModule.h:102
Belle2::TOPReconstructorModule::m_sigmaPhi
double m_sigmaPhi
track smearing in Phi (r.m.s)
Definition: TOPReconstructorModule.h:103
Belle2::TOPReconstructorModule::event
virtual void event() override
Event processor.
Definition: TOPReconstructorModule.cc:132
Belle2::TOPReconstructorModule::m_sigmaRphi
double m_sigmaRphi
track smearing in Rphi (r.m.s)
Definition: TOPReconstructorModule.h:100
Belle2::TOPReconstructorModule::terminate
virtual void terminate() override
Termination action.
Definition: TOPReconstructorModule.cc:222
Belle2::TOPReconstructorModule::m_topLikelihoodCollectionName
std::string m_topLikelihoodCollectionName
name of the collection of created TOPLikelihoods
Definition: TOPReconstructorModule.h:108
Belle2::TOPReconstructorModule::m_minBkgPerBar
double m_minBkgPerBar
minimal assumed background photons per bar
Definition: TOPReconstructorModule.h:98
Belle2::TOPReconstructorModule::m_debugLevel
int m_debugLevel
debug level from logger
Definition: TOPReconstructorModule.h:112
Belle2::TOPReconstructorModule::m_masses
double m_masses[Const::ChargedStable::c_SetSize]
particle masses
Definition: TOPReconstructorModule.h:117
Belle2::TOPReconstructorModule::beginRun
virtual void beginRun() override
Called when entering a new run.
Definition: TOPReconstructorModule.cc:128
Belle2::TOPReconstructorModule::~TOPReconstructorModule
virtual ~TOPReconstructorModule()
Destructor.
Definition: TOPReconstructorModule.cc:79
Belle2::TOPReconstructorModule::endRun
virtual void endRun() override
End-of-run action.
Definition: TOPReconstructorModule.cc:218
Belle2::TOPReconstructorModule::m_tracks
StoreArray< Track > m_tracks
collection of tracks
Definition: TOPReconstructorModule.h:123
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::TOPReconstructorModule::m_likelihoods
StoreArray< TOPLikelihood > m_likelihoods
collection of likelihoods
Definition: TOPReconstructorModule.h:127
Belle2::StoreObjPtr
Type-safe access to single objects in the data store.
Definition: ParticleList.h:33
Belle2::TOPReconstructorModule::m_pdgCodes
int m_pdgCodes[Const::ChargedStable::c_SetSize]
particle codes
Definition: TOPReconstructorModule.h:118
Belle2::TOPReconstructorModule::initialize
virtual void initialize() override
Initialize the Module.
Definition: TOPReconstructorModule.cc:84
Belle2::TOPReconstructorModule::m_extHits
StoreArray< ExtHit > m_extHits
collection of extrapolated hits
Definition: TOPReconstructorModule.h:124
Belle2::TOPReconstructorModule::m_topPulls
StoreArray< TOPPull > m_topPulls
collection of pulls
Definition: TOPReconstructorModule.h:128
Belle2::TOPReconstructorModule::TOPReconstructorModule
TOPReconstructorModule()
Constructor.
Definition: TOPReconstructorModule.cc:40
Belle2::TOPReconstructorModule::m_barHits
StoreArray< TOPBarHit > m_barHits
collection of bar hits
Definition: TOPReconstructorModule.h:125
Belle2::StoreArray
Accessor to arrays stored in the data store.
Definition: ECLMatchingPerformanceExpertModule.h:33
Belle2::TOPReconstructorModule::m_maxTime
double m_maxTime
optional upper time limit for photons
Definition: TOPReconstructorModule.h:105
Belle2::TOPReconstructorModule::m_digits
StoreArray< TOPDigit > m_digits
collection of digits
Definition: TOPReconstructorModule.h:122
Belle2::TOPReconstructorModule::m_PDGCode
int m_PDGCode
PDG code of hypothesis to construct pulls.
Definition: TOPReconstructorModule.h:106