#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 17 of file BaseFunction.h.
|
inline |
Constructor when receiving database parameters.
Definition at line 20 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 56 of file BaseFunction.h.
References gather_cfg::cout, cmsRelvalreport::exit, patCandidates_cff::func, iterationNum_, parArray_, and parVecVec_.
Referenced by BackgroundFunction::BackgroundFunction(), fitQuality(), MomentumScaleCorrector::MomentumScaleCorrector(), BackgroundFunction::readParameters(), MomentumScaleCorrector::readParameters(), ResolutionFunction::readParameters(), and ResolutionFunction::ResolutionFunction().
|
inline |
Return the vector of fit quality values.
Definition at line 37 of file BaseFunction.h.
References convertToArrays(), and parVecVec_.
|
inline |
Return the vector of function identifiers.
Definition at line 29 of file BaseFunction.h.
References functionId_.
|
inline |
Return the vector of parameters.
Definition at line 33 of file BaseFunction.h.
References parVecVec_.
|
protected |
Definition at line 48 of file BaseFunction.h.
|
protected |
Definition at line 51 of file BaseFunction.h.
|
protected |
Definition at line 46 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 52 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 50 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 47 of file BaseFunction.h.
Referenced by BaseFunction(), convertToArrays(), fitQuality(), parameters(), BackgroundFunction::readParameters(), MomentumScaleCorrector::readParameters(), and ResolutionFunction::readParameters().