12#ifndef ALICEO2_PHOS_DIGIT_H_
13#define ALICEO2_PHOS_DIGIT_H_
44 Digit(
short cell,
float amplitude,
float time,
bool isTrigger2x2,
int label);
66 return getTimeStamp() <
other.getTimeStamp();
78 return getTimeStamp() >
other.getTimeStamp();
87 return ((fabs(getTimeStamp() -
other.getTimeStamp()) <=
kTimeGate) &&
103 bool isTRU()
const {
return mAbsId >= NREADOUTCHANNELS; }
109 short getTRUId()
const {
return mAbsId - NREADOUTCHANNELS; }
110 void setTRUId(
short cellId) { mAbsId = cellId + NREADOUTCHANNELS; }
143 static constexpr short NREADOUTCHANNELS = 14337;
145 bool mIsHighGain =
true;
148 float mAmplitude = 0;
151 ClassDefNV(
Digit, 1);
void setAmplitude(float amplitude)
void setTRUId(short cellId)
static constexpr int kTimeGate
void fillFromHit(const Hit &hit)
Replace content of this digit with new one, from hit.
bool operator==(const Digit &other) const
Comparison oparator, based on time and absId.
short getAbsId() const
Absolute sell id.
float getAmplitude() const
Energy deposited in a cell.
bool canAdd(const Digit other) const
Check, if one can add two digits.
void setHighGain(Bool_t isHG)
bool isHighGain() const
Checks if this digit is produced in High Gain or Low Gain channels.
bool operator>(const Digit &other) const
Comparison oparator, based on time and absId.
int getLabel() const
index of entry in MCLabels array
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.
void addEnergyTime(float energy, float time)
float getTime() const
time measured in digit w.r.t. photon to PHOS arrival
void setAbsId(short cellId)
void PrintStream(std::ostream &stream) const
PHOS simulation hit information.
GLuint GLsizei const GLchar * label
std::ostream & operator<<(std::ostream &in, const BadChannelsMap &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