#include <RooSpline1D.h>
Public Member Functions | |
TObject * | clone (const char *newname) const |
RooSpline1D (const char *name, const char *title, RooAbsReal &xvar, unsigned int npoints, const double *xvals, const double *yvals, const char *algo="CSPLINE") | |
RooSpline1D () | |
RooSpline1D (const char *name, const char *title, RooAbsReal &xar, unsigned int npoints, const float *xvals, const float *yvals, const char *algo="CSPLINE") | |
~RooSpline1D () | |
Protected Member Functions | |
Double_t | evaluate () const |
Private Member Functions | |
void | init () const |
not to be serialized | |
Private Attributes | |
ROOT::Math::Interpolator * | interp_ |
std::string | type_ |
std::vector< double > | x_ |
RooRealProxy | xvar_ |
std::vector< double > | y_ |
Definition at line 18 of file RooSpline1D.h.
RooSpline1D::RooSpline1D | ( | ) | [inline] |
RooSpline1D::RooSpline1D | ( | const char * | name, |
const char * | title, | ||
RooAbsReal & | xvar, | ||
unsigned int | npoints, | ||
const double * | xvals, | ||
const double * | yvals, | ||
const char * | algo = "CSPLINE" |
||
) |
RooSpline1D::RooSpline1D | ( | const char * | name, |
const char * | title, | ||
RooAbsReal & | xar, | ||
unsigned int | npoints, | ||
const float * | xvals, | ||
const float * | yvals, | ||
const char * | algo = "CSPLINE" |
||
) |
RooSpline1D::~RooSpline1D | ( | ) |
TObject * RooSpline1D::clone | ( | const char * | newname | ) | const |
Definition at line 36 of file RooSpline1D.cc.
References RooSpline1D(), type_, x_, xvar_, and y_.
Double_t RooSpline1D::evaluate | ( | ) | const [protected] |
void RooSpline1D::init | ( | void | ) | const [private] |
not to be serialized
Definition at line 41 of file RooSpline1D.cc.
References interp_, type_, x_, and y_.
Referenced by evaluate().
{ delete interp_; if (type_ == "CSPLINE") interp_ = new ROOT::Math::Interpolator(x_, y_, ROOT::Math::Interpolation::kCSPLINE); else if (type_ == "LINEAR") interp_ = new ROOT::Math::Interpolator(x_, y_, ROOT::Math::Interpolation::kLINEAR); else if (type_ == "POLYNOMIAL") interp_ = new ROOT::Math::Interpolator(x_, y_, ROOT::Math::Interpolation::kPOLYNOMIAL); else if (type_ == "CSPLINE_PERIODIC") interp_ = new ROOT::Math::Interpolator(x_, y_, ROOT::Math::Interpolation::kCSPLINE_PERIODIC); else if (type_ == "AKIMA") interp_ = new ROOT::Math::Interpolator(x_, y_, ROOT::Math::Interpolation::kAKIMA); else if (type_ == "AKIMA_PERIODIC") interp_ = new ROOT::Math::Interpolator(x_, y_, ROOT::Math::Interpolation::kAKIMA_PERIODIC); else throw std::invalid_argument("Unknown interpolation type '"+type_+"'"); }
ROOT::Math::Interpolator* RooSpline1D::interp_ [mutable, private] |
Definition at line 36 of file RooSpline1D.h.
Referenced by evaluate(), init(), and ~RooSpline1D().
std::string RooSpline1D::type_ [private] |
Definition at line 34 of file RooSpline1D.h.
std::vector<double> RooSpline1D::x_ [private] |
Definition at line 33 of file RooSpline1D.h.
Referenced by clone(), init(), and RooSpline1D().
RooRealProxy RooSpline1D::xvar_ [private] |
Definition at line 32 of file RooSpline1D.h.
Referenced by clone(), and evaluate().
std::vector<double> RooSpline1D::y_ [private] |
Definition at line 33 of file RooSpline1D.h.
Referenced by clone(), init(), and RooSpline1D().