#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 23 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 39 of file ResolutionFunction.h.
References BaseFunction::convertToArrays(), BaseFunction::functionId_, l1ctLayer2EG_cff::id, resolutionFunction_, resolutionFunctionService(), and resolutionFunctionVec_.
|
inline |
Definition at line 48 of file ResolutionFunction.h.
References BaseFunction::functionId_, mps_fire::i, BaseFunction::parArray_, and resolutionFunction_.
|
inline |
Get the ith resolution function.
Definition at line 94 of file ResolutionFunction.h.
References mps_fire::i, resolutionFunction_, and resolutionFunctionVec_.
|
protected |
Parser of the parameters file.
Definition at line 3 of file ResolutionFunction.cc.
References BaseFunction::convertToArrays(), MillePedeFileConverter_cfg::fileName, BaseFunction::functionId_, recoMuon::in, align_cfg::iteration, BaseFunction::iterationNum_, mps_splice::line, EgammaValidation_cff::num, BaseFunction::parArray_, BaseFunction::parVecVec_, resolutionFunction_, resolutionFunctionService(), resolutionFunctionVec_, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by ResolutionFunction().
|
inline |
The second, optional, parameter is the iteration number.
Definition at line 75 of file ResolutionFunction.h.
References gather_cfg::cout, beamvalidation::exit(), mps_fire::i, BaseFunction::iterationNum_, BaseFunction::parArray_, resolutionFunction_, resolutionFunctionBase< T >::sigmaCotgTh(), and HLT_2024v13_cff::track.
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, beamvalidation::exit(), mps_fire::i, BaseFunction::iterationNum_, BaseFunction::parArray_, resolutionFunction_, resolutionFunctionBase< T >::sigmaPhi(), and HLT_2024v13_cff::track.
Referenced by MuScleFitUtils::massResolution().
|
inline |
The second, optional, parameter is the iteration number.
Definition at line 65 of file ResolutionFunction.h.
References gather_cfg::cout, beamvalidation::exit(), mps_fire::i, BaseFunction::iterationNum_, BaseFunction::parArray_, resolutionFunction_, resolutionFunctionBase< T >::sigmaPt(), and HLT_2024v13_cff::track.
Referenced by MuScleFitUtils::massResolution().
|
protected |
Definition at line 105 of file ResolutionFunction.h.
Referenced by function(), readParameters(), ResolutionFunction(), sigmaCotgTh(), sigmaPhi(), sigmaPt(), and ~ResolutionFunction().
|
protected |
Definition at line 106 of file ResolutionFunction.h.
Referenced by function(), readParameters(), and ResolutionFunction().