26 init( nsamples, presample);
37 assert(nsamples==_nsamples);
39 adc_ =
new double[50];
43 for(
int i=0;
i<_nsamples;
i++){
66 if(isMaxFound_)
return adcMax_;
70 for(
int i=0;
i<_nsamples;
i++){
82 if(!isMaxFound_) getMax();
88 if(isPedCalc_)
return pedestal_;
90 for(
int i=0;
i<_presample;
i++){
93 ped/=double(_presample);
102 if(!isPedCalc_) ped=getPedestal();
105 double *adcNoPed=
new double[50];
106 for (
int i=0;
i<_nsamples;
i++){
107 adcNoPed[
i]=adc_[
i]-ped;
114 _presample=presample;
double * getAdcWithoutPedestal()
constexpr int adc(sample_type sample)
get the ADC sample (12 bits)