KLFitter
v1.3.2
Documentation of the KLFitter library -- The Kinematic Likelihood Fitter
|
A class describing a Gaussian resolution. More...
#include <ResGauss.h>
Public Member Functions | |
Constructors and destructors | |
ResGauss (const char *filename) | |
The default constructor. | |
ResGauss (double sigma) | |
A constructor. More... | |
~ResGauss () | |
The (defaulted) destructor. | |
Member functions (Get) | |
double | GetSigma (double par=0) override |
Return the width of the TF depending on the measured value of x. More... | |
double | logp (double x, double xmeas, bool *good, double par=0) override |
Return the probability of the true value of x given the measured value, xmeas. More... | |
Member functions (Set) | |
void | SetSigma (double sigma) |
Set the width of the Gaussian. More... | |
![]() | |
ResolutionBase (int npar) | |
The default constructor. More... | |
ResolutionBase (std::vector< double > parameters) | |
A constructor. More... | |
virtual | ~ResolutionBase () |
The (defaulted) destructor. | |
int | Par (int index, double *par) |
Return a parameter of the parameterization. More... | |
int | SetPar (int index, double value) |
Set a parameter value. More... | |
int | SetPar (std::vector< double > parameters) |
Set all parameter values. More... | |
int | ReadParameters (const char *filename, std::size_t nparameters) |
Read parameter values from ASCII file. More... | |
int | Status () |
Return a status code. More... | |
Additional Inherited Members | |
![]() | |
int | fNParameters |
The number of parameters. | |
std::vector< double > | fParameters |
The parameter values. | |
int | fStatus |
The status of this class (1: ok, 0: error). | |
A class describing a Gaussian resolution.
This class offers a simple parameterization of a resolution. The parameterization is a Gaussian with a width of a constant times the square root of the true parameter.
|
explicit |
A constructor.
sigma | The width of the Gaussian. |
|
overridevirtual |
Return the width of the TF depending on the measured value of x.
Used to adjust the range of the fit parameter that correspond to the TF.
par | Dummy parameter. Only needed to satisfy the interface. |
Implements KLFitter::ResolutionBase.
|
overridevirtual |
Return the probability of the true value of x given the measured value, xmeas.
x | The true value of x. |
xmeas | The measured value of x. |
good | False if problem with TF. |
par | Optional additional parameter (not used here). |
Reimplemented from KLFitter::ResolutionBase.
|
inline |
Set the width of the Gaussian.
sigma | The width of the Gaussian. |