#include <Functions.h>
Public Member Functions | |
virtual int | parNum () const |
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) More... | |
virtual double | scale (const double &pt, const double &eta, const double &phi, const int chg, const T &parScale) const =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 &parResol, const std::vector< int > &parResolOrder, const std::vector< double > &parStep, const std::vector< double > &parMin, const std::vector< double > &parMax, const int muonType) |
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. More... | |
virtual | ~scaleFunctionBase ()=0 |
virtual | ~scaleFunctionBase ()=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, const std::vector< ParameterSet > &parSet) |
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< ParSet > &parSet) |
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. More... | |
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 40 of file Functions.h.
|
inlinepure virtual |
Definition at line 132 of file Functions.h.
|
pure virtual |
|
inlinevirtual |
Definition at line 44 of file MuScleFitCorrector_Functions.h.
|
inlinevirtual |
Definition at line 76 of file Functions.h.
Referenced by heppy::MuScleFitCorrector::convertToArrays(), MuScleFitUtils::minimizeLikelihood(), and heppy::MuScleFitCorrector::readParameters().
|
inlinevirtual |
This method is used to reset the scale parameters to neutral values (useful for iterations > 0)
Reimplemented in scaleFunctionType64< T >, scaleFunctionType50< T >, and scaleFunctionType0< T >.
Definition at line 46 of file Functions.h.
Referenced by MuScleFitUtils::minimizeLikelihood().
|
pure virtual |
Implemented in scaleFunctionType64< T >, scaleFunctionType50< T >, scaleFunctionType0< T >, and scaleFunction50< T >.
|
pure virtual |
Implemented in scaleFunctionType64< T >, scaleFunctionType50< T >, scaleFunctionType0< T >, and scaleFunction50< T >.
Referenced by MuScleFitUtils::applyBias(), MuScleFitUtils::applyScale(), MomentumScaleCorrector::correct(), heppy::MuScleFitCorrector::getCorrectPt(), and MomentumScaleCorrector::operator()().
|
inlineprotectedvirtual |
Definition at line 102 of file Functions.h.
|
inlineprotectedvirtual |
Definition at line 48 of file MuScleFitCorrector_Functions.h.
|
inlineprotectedvirtual |
This method sets the parameters.
Definition at line 81 of file Functions.h.
Referenced by scaleFunctionType50< T >::setParameters(), and scaleFunctionType64< T >::setParameters().
|
inlinevirtual |
Reimplemented in scaleFunctionType64< T >, and scaleFunctionType50< T >.
Definition at line 61 of file Functions.h.
|
pure virtual |
This method is used to differentiate parameters among the different functions.
Implemented in scaleFunctionType64< T >, scaleFunctionType50< T >, and scaleFunctionType0< T >.
Referenced by MuScleFitUtils::minimizeLikelihood().
|
protected |
Definition at line 79 of file Functions.h.
Referenced by scaleFunctionBase< std::vector< double > >::parNum(), scaleFunctionType50< T >::resetParameters(), scaleFunctionType64< T >::resetParameters(), scaleFunction50< T >::scaleFunction50(), scaleFunctionType0< T >::scaleFunctionType0(), scaleFunctionType50< T >::scaleFunctionType50(), scaleFunctionType64< T >::scaleFunctionType64(), scaleFunctionBase< std::vector< double > >::setPar(), scaleFunctionType50< T >::setParameters(), and scaleFunctionType64< T >::setParameters().