1 #ifndef DIGIHGCAL_HGCSAMPLE_H
2 #define DIGIHGCAL_HGCSAMPLE_H
77 static uint32_t
convertV9ToV10(uint32_t valueOldForm,
bool toaFiredOldForm) {
90 uint32_t valueNewForm(valueOldForm);
110 const uint32_t masked_word = (word & mask) << shift;
HGCSample(const HGCSample &o)
void print(std::ostream &out=std::cout)
uint32_t getWord(HGCSampleMasks mask, HGCSampleShifts shift) const
HGCSample(uint32_t value)
void setThreshold(bool thr)
setters
void setToA(uint16_t toa)
void setGain(uint16_t gain)
uint32_t raw() const
getters
void setToAValid(bool toaFired)
void setWord(uint16_t word, HGCSampleMasks mask, HGCSampleShifts shift)
wrapper to reset words at a given position
static unsigned int const shift
static uint32_t convertV9ToV10(uint32_t valueOldForm, bool toaFiredOldForm)
Data Model Evolution.
void set(bool thr, bool mode, uint16_t gain, uint16_t toa, uint16_t data)
void setData(uint16_t data)