27 init( nsamples, presample);
38 assert(nsamples==_nsamples);
40 adc_ =
new double[50];
44 for(
int i=0;
i<_nsamples;
i++){
67 if(isMaxFound_)
return adcMax_;
71 for(
int i=0;
i<_nsamples;
i++){
83 if(!isMaxFound_) getMax();
89 if(isPedCalc_)
return pedestal_;
91 for(
int i=0;
i<_presample;
i++){
94 ped/=double(_presample);
103 if(!isPedCalc_) ped=getPedestal();
106 double *adcNoPed=
new double[50];
107 for (
int i=0;
i<_nsamples;
i++){
108 adcNoPed[
i]=adc_[
i]-ped;
115 _presample=presample;
int adc(sample_type sample)
get the ADC sample (12 bits)
double * getAdcWithoutPedestal()