12#ifndef ALICEO2_MCCOMPLABEL_H
13#define ALICEO2_MCCOMPLABEL_H
26 static constexpr uint64_t ul0x1 = 0x1;
27 static constexpr uint64_t NotSet = 0xffffffffffffffff;
28 static constexpr uint64_t Noise = 0xfffffffffffffffe;
29 static constexpr uint64_t Fake = ul0x1 << 63;
30 static constexpr int NReservedBits = 1;
44 "Fields cannot be stored in 64 bits");
55 MCCompLabel(
int trackID,
int evID,
int srcID,
bool fake =
false)
60 set(trackID, evID, srcID, fake);
74 bool isSet()
const {
return mLabel != NotSet; }
76 bool isEmpty()
const {
return mLabel == NotSet; }
85 bool isFake()
const {
return mLabel & Fake; }
98 return (tr1 == tr2) ? ((
isCorrect() &&
other.isCorrect()) ? 1 : 0) : -1;
123 void set(
unsigned int trackID,
int evID,
int srcID,
bool fake)
139 void get(
int& trackID,
int& evID,
int& srcID,
bool& fake)
const
169 return label.getRawValue();
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
uint64_t getRawValue() const
static constexpr int maxTrackID()
bool operator==(const MCCompLabel &other) const
static constexpr int maxSourceID()
void setFakeFlag(bool v=true)
bool operator!=(const MCCompLabel &other) const
ClassDefNV(MCCompLabel, 1)
static constexpr uint64_t maskTrackID
MCCompLabel(bool noise=false)
int getTrackIDSigned() const
void get(int &trackID, int &evID, int &srcID, bool &fake) const
static constexpr int nbitsTrackID
static constexpr uint64_t maskSrcID
uint64_t getTrackEventSourceID() const
MCCompLabel(int trackID, int evID, int srcID, bool fake=false)
static constexpr int nbitsEvID
bool operator>(const MCCompLabel &other) const
static constexpr int maxEventID()
void set(unsigned int trackID, int evID, int srcID, bool fake)
static constexpr int nbitsSrcID
bool operator<(const MCCompLabel &other) const
static constexpr uint64_t maskEvID
int compare(const MCCompLabel &other) const
std::string asString() const
static constexpr uint64_t maskFull
GLuint GLsizei const GLchar * label
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
std::ostream & operator<<(std::ostream &stream, o2::InteractionRecord const &ir)
size_t operator()(o2::MCCompLabel const &label) const
VectorOfTObjectPtrs other