#include <MELANCSplineFactory_1D.h>
Definition at line 12 of file MELANCSplineFactory_1D.h.
◆ MELANCSplineFactory_1D()
◆ ~MELANCSplineFactory_1D()
MELANCSplineFactory_1D::~MELANCSplineFactory_1D |
( |
| ) |
|
◆ destroyPDF()
void MELANCSplineFactory_1D::destroyPDF |
( |
| ) |
|
|
protected |
◆ getFunc()
◆ getPDF()
◆ getPoints()
Definition at line 38 of file MELANCSplineFactory_1D.cc.
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)));
◆ initPDF()
Definition at line 51 of file MELANCSplineFactory_1D.cc.
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;
◆ setEndConditions()
◆ setPoints() [1/4]
template<typename inType >
void MELANCSplineFactory_1D::setPoints |
( |
const std::vector< inType > & |
XList, |
|
|
const std::vector< inType > & |
FcnList |
|
) |
| |
|
inline |
Definition at line 48 of file MELANCSplineFactory_1D.h.
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);
◆ setPoints() [2/4]
◆ setPoints() [3/4]
void MELANCSplineFactory_1D::setPoints |
( |
TGraph * |
tg | ) |
|
Definition at line 30 of file MELANCSplineFactory_1D.cc.
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]));
◆ setPoints() [4/4]
void MELANCSplineFactory_1D::setPoints |
( |
TTree * |
tree | ) |
|
Definition at line 21 of file MELANCSplineFactory_1D.cc.
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)); }
◆ appendName
TString MELANCSplineFactory_1D::appendName |
|
protected |
◆ bcBeginX
◆ bcEndX
◆ fcn
◆ PDF
◆ splineVar
RooAbsReal* MELANCSplineFactory_1D::splineVar |
|
protected |
The documentation for this class was generated from the following files: