#include <BaseFunction.h>
Public Member Functions | |
BaseFunction () | |
BaseFunction (const MuScleFitDBobject *dbObject) | |
Constructor when receiving database parameters. More... | |
std::vector< double > | fitQuality () const |
Return the vector of fit quality values. More... | |
std::vector< int > | identifiers () const |
Return the vector of function identifiers. More... | |
std::vector< double > | parameters () const |
Return the vector of parameters. More... | |
Protected Member Functions | |
template<class T > | |
void | convertToArrays (T **&function_, const std::vector< T * > &functionVec_) |
Convert vectors to arrays for faster random access. The first pointer is replaced, thus it is taken by reference. More... | |
Protected Attributes | |
std::vector< double > | fitQuality_ |
double ** | fitQualityArray_ |
std::vector< int > | functionId_ |
int | iterationNum_ |
double ** | parArray_ |
std::vector< double > | parVecVec_ |
This class is used as base from scale, resolution and background functions.
Definition at line 14 of file BaseFunction.h.
|
inline |
Definition at line 16 of file BaseFunction.h.
|
inline |
Constructor when receiving database parameters.
Definition at line 19 of file BaseFunction.h.
References functionId_, MuScleFitDBobject::identifiers, iterationNum_, MuScleFitDBobject::parameters, and parVecVec_.
|
protected |
Convert vectors to arrays for faster random access. The first pointer is replaced, thus it is taken by reference.
Definition at line 48 of file BaseFunction.h.
References gather_cfg::cout, beamvalidation::exit(), TrackCollections2monitor_cff::func, iterationNum_, parArray_, and parVecVec_.
Referenced by BackgroundFunction::BackgroundFunction(), MomentumScaleCorrector::MomentumScaleCorrector(), BackgroundFunction::readParameters(), MomentumScaleCorrector::readParameters(), ResolutionFunction::readParameters(), and ResolutionFunction::ResolutionFunction().
|
inline |
Return the vector of fit quality values.
Definition at line 31 of file BaseFunction.h.
References parVecVec_.
|
inline |
Return the vector of function identifiers.
Definition at line 27 of file BaseFunction.h.
References functionId_.
|
inline |
Return the vector of parameters.
Definition at line 29 of file BaseFunction.h.
References parVecVec_.
|
protected |
Definition at line 40 of file BaseFunction.h.
|
protected |
Definition at line 43 of file BaseFunction.h.
|
protected |
Definition at line 38 of file BaseFunction.h.
Referenced by BackgroundFunction::BackgroundFunction(), BaseFunction(), identifiers(), MomentumScaleCorrector::MomentumScaleCorrector(), BackgroundFunction::readParameters(), MomentumScaleCorrector::readParameters(), ResolutionFunction::readParameters(), ResolutionFunction::ResolutionFunction(), BackgroundFunction::~BackgroundFunction(), MomentumScaleCorrector::~MomentumScaleCorrector(), and ResolutionFunction::~ResolutionFunction().
|
protected |
Definition at line 44 of file BaseFunction.h.
Referenced by BaseFunction(), convertToArrays(), MomentumScaleCorrector::correct(), MomentumScaleCorrector::operator()(), BackgroundFunction::readParameters(), MomentumScaleCorrector::readParameters(), ResolutionFunction::readParameters(), ResolutionFunction::sigmaCotgTh(), ResolutionFunction::sigmaPhi(), and ResolutionFunction::sigmaPt().
|
protected |
Definition at line 42 of file BaseFunction.h.
Referenced by convertToArrays(), MomentumScaleCorrector::correct(), MomentumScaleCorrector::operator()(), BackgroundFunction::readParameters(), MomentumScaleCorrector::readParameters(), ResolutionFunction::readParameters(), ResolutionFunction::sigmaCotgTh(), ResolutionFunction::sigmaPhi(), ResolutionFunction::sigmaPt(), BackgroundFunction::~BackgroundFunction(), MomentumScaleCorrector::~MomentumScaleCorrector(), and ResolutionFunction::~ResolutionFunction().
|
protected |
Definition at line 39 of file BaseFunction.h.
Referenced by BaseFunction(), convertToArrays(), fitQuality(), parameters(), BackgroundFunction::readParameters(), MomentumScaleCorrector::readParameters(), and ResolutionFunction::readParameters().