58 _x(
"x",
"Dependent", this, x),
59 _coefList(
"coefList",
"List of coefficients",this),
60 _lowestOrder(lowestOrder)
65 <<
") WARNING: lowestOrder must be >=0, setting value to 0" << endl ;
72 if (!dynamic_cast<RooAbsReal*>(coef)) {
74 <<
" is not of type RooAbsReal" << endl ;
88 _x(
"x",
"Dependent", this, x),
89 _coefList(
"coefList",
"List of coefficients",this),
98 _x(
"x", this, other._x),
99 _coefList(
"coefList",this,other._coefList),
100 _lowestOrder(other._lowestOrder)
123 if (!sz)
return lowestOrder ? 1. : 0.;
134 for (
unsigned i = sz - 1; i--; ) retVal =
_wksp[i] + x * retVal;
135 return retVal *
std::pow(x, lowestOrder) + (lowestOrder ? 1.0 : 0.0);
165 unsigned i = 1 + lowestOrder;
173 for (
unsigned i = sz - 1; i--; )
const RooArgSet * nset() const
Double_t analyticalIntegral(Int_t code, const char *rangeName=0) const
Implements the actual analytical integral(s) advertised by getAnalyticalIntegral. ...
static Vc_ALWAYS_INLINE int_v min(const int_v &x, const int_v &y)
RooFIter fwdIterator() const
virtual ~RooPolynomial()
Destructor.
RooPolynomial()
coverity[UNINIT_CTOR]
double pow(double, double)
Double_t getVal(const RooArgSet *set=0) const
virtual Bool_t add(const RooAbsArg &var, Bool_t silent=kFALSE)
Reimplementation of standard RooArgList::add()
TPaveLabel title(3, 27.1, 15, 28.7,"ROOT Environment and Tools")
Int_t getAnalyticalIntegral(RooArgSet &allVars, RooArgSet &analVars, const char *rangeName=0) const
Interface function getAnalyticalIntergral advertises the analytical integrals that are supported...
std::vector< Double_t > _wksp
Double_t evaluate() const
do not persist
virtual const char * GetName() const
Returns name of object.
RooAbsReal is the common abstract base class for objects that represent a real value and implements f...
static Vc_ALWAYS_INLINE int_v max(const int_v &x, const int_v &y)
RooAbsPdf is the abstract interface for all probability density functions The class provides hybrid a...
Double_t min(const char *rname=0) const
RooPolynomial implements a polynomial p.d.f of the form By default coefficient a_0 is chosen to be 1...
Bool_t matchArgs(const RooArgSet &allDeps, RooArgSet &numDeps, const RooArgProxy &a) const
Utility function for use in getAnalyticalIntegral().
RooAbsArg is the common abstract base class for objects that represent a value (of arbitrary type) an...
Double_t max(const char *rname=0) const