ATLAS Offline Software
Classes | Functions
TRTAlign Namespace Reference

Classes

class  HistoChisqProjection
 

Functions

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

Function Documentation

◆ binwidth()

double TRTAlign::binwidth ( )

◆ 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  } ;
PlotCalibFromCool.norm
norm
Definition: PlotCalibFromCool.py:100
pdg_comparison.sigma
sigma
Definition: pdg_comparison.py:324
mean
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="")
Definition: dependence.cxx:254
integral
double integral(TH1 *h)
Definition: computils.cxx:58
M_PI
#define M_PI
Definition: ActiveFraction.h:11
drawFromPickle.exp
exp
Definition: drawFromPickle.py:36
x
#define x
TRTAlign::binwidth
double binwidth(1)
createCoolChannelIdFile.par
par
Definition: createCoolChannelIdFile.py:29