#include <Functions.h>
Public Member Functions | |
virtual int | parNum () const |
virtual void | resetParameters (std::vector< double > *scaleVec) const |
This method is used to reset the scale parameters to neutral values (useful for iterations > 0) | |
virtual double | scale (const double &pt, const double &eta, const double &phi, const int chg, const T &parScale) const =0 |
virtual void | setParameters (double *Start, double *Step, double *Mini, double *Maxi, int *ind, TString *parname, const T &parScale, const std::vector< int > &parScaleOrder, const int muonType)=0 |
This method is used to differentiate parameters among the different functions. | |
virtual | ~scaleFunctionBase ()=0 |
Protected Member Functions | |
virtual void | setPar (double *Start, double *Step, double *Mini, double *Maxi, int *ind, TString *parname, const T &parScale, const std::vector< int > &parScaleOrder, double *thisStep, double *thisMini, double *thisMaxi, TString *thisParName) |
This method sets the parameters. | |
Protected Attributes | |
int | parNum_ |
The correct functor is selected at job start in the constructor. The pt value is taken by reference and modified internally. eta, phi and chg are taken by const reference.
Made into a template so that it can be used with arrays too (parval for the scale fit is an array, because Lykelihood is an extern C function, because TMinuit asks it).
Note that in the array case it takes the pointer by const reference, thus the elements of the array are modifiable.
Definition at line 44 of file Functions.h.
scaleFunctionBase< T >::~scaleFunctionBase | ( | ) | [inline, pure virtual] |
Definition at line 73 of file Functions.h.
{ } // defined even though it's pure virtual; should be faster this way.
virtual int scaleFunctionBase< T >::parNum | ( | ) | const [inline, virtual] |
Definition at line 56 of file Functions.h.
Referenced by MuScleFitUtils::minimizeLikelihood().
{ return parNum_; }
virtual void scaleFunctionBase< T >::resetParameters | ( | std::vector< double > * | scaleVec | ) | const [inline, virtual] |
This method is used to reset the scale parameters to neutral values (useful for iterations > 0)
Reimplemented in scaleFunctionType0< T >, scaleFunctionType1< T >, scaleFunctionType2< T >, scaleFunctionType3< T >, scaleFunctionType4< T >, scaleFunctionType5< T >, scaleFunctionType6< T >, scaleFunctionType7< T >, scaleFunctionType8< T >, scaleFunctionType9< T >, scaleFunctionType10< T >, scaleFunctionType11< T >, scaleFunctionType12< T >, scaleFunctionType13< T >, scaleFunctionType14< T >, scaleFunctionType15< T >, scaleFunctionType16< T >, scaleFunctionType17< T >, scaleFunctionType18< T >, scaleFunctionType19< T >, scaleFunctionType20< T >, scaleFunctionType21< T >, scaleFunctionType22< T >, scaleFunctionType23< T >, scaleFunctionType24< T >, scaleFunctionType25< T >, scaleFunctionType26< T >, and scaleFunctionType27< T >.
Definition at line 49 of file Functions.h.
Referenced by MuScleFitUtils::minimizeLikelihood().
virtual double scaleFunctionBase< T >::scale | ( | const double & | pt, |
const double & | eta, | ||
const double & | phi, | ||
const int | chg, | ||
const T & | parScale | ||
) | const [pure virtual] |
Implemented in scaleFunctionType0< T >, scaleFunctionType1< T >, scaleFunctionType2< T >, scaleFunctionType3< T >, scaleFunctionType4< T >, scaleFunctionType5< T >, scaleFunctionType6< T >, scaleFunctionType7< T >, scaleFunctionType8< T >, scaleFunctionType9< T >, scaleFunctionType10< T >, scaleFunctionType11< T >, scaleFunctionType12< T >, scaleFunctionType13< T >, scaleFunctionType14< T >, scaleFunctionType15< T >, scaleFunctionType16< T >, scaleFunctionType17< T >, scaleFunctionType18< T >, scaleFunctionType19< T >, scaleFunctionType20< T >, scaleFunctionType21< T >, scaleFunctionType22< T >, scaleFunctionType23< T >, scaleFunctionType24< T >, scaleFunctionType25< T >, scaleFunctionType26< T >, and scaleFunctionType27< T >.
Referenced by MuScleFitUtils::applyBias(), MuScleFitUtils::applyScale(), MomentumScaleCorrector::correct(), and MomentumScaleCorrector::operator()().
virtual void scaleFunctionBase< T >::setPar | ( | double * | Start, |
double * | Step, | ||
double * | Mini, | ||
double * | Maxi, | ||
int * | ind, | ||
TString * | parname, | ||
const T & | parScale, | ||
const std::vector< int > & | parScaleOrder, | ||
double * | thisStep, | ||
double * | thisMini, | ||
double * | thisMaxi, | ||
TString * | thisParName | ||
) | [inline, protected, virtual] |
This method sets the parameters.
Definition at line 60 of file Functions.h.
Referenced by scaleFunctionType23< T >::setParameters(), scaleFunctionType3< T >::setParameters(), scaleFunctionType13< T >::setParameters(), scaleFunctionType9< T >::setParameters(), scaleFunctionType19< T >::setParameters(), scaleFunctionType8< T >::setParameters(), scaleFunctionType18< T >::setParameters(), scaleFunctionType25< T >::setParameters(), scaleFunctionType5< T >::setParameters(), scaleFunctionType15< T >::setParameters(), scaleFunctionType26< T >::setParameters(), scaleFunctionType6< T >::setParameters(), scaleFunctionType16< T >::setParameters(), scaleFunctionType24< T >::setParameters(), scaleFunctionType4< T >::setParameters(), scaleFunctionType14< T >::setParameters(), scaleFunctionType21< T >::setParameters(), scaleFunctionType1< T >::setParameters(), scaleFunctionType11< T >::setParameters(), scaleFunctionType22< T >::setParameters(), scaleFunctionType2< T >::setParameters(), scaleFunctionType12< T >::setParameters(), scaleFunctionType27< T >::setParameters(), scaleFunctionType7< T >::setParameters(), scaleFunctionType17< T >::setParameters(), scaleFunctionType20< T >::setParameters(), and scaleFunctionType10< T >::setParameters().
virtual void scaleFunctionBase< T >::setParameters | ( | double * | Start, |
double * | Step, | ||
double * | Mini, | ||
double * | Maxi, | ||
int * | ind, | ||
TString * | parname, | ||
const T & | parScale, | ||
const std::vector< int > & | parScaleOrder, | ||
const int | muonType | ||
) | [pure virtual] |
This method is used to differentiate parameters among the different functions.
Implemented in scaleFunctionType0< T >, scaleFunctionType1< T >, scaleFunctionType2< T >, scaleFunctionType3< T >, scaleFunctionType4< T >, scaleFunctionType5< T >, scaleFunctionType6< T >, scaleFunctionType7< T >, scaleFunctionType8< T >, scaleFunctionType9< T >, scaleFunctionType10< T >, scaleFunctionType11< T >, scaleFunctionType12< T >, scaleFunctionType13< T >, scaleFunctionType14< T >, scaleFunctionType15< T >, scaleFunctionType16< T >, scaleFunctionType17< T >, scaleFunctionType18< T >, scaleFunctionType19< T >, scaleFunctionType20< T >, scaleFunctionType21< T >, scaleFunctionType22< T >, scaleFunctionType23< T >, scaleFunctionType24< T >, scaleFunctionType25< T >, scaleFunctionType26< T >, and scaleFunctionType27< T >.
Referenced by MuScleFitUtils::minimizeLikelihood().
int scaleFunctionBase< T >::parNum_ [protected] |
Definition at line 58 of file Functions.h.
Referenced by scaleFunctionBase< std::vector< double > >::parNum(), scaleFunctionType10< T >::resetParameters(), scaleFunctionType9< T >::resetParameters(), scaleFunctionType20< T >::resetParameters(), scaleFunctionType13< T >::resetParameters(), scaleFunctionType23< T >::resetParameters(), scaleFunctionType19< T >::resetParameters(), scaleFunctionType5< T >::resetParameters(), scaleFunctionType8< T >::resetParameters(), scaleFunctionType15< T >::resetParameters(), scaleFunctionType6< T >::resetParameters(), scaleFunctionType25< T >::resetParameters(), scaleFunctionType18< T >::resetParameters(), scaleFunctionType1< T >::resetParameters(), scaleFunctionType16< T >::resetParameters(), scaleFunctionType4< T >::resetParameters(), scaleFunctionType26< T >::resetParameters(), scaleFunctionType7< T >::resetParameters(), scaleFunctionType11< T >::resetParameters(), scaleFunctionType2< T >::resetParameters(), scaleFunctionType21< T >::resetParameters(), scaleFunctionType14< T >::resetParameters(), scaleFunctionType24< T >::resetParameters(), scaleFunctionType17< T >::resetParameters(), scaleFunctionType27< T >::resetParameters(), scaleFunctionType12< T >::resetParameters(), scaleFunctionType3< T >::resetParameters(), scaleFunctionType22< T >::resetParameters(), scaleFunctionType0< T >::scaleFunctionType0(), scaleFunctionType1< T >::scaleFunctionType1(), scaleFunctionType10< T >::scaleFunctionType10(), scaleFunctionType11< T >::scaleFunctionType11(), scaleFunctionType12< T >::scaleFunctionType12(), scaleFunctionType13< T >::scaleFunctionType13(), scaleFunctionType14< T >::scaleFunctionType14(), scaleFunctionType15< T >::scaleFunctionType15(), scaleFunctionType16< T >::scaleFunctionType16(), scaleFunctionType17< T >::scaleFunctionType17(), scaleFunctionType18< T >::scaleFunctionType18(), scaleFunctionType19< T >::scaleFunctionType19(), scaleFunctionType2< T >::scaleFunctionType2(), scaleFunctionType20< T >::scaleFunctionType20(), scaleFunctionType21< T >::scaleFunctionType21(), scaleFunctionType22< T >::scaleFunctionType22(), scaleFunctionType23< T >::scaleFunctionType23(), scaleFunctionType24< T >::scaleFunctionType24(), scaleFunctionType25< T >::scaleFunctionType25(), scaleFunctionType26< T >::scaleFunctionType26(), scaleFunctionType27< T >::scaleFunctionType27(), scaleFunctionType3< T >::scaleFunctionType3(), scaleFunctionType4< T >::scaleFunctionType4(), scaleFunctionType5< T >::scaleFunctionType5(), scaleFunctionType6< T >::scaleFunctionType6(), scaleFunctionType7< T >::scaleFunctionType7(), scaleFunctionType8< T >::scaleFunctionType8(), scaleFunctionType9< T >::scaleFunctionType9(), and scaleFunctionBase< std::vector< double > >::setPar().