17#include <ecl/dataobjects/ECLElementNumbers.h>
18#include <ecl/dbobjects/ECLCrystalCalib.h>
19#include <ecl/dbobjects/ECLReferenceCrystalPerCrateCalib.h>
22#include <calibration/CalibrationAlgorithm.h>
23#include <framework/database/DBObjPtr.h>
Base class for calibration algorithms.
EResult
The result of calibration.
Class for accessing objects in the database.
Calibrate ecl crystals using previously created payloads.
Double_t m_crateTimeConst
Crate time calibration constant.
double m_tcrate_unc_min_cut
Minimum value cut for the crate time calibration constant uncertainty for plotting.
bool algorithmReadPayloads
Whether or not to have the algorithm code to loop over all the runs and read the payloads itself.
Int_t m_run_perCrystal
Run number.
const int m_numCrates
Number of Crates expected.
Int_t m_crystalID
Crystal ID number.
double m_tcrate_max_cut
Maximum value cut for the crate time calibration constant for plotting
double m_tcrate_min_cut
Minimum value cut for the crate time calibration constant for plotting.
const int m_numCrystals
Number of Crystals expected.
Double_t m_crystalTimeUnc
Uncertainty on the crystal time calibration constant.
Double_t m_crateTimeUnc
Uncertainty on the crate time calibration constant.
~eclTimeShiftsAlgorithm()
..Destructor
DBObjPtr< ECLReferenceCrystalPerCrateCalib > m_refCrysIDzeroingCrate
payload that we want to read from the DB
double m_tcrate_unc_max_cut
Maximum value cut for the crate time calibration constant uncertainty for plotting.
DBObjPtr< ECLCrystalCalib > m_ECLCrateTimeOffset
ECLCrateTimeOffset payload that we want to read from the DB.
Double_t m_crystalTimeConst
Crystal time calibration constant.
Int_t m_refCrystalID
Crystal ID number for the reference crystal.
eclTimeShiftsAlgorithm()
..Constructor
EResult calibrate() override
..Run algorithm
Int_t m_exp_perCrystal
Experiment number
double crysCrateShift_max
Plotting time max for crystal+crate shift plots.
double crysCrateShift_min
Plotting time min for crystal+crate shift plots.
std::string debugFilenameBase
Name of file with debug output, eclTimeShiftsAlgorithm.root by default.
DBObjPtr< ECLCrystalCalib > m_ECLCrystalTimeOffset
ECLCrystalTimeOffset payload that we want to read from the DB.
double timeShiftForPlotStyle[52]
List of time offsets, one per crate, used just to centre the time constants around zero.
Int_t m_crateID
Crate ID number.
const int c_NCrystals
Number of crystals.
Abstract base class for different kinds of events.