59 _x(
"x",
"Dependent", this, x),
60 _coefList(
"coefList",
"List of coefficients",this),
61 _lowestOrder(lowestOrder)
66 <<
") WARNING: lowestOrder must be >=0, setting value to 0" << endl ;
73 if (!dynamic_cast<RooAbsReal*>(coef)) {
75 <<
" is not of type RooAbsReal" << endl ;
89 _x(
"x",
"Dependent", this, x),
90 _coefList(
"coefList",
"List of coefficients",this),
99 _x(
"x", this, other._x),
100 _coefList(
"coefList",this,other._coefList),
101 _lowestOrder(other._lowestOrder)
124 if (!sz)
return lowestOrder ? 1. : 0.;
135 for (
unsigned i = sz - 1; i--; ) retVal =
_wksp[i] + x * retVal;
136 return retVal *
std::pow(x, lowestOrder) + (lowestOrder ? 1.0 : 0.0);
166 unsigned i = 1 + lowestOrder;
174 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()
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
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