#include <ResolutionFunction.h>
Public Member Functions | |
resolutionFunctionBase< double * > * | function (const unsigned int i) |
Get the ith resolution function. More... | |
ResolutionFunction (TString identifier) | |
ResolutionFunction (const MuScleFitDBobject *dbObject) | |
template<class U > | |
double | sigmaCotgTh (const U &track, const int i=0) const |
The second, optional, parameter is the iteration number. More... | |
template<class U > | |
double | sigmaPhi (const U &track, const int i=0) const |
The second, optional, parameter is the iteration number. More... | |
template<class U > | |
double | sigmaPt (const U &track, const int i=0) const |
The second, optional, parameter is the iteration number. More... | |
~ResolutionFunction () | |
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 | |
resolutionFunctionBase< double * > ** | resolutionFunction_ |
std::vector< resolutionFunctionBase< double * > * > | resolutionFunctionVec_ |
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 ResolutionFunction.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 24 of file ResolutionFunction.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 40 of file ResolutionFunction.h.
References BaseFunction::convertToArrays(), BaseFunction::functionId_, triggerObjects_cff::id, resolutionFunction_, resolutionFunctionService(), and resolutionFunctionVec_.
|
inline |
Definition at line 50 of file ResolutionFunction.h.
References BaseFunction::functionId_, mps_fire::i, BaseFunction::parArray_, and resolutionFunction_.
|
inline |
Get the ith resolution function.
Definition at line 93 of file ResolutionFunction.h.
References MillePedeFileConverter_cfg::fileName, mps_fire::i, readParameters(), resolutionFunction_, and resolutionFunctionVec_.
|
protected |
Parser of the parameters file.
Definition at line 3 of file ResolutionFunction.cc.
References BaseFunction::convertToArrays(), BaseFunction::functionId_, recoMuon::in, align_cfg::iteration, BaseFunction::iterationNum_, geometryCSVtoXML::line, pileupDistInMC::num, BaseFunction::parArray_, BaseFunction::parVecVec_, resolutionFunction_, resolutionFunctionService(), resolutionFunctionVec_, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by function(), and ResolutionFunction().
|
inline |
The second, optional, parameter is the iteration number.
Definition at line 76 of file ResolutionFunction.h.
References gather_cfg::cout, cmsRelvalreport::exit, mps_fire::i, BaseFunction::iterationNum_, BaseFunction::parArray_, resolutionFunction_, and resolutionFunctionBase< T >::sigmaCotgTh().
Referenced by MuScleFitUtils::massResolution().
|
inline |
The second, optional, parameter is the iteration number.
Definition at line 85 of file ResolutionFunction.h.
References gather_cfg::cout, cmsRelvalreport::exit, mps_fire::i, BaseFunction::iterationNum_, BaseFunction::parArray_, resolutionFunction_, and resolutionFunctionBase< T >::sigmaPhi().
Referenced by MuScleFitUtils::massResolution().
|
inline |
The second, optional, parameter is the iteration number.
Definition at line 67 of file ResolutionFunction.h.
References gather_cfg::cout, cmsRelvalreport::exit, mps_fire::i, BaseFunction::iterationNum_, BaseFunction::parArray_, resolutionFunction_, and resolutionFunctionBase< T >::sigmaPt().
Referenced by MuScleFitUtils::massResolution().
|
protected |
Definition at line 103 of file ResolutionFunction.h.
Referenced by function(), readParameters(), ResolutionFunction(), sigmaCotgTh(), sigmaPhi(), sigmaPt(), and ~ResolutionFunction().
|
protected |
Definition at line 104 of file ResolutionFunction.h.
Referenced by function(), readParameters(), and ResolutionFunction().