|
KLFitter
v1.3.2
Documentation of the KLFitter library -- The Kinematic Likelihood Fitter
|
A class describing a resolution parameterized with a double Gaussian. More...
#include <ResDoubleGaussBase.h>
Public Member Functions | |
Constructors and destructors | |
| ResDoubleGaussBase (const char *filename) | |
| The default constructor. | |
| ResDoubleGaussBase (std::vector< double > const ¶meters) | |
| A constructor. More... | |
| virtual | ~ResDoubleGaussBase () |
| The (defaulted) destructor. | |
Member functions (Get) | |
| virtual double | GetMean1 (double x)=0 |
| Calculate the mean of the first Gaussian from the TF parameters and the value of x. More... | |
| virtual double | GetSigma1 (double x)=0 |
| Calculate the width of the first Gaussian from the TF parameters and the value of x. More... | |
| virtual double | GetAmplitude2 (double x)=0 |
| Calculate the amplitude of the second Gaussian from the TF parameters and the value of x. More... | |
| virtual double | GetMean2 (double x)=0 |
| Calculate the mean of the second Gaussian from the TF parameters and the value of x. More... | |
| virtual double | GetSigma2 (double x)=0 |
| Calculate the width of the sedcond Gaussian from the TF parameters and the value of x. More... | |
| double | GetSigma (double par) override |
| Return the approximate width of the TF depending on the measured value of x. More... | |
| double | logp (double x, double xmeas, bool *good, double=0) override |
| Return the probability of the true value of x given the measured value, xmeas. More... | |
Public Member Functions inherited from KLFitter::ResolutionBase | |
| 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... | |
Static Public Member Functions | |
| static bool | CheckDoubleGaussianSanity (double *sigma1, double *amplitude2, double *sigma2) |
| Sanity check for double gaussian parameters p2, p3 and p5 (1st sigma, scale and 2nd sigma). More... | |
Additional Inherited Members | |
Protected Attributes inherited from KLFitter::ResolutionBase | |
| 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 resolution parameterized with a double Gaussian.
This class offers a simple parameterization of a resolution. The parameterization is a double Gaussian with energy dependent parameters.
|
explicit |
A constructor.
| parameters | The parameters of the parameterization. |
|
inlinestatic |
Sanity check for double gaussian parameters p2, p3 and p5 (1st sigma, scale and 2nd sigma).
| sigma1 | (the 1st sigma). |
| amplitude2 | (the scale parameter). |
| sigma2 | (the 2nd sigma). |
|
pure virtual |
Calculate the amplitude of the second Gaussian from the TF parameters and the value of x.
| x | The value of x. |
Implemented in KLFitter::ResDoubleGaussE_1, KLFitter::ResDoubleGaussE_2, KLFitter::ResDoubleGaussE_3, KLFitter::ResDoubleGaussE_4, KLFitter::ResDoubleGaussE_5, and KLFitter::ResDoubleGaussPt.
|
pure virtual |
Calculate the mean of the first Gaussian from the TF parameters and the value of x.
| x | The value of x. |
Implemented in KLFitter::ResDoubleGaussE_1, KLFitter::ResDoubleGaussE_2, KLFitter::ResDoubleGaussE_3, KLFitter::ResDoubleGaussE_4, KLFitter::ResDoubleGaussE_5, and KLFitter::ResDoubleGaussPt.
|
pure virtual |
Calculate the mean of the second Gaussian from the TF parameters and the value of x.
| x | The value of x. |
Implemented in KLFitter::ResDoubleGaussE_1, KLFitter::ResDoubleGaussE_2, KLFitter::ResDoubleGaussE_3, KLFitter::ResDoubleGaussE_4, KLFitter::ResDoubleGaussE_5, and KLFitter::ResDoubleGaussPt.
|
overridevirtual |
Return the approximate 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 | The measured value of x. |
Implements KLFitter::ResolutionBase.
|
pure virtual |
Calculate the width of the first Gaussian from the TF parameters and the value of x.
| x | The value of x. |
Implemented in KLFitter::ResDoubleGaussE_1, KLFitter::ResDoubleGaussE_2, KLFitter::ResDoubleGaussE_3, KLFitter::ResDoubleGaussE_4, KLFitter::ResDoubleGaussE_5, and KLFitter::ResDoubleGaussPt.
|
pure virtual |
Calculate the width of the sedcond Gaussian from the TF parameters and the value of x.
| x | The value of x. |
Implemented in KLFitter::ResDoubleGaussE_1, KLFitter::ResDoubleGaussE_2, KLFitter::ResDoubleGaussE_3, KLFitter::ResDoubleGaussE_4, KLFitter::ResDoubleGaussE_5, and KLFitter::ResDoubleGaussPt.
|
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.
1.8.11