#include <BackgroundFunction.h>
Public Member Functions | |
BackgroundFunction (TString identifier) | |
BackgroundFunction (const MuScleFitDBobject *dbObject) | |
backgroundFunctionBase * | function (const unsigned int i) |
Get the ith background function. More... | |
~BackgroundFunction () | |
Public Member Functions inherited from BaseFunction | |
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 | |
void | readParameters (TString fileName) |
Parser of the parameters file. More... | |
Protected Member Functions inherited from BaseFunction | |
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 | |
backgroundFunctionBase ** | backgroundFunction_ |
std::vector< backgroundFunctionBase * > | backgroundFunctionVec_ |
Protected Attributes inherited from BaseFunction | |
std::vector< double > | fitQuality_ |
double ** | fitQualityArray_ |
std::vector< int > | functionId_ |
int | iterationNum_ |
double ** | parArray_ |
std::vector< double > | parVecVec_ |
Class for the resolution function. It can be built from local file or from db.
Definition at line 15 of file BackgroundFunction.h.
|
inline |
The constructor takes a string identifying the parameters to read. It parses the txt file containing the parameters, extracts the index of the correction function and saves the corresponding pointer. It then fills the vector of parameters.
Definition at line 23 of file BackgroundFunction.h.
References gather_cfg::cout, BaseFunction::functionId_, and readParameters().
|
inline |
This constructor is used when reading parameters from the db. It receives a pointer to an object of type MuScleFitDBobject containing the parameters and the functions identifiers. The object is the same for all the functions.
Definition at line 39 of file BackgroundFunction.h.
References backgroundFunction_, backgroundFunctionService(), backgroundFunctionVec_, BaseFunction::convertToArrays(), BaseFunction::functionId_, and triggerObjects_cff::id.
|
inline |
Definition at line 49 of file BackgroundFunction.h.
References backgroundFunction_, BaseFunction::functionId_, mps_fire::i, and BaseFunction::parArray_.
|
inline |
Get the ith background function.
Definition at line 60 of file BackgroundFunction.h.
References backgroundFunction_, backgroundFunctionVec_, and mps_fire::i.
|
protected |
Parser of the parameters file.
Definition at line 3 of file BackgroundFunction.cc.
References backgroundFunction_, backgroundFunctionService(), backgroundFunctionVec_, BaseFunction::convertToArrays(), MillePedeFileConverter_cfg::fileName, BaseFunction::functionId_, recoMuon::in, align_cfg::iteration, BaseFunction::iterationNum_, mps_splice::line, EgammaValidation_cff::num, BaseFunction::parArray_, BaseFunction::parVecVec_, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by BackgroundFunction().
|
protected |
Definition at line 71 of file BackgroundFunction.h.
Referenced by BackgroundFunction(), function(), readParameters(), and ~BackgroundFunction().
|
protected |
Definition at line 72 of file BackgroundFunction.h.
Referenced by BackgroundFunction(), function(), and readParameters().