1 #ifndef DataFormats_EcalDigi_EcalLiteDTUSample_h
2 #define DataFormats_EcalDigi_EcalLiteDTUSample_h
8 namespace ecalLiteDTU {
EcalLiteDTUSample(uint16_t data)
constexpr sample_type pack(int adc, int gainId)
static constexpr unsigned int kGainIdMask
std::ostream & operator<<(std::ostream &out, const ALILine &li)
static constexpr unsigned int kAdcMask
uint16_t operator()() const
for streaming
constexpr int gainId(sample_type sample)
get the gainId (2 bits)
static constexpr unsigned int NBITS
int adc() const
get the ADC sample (12 bits)
char data[epos_bytes_allocation]
uint16_t raw() const
get the raw word
int gainId() const
get the gainId (2 bits)
constexpr int adc(sample_type sample)
get the ADC sample (12 bits)