6 #ifndef ResolutionFunction_h 7 #define ResolutionFunction_h 24 identifier.Prepend(
"MuonAnalysis/MomentumScaleCalibration/data/");
25 identifier.Append(
".txt");
29 std::vector<int>::const_iterator idIt =
functionId_.begin();
31 std::cout <<
"idIt = " << *idIt << std::endl;
40 std::vector<int>::const_iterator
id =
functionId_.begin();
67 std::cout <<
"Error: wrong iteration number, there are " <<
iterationNum_ <<
"iterations, ther first one is 0" 77 std::cout <<
"Error: wrong iteration number, there are " <<
iterationNum_ <<
"iterations, ther first one is 0" 87 std::cout <<
"Error: wrong iteration number, there are " <<
iterationNum_ <<
"iterations, ther first one is 0" 109 #endif // ResolutionFunction_h ResolutionFunction(const MuScleFitDBobject *dbObject)
double sigmaCotgTh(const U &track, const int i=0) const
The second, optional, parameter is the iteration number.
resolutionFunctionBase< double * > ** resolutionFunction_
double sigmaPt(const U &track, const int i=0) const
The second, optional, parameter is the iteration number.
resolutionFunctionBase< double * > * resolutionFunctionService(const int identifier)
Service to build the resolution functor corresponding to the passed identifier.
virtual double sigmaPt(const double &pt, const double &eta, const T &parval)=0
void readParameters(TString fileName)
Parser of the parameters file.
std::vector< int > functionId_
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.
virtual double sigmaCotgTh(const double &pt, const double &eta, const T &parval)=0
std::vector< resolutionFunctionBase< double * > * > resolutionFunctionVec_
double sigmaPhi(const U &track, const int i=0) const
The second, optional, parameter is the iteration number.
virtual double sigmaPhi(const double &pt, const double &eta, const T &parval)=0
ResolutionFunction(TString identifier)