1 #ifndef MELANCSPLINEFACTORY_1D
2 #define MELANCSPLINEFACTORY_1D
23 const std::vector<std::pair<MELANCSplineCore::T, MELANCSplineCore::T>>
getPoints(
const std::vector<MELANCSplineCore::T>& XList,
const std::vector<MELANCSplineCore::T>& FcnList);
26 void initPDF(
const std::vector<std::pair<MELANCSplineCore::T, MELANCSplineCore::T>>& pList);
30 RooAbsReal& splineVar_, TString appendName_=
"",
42 const unsigned int direction=0
47 void setPoints(
const std::vector<std::pair<MELANCSplineCore::T, MELANCSplineCore::T>>& pList){
initPDF(pList); }
48 template<
typename inType>
void setPoints(
const std::vector<inType>& XList,
const std::vector<inType>& FcnList){
49 std::vector<MELANCSplineCore::T> transXList;
50 std::vector<MELANCSplineCore::T> transFcnList;
51 for (
unsigned int ip=0; ip<XList.size(); ip++) transXList.push_back((
MELANCSplineCore::T)XList.at(ip));
52 for (
unsigned int ip=0; ip<FcnList.size(); ip++) transFcnList.push_back((
MELANCSplineCore::T)FcnList.at(ip));
53 const std::vector<std::pair<MELANCSplineCore::T, MELANCSplineCore::T>> pList =
getPoints(transXList, transFcnList);
59 template void MELANCSplineFactory_1D::setPoints<Float_t>(
const std::vector<Float_t>& XList,
const std::vector<Float_t>& FcnList);
60 template void MELANCSplineFactory_1D::setPoints<Double_t>(
const std::vector<Double_t>& XList,
const std::vector<Double_t>& FcnList);