12#ifndef TOF_LHCPHASE_CALIBRATION_H_
13#define TOF_LHCPHASE_CALIBRATION_H_
52 if (
r <= 0. || nb < 1) {
53 throw std::runtime_error(
"Wrong initialization of the histogram");
61 void fill(
const gsl::span<const o2::dataformats::CalibInfoTOF>
data);
79 using CcdbObjectInfoVector = std::vector<CcdbObjectInfo>;
80 using LHCphaseVector = std::vector<LHCphase>;
87 mTimeHist =
new TH2F(
"phaseTrend",
";slot #; t - t_{exp}^{#pi} (ps)", 200, 0, 200, mNBins, -mRange, mRange);
91 bool hasEnoughData(const
Slot& slot) const final {
return slot.getContainer()->entries >= mMinEntries; }
108 CcdbObjectInfoVector mInfoVector;
109 LHCphaseVector mLHCphaseVector;
Class to store the output of the matching to TOF for calibration.
Class to store the output of the matching to TOF for calibration.
Class to use TOF calibration (decalibration, calibration)
Definition of the Names Generator class.
Class for time synchronization of RawReader instances.
static std::string getCCDBServer()
void setURL(const std::string url)
static constexpr Double_t BC_TIME_INPS
const CcdbObjectInfoVector & getLHCphaseInfoVector() const
CcdbObjectInfoVector & getLHCphaseInfoVector()
CalibTOFapi * getCalibTOFapi() const
bool hasEnoughData(const Slot &slot) const final
~LHCClockCalibrator() final=default
Slot & emplaceNewSlot(bool front, TFType tstart, TFType tend) final
void setCalibTOFapi(CalibTOFapi *api)
const LHCphaseVector & getLHCphaseVector() const
LHCClockCalibrator(int minEnt=500, int nb=10000, float r=244000, const std::string path=o2::base::NameConf::getCCDBServer())
void finalizeSlot(Slot &slot) final
GLsizei const GLchar *const * path
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
std::vector< float > histo
size_t getEntries() const
o2::tof::CalibTOFapi * calibApi
void fill(const gsl::span< const o2::dataformats::CalibInfoTOF > data)
LHCClockDataHisto(int nb, float r, o2::tof::CalibTOFapi *api)
void merge(const LHCClockDataHisto *prev)
ClassDefNV(LHCClockDataHisto, 1)