#include <Functions.h>
Public Member Functions | |
virtual double | covPt1Pt2 (const double &pt1, const double &eta1, const double &pt2, const double &eta2, const T &parval) |
virtual int | parNum () const |
resolutionFunctionBase () | |
virtual void | setParameters (double *Start, double *Step, double *Mini, double *Maxi, int *ind, TString *parname, const T &parResol, const std::vector< int > &parResolOrder, const int muonType)=0 |
This method is used to differentiate parameters among the different functions. | |
virtual double | sigmaCotgTh (const double &pt, const double &eta, const T &parval)=0 |
virtual double | sigmaPhi (const double &pt, const double &eta, const T &parval)=0 |
virtual double | sigmaPt (const double &pt, const double &eta, const T &parval)=0 |
virtual double | sigmaPtError (const double &pt, const double &eta, const T &parval, const T &parError) |
virtual | ~resolutionFunctionBase ()=0 |
Protected Member Functions | |
virtual void | setPar (double *Start, double *Step, double *Mini, double *Maxi, int *ind, TString *parname, const T &parResol, const std::vector< int > &parResolOrder, double *thisStep, double *thisMini, double *thisMaxi, TString *thisParName) |
This method sets the parameters. | |
virtual void | setPar (double *Start, double *Step, double *Mini, double *Maxi, int *ind, TString *parname, const T &parResol, const std::vector< int > &parResolOrder, const std::vector< ParameterSet > &parSet) |
Protected Attributes | |
int | parNum_ |
Resolution functions.
Need to use templates to make it work with both array and std::vector<double>.
Definition at line 1522 of file Functions.h.
resolutionFunctionBase< T >::resolutionFunctionBase | ( | ) | [inline] |
Definition at line 1535 of file Functions.h.
{}
resolutionFunctionBase< T >::~resolutionFunctionBase | ( | ) | [inline, pure virtual] |
Definition at line 1571 of file Functions.h.
{ } // defined even though it's pure virtual; should be faster this way.
virtual double resolutionFunctionBase< T >::covPt1Pt2 | ( | const double & | pt1, |
const double & | eta1, | ||
const double & | pt2, | ||
const double & | eta2, | ||
const T & | parval | ||
) | [inline, virtual] |
Reimplemented in resolutionFunctionType30< T >.
Definition at line 1531 of file Functions.h.
Referenced by MuScleFitUtils::massResolution().
{
return 0.;
}
virtual int resolutionFunctionBase< T >::parNum | ( | ) | const [inline, virtual] |
Definition at line 1539 of file Functions.h.
Referenced by MuScleFitUtils::minimizeLikelihood().
{ return parNum_; }
virtual void resolutionFunctionBase< T >::setPar | ( | double * | Start, |
double * | Step, | ||
double * | Mini, | ||
double * | Maxi, | ||
int * | ind, | ||
TString * | parname, | ||
const T & | parResol, | ||
const std::vector< int > & | parResolOrder, | ||
double * | thisStep, | ||
double * | thisMini, | ||
double * | thisMaxi, | ||
TString * | thisParName | ||
) | [inline, protected, virtual] |
This method sets the parameters.
Definition at line 1543 of file Functions.h.
Referenced by resolutionFunctionType9< T >::setParameters(), resolutionFunctionType17< T >::setParameters(), resolutionFunctionType7< T >::setParameters(), resolutionFunctionType18< T >::setParameters(), resolutionFunctionType19< T >::setParameters(), resolutionFunctionType12< T >::setParameters(), resolutionFunctionType13< T >::setParameters(), resolutionFunctionType14< T >::setParameters(), resolutionFunctionType1< T >::setParameters(), resolutionFunctionType15< T >::setParameters(), resolutionFunctionType20< T >::setParameters(), resolutionFunctionType10< T >::setParameters(), resolutionFunctionType8< T >::setParameters(), resolutionFunctionType11< T >::setParameters(), resolutionFunctionType30< T >::setParameters(), and resolutionFunctionType6< T >::setParameters().
virtual void resolutionFunctionBase< T >::setPar | ( | double * | Start, |
double * | Step, | ||
double * | Mini, | ||
double * | Maxi, | ||
int * | ind, | ||
TString * | parname, | ||
const T & | parResol, | ||
const std::vector< int > & | parResolOrder, | ||
const std::vector< ParameterSet > & | parSet | ||
) | [inline, protected, virtual] |
Definition at line 1555 of file Functions.h.
{ if( int(parSet.size()) != this->parNum_ ) { std::cout << "Error: wrong number of parameter initializations = " << parSet.size() << ". Number of parameters is " << this->parNum_ << std::endl; exit(1); } for( int iPar=0; iPar<this->parNum_; ++iPar ) { Start[iPar] = parResol[iPar]; Step[iPar] = parSet[iPar].step; Mini[iPar] = parSet[iPar].mini; Maxi[iPar] = parSet[iPar].maxi; ind[iPar] = parResolOrder[iPar]; parname[iPar] = parSet[iPar].name; } }
virtual void resolutionFunctionBase< T >::setParameters | ( | double * | Start, |
double * | Step, | ||
double * | Mini, | ||
double * | Maxi, | ||
int * | ind, | ||
TString * | parname, | ||
const T & | parResol, | ||
const std::vector< int > & | parResolOrder, | ||
const int | muonType | ||
) | [pure virtual] |
This method is used to differentiate parameters among the different functions.
Implemented in resolutionFunctionType1< T >, resolutionFunctionType6< T >, resolutionFunctionType7< T >, resolutionFunctionType8< T >, resolutionFunctionType9< T >, resolutionFunctionType10< T >, resolutionFunctionType11< T >, resolutionFunctionType12< T >, resolutionFunctionType13< T >, resolutionFunctionType14< T >, resolutionFunctionType15< T >, resolutionFunctionType17< T >, resolutionFunctionType18< T >, resolutionFunctionType19< T >, resolutionFunctionType20< T >, and resolutionFunctionType30< T >.
Referenced by MuScleFitUtils::minimizeLikelihood().
virtual double resolutionFunctionBase< T >::sigmaCotgTh | ( | const double & | pt, |
const double & | eta, | ||
const T & | parval | ||
) | [pure virtual] |
Implemented in resolutionFunctionType1< T >, resolutionFunctionType6< T >, resolutionFunctionType7< T >, resolutionFunctionType8< T >, resolutionFunctionType9< T >, resolutionFunctionType10< T >, resolutionFunctionType11< T >, resolutionFunctionType12< T >, resolutionFunctionType13< T >, resolutionFunctionType14< T >, resolutionFunctionType15< T >, resolutionFunctionType17< T >, resolutionFunctionType18< T >, resolutionFunctionType19< T >, resolutionFunctionType20< T >, and resolutionFunctionType30< T >.
Referenced by MuScleFitUtils::massResolution(), and ResolutionFunction::sigmaCotgTh().
virtual double resolutionFunctionBase< T >::sigmaPhi | ( | const double & | pt, |
const double & | eta, | ||
const T & | parval | ||
) | [pure virtual] |
Implemented in resolutionFunctionType1< T >, resolutionFunctionType6< T >, resolutionFunctionType7< T >, resolutionFunctionType8< T >, resolutionFunctionType9< T >, resolutionFunctionType10< T >, resolutionFunctionType11< T >, resolutionFunctionType12< T >, resolutionFunctionType13< T >, resolutionFunctionType14< T >, resolutionFunctionType15< T >, resolutionFunctionType17< T >, resolutionFunctionType18< T >, resolutionFunctionType19< T >, resolutionFunctionType20< T >, and resolutionFunctionType30< T >.
Referenced by MuScleFitUtils::massResolution(), and ResolutionFunction::sigmaPhi().
virtual double resolutionFunctionBase< T >::sigmaPt | ( | const double & | pt, |
const double & | eta, | ||
const T & | parval | ||
) | [pure virtual] |
Implemented in resolutionFunctionType1< T >, resolutionFunctionType6< T >, resolutionFunctionType7< T >, resolutionFunctionType8< T >, resolutionFunctionType9< T >, resolutionFunctionType10< T >, resolutionFunctionType11< T >, resolutionFunctionType12< T >, resolutionFunctionType13< T >, resolutionFunctionType14< T >, resolutionFunctionType15< T >, resolutionFunctionType17< T >, resolutionFunctionType18< T >, resolutionFunctionType19< T >, resolutionFunctionType20< T >, and resolutionFunctionType30< T >.
Referenced by ErrorsAnalyzer::fillHistograms(), ErrorsPropagationAnalyzer::fillHistograms(), MuScleFitUtils::massResolution(), and ResolutionFunction::sigmaPt().
virtual double resolutionFunctionBase< T >::sigmaPtError | ( | const double & | pt, |
const double & | eta, | ||
const T & | parval, | ||
const T & | parError | ||
) | [inline, virtual] |
Reimplemented in resolutionFunctionType30< T >.
Definition at line 1525 of file Functions.h.
Referenced by ErrorsPropagationAnalyzer::fillHistograms().
{
return 0.;
}
int resolutionFunctionBase< T >::parNum_ [protected] |
Definition at line 1541 of file Functions.h.
Referenced by resolutionFunctionBase< double * >::parNum(), resolutionFunctionType1< T >::resolutionFunctionType1(), resolutionFunctionType10< T >::resolutionFunctionType10(), resolutionFunctionType11< T >::resolutionFunctionType11(), resolutionFunctionType12< T >::resolutionFunctionType12(), resolutionFunctionType13< T >::resolutionFunctionType13(), resolutionFunctionType14< T >::resolutionFunctionType14(), resolutionFunctionType15< T >::resolutionFunctionType15(), resolutionFunctionType17< T >::resolutionFunctionType17(), resolutionFunctionType18< T >::resolutionFunctionType18(), resolutionFunctionType19< T >::resolutionFunctionType19(), resolutionFunctionType20< T >::resolutionFunctionType20(), resolutionFunctionType30< T >::resolutionFunctionType30(), resolutionFunctionType6< T >::resolutionFunctionType6(), resolutionFunctionType7< T >::resolutionFunctionType7(), resolutionFunctionType8< T >::resolutionFunctionType8(), resolutionFunctionType9< T >::resolutionFunctionType9(), resolutionFunctionBase< double * >::setPar(), and resolutionFunctionType30< T >::setParameters().