12#ifndef ALICEO2_EMCAL_DIGIT_H_
13#define ALICEO2_EMCAL_DIGIT_H_
21#include <boost/serialization/base_object.hpp>
38 Digit(Short_t tower, Double_t amplitudeGeV, Double_t
time);
39 Digit(Short_t tower, uint16_t noiseLG, uint16_t noiseHG,
double time);
48 return (mTower ==
other.getTower() && std::abs(getTimeStamp() -
other.getTimeStamp()) < constants::EMCAL_TIMESAMPLE);
58 void setTower(Short_t tower) { mTower = tower; }
61 void setAmplitude(Double_t amplitude) { mAmplitudeGeV = amplitude; }
64 void setEnergy(Double_t energy) { mAmplitudeGeV = energy; }
65 Double_t
getEnergy()
const {
return mAmplitudeGeV; }
81 Bool_t
getTRU()
const {
return mIsTRU; }
100 double mAmplitudeGeV = 0.;
103 uint16_t mNoiseLG = 0;
104 uint16_t mNoiseHG = 0;
106 ClassDefNV(
Digit, 3);
EMCAL digit implementation.
bool operator>(const Digit &other) const
Int_t getAmplitudeADC() const
void setNoiseHG(uint16_t noise)
bool operator<(const Digit &other) const
bool operator==(const Digit &other) const
Bool_t getLowGain() const
uint16_t getNoiseTRU() const
Double_t getEnergy() const
void setAmplitude(Double_t amplitude)
void setNoiseTRU(uint16_t noise)
void setEnergy(Double_t energy)
bool canAdd(const Digit other)
Digit & operator+=(const Digit &other)
friend Digit operator+(Digit lhs, const Digit &rhs)
Bool_t getHighGain() const
Double_t getAmplitude() const
void setTower(Short_t tower)
Digit(Short_t tower, uint16_t noiseLG, uint16_t noiseHG, double time)
friend class boost::serialization::access
uint16_t getNoiseHG() const
ChannelType_t getType() const
void setType(ChannelType_t ctype)
void PrintStream(std::ostream &stream) const
void setAmplitudeADC(Short_t amplitude, ChannelType_t ctype=ChannelType_t::HIGH_GAIN)
void setNoiseLG(uint16_t noise)
uint16_t getNoiseLG() const
std::ostream & operator<<(std::ostream &stream, const Cell &cell)
Stream operator for EMCAL cell.
ChannelType_t
Type of a raw data channel.
@ HIGH_GAIN
High gain channel.
@ LOW_GAIN
Low gain channel.
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
VectorOfTObjectPtrs other