Go to the documentation of this file. 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 setThreshold(bool thr)
setters
void set(bool thr, bool mode, uint16_t gain, uint16_t toa, uint16_t data)
uint32_t raw() const
getters
void setGain(uint16_t gain)
HGCSample(uint32_t value)
void setToAValid(bool toaFired)
void print(std::ostream &out=std::cout)
void setToA(uint16_t toa)
void setData(uint16_t data)
static uint32_t convertV9ToV10(uint32_t valueOldForm, bool toaFiredOldForm)
Data Model Evolution.
static unsigned const int shift
uint32_t getWord(HGCSampleMasks mask, HGCSampleShifts shift) const
void setWord(uint16_t word, HGCSampleMasks mask, HGCSampleShifts shift)
wrapper to reset words at a given position