21#include <ecl/dataobjects/ECLElementNumbers.h>
24#include <calibration/CalibrationCollectorModule.h>
25#include <framework/database/DBObjPtr.h>
26#include <framework/dataobjects/EventMetaData.h>
35 class ECLCrystalCalib;
36 class ECLReferenceCrystalPerCrateCalib;
Calibration collector module base class.
Class for accessing objects in the database.
Type-safe access to single objects in the data store.
This modules looks up crystal and crate time offset constants from the database and saves them to a t...
eclTimeShiftsPlottingCollectorModule()
Module constructor.
std::vector< float > m_CrateTime
vector obtained from DB object
DBObjPtr< ECLCrystalCalib > m_CrateTimeDB
Time offset from crate time calibration (also this calibration) from database.
int m_previousRun
Previous run number, in case we run over several runs.
std::vector< float > m_CrystalTimeUnc
vector obtained from DB object
DBObjPtr< ECLCrystalCalib > m_CrystalTimeDB
Time offset from previous crystal time calibration (this calibration) from database.
int m_crystalID
crystal identification number
DBObjPtr< ECLReferenceCrystalPerCrateCalib > m_RefCrystalsCalibDB
Crystal IDs of the one reference crystal per crate from database.
double m_crateTimeConstUnc
crate time uncertainty in ticks
std::vector< short > m_RefCrystalsCalib
vector obtained from DB object
double m_crystalTimeConstUnc
crystal time uncertainty in ticks
void collect() override
Select events and crystals and accumulate histograms.
int m_crateID
crate identification number
std::vector< float > m_CrateTimeUnc
uncertainty vector obtained from DB object
StoreObjPtr< EventMetaData > m_evtMetaData
Event meta data.
int m_exp
Current experiment number.
int m_refCrystalID
reference crystal identification number
void prepare() override
Define histograms and read payloads from DB.
double m_crystalTimeConst
crystal time constants in ticks
double m_crateTimeConst
crate time constant in ticks
std::vector< float > m_CrystalTime
vector obtained from DB object
int m_previousExp
Previous experiment number, in case we run over several runs.
void inDefineHisto() override
Replacement for defineHisto() in CalibrationCollector modules.
virtual ~eclTimeShiftsPlottingCollectorModule()
Module destructor.
const int NUM_CRYSTALS
Number of crystals in the ECL.
int m_run
Current run number.
const int c_NCrystals
Number of crystals.
Abstract base class for different kinds of events.