27 assert(nsamples == _nsamples);
29 adc_ =
new double[50];
31 _presample = presample;
33 for (
int i = 0;
i < _nsamples;
i++) {
59 for (
int i = 0;
i < _nsamples;
i++) {
60 if (adc_[
i] > adcmax) {
80 for (
int i = 0;
i < _presample;
i++) {
83 ped /= double(_presample);
96 double *adcNoPed =
new double[50];
97 for (
int i = 0;
i < _nsamples;
i++) {
98 adcNoPed[
i] = adc_[
i] -
ped;
105 _presample = presample;
double * getAdcWithoutPedestal()
uint16_t *__restrict__ uint16_t const *__restrict__ adc