20 else if (size<=0)
size_=0;
36 if ( linSample < MAXSAMPLES && linSample>=0) {
37 adc_[linSample] = adc&0xFF ;
38 tdc_[linSample] = tdc&0x1F ;
44 s << digi.
id() <<
" " << digi.
size() <<
" samples " << digi.
presamples() <<
" presamples ";
45 for (
int i=0;
i<digi.
size();
i++) {
47 if ( relSample < 0 ) s <<
" (PRE) " ;
49 s << int(digi.
adc(relSample)) <<
" (adc) " ;
50 s << int(digi.
tdc(relSample)) <<
" (tdc) " ;
51 if ( digi.
valid(relSample) ) 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
uint8_t tdc(int iSample=0) const
void setPresamples(int presamples)
bool valid(int iSample=0) const
void setSample(int relSample, const uint16_t adc, const uint8_t tdc, const bool dv)
uint16_t adc_[MAXSAMPLES]
const HcalDetId & id() const
uint16_t adc(int iSample=0) const
tuple size
Write out results.