 |
Belle II Software
release-05-02-19
|
13 #include <framework/core/Module.h>
14 #include <framework/datastore/StoreArray.h>
15 #include <framework/datastore/StoreObjPtr.h>
16 #include <mdst/dataobjects/Track.h>
17 #include <tracking/dataobjects/ExtHit.h>
18 #include <top/dataobjects/TOPDigit.h>
19 #include <top/dataobjects/TOPRecBunch.h>
20 #include <top/utilities/TrackSelector.h>
21 #include <top/utilities/Chi2MinimumFinder1D.h>
22 #include <top/reconstruction/TOPreco.h>
24 #include <framework/database/DBObjPtr.h>
25 #include <top/dbobjects/TOPCalModuleT0.h>
44 class TOPModuleT0CalibratorModule :
public Module {
73 virtual void event()
override;
79 virtual void endRun()
override;
TOPModuleT0CalibratorModule()
Constructor.
float m_phi
track: extrapolated hit momentum in local (module) frame
int m_numBins
number of bins to which search region is divided
double m_deltaEcms
c.m.s energy window if sample is "dimuon" or "bhabha"
double m_maxZ
maximal local z of extrapolated hit
std::string m_sample
sample type
double m_timeRange
time range in which to search for the minimum [ns]
double m_minZ
minimal local z of extrapolated hit
std::string m_outFileName
Root output file name containing results.
TH1F m_hits1D
number photon hits in a slot
double m_dz
cut on POCA in z
virtual void event() override
Event processor.
float m_y
track: extrapolated hit coordinate in local (module) frame
virtual void terminate() override
Termination action.
TH2F m_hits2D
hit times vs.
TOP::TrackSelector m_selector
track selection utility
Minimum finder using tabulated chi^2 values in one dimension.
virtual void beginRun() override
Called when entering a new run.
StoreArray< ExtHit > m_extHits
collection of extrapolated hits
TOP::TOPreco::PDFoption m_PDFOption
PDF option.
Class for accessing objects in the database.
TOP::Chi2MinimumFinder1D m_finders[2][c_numModules]
finders
virtual void endRun() override
End-of-run action.
StoreObjPtr< TOPRecBunch > m_recBunch
reconstructed bunch
Abstract base class for different kinds of events.
Type-safe access to single objects in the data store.
float m_theta
track: extrapolated hit momentum in local (module) frame
StoreArray< Track > m_tracks
collection of tracks
StoreArray< TOPDigit > m_digits
collection of digits
Utility for the track selection - used in various calibration modules.
float m_z
track: extrapolated hit coordinate in local (module) frame
PDFoption
Options for PDF: rough: no dependence on y fine: y dependent PDF everywhere optimal: y dependent PDF ...
int m_numPhotons
number of photons in this slot
virtual void initialize() override
Initialize the Module.
@ c_numModules
number of modules
double m_sigmaSmear
additional smearing of PDF in [ns]
int m_moduleID
slot to which the track is extrapolated to
float m_p
track: extrapolated hit momentum in local (module) frame
TTree * m_tree
TTree containing selected track parameters etc.
Accessor to arrays stored in the data store.
double m_minBkgPerBar
minimal assumed background photons per module
int m_PDG
track MC truth (simulated data only)
DBObjPtr< TOPCalModuleT0 > m_moduleT0
module T0 calibration constants
std::string m_pdfOption
PDF option name.
double m_scaleN0
scale factor for figure-of-merit N0
virtual ~TOPModuleT0CalibratorModule()
Destructor.
double m_dr
cut on POCA in r
float m_x
track: extrapolated hit coordinate in local (module) frame
bool isRunningOffsetSubtracted()
Checks if running offset is subtracted in TOPDigits.
double m_minMomentum
minimal track momentum if sample is "cosmics"