12#ifndef ALICEO2_MCVEVENTLABEL_H
13#define ALICEO2_MCVEVENTLABEL_H
27 static constexpr uint32_t Dummy = 0xffffffff;
76 void set(
int evID,
int srcID,
float corrW)
80 mLabel = (iw << (nbitsEvID + nbitsSrcID)) | ((MaskSrcID & static_cast<uint32_t>(srcID)) <<
nbitsEvID) | (
MaskEvID &
static_cast<uint32_t>(evID));
103 void get(
int& evID,
int& srcID,
float& corrW)
std::ostream & operator<<(std::ostream &os, const o2::MCEventLabel &c)
ClassDefNV(MCEventLabel, 1)
static constexpr int nbitsSrcID
static constexpr uint32_t MaskCorrW
void set(int evID, int srcID, float corrW)
compose label
void get(int &evID, int &srcID, float &corrW)
static constexpr int nbitsCorrW
static constexpr uint32_t MaskSrcID
static constexpr uint32_t NotSet
static constexpr int nbitsEvID
bool compare(const MCEventLabel &other, bool strict=false) const
static constexpr uint32_t MaxEventID()
uint32_t getIDOnly() const
static constexpr uint32_t MaskSrcEvID
std::string asString() const
static constexpr float WeightNorm
static constexpr float WeightPrecision()
uint32_t getRawValue() const
static constexpr uint32_t MaxSourceID()
MCEventLabel(int evID, int srcID, float corrw=1.0)
void setCorrWeight(float corrW)
float getCorrWeight() const
static constexpr uint32_t MaskEvID
bool operator==(const MCEventLabel &other) const
GLuint GLsizei const GLchar * label
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
size_t operator()(o2::MCEventLabel const &label) const
VectorOfTObjectPtrs other