#include <MELANCSplineFactory_2D.h>
|
| MELANCSplineFactory_2D (RooAbsReal &XVar_, RooAbsReal &YVar_, TString appendName_="", MELANCSplineCore::BoundaryCondition const bcBeginX_=MELANCSplineCore::bcNaturalSpline, MELANCSplineCore::BoundaryCondition const bcEndX_=MELANCSplineCore::bcNaturalSpline, MELANCSplineCore::BoundaryCondition const bcBeginY_=MELANCSplineCore::bcNaturalSpline, MELANCSplineCore::BoundaryCondition const bcEndY_=MELANCSplineCore::bcNaturalSpline) |
|
| ~MELANCSplineFactory_2D () |
|
MELANCSpline_2D_fast * | getFunc () |
|
MELAFuncPdf * | getPDF () |
|
void | setEndConditions (MELANCSplineCore::BoundaryCondition const bcBegin, MELANCSplineCore::BoundaryCondition const bcEnd, const unsigned int direction) |
|
void | setPoints (TTree *tree) |
|
void | setPoints (const std::vector< splineTriplet_t > &pList) |
|
template<typename inType > |
void | setPoints (const std::vector< inType > &XList, const std::vector< inType > &YList, const std::vector< inType > &FcnList) |
|
Definition at line 14 of file MELANCSplineFactory_2D.h.
◆ MELANCSplineFactory_2D()
◆ ~MELANCSplineFactory_2D()
MELANCSplineFactory_2D::~MELANCSplineFactory_2D |
( |
| ) |
|
◆ addUnique()
Definition at line 24 of file MELANCSplineFactory_2D.cc.
25 for (
unsigned int ip=0; ip<list.size(); ip++){
if (list.at(ip)==val)
return; }
◆ destroyPDF()
void MELANCSplineFactory_2D::destroyPDF |
( |
| ) |
|
|
protected |
◆ getFunc()
◆ getPDF()
◆ getPoints()
Definition at line 28 of file MELANCSplineFactory_2D.cc.
33 const unsigned int nX = XList.size();
34 const unsigned int nY = YList.size();
35 const unsigned int n = FcnList.size();
37 cerr <<
"MELANCSplineFactory_2D::getPoints: nX=" << nX <<
" x nY=" << nY <<
" != nFcn=" << n << endl;
41 std::vector<splineTriplet_t> pList; pList.reserve(n);
42 for (
unsigned int ix=0; ix<nX; ix++){
44 for (
unsigned int iy=0; iy<nY; iy++){
45 unsigned int ip = nY*ix + iy;
◆ initPDF()
void MELANCSplineFactory_2D::initPDF |
( |
const std::vector< splineTriplet_t > & |
pList | ) |
|
|
protected |
Definition at line 54 of file MELANCSplineFactory_2D.cc.
57 const unsigned int n = pList.size();
58 vector<MELANCSplineCore::T> XList;
59 vector<MELANCSplineCore::T> YList;
60 vector<vector<MELANCSplineCore::T>> FcnList;
61 for (
unsigned int ip=0; ip<n; ip++){
65 FcnList.reserve(YList.size());
66 for (
unsigned int iy=0; iy<YList.size(); iy++){
67 vector<MELANCSplineCore::T> dum; dum.reserve(XList.size());
68 for (
unsigned int ix=0; ix<XList.size(); ix++){
69 unsigned int ip = YList.size()*ix + iy;
70 dum.push_back((pList.at(ip))[2]);
72 FcnList.push_back(dum);
75 TString name =
"Func";
82 XList, YList, FcnList,
87 name.Prepend(
"PDF_"); title=name;
◆ setEndConditions()
◆ setPoints() [1/3]
template<typename inType >
void MELANCSplineFactory_2D::setPoints |
( |
const std::vector< inType > & |
XList, |
|
|
const std::vector< inType > & |
YList, |
|
|
const std::vector< inType > & |
FcnList |
|
) |
| |
|
inline |
Definition at line 56 of file MELANCSplineFactory_2D.h.
57 std::vector<MELANCSplineCore::T> transXList;
58 std::vector<MELANCSplineCore::T> transYList;
59 std::vector<MELANCSplineCore::T> transFcnList;
60 for (
unsigned int ip=0; ip<XList.size(); ip++) transXList.push_back((
MELANCSplineCore::T)XList.at(ip));
61 for (
unsigned int ip=0; ip<YList.size(); ip++) transYList.push_back((
MELANCSplineCore::T)YList.at(ip));
62 for (
unsigned int ip=0; ip<FcnList.size(); ip++) transFcnList.push_back((
MELANCSplineCore::T)FcnList.at(ip));
63 const std::vector<splineTriplet_t> pList =
getPoints(transXList, transYList, transFcnList);
◆ setPoints() [2/3]
void MELANCSplineFactory_2D::setPoints |
( |
const std::vector< splineTriplet_t > & |
pList | ) |
|
|
inline |
◆ setPoints() [3/3]
void MELANCSplineFactory_2D::setPoints |
( |
TTree * |
tree | ) |
|
Definition at line 95 of file MELANCSplineFactory_2D.cc.
96 vector<splineTriplet_t> pList;
98 tree->SetBranchAddress(
"X", &x);
99 tree->SetBranchAddress(
"Y", &y);
100 tree->SetBranchAddress(
"Fcn", &
fcn);
101 int n = tree->GetEntries();
102 for (
int ip=0; ip<n; ip++){ tree->GetEntry(ip); pList.push_back(
splineTriplet_t(x, y,
fcn)); }
◆ appendName
TString MELANCSplineFactory_2D::appendName |
|
protected |
◆ bcBeginX
◆ bcBeginY
◆ bcEndX
◆ bcEndY
◆ fcn
◆ PDF
◆ XVar
RooAbsReal* MELANCSplineFactory_2D::XVar |
|
protected |
◆ YVar
RooAbsReal* MELANCSplineFactory_2D::YVar |
|
protected |
The documentation for this class was generated from the following files: