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 ;
75 <<
" is not of type RooAbsReal" << endl ;
89 _x(
"x",
"Dependent", this,
x),
90 _coefList(
"coefList",
"List of coefficients",this),
101 _x(
"x", this, other._x),
102 _coefList(
"coefList",this,other._coefList),
103 _lowestOrder(other._lowestOrder)
125 if (!sz)
return lowestOrder ? 1. : 0.;
132 _wksp.push_back(
c->getVal(nset));
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--; )
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()
Class RooPolyVar is a RooAbsReal implementing a polynomial in terms of a list of RooAbsReal coefficie...
RooPolyVar()
Default constructor.
Int_t getAnalyticalIntegral(RooArgSet &allVars, RooArgSet &analVars, const char *rangeName=0) const
Advertise that we can internally integrate over x.
virtual ~RooPolyVar()
Destructor.
Double_t analyticalIntegral(Int_t code, const char *rangeName=0) const
Calculate and return analytical integral over x.
Double_t evaluate() const
do not persist
std::vector< Double_t > _wksp
Double_t min(const char *rname=0) const
Query lower limit of range. This requires the payload to be RooAbsRealLValue or derived.
Double_t max(const char *rname=0) const
Query upper limit of range. This requires the payload to be RooAbsRealLValue or derived.
virtual const char * GetName() const
Returns name of object.