5 theSample=(adc&0xFFF) | ((gainId&0x3)<<12);
9 s <<
"ADC=" << samp.
adc() <<
", gainId=" << samp.
gainId();
std::ostream & operator<<(std::ostream &s, const EcalMGPASample &samp)
int gainId() const
get the gainId (2 bits)
constexpr int adc(sample_type sample)
get the ADC sample (12 bits)
constexpr int gainId(sample_type sample)
get the gainId (2 bits)
int adc() const
get the ADC sample (12 bits)