27 else if (size<=0)
size_=0;
46 if ( iSample < MAXSAMPLES && iSample>=0) {
47 adc_[iSample] = adc&0xFF ;
48 tdc_[iSample] = tdc&0xFFFF ;
55 s << digi.
id() <<
" " << digi.
size() <<
" samples " << digi.
presamples() <<
" presamples \n";
56 for (
int i=0;
i<digi.
size();
i++) {
59 s << int(digi.
capId(
i)) <<
" (capId) ";
60 s << int(digi.
adc(
i)) <<
" (adc) " ;
61 s << int(digi.
tdc(
i)) <<
" (tdc) " ;
62 if ( digi.
valid(
i) ) s <<
" (DV) " ;
int adc(sample_type sample)
get the ADC sample (12 bits)
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
uint16_t tdc_[MAXSAMPLES]
void setSample(int iSample, uint16_t adc, uint16_t tdc, bool dv)
uint16_t adc_[MAXSAMPLES]
const HcalDetId & id() const
HcalUpgradeQIESample operator[](int iSample) const
uint16_t adc(int iSample=0) const
tuple size
Write out results.