8 #ifndef LIBRARIES_TAC_WAVEFORMERFCFUNCTOR_H_
9 #define LIBRARIES_TAC_WAVEFORMERFCFUNCTOR_H_
28 double operator()(
const double* xArray,
const double* pArray) {
29 static const double zeroTolerance = 1.0e-25;
32 double peakPoint = pArray[1];
33 double riseTime = pArray[2];
35 double expAmpl = pArray[3];
36 double expLambda = pArray[4];
38 double sigma = riseTime / 2.0 ;
42 if (expLambda > zeroTolerance)
47 if (sigma > zeroTolerance) {
48 double variablePart = expAmpl * exp(-mu * (x - peakPoint))
50 (mu * sigma * sigma - (x - peakPoint))
54 value = pedestal + variablePart;
Double_t sigma[NCHANNELS]
static TH1I * pedestal[nChan]