17#ifndef ALICEO2_MID_ROFRECORD_H
18#define ALICEO2_MID_ROFRECORD_H
59 bool printError =
false)
const
62 float tMean = (bcDiff + 0.5) * o2::constants::lhc::LHCBunchSpacingMUS;
63 float tErr = 0.5 * o2::constants::lhc::LHCBunchSpacingMUS;
64 bool isInTF = bcDiff >= 0 && bcDiff < nOrbits * o2::constants::lhc::LHCMaxBunches;
65 if (printError && !isInTF) {
66 LOGP(alarm,
"ATTENTION: wrong bunches diff. {} for current IR {} wrt 1st TF orbit {}, source:MID",
69 return std::make_pair(
Time(tMean, tErr), isInTF);
Header to collect LHC related constants.
constexpr uint32_t NEvTypes
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
std::string asString() const
int64_t differenceInBC(const InteractionRecord &other) const
size_t getEndIndex() const
ROFRecord(const ROFRecord &other, size_t first, size_t nElements)
o2::InteractionRecord interactionRecord
std::pair< Time, bool > getTimeMUS(const InteractionRecord &startIR, uint32_t nOrbits=128, bool printError=false) const
o2::dataformats::TimeStampWithError< float, float > Time
ROFRecord(const o2::InteractionRecord &intRecord, const EventType &evtType, size_t first, size_t nElements)
VectorOfTObjectPtrs other