20 else if (size<=0)
size_=0;
33 for (
int i=0; ok &&
i<nSamples &&
i+firstSample<
size_;
i++) {
34 if (
data_[
i+firstSample].er() || !
data_[
i+firstSample].dv()) ok=
false;
36 if (capid!=
data_[
i+firstSample].capid()) ok=
false;
52 return (val==0)?(-1000):(((val&0x8)==0)?(-(val&0x7)):(val&0x7));
64 s << digi.
id() <<
" " << digi.
size() <<
" samples " << digi.
presamples() <<
" presamples ";
72 for (
int i=0;
i<digi.
size();
i++)
73 s <<
" " << digi.
sample(
i) << std::endl;
HcalElectronicsId electronicsId_
int fiberIdleOffset() const
offset of bunch number for this channel relative to nominal set in the unpacker (range is +7->-7...
bool zsUnsuppressed() const
was ZS unsuppressed?
std::ostream & operator<<(std::ostream &out, const ALILine &li)
const HcalQIESample & sample(int i) const
access a sample
const HcalDetId & id() const
void setFiberIdleOffset(int offset)
static const int MAXSAMPLES
bool zsMarkAndPass() const
was ZS MarkAndPass?
int size() const
total number of samples in the digi
unsigned int offset(bool)
HcalQIESample data_[MAXSAMPLES]
int capid() const
get the Capacitor id
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)
void setReadoutIds(const HcalElectronicsId &eid)
Readout chain identification for Hcal [31:26] Unused (so far) [25] Trigger-chain id flag [24:20] Read...
tuple size
Write out results.
void setPresamples(int ps)
int presamples() const
number of samples before the sample from the triggered beam crossing (according to the hardware) ...