30 else if (size<=0)
size_=0;
52 if ( iSample < MAXSAMPLES && iSample>=0) {
53 adc_[iSample] = adc&0xFF ;
54 tdc_[iSample] = tdc&0xFFFF ;
60 uint32_t crossingMask) {
70 s << digi.
id() <<
" " << digi.
size() <<
" samples " << digi.
presamples() <<
" presamples ";
74 for (
int i=0;
i<digi.
size();
i++) {
77 s << int(digi.
capId(
i)) <<
" (capId) ";
78 s << int(digi.
adc(
i)) <<
" (adc) " ;
79 s << int(digi.
tdc(
i)) <<
" (tdc) " ;
80 if ( digi.
valid(
i) ) s <<
" (DV) " ;
int adc(sample_type sample)
get the ADC sample (12 bits)
bool zsMarkAndPass() const
bool zsUnsuppressed() const
std::ostream & operator<<(std::ostream &out, const ALILine &li)
static const int MAXSAMPLES
void setPresamples(int presamples)
int capId(int iSample=0) const
bool valid(int iSample=0) const
uint16_t tdc(int iSample=0) const
void setZSInfo(bool unsuppressed, bool markAndPass, uint32_t crossingMask=0)
uint16_t tdc_[MAXSAMPLES]
void setSample(int iSample, uint16_t adc, uint16_t tdc, bool dv)
uint16_t adc_[MAXSAMPLES]
void setReadoutIds(const HcalElectronicsId &eid)
const HcalDetId & id() const
HcalUpgradeQIESample operator[](int iSample) const
HcalElectronicsId electronicsId_
uint16_t adc(int iSample=0) const
Readout chain identification for Hcal [31:26] Unused (so far) [25] Trigger-chain id flag [24:20] Read...
tuple size
Write out results.