14#ifndef ALICEO2_INTERACTIONRECORD_H
15#define ALICEO2_INTERACTIONRECORD_H
18#ifndef GPUCA_ALIGPUCODE
29 static constexpr uint16_t
DummyBC = 0xffff;
72 static int ns2bc(
double ns,
unsigned int& orb)
142 return !((*this) <
other);
152 return !((*this) >
other);
284#ifndef GPUCA_ALIGPUCODE
349 return !((*this) <
other);
359 return !((*this) >
other);
362#ifndef GPUCA_ALIGPUCODE
376struct hash<
o2::InteractionRecord> {
Header to collect LHC related constants.
GLboolean GLboolean GLboolean b
constexpr double LHCBunchSpacingMUS
constexpr int LHCMaxBunches
constexpr double LHCBunchSpacingNS
constexpr double LHCOrbitNS
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
Defining DataPointCompositeObject explicitly as copiable.
static constexpr InteractionRecord getIRMaxBC()
InteractionRecord operator-(const InteractionRecord &add) const
bool operator==(const InteractionRecord &other) const
InteractionRecord & operator+=(int64_t dbc)
bool operator!=(const InteractionRecord &other) const
InteractionRecord operator+(const InteractionRecord &add) const
bool operator<(const InteractionRecord &other) const
static int ns2bc(double ns, unsigned int &orb)
bool operator>(const InteractionRecord &other) const
InteractionRecord operator-(int64_t dbc) const
InteractionRecord & operator-=(const InteractionRecord &add)
ClassDefNV(InteractionRecord, 3)
std::string asString() const
bool operator>=(const InteractionRecord &other) const
bool operator<=(const InteractionRecord &other) const
uint16_t bc
bunch crossing ID of interaction
static constexpr int64_t MaxGlobalBCs
InteractionRecord(const InteractionRecord &src)=default
static constexpr uint32_t DummyOrbit
InteractionRecord operator++(int)
InteractionRecord operator--(int)
static double bc2ns(int bc, unsigned int orbit)
InteractionRecord & operator=(const InteractionRecord &src)=default
InteractionRecord operator+(int64_t dbc) const
InteractionRecord(double tNS)
static constexpr double DummyTime
InteractionRecord operator--()
InteractionRecord operator++()
InteractionRecord & operator-=(int64_t dbc)
InteractionRecord & operator+=(const InteractionRecord &add)
int64_t differenceInBC(const InteractionRecord &other) const
constexpr InteractionRecord(uint16_t b, uint32_t orb)
constexpr InteractionRecord()=default
void setFromLong(int64_t l)
float differenceInBCMUS(const InteractionRecord &other) const
friend std::ostream & operator<<(std::ostream &stream, InteractionRecord const &ir)
float differenceInBCNS(const InteractionRecord &other) const
static constexpr uint16_t DummyBC
static InteractionRecord long2IR(int64_t l)
void setFromNS(double ns)
ClassDefNV(InteractionTimeRecord, 1)
InteractionTimeRecord(const InteractionRecord &ir, double t_in_bc)
create from the interaction record and time in the bunch (in ns)
bool operator!=(const InteractionTimeRecord &other) const
InteractionTimeRecord()=default
std::string asString() const
double getTimeOffsetWrtBC() const
bool operator<(const InteractionTimeRecord &other) const
bool operator>=(const InteractionTimeRecord &other) const
bool operator==(const InteractionTimeRecord &other) const
void setFromNS(double tNS)
set the from the abs. (since orbit=0/bc=0) time in NS
friend std::ostream & operator<<(std::ostream &stream, InteractionTimeRecord const &ir)
double timeInBCNS
time in NANOSECONDS relative to orbit/bc
double getTimeNS() const
get time in ns from orbit=0/bc=0
bool operator>(const InteractionTimeRecord &other) const
bool operator<=(const InteractionTimeRecord &other) const
InteractionTimeRecord(double tNS)
create from the abs. (since orbit=0/bc=0) time in NS
size_t operator()(const o2::InteractionRecord &ir) const
VectorOfTObjectPtrs other
o2::InteractionRecord ir(0, 0)