Go to the documentation of this file.
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
void convertToArrays(T **&function_, const std::vector< T * > &functionVec_)
Convert vectors to arrays for faster random access. The first pointer is replaced,...
std::vector< resolutionFunctionBase< double * > * > resolutionFunctionVec_
ResolutionFunction(TString identifier)
resolutionFunctionBase< double * > * resolutionFunctionService(const int identifier)
Service to build the resolution functor corresponding to the passed identifier.
virtual double sigmaCotgTh(const double &pt, const double &eta, const T &parval)=0
double sigmaPhi(const U &track, const int i=0) const
The second, optional, parameter is the iteration number.
resolutionFunctionBase< double * > ** resolutionFunction_
ResolutionFunction(const MuScleFitDBobject *dbObject)
virtual double sigmaPhi(const double &pt, const double &eta, const T &parval)=0
virtual double sigmaPt(const double &pt, const double &eta, const T &parval)=0
double sigmaPt(const U &track, const int i=0) const
The second, optional, parameter is the iteration number.
std::vector< int > functionId_
double sigmaCotgTh(const U &track, const int i=0) const
The second, optional, parameter is the iteration number.
void readParameters(TString fileName)
Parser of the parameters file.