66 _x(
"x",
"Dependent", this,
x),
67 _coefList(
"coefList",
"List of coefficients", this),
72 coutE(InputArguments) <<
"RooPolynomial::ctor(" <<
GetName()
73 <<
") WARNING: lowestOrder must be >=0, setting value to 0" << std::endl;
84 _x(
"x",
"Dependent", this,
x),
85 _coefList(
"coefList",
"List of coefficients", this)
94 _x(
"x", this, other.
_x),
132 const double xmin =
_x.min(rangeName);
133 const double xmax =
_x.max(rangeName);
int Int_t
Signed integer 4 bytes (int).
#define R__ASSERT(e)
Checks condition e and reports a fatal error if it's false.
RooAbsPdf()
Default constructor.
bool matchArgs(const RooArgSet &allDeps, RooArgSet &analDeps, const RooArgProxy &a, const Proxies &... proxies) const
RooArgList is a container object that can hold multiple RooAbsArg objects.
RooArgSet is a container object that can hold multiple RooAbsArg objects.
static void fillCoeffValues(std::vector< double > &wksp, RooListProxy const &coefList)
static void doEvalImpl(RooAbsArg const *caller, RooFit::EvalContext &, RooAbsReal const &x, RooArgList const &coefs, int lowestOrder)
double evaluate() const override
Evaluation.
std::vector< double > _wksp
! do not persist
RooAbsReal const & x() const
Get the x variable.
double analyticalIntegral(Int_t code, const char *rangeName=nullptr) const override
Do the analytical integral according to the code that was returned by getAnalyticalIntegral().
int lowestOrder() const
Return the order for the first coefficient in the list.
Int_t getAnalyticalIntegral(RooArgSet &allVars, RooArgSet &analVars, const char *rangeName=nullptr) const override
Advertise to RooFit that this function can be analytically integrated.
void doEval(RooFit::EvalContext &) const override
Compute multiple values of Polynomial.
RooArgList const & coefList() const
Get the coefficient list.
const char * GetName() const override
Returns name of object.
double polynomialIntegral(DoubleArray coeffs, int nCoeffs, int lowestOrder, double xMin, double xMax)
In pdfMode, a coefficient for the constant term of 1.0 is implied if lowestOrder > 0.
double polynomial(DoubleArray coeffs, int nCoeffs, int lowestOrder, double x)
In pdfMode, a coefficient for the constant term of 1.0 is implied if lowestOrder > 0.