11#include <fairlogger/Logger.h>
22 :
DigitBase(0), mAbsId(absId), mLabel(
label), mAmplitude(amplitude)
27 return (mAbsId ==
other.getAbsId() && fabs(getTimeStamp() -
other.getTimeStamp()) <=
kTimeGate);
35 mLabel =
other.mLabel;
37 if (mLabel !=
other.mLabel &&
other.mLabel != -1) {
39 LOG(error) <<
"Adding digits with different references to Labels:" << mLabel <<
" and " <<
other.mLabel;
43 mAmplitude +=
other.mAmplitude;
50 stream <<
"CPV Digit: cell absId " << mAbsId <<
", Time " << getTimeStamp() <<
" with amplitude " << mAmplitude;
bool canAdd(const Digit other) const
Check, if one can add two digits.
Digit & operator+=(const Digit &other)
if addable, adds energy and list of primaries.
static constexpr int kTimeGate
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.
VectorOfTObjectPtrs other
LOG(info)<< "Compressed in "<< sw.CpuTime()<< " s"