CMS 3D CMS Logo

DTTimeBoxFitter.h File Reference

#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)


Function Documentation

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 }


Generated on Tue Jun 9 17:51:05 2009 for CMSSW by  doxygen 1.5.4