KLFitter  v1.3.2
Documentation of the KLFitter library -- The Kinematic Likelihood Fitter
Static Public Member Functions | List of all members
KLFitter::ResSingleGaussLinearBase Class Referenceabstract
Inheritance diagram for KLFitter::ResSingleGaussLinearBase:
KLFitter::ResolutionBase KLFitter::ResSingleGaussMET

Public Member Functions

Constructors and destructors
 ResSingleGaussLinearBase (const char *filename)
 The default constructor.
 
 ResSingleGaussLinearBase (std::vector< double > const &parameters)
 A constructor. More...
 
virtual ~ResSingleGaussLinearBase ()
 The (defaulted) destructor.
 
Member functions (Get)
virtual double GetMean (double x)=0
 Calculate the mean of the Gaussian from the TF parameters and the value of x. More...
 
virtual double GetSigma (double x) override=0
 Calculate the width of the Gaussian from the TF parameters and the 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 CheckSingleGaussianSanity (double *sigma)
 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).
 

Constructor & Destructor Documentation

KLFitter::ResSingleGaussLinearBase::ResSingleGaussLinearBase ( std::vector< double > const &  parameters)
explicit

A constructor.

Parameters
parametersThe parameters of the parameterization.

Member Function Documentation

static bool KLFitter::ResSingleGaussLinearBase::CheckSingleGaussianSanity ( double *  sigma)
inlinestatic

Sanity check for double gaussian parameters p2, p3 and p5 (1st sigma, scale and 2nd sigma).

Parameters
sigma1(the 1st sigma).
amplitude2(the scale parameter).
sigma2(the 2nd sigma).
Returns
False if problem with TF.
virtual double KLFitter::ResSingleGaussLinearBase::GetMean ( double  x)
pure virtual

Calculate the mean of the Gaussian from the TF parameters and the value of x.

Parameters
xThe value of x.
Returns
The mean.

Implemented in KLFitter::ResSingleGaussMET.

virtual double KLFitter::ResSingleGaussLinearBase::GetSigma ( double  x)
overridepure virtual

Calculate the width of the Gaussian from the TF parameters and the value of x.

Parameters
xThe value of x.
Returns
The width.

Implements KLFitter::ResolutionBase.

Implemented in KLFitter::ResSingleGaussMET.

double KLFitter::ResSingleGaussLinearBase::logp ( double  x,
double  xmeas,
bool *  good,
double  = 0 
)
overridevirtual

Return the probability of the true value of x given the measured value, xmeas.

Parameters
xThe true value of x.
xmeasThe measured value of x.
goodFalse if problem with TF.
parOptional additional parameter (not used here).
Returns
Logarithm of the probability.

Reimplemented from KLFitter::ResolutionBase.


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