1 #ifndef DIGIHGCAL_HGCSAMPLE_H 2 #define DIGIHGCAL_HGCSAMPLE_H 6 #include <boost/cstdint.hpp> 48 <<
" Mode: " <<
mode()
50 <<
" Data: " <<
data()
51 <<
" Raw=0x" << std::hex <<
raw() <<
std::dec << std::endl;
72 if( word > mask ) word =
mask;
74 const uint32_t masked_word = (word &
mask) << pos;
HGCSample(const HGCSample &o)
void print(std::ostream &out=std::cout)
HGCSample(uint32_t value)
void setThreshold(bool thr)
setters
void setToA(uint16_t toa)
void setWord(uint32_t word, uint32_t mask, uint32_t pos)
wrapper to reset words at a given position
uint32_t raw() const
getters
void setToAValid(bool toaFired)
void setData(uint16_t data)