#include <utility>
Go to the source code of this file.
Classes | |
class | DTTimeBoxFitter |
Fit the rising edge of the time box with the integral of a gaussian returning the mean value and the sigma. More... | |
Functions | |
double | intGauss (double *x, double *par) |
double intGauss | ( | double * | x, | |
double * | par | |||
) |
Definition at line 274 of file DTTimeBoxFitter.cc.
References funct::sqrt().
Referenced by DTTimeBoxFitter::fitTimeBox().
00274 { 00275 double media = par[1]; 00276 double sigma = par[2]; 00277 double var = (x[0]-media)/(sigma*sqrt(2.)); 00278 00279 return 0.5*par[0]*(1+TMath::Erf(var)); 00280 00281 }