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
Static Public Member Functions | Static Private Member Functions | List of all members
FunctionMath Class Reference

#include <FunctionMath.h>

Static Public Member Functions

static double ChebyshevFunction (double x, double *p, int order)
 Defines a Chebyshev polynomial function.
 
static double LegendreFunction (double x, double *p, int order)
 Define a Legendre polynomial function.
 
static double Gaussian (double x, double amplitude, double mean, double stddev)
 Defines a Gaussian function for signal-fitting.
 
static double CrystalBall (double x, double amplitude, double mean, double stddev, double alpha, double n)
 Defines a crystal ball function for signal-fitting.
 

Static Private Member Functions

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.
 

Detailed Description

Definition at line 4 of file FunctionMath.h.

Member Function Documentation

◆ calcA()

double calcA ( double  n,
double  absAlpha 
)
staticprivate

Calculates a portion of the crystal ball function.

Parameters
n
absAlpha
Returns
double

Definition at line 51 of file FunctionMath.cxx.

◆ calcB()

double calcB ( double  n,
double  absAlpha 
)
staticprivate

Calculates a portion of the crystal ball function.

Parameters
n
absAlpha
Returns
double

Definition at line 55 of file FunctionMath.cxx.

◆ ChebyshevFunction()

double ChebyshevFunction ( double  x,
double *  p,
int  order 
)
static

Defines a Chebyshev polynomial function.

Parameters
x
p
order
Returns
double

Definition at line 4 of file FunctionMath.cxx.

◆ CrystalBall()

double CrystalBall ( double  x,
double  amplitude,
double  mean,
double  stddev,
double  alpha,
double  n 
)
static

Defines a crystal ball function for signal-fitting.

Parameters
x
amplitude
mean
stddev
alpha
n
Returns
double

Definition at line 34 of file FunctionMath.cxx.

◆ Gaussian()

double Gaussian ( double  x,
double  amplitude,
double  mean,
double  stddev 
)
static

Defines a Gaussian function for signal-fitting.

Parameters
x
amplitude
mean
stddev
Returns
double

Definition at line 30 of file FunctionMath.cxx.

◆ LegendreFunction()

double LegendreFunction ( double  x,
double *  p,
int  order 
)
static

Define a Legendre polynomial function.

Parameters
x
p
order
Returns
double

Definition at line 17 of file FunctionMath.cxx.


The documentation for this class was generated from the following files: