 |
Belle II Software
release-05-01-25
|
13 #ifndef ECLBHABHATCOLLECTORMODULE_H
14 #define ECLBHABHATCOLLECTORMODULE_H
16 #include <framework/core/Module.h>
17 #include <ecl/utility/ECLChannelMapper.h>
18 #include <ecl/utility/ECLTimingUtilities.h>
20 #include <calibration/CalibrationCollectorModule.h>
21 #include <framework/database/DBObjPtr.h>
22 #include <framework/datastore/StoreArray.h>
23 #include <framework/dataobjects/EventT0.h>
35 class ECLCrystalCalib;
37 class ECLChannelMapper;
107 TTree* m_dbgTree_tracks;
108 TTree* m_dbgTree_crystals;
109 TTree* m_dbgTree_event;
110 TTree* m_dbgTree_allCuts;
111 TTree* m_dbgTree_evt_allCuts;
112 TTree* m_dbgTree_crys_allCuts;
210 std::make_unique<Belle2::ECL::ECLTimingUtilities>();
Calibration collector module base class.
short m_timeAbsMax
Events with abs(time) > m_timeAbsMax are excluded, mostly for histogram x-range purposes.
StoreObjPtr< EventT0 > m_eventT0
StoreObjPtr for T0.
void inDefineHisto()
Replacement for defineHisto() in CalibrationCollector modules.
int m_tree_amp
Fitting amplitude from ECL for debug TTree output.
This module generates time vs crystal 2D histograms to later (in eclBhabhaTAlgorithm) find time cryst...
void collect()
Select events and crystals and accumulate histograms.
StoreArray< ECLCluster > m_eclClusterArray
Required input array of ECLClusters.
double m_tree_ECLCalDigitTime
Time of an ECLCalDigit within a cluster, ns for debug TTree output.
double m_tree_E1p
Energy of crystal with maximum energy within ECL cluster divided by total cluster energy divided by t...
double m_tree_maxEcrystPosClust
Time of the highest energy crystal in the cluster associated to positively charged track,...
int m_maxCrystal
Last CellId to handle.
double m_tree_maxEcrystNegClust
Time of the highest energy crystal in the cluster associated to negatively charged track,...
double m_tree_z0
Track d0 for debug TTree output.
std::vector< float > m_CrateTimeUnc
uncertainty vector obtained from DB object
double m_energyDependenceTimeOffsetFitParam_p5
p5 in "energy dependence equation"
double m_tree_E1E2
Energy of crystal with maximum energy within ECL cluster divided by second most energetic crystal in ...
double m_massInvTracks
invariant mass of the two tracks, for debug TTree output
int m_tree_quality
ECL fit quality for debug TTree output.
double m_tree_tClustPos
Cluster time of cluster associated to positively charged track, ns for debug TTree output.
void prepare()
Define histograms and read payloads from DB.
DBObjPtr< ECLCrystalCalib > m_PreviousCrystalTimeDB
Time offset from previous crystal time calibration (this calibration) from database.
DBObjPtr< ECLCrystalCalib > m_FlightTimeDB
Time offset from flight time b/w IP and crystal from database.
DBObjPtr< ECLCrystalCalib > m_ElectronicsDB
electronics amplitude calibration from database Scale amplitudefor each crystal and for dead pre-amps
std::vector< int > m_eclDigitID
ECL digit id sorter.
double m_tree_clustCrysE
ratio of crystal energy to energy of the crystal that has the maximum energy, only for the crystals t...
std::vector< int > m_eclCalDigitID
ECL cal digit id sorter.
DBObjPtr< ECLCrystalCalib > m_ElectronicsTimeDB
Time offset from electronics calibration from database.
bool m_storeCalib
Boolean for whether or not to store the previous calibration calibration constants.
double m_tree_time
Time for Ts distribution for debug TTree output.
Class for accessing objects in the database.
double m_tree_nCDChits
Track momentum for debug TTree output.
double m_tree_timetsPreviousTimeCalibs
Time for Ts distribution after application of previous time calibrations for debug TTree output.
double m_tree_tClust
Cluster time of a cluster, ns for debug TTree output.
double m_tree_theta
theta position for debug TTree output
ECLBhabhaTCollectorModule()
Module constructor.
StoreArray< Track > tracks
StoreArray for tracks.
int m_charge
particle charge, for debug TTree output
double m_energyDependenceTimeOffsetFitParam_p1
p1 in "energy dependence equation"
double m_energyDependenceTimeOffsetFitParam_p2
p2 in "energy dependence equation"
double m_tree_ECLCalDigitE
Energy of an ECLCalDigit within a cluster, GeV for debug TTree output.
double m_energyDependenceTimeOffsetFitParam_p6
p6 in "energy dependence equation"
Abstract base class for different kinds of events.
Type-safe access to single objects in the data store.
int m_tree_cid
ECL Cell ID (1..8736) for debug TTree output.
double m_E_DIV_p
Energy divided by momentum, for debug TTree output.
DBObjPtr< ECLCrystalCalib > m_CrateTimeDB
Time offset from crate time calibration (also this calibration) from database.
double m_tree_clustCrysE_DIV_maxEcrys
Number of CDC hits along the track for debug TTree output.
double m_energyDependenceTimeOffsetFitParam_p3
p3 in "energy dependence equation"
StoreArray< ECLCalDigit > m_eclCalDigitArray
Required input array of ECLCalDigits.
double m_tree_E1Etot
Energy of crystal with maximum energy within ECL cluster divided by total cluster energy,...
double m_tree_p
Track z0 for debug TTree output.
std::vector< float > m_Electronics
vector obtained from DB object
int m_minCrystal
First CellId to handle.
TTree * m_dbgTree_electrons
Output tree with detailed event data.
double m_tree_t0_ECLclosestCDC
EventT0 (from ECL) closest to CDC for debug TTree output.
std::vector< float > m_PreviousCrystalTimeUnc
vector obtained from DB object
double m_tree_enPlus
crystal energy, only for the crystals that meet all the selection criteria for debug TTree output
std::vector< float > m_FlightTime
vector obtained from DB object
std::vector< float > m_PreviousCrystalTime
vector obtained from DB object
double m_tree_tClustNeg
Cluster time of cluster associated to negatively charged track, ns for debug TTree output.
double m_tree_t0
EventT0 (not from ECL) for debug TTree output.
bool m_saveTree
If true, save TTree with more detailed event info.
double m_tree_timeF
ECL fitting time for debug TTree output.
double m_tree_ECLDigitAmplitude
Amplitude (used to calculate energy) of an ECLDigit within a cluster, for debug TTree output.
std::vector< float > m_CrateTime
vector obtained from DB object
int m_tree_evtNum
Event number for debug TTree output.
double m_tree_t0_unc
EventT0 uncertainty for debug TTree output.
Accessor to arrays stored in the data store.
int m_crystalCrate
Crate id for the crystal.
double m_tree_enNeg
Energy of cluster associated to negatively charged track, GeV for debug TTree output.
std::vector< float > m_ElectronicsTime
vector obtained from DB object
std::unique_ptr< Belle2::ECL::ECLTimingUtilities > m_ECLTimeUtil
ECL timing tools.
double m_tree_phi
phi position for debug TTree output
double m_energyDependenceTimeOffsetFitParam_p4
p4 in "energy dependence equation"
double m_tree_t0_ECL_minChi2
EventT0 (from ECL) min chi2 for debug TTree output.
double m_tree_en
Energy of crystal with maximum energy within ECL cluster, GeV for debug TTree output.
virtual ~ECLBhabhaTCollectorModule()
Module destructor.
StoreArray< ECLDigit > m_eclDigitArray
Required input array of ECLDigits.
std::vector< float > m_EperCrys
ECL digit energy for each crystal.