40 else return (*
m_ptr)&0xFF;
46 else return (((*
m_ptr)&0x3F00)>>8);
52 else return (((*
m_ptr)&0x4000));
74 else {
return false; }
111 m_baseptr[
m_ptr+1]=0x4000| ((tdcstat&0x3)<<10) | ((fetdc&0xF)<<6) | ((retdc)<<8);
int adc(sample_type sample)
get the ADC sample (12 bits)
void addTP(int tpword, bool soi=false)
static const int CHANNELS_PER_FIBER_MAX
const uint16_t * m_0th_data_ptr
void addHeader(int flavor, int errf, int cap0, int channelid)
packer(uint16_t *baseptr)
const_iterator & operator++()
static const int HEADER_LENGTH_16BIT
void addSample(int adc, bool soi=false, int retdc=0, int fetdc=0, int tdcstat=0)
const_iterator begin() const
static const int FIBERS_PER_UHTR
const_iterator(const uint16_t *ptr, const uint16_t *limit=0)
HcalUHTRData & operator=(const HcalUHTRData &)
unsigned long long uint64_t
char data[epos_bytes_allocation]
const uint16_t * m_header_ptr
const_iterator end() const