1 #ifndef DIGIECAL_ECALMGPASAMPLE_H
2 #define DIGIECAL_ECALMGPASAMPLE_H
5 #include <boost/cstdint.hpp>
15 return (adc&0xFFF) | ((gainId&0x3)<<12);
int adc(sample_type sample)
get the ADC sample (12 bits)
int gainId(sample_type sample)
get the gainId (2 bits)
uint16_t raw() const
get the raw word
std::ostream & operator<<(std::ostream &out, const ALILine &li)
sample_type pack(int adc, int gainId)
int gainId() const
get the gainId (2 bits)
EcalMGPASample(uint16_t data)
uint16_t operator()() const
for streaming
int adc() const
get the ADC sample (12 bits)