6 #ifndef BackgroundFunction_h
7 #define BackgroundFunction_h
26 identifier.Prepend(
"MuonAnalysis/MomentumScaleCalibration/data/");
27 identifier.Append(
".txt");
31 std::vector<int>::const_iterator idIt =
functionId_.begin();
42 std::vector<int>::const_iterator
id =
functionId_.begin();
76 #endif // BackgroundFunction_h
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.
BackgroundFunction(const MuScleFitDBobject *dbObject)
std::vector< backgroundFunctionBase * > backgroundFunctionVec_
std::vector< int > functionId_
void readParameters(TString fileName)
Parser of the parameters file.
backgroundFunctionBase ** backgroundFunction_
backgroundFunctionBase * backgroundFunctionService(const int identifier, const double &lowerLimit, const double &upperLimit)
Service to build the background functor corresponding to the passed identifier.
BackgroundFunction(TString identifier)