12#ifndef ALICEO2_CPV_DIGIT_H_
13#define ALICEO2_CPV_DIGIT_H_
40 Digit(
unsigned short cell,
float amplitude,
int label);
52 return getTimeStamp() <
other.getTimeStamp();
64 return getTimeStamp() >
other.getTimeStamp();
73 return ((fabs(getTimeStamp() -
other.getTimeStamp()) <=
kTimeGate) &&
87 unsigned short getAbsId()
const {
return mAbsId; }
88 void setAbsId(
unsigned short cellId) { mAbsId = cellId; }
112 unsigned short mAbsId = 0;
114 float mAmplitude = 0;
116 ClassDefNV(
Digit, 2);
void setAmplitude(float amplitude)
float getAmplitude() const
Energy deposited in a cell.
bool canAdd(const Digit other) const
Check, if one can add two digits.
unsigned short getAbsId() const
Absolute sell id.
bool operator<(const Digit &other) const
Comparison oparator, based on time and absId.
bool operator==(const Digit &other) const
Comparison oparator, based on time and absId.
Digit & operator+=(const Digit &other)
if addable, adds energy and list of primaries.
int getLabel() const
index of entry in MCLabels array
void setAbsId(unsigned short cellId)
static constexpr int kTimeGate
bool operator>(const Digit &other) const
Comparison oparator, based on time and absId.
void PrintStream(std::ostream &stream) const
GLuint GLsizei const GLchar * label
std::ostream & operator<<(std::ostream &in, const BadChannelMap &bcm)
Printing bad channel map on the stream.
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
VectorOfTObjectPtrs other