Go to the documentation of this file.
33 capid = (capid + 1) % 4;
49 return (
val == 0) ? (-1000) : (((
val & 0x8) == 0) ? (-(
val & 0x7)) : (
val & 0x7));
64 s << digi.
id() <<
" " << digi.
size() <<
" samples " << digi.
presamples() <<
" presamples " << std::endl;
67 s <<
" nofiberOffset";
71 for (
int i = 0;
i < digi.
size();
i++)
72 s <<
" " << digi.
sample(
i) << std::endl;
HcalQIESample data_[MAXSAMPLES]
const HcalCastorDetId & id() const
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 setZSInfo(bool unsuppressed, bool markAndPass, uint32_t crossingMask=0)
const HcalQIESample & sample(int i) const
access a sample
int size() const
total number of samples in the digi
int fiberIdleOffset() const
offset of bunch number for this channel relative to nominal set in the unpacker (range is +7->-7....
int presamples() const
number of samples before the sample from the triggered beam crossing (according to the hardware)
constexpr int capid() const
get the Capacitor id
std::ostream & operator<<(std::ostream &s, const CastorDataFrame &digi)
void setPresamples(int ps)
void setFiberIdleOffset(int offset)
static const int MAXSAMPLES