1 #ifndef DIGIHCAL_HBHEDATAFRAME_H 2 #define DIGIHCAL_HBHEDATAFRAME_H 45 return (val == 0) ? (-1000) : (((val & 0x8) == 0) ? (-(val & 0x7)) : (val & 0x7));
59 capid = (capid + 1) % 4;
89 else if (offset >= -7)
bool zsUnsuppressed() const
was ZS unsuppressed?
static const int MAXSAMPLES
bool zsMarkAndPass() const
was ZS MarkAndPass?
int size() const
total number of samples in the digi
HcalQIESample const & operator[](int i) const
access a sample
void setReadoutIds(const HcalElectronicsId &eid)
HBHEDataFrame(const HcalDetId &id)
void setPresamples(int ps)
void setSample(int i, const HcalQIESample &sam)
std::ostream & operator<<(std::ostream &, const HBHEDataFrame &)
void setFiberIdleOffset(int offset)
HcalElectronicsId electronicsId_
bool validate(int firstSample=0, int nSamples=100) const
validate appropriate DV and ER bits as well as capid rotation for the specified samples (default is a...
HcalQIESample data_[MAXSAMPLES]
int presamples() const
number of samples before the sample from the triggered beam crossing (according to the hardware) ...
int fiberIdleOffset() const
offset of bunch number for this channel relative to nominal set in the unpacker (range is +7->-7...
HcalQIESample const & sample(int i) const
access a sample
uint32_t zsCrossingMask() const
zs crossing mask (which sums considered)
HcalDetId key_type
For the sorted collection.
const HcalElectronicsId & elecId() const
constexpr int capid() const
get the Capacitor id
const HcalDetId & id() const
void setZSInfo(bool unsuppressed, bool markAndPass, uint32_t crossingMask=0)
Readout chain identification for Hcal.