15#ifndef ALICEO2_HBFUTILS_H
16#define ALICEO2_HBFUTILS_H
80 return std::pair<int, int>(hbf /
nHBFPerTF, hbf);
158 RDHUtils::setHeartBeatBC(rdh, 0);
163 if (tfhb.second == 0) {
Definition of the 32 Central Trigger System (CTS) Trigger Types defined in https://twiki....
Header to collect LHC related constants.
void printKeyValues(bool showProv=true, bool useLogger=false) const final
constexpr int LHCMaxBunches
constexpr double LHCOrbitMUS
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
std::unique_ptr< GPUReconstructionTimeframe > tf
IR getFirstIRofTF(const IR &rec) const
get 1st IR of TF corresponding to the 1st sampled orbit (in MC)
bool obligatorySOR
in mc->raw always start from run 1st TF to set the SOR
std::pair< int, int > getTFandHBinTF(const IR &rec) const
get 1st IR of the TF corresponding to provided interaction record
uint64_t startTime
absolute time in ms corresponding to the start of the MC run
void updateRDH(H &rdh, const IR &rec, bool setHBTF=true) const
void checkConsistency() const
uint32_t runNumber
run number
uint32_t getHBF(const IR &rec) const
get TF ID corresponding to this IR
uint32_t maxNOrbits
max number of orbits to accept, used in digit->raw conversion
IR getIRHBF(uint32_t hbf) const
get IR corresponding to start of the TF
O2ParamDef(HBFUtils, "HBFUtils")
IR getFirstSampledTFIR() const
get TF and HB (abs) for this IR
uint32_t orbitFirstSampled
1st orbit sampled in the MC
std::pair< int, int > getTFandHB(const IR &rec) const
calculate TF timestamp in ms
IR getIRTF(uint32_t tf) const
get HBF ID corresponding to this IR
uint32_t getTF(const IR &rec) const
get TF and HB (within TF) for this IR
int nHBFPerTF
number of orbits per BC
uint64_t getTFTimeStamp(const IR &rec) const
create RDH for given IR
int fillHBIRvector(std::vector< IR > &dst, const IR &fromIR, const IR &toIR) const
uint32_t orbitFirst
orbit of 1st TF of the run
int getNOrbitsPerTF() const
get IR corresponding to start of the HBF
H createRDH(const IR &rec, bool setHBTF=true) const
update RDH for with given IR info
static void setTriggerType(H &rdh, uint32_t v, NOTPTR(H))
static void setTriggerBC(RDHv4 &rdh, uint16_t v)
static void setTriggerOrbit(RDHv4 &rdh, uint32_t v)
static void setHeartBeatOrbit(RDHv4 &rdh, uint32_t v)