1 #ifndef DIGIHCAL_HFDATAFRAME_H 2 #define DIGIHCAL_HFDATAFRAME_H 48 return (val==0)?(-1000):(((val&0x8)==0)?(-(val&0x7)):(val&0x7));
66 else if (size<=0)
size_=0;
73 uint32_t crossingMask=0) {
HcalQIESample const & operator[](int i) const
access a sample
HcalDetId key_type
For the sorted collection.
bool zsUnsuppressed() const
was ZS unsuppressed?
bool zsMarkAndPass() const
was ZS MarkAndPass?
void setFiberIdleOffset(int offset)
uint32_t zsCrossingMask() const
zs crossing mask (which sums considered)
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
HcalElectronicsId const & elecId() const
std::ostream & operator<<(std::ostream &, const HFDataFrame &)
HcalQIESample data_[MAXSAMPLES]
HFDataFrame(const HcalDetId &id)
HcalDetId const & id() const
void setReadoutIds(const HcalElectronicsId &eid)
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...
void setPresamples(int ps)
constexpr size_t nSamples
void setSample(int i, const HcalQIESample &sam)
int size() const
total number of samples in the digi
constexpr int capid() const
get the Capacitor id
HcalElectronicsId electronicsId_
static const int MAXSAMPLES
int presamples() const
number of samples before the sample from the triggered beam crossing (according to the hardware) ...
Readout chain identification for Hcal.
void setZSInfo(bool unsuppressed, bool markAndPass, uint32_t crossingMask=0)