KLFitter  v1.3.2
Documentation of the KLFitter library -- The Kinematic Likelihood Fitter
List of all members
KLFitter::ResGauss_MET Class Reference

A class describing a Gaussian resolution, parametrized for MET. More...

#include <ResGauss_MET.h>

Inheritance diagram for KLFitter::ResGauss_MET:
KLFitter::ResolutionBase

Public Member Functions

Constructors and destructors
 ResGauss_MET (const char *filename)
 The default constructor.
 
 ResGauss_MET (std::vector< double > const &parameters)
 A constructor. More...
 
 ~ResGauss_MET ()
 The (defaulted) destructor.
 
Member functions (Get)
double GetSigma (double sumet) override
 Return the width of the TF depending on the value of sumET. More...
 
double logp (double x, double xmeas, bool *good, double sumet) 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...
 
- 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...
 

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).
 

Detailed Description

A class describing a Gaussian resolution, parametrized for MET.

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.

Constructor & Destructor Documentation

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

A constructor.

Parameters
parametersThe parameters of the parameterization.

Member Function Documentation

double KLFitter::ResGauss_MET::GetSigma ( double  sumet)
overridevirtual

Return the width of the TF depending on the value of sumET.

Used to adjust the range of the fit parameter that correspond to the TF.

Parameters
sumetSumET as parameter for the MET TF.
Returns
The width.

Implements KLFitter::ResolutionBase.

double KLFitter::ResGauss_MET::logp ( double  x,
double  xmeas,
bool *  good,
double  sumet 
)
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.
sumetSumET, as the width of the TF depends on this.
Returns
Logarithm of the probability.

Reimplemented from KLFitter::ResolutionBase.

void KLFitter::ResGauss_MET::SetSigma ( double  sigma)
inline

Set the width of the Gaussian.

Parameters
sigmaThe width of the Gaussian.

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