6 #ifndef BackgroundFunction_h 7 #define BackgroundFunction_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();
75 #endif // BackgroundFunction_h
BackgroundFunction(const MuScleFitDBobject *dbObject)
std::vector< int > functionId_
void readParameters(TString fileName)
Parser of the parameters file.
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.
backgroundFunctionBase ** backgroundFunction_
std::vector< backgroundFunctionBase * > backgroundFunctionVec_
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)