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)
constexpr void setReadoutIds(const HcalElectronicsId &eid)
static const int MAXSAMPLES
constexpr int fiberIdleOffset() const
offset of bunch number for this channel relative to nominal set in the unpacker (range is +7->-7...
constexpr void setSample(int i, const HcalQIESample &sam)
constexpr const HcalDetId & id() const
std::ostream & operator<<(std::ostream &out, const ALILine &li)
constexpr HBHEDataFrame()
constexpr uint32_t zsCrossingMask() const
zs crossing mask (which sums considered)
constexpr void setPresamples(int ps)
constexpr HcalQIESample const & operator[](int i) const
access a sample
constexpr int presamples() const
number of samples before the sample from the triggered beam crossing (according to the hardware) ...
constexpr void setZSInfo(bool unsuppressed, bool markAndPass, uint32_t crossingMask=0)
constexpr bool zsMarkAndPass() const
was ZS MarkAndPass?
constexpr HcalQIESample const & sample(int i) const
access a sample
constexpr 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...
HcalElectronicsId electronicsId_
HcalQIESample data_[MAXSAMPLES]
constexpr void setSize(int size)
constexpr size_t nSamples
constexpr int size() const
total number of samples in the digi
constexpr bool zsUnsuppressed() const
was ZS unsuppressed?
constexpr const HcalElectronicsId & elecId() const
HcalDetId key_type
For the sorted collection.
constexpr int capid() const
get the Capacitor id
constexpr HBHEDataFrame(const HcalDetId &id)
Readout chain identification for Hcal.
constexpr void setFiberIdleOffset(int offset)