Go to the documentation of this file. 1 #ifndef DataFormats_EcalDigi_EcalLiteDTUSample_h
2 #define DataFormats_EcalDigi_EcalLiteDTUSample_h
constexpr int gainId(sample_type sample)
get the gainId (2 bits)
static constexpr unsigned int kGainIdMask
EcalLiteDTUSample(uint16_t data)
int adc() const
get the ADC sample (12 bits)
constexpr int adc(sample_type sample)
get the ADC sample (12 bits)
uint16_t raw() const
get the raw word
constexpr sample_type pack(int adc, int gainId)
uint16_t operator()() const
for streaming
int gainId() const
get the gainId (2 bits)
static constexpr unsigned int kAdcMask
std::ostream & operator<<(std::ostream &, const EcalLiteDTUSample &)
static constexpr unsigned int NBITS
char data[epos_bytes_allocation]