77 _x(
"x",
"Dependent", this,
x),
78 _coefList(
"coefList",
"List of coefficients",this),
79 _lowestOrder(lowestOrder)
84 <<
") WARNING: lowestOrder must be >=0, setting value to 0" << endl ;
93 <<
" is not of type RooAbsReal" << endl ;
105 _x(
"x",
"Dependent", this,
x),
106 _coefList(
"coefList",
"List of coefficients",this),
115 _x(
"x", this, other._x),
116 _coefList(
"coefList",this,other._coefList),
117 _lowestOrder(other._lowestOrder)
134 if (!sz)
return lowestOrder ? 1. : 0.;
145 for (
unsigned i = sz - 1; i--; ) retVal =
_wksp[i] +
x * retVal;
146 return retVal *
std::pow(
x, lowestOrder) + (lowestOrder ? 1.0 : 0.0);
172 unsigned i = 1 + lowestOrder;
180 for (
unsigned i = sz - 1; i--; )
double pow(double, double)
RooAbsArg is the common abstract base class for objects that represent a value (of arbitrary type) an...
RooFIter fwdIterator() const R__SUGGEST_ALTERNATIVE("begin()
One-time forward iterator.
const RooArgSet * nset() const
RooAbsReal is the common abstract base class for objects that represent a real value and implements f...
Bool_t matchArgs(const RooArgSet &allDeps, RooArgSet &numDeps, const RooArgProxy &a) const
Utility function for use in getAnalyticalIntegral().
RooArgList is a container object that can hold multiple RooAbsArg objects.
RooArgSet is a container object that can hold multiple RooAbsArg objects.
A one-time forward iterator working on RooLinkedList or RooAbsCollection.
RooAbsArg * next()
Return next element or nullptr if at end.
virtual Bool_t add(const RooAbsArg &var, Bool_t silent=kFALSE)
Reimplementation of standard RooArgList::add()
RooPolynomial implements a polynomial p.d.f of the form.
Int_t getAnalyticalIntegral(RooArgSet &allVars, RooArgSet &analVars, const char *rangeName=0) const
Advertise to RooFit that this function can be analytically integrated.
Double_t analyticalIntegral(Int_t code, const char *rangeName=0) const
Do the analytical integral according to the code that was returned by getAnalyticalIntegral().
RooPolynomial()
coverity[UNINIT_CTOR]
Double_t evaluate() const
do not persist
std::vector< Double_t > _wksp
virtual ~RooPolynomial()
Destructor.
Double_t min(const char *rname=0) const
Double_t max(const char *rname=0) const
virtual const char * GetName() const
Returns name of object.