hpstr
The Heavy Photon Search Toolkit for Reconstruction (hpstr) provides an interface to physics data from the HPS experiment saved in the LCIO format and converts it into an ROOT based format.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
FunctionMath.h
Go to the documentation of this file.
1#ifndef FUNCTIONMATH_H
2#define FUNCTIONMATH_H
3
5 public:
14 static double ChebyshevFunction(double x, double* p, int order);
15
24 static double LegendreFunction(double x, double* p, int order);
25
35 static double Gaussian(double x, double amplitude, double mean, double stddev);
36
48 static double CrystalBall(double x, double amplitude, double mean,
49 double stddev, double alpha, double n);
50
51 private:
59 static double calcA(double n, double absAlpha);
60
68 static double calcB(double n, double absAlpha);
69};
70
71#endif
static double calcA(double n, double absAlpha)
Calculates a portion of the crystal ball function.
static double calcB(double n, double absAlpha)
Calculates a portion of the crystal ball function.
static double ChebyshevFunction(double x, double *p, int order)
Defines a Chebyshev polynomial function.
static double CrystalBall(double x, double amplitude, double mean, double stddev, double alpha, double n)
Defines a crystal ball function for signal-fitting.
static double Gaussian(double x, double amplitude, double mean, double stddev)
Defines a Gaussian function for signal-fitting.
static double LegendreFunction(double x, double *p, int order)
Define a Legendre polynomial function.