60 _x(
"x",
"Dependent", this, x),
61 _coefList(
"coefList",
"List of coefficients",this),
62 _lowestOrder(lowestOrder)
67 <<
") WARNING: lowestOrder must be >=0, setting value to 0" << endl ;
74 if (!dynamic_cast<RooAbsReal*>(coef)) {
76 <<
" is not of type RooAbsReal" << endl ;
90 _x(
"x",
"Dependent", this, x),
91 _coefList(
"coefList",
"List of coefficients",this),
102 _x(
"x", this, other._x),
103 _coefList(
"coefList",this,other._coefList),
104 _lowestOrder(other._lowestOrder)
126 if (!sz)
return lowestOrder ? 1. : 0.;
137 for (
unsigned i = sz - 1; i--; ) retVal =
_wksp[i] + x * retVal;
138 return retVal *
std::pow(x, lowestOrder);
170 unsigned i = 1 + lowestOrder;
178 for (
unsigned i = sz - 1; i--; )
const RooArgSet * nset() const
static Vc_ALWAYS_INLINE int_v min(const int_v &x, const int_v &y)
virtual ~RooPolyVar()
Destructor.
RooFIter fwdIterator() const
Double_t evaluate() const
do not persist
Int_t getAnalyticalIntegral(RooArgSet &allVars, RooArgSet &analVars, const char *rangeName=0) const
Advertise that we can internally integrate over x.
double pow(double, double)
Double_t analyticalIntegral(Int_t code, const char *rangeName=0) const
Calculate and return analytical integral over x.
Double_t getVal(const RooArgSet *set=0) const
virtual Bool_t add(const RooAbsArg &var, Bool_t silent=kFALSE)
Reimplementation of standard RooArgList::add()
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)
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...
std::vector< Double_t > _wksp
RooPolyVar()
Default constructor.
Double_t max(const char *rname=0) const