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.
Loading...
Searching...
No Matches
analysis
src
LegendreFitFunction.cxx
Go to the documentation of this file.
1
#include "
LegendreFitFunction.h
"
2
#include "
FunctionMath.h
"
3
4
double
LegendreFitFunction::calculateBackground
(
double
*x,
double
*par) {
5
double
xp =
FitFunction::getCorrectedX
(x[0]);
6
return
FunctionMath::LegendreFunction
(xp, par,
order
);
7
}
FunctionMath.h
LegendreFitFunction.h
FitFunction::getCorrectedX
double getCorrectedX(double x)
Gets a value of x corrected for window size and the mass hypothesis.
Definition
FitFunction.h:161
FitFunction::order
int order
Definition
FitFunction.h:111
FunctionMath::LegendreFunction
static double LegendreFunction(double x, double *p, int order)
Define a Legendre polynomial function.
Definition
FunctionMath.cxx:17
LegendreFitFunction::calculateBackground
double calculateBackground(double *x, double *par)
description
Definition
LegendreFitFunction.cxx:4
Generated by
1.9.8