16#ifndef RooFit_RooFit_RooPolyFunc_h
17#define RooFit_RooFit_RooPolyFunc_h
37 void addTerm(
double coefficient);
42 static std::unique_ptr<RooAbsReal>
44 std::vector<double>
const &observableValues,
int order = 1,
double eps1 = 1
e-6,
double eps2 = 1
e-3);
47 int order = 1,
double eps = 1
e-6,
double eps2 = 1
e-3);
52 std::vector<std::unique_ptr<RooListProxy>>
_terms;
#define ClassDef(name, id)
RooAbsCollection is an abstract container object that can hold multiple RooAbsArg objects.
RooAbsReal is the common abstract base class for objects that represent a real value and implements f...
RooArgList is a container object that can hold multiple RooAbsArg objects.
RooListProxy is the concrete proxy for RooArgList objects.
RooPolyFunc implements a polynomial function in multi-variables.
static std::unique_ptr< RooAbsReal > taylorExpand(const char *name, const char *title, RooAbsReal &func, const RooAbsCollection &observables, std::vector< double > const &observableValues, int order=1, double eps1=1e-6, double eps2=1e-3)
virtual TObject * clone(const char *newname) const
RooPolyFunc(const char *name, const char *title, RooAbsReal &x, const RooAbsCollection &coefList)
RooPolyFunc()
Default constructor.
RooPolyFunc(const char *name, const char *title, RooAbsReal &x, RooAbsReal &y, const RooAbsCollection &coefList)
void setCoordinate(const RooAbsCollection &observables, std::vector< double > const &observableValues)
void addTerm(double coefficient)
coverity[UNINIT_CTOR]
RooPolyFunc & operator=(const RooPolyFunc &other)
Assignment operator.
std::vector< std::unique_ptr< RooListProxy > > _terms
double evaluate() const
Evaluation.
RooRealVar represents a variable that can be changed from the outside.
Mother of all ROOT objects.