8 RooAbsReal& splineVar_, TString appendName_,
12 appendName(appendName_),
13 bcBeginX(bcBeginX_), bcEndX(bcEndX_),
14 splineVar(&splineVar_),
22 vector<pair<MELANCSplineCore::T, MELANCSplineCore::T>> pList;
24 tree->SetBranchAddress(
"X", &x);
25 tree->SetBranchAddress(
"Fcn", &
fcn);
26 int n = tree->GetEntries();
27 for (
int ip=0; ip<n; ip++){ tree->GetEntry(ip); pList.push_back(pair<MELANCSplineCore::T, MELANCSplineCore::T>(x,
fcn)); }
31 vector<pair<MELANCSplineCore::T, MELANCSplineCore::T>> pList;
32 double* xx = tg->GetX();
33 double* yy = tg->GetY();
35 for (
int ip=0; ip<n; ip++) pList.push_back(pair<MELANCSplineCore::T, MELANCSplineCore::T>(xx[ip], yy[ip]));
38 const std::vector<std::pair<MELANCSplineCore::T, MELANCSplineCore::T>>
MELANCSplineFactory_1D::getPoints(
const std::vector<MELANCSplineCore::T>& XList,
const std::vector<MELANCSplineCore::T>& FcnList){
39 const unsigned int nX = XList.size();
40 const unsigned int n = FcnList.size();
42 cerr <<
"MELANCSplineFactory_1D::getPoints: nX=" << nX <<
" != nFcn=" << n << endl;
45 std::vector<std::pair<MELANCSplineCore::T, MELANCSplineCore::T>> pList; pList.reserve(n);
46 for (
unsigned int ip=0; ip<n; ip++) pList.push_back(pair<MELANCSplineCore::T, MELANCSplineCore::T>(XList.at(ip), FcnList.at(ip)));
54 const unsigned int n = pList.size();
55 std::vector<MELANCSplineCore::T> XList;
56 std::vector<MELANCSplineCore::T> FcnList;
57 for (
unsigned int ip=0; ip<n; ip++){
58 XList.push_back(pList.at(ip).first);
59 FcnList.push_back(pList.at(ip).second);
62 TString name =
"Func";
73 name.Prepend(
"PDF_"); title=name;