15#ifndef ALICEO2_HBFUTILS_H
16#define ALICEO2_HBFUTILS_H
158 RDHUtils::setHeartBeatBC(rdh, 0);
163 if (tfhb.second == 0) {
Definition of the 32 Central Trigger System (CTS) Trigger Types defined in https://twiki....
o2::raw::RawFileWriter * raw
Timeframe settings Average distance in cm of events merged into Randomize distance around average distance of merged events Simulate correct bunch interactions instead of placing only the average number of events A value[n] sets TFlen for[n] collisions in Number of bunches per trainsort Number of bunch trains Instantaneous interaction rate Do not simulate border Total number of collisions to be placed in the interior of all time Do not select random but walk over array of events in stride steps h Event generator settings h configStandalone Use CPU for GPU Force usage of the specified GPU device no CPU fallback Continue processing after an error First event to Number of events to Number of iterations to Number of iterations to Number of initial iterations excluded from const char Directory with events to Events directory is and not inside events Show standalone event Run event generator maximum time bin of continuous for triggered for automatic continuous for automatic continuous triggered uint64_t
Header to collect LHC related constants.
void printKeyValues(bool showProv=true, bool useLogger=false, bool withPadding=true, bool showHash=true) const final
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)