ATLAS Offline Software
Loading...
Searching...
No Matches
TRTAlign Namespace Reference

Classes

class  HistoChisqProjection

Functions

double binwidth (1)
double gausfunc (double *x, double *par)

Function Documentation

◆ binwidth()

double TRTAlign::binwidth ( 1 )

◆ gausfunc()

double TRTAlign::gausfunc ( double * x,
double * par )

Definition at line 52 of file TRTAlignHistoChisqProjection.cxx.

53 {
54 double integral = par[0] ;
55 double mean = par[1] ;
56 double sigma = par[2] ;
57
58 double xi = (x[0] - mean)/sigma ;
59 static double sqrt2pi = sqrt(2*M_PI) ;
60 double norm = integral * binwidth / ( sigma*sqrt2pi ) ;
61
62 return norm * exp(-0.5*xi*xi) ;
63 } ;
#define M_PI
#define x
double integral(TH1 *h)
Definition computils.cxx:59
void mean(std::vector< double > &bins, std::vector< double > &values, const std::vector< std::string > &files, const std::string &histname, const std::string &tplotname, const std::string &label="")
double binwidth(1)