1 #ifndef DIGIHGCAL_HGCSAMPLE_H
2 #define DIGIHGCAL_HGCSAMPLE_H
5 #include <boost/cstdint.hpp>
45 void setWord(uint16_t word, uint16_t mask, uint16_t pos)
48 value_ &= ~((word & mask) << pos);
50 value_ |= ((word & mask) << pos);
uint16_t raw() const
getters
void set(uint16_t gain, uint16_t adc)
void setADC(uint16_t adc)
void setGain(uint16_t gain)
setters
HGCSample(uint16_t value)
void setWord(uint16_t word, uint16_t mask, uint16_t pos)
wrapper to reset words at a given position