56 uint8_t
capid()
const;
83 void addHeader(
int flavor,
int errf,
int cap0,
int channelid);
84 void addSample(
int adc,
bool soi=
false,
int retdc=0,
int fetdc=0,
int tdcstat=0);
85 void addTP(
int tpword,
bool soi=
false);
98 orbitn,
int pipeline,
int ndd,
int nps,
int firmwareRev=0);
114 inline uint32_t
slot()
const {
return uint32_t(
m_raw64[1]>>8)&0xF; }
int adc(sample_type sample)
get the ADC sample (12 bits)
int getFirmwareFlavor() const
Get the HTR firmware flavor.
bool operator!=(const const_iterator &i)
void addTP(int tpword, bool soi=false)
static int slb(const HcalTriggerPrimitiveSample &theSample)
const unsigned short * getRawData16() const
Get a pointer to the raw data.
static const int CHANNELS_PER_FIBER_MAX
const uint16_t * m_0th_data_ptr
uint32_t crateId() const
Get the board crate.
int getFormatVersion() const
Get the version number of this event.
void addHeader(int flavor, int errf, int cap0, int channelid)
packer(uint16_t *baseptr)
const_iterator & operator++()
static const int CHANNELS_PER_FIBER_HF
uint32_t bunchNumber() const
Get the HTR bunch number.
bool wasMarkAndPassZS(int fiber, int fiberchan) const
Was this channel passed as part of Mark&Pass ZS?
void addSample(int adc, bool soi=false, int retdc=0, int fetdc=0, int tdcstat=0)
static const int CHANNELS_PER_FIBER_HBHE
const_iterator begin() const
uint32_t orbitNumber() const
Get the HTR orbit number.
static const int FIBERS_PER_UHTR
const_iterator(const uint16_t *ptr, const uint16_t *limit=0)
uint32_t slot() const
Get the board slot.
void packUnsuppressed(const bool *mp)
pack trailer with Mark and Pass bits
HcalUHTRData & operator=(const HcalUHTRData &)
unsigned long long uint64_t
bool operator==(const const_iterator &i)
uint32_t l1ANumber() const
Get the HTR event number.
uint16_t operator*() const
const int getRawLengthBytes() const
Get the length of the raw data.
bool wasMarkAndPassZSTP(int slb, int slbchan) const
Was this channel passed as part of Mark&Pass ZS?
unsigned int getFirmwareRevision() const
Get the HTR firmware version.
const uint16_t * m_header_ptr
const_iterator end() const
uint32_t boardId() const
Get the raw board id.
const uint16_t * raw() const
void packHeaderTrailer(int L1Anumber, int bcn, int submodule, int orbitn, int pipeline, int ndd, int nps, int firmwareRev=0)
pack header and trailer (call after pack)