56 _x(
"x",
"Dependent", this, x),
57 _coefList(
"coefficients",
"List of coefficients",this)
62 if (!dynamic_cast<RooAbsReal*>(coef)) {
63 cout <<
"RooBernstein::ctor(" <<
GetName() <<
") ERROR: coefficient " << coef->
GetName()
64 <<
" is not of type RooAbsReal" << endl ;
78 _x(
"x", this, other._x),
79 _coefList(
"coefList",this,other._coefList)
97 }
else if(degree == 1) {
103 }
else if(degree == 2) {
108 return (a2 * x + a1) * x + a0;
110 }
else if(degree > 2) {
116 for(
Int_t i = 1; i < degree; i++) {
135 if (rangeName && strlen(rangeName)) {
155 for (
int i=0; i<=degree; ++i){
160 for (
int j=i; j<=degree; ++j){
RooFIter fwdIterator() const
Double_t evaluate() const
Iterator abstract base class.
std::map< std::string, std::string >::const_iterator iter
double pow(double, double)
TIterator * createIterator(Bool_t dir=kIterForward) const
Int_t getAnalyticalIntegral(RooArgSet &allVars, RooArgSet &analVars, const char *rangeName=0) const
No analytical calculation available (yet) of integrals over subranges.
Double_t getVal(const RooArgSet *set=0) const
virtual Bool_t add(const RooAbsArg &var, Bool_t silent=kFALSE)
Reimplementation of standard RooArgList::add()
Double_t Binomial(Int_t n, Int_t k)
Calculate the binomial coefficient n over k.
virtual const char * GetName() const
Returns name of object.
Double_t analyticalIntegral(Int_t code, const char *rangeName=0) const
Implements the actual analytical integral(s) advertised by getAnalyticalIntegral. ...
RooAbsReal is the common abstract base class for objects that represent a real value and implements f...
RooAbsPdf is the abstract interface for all probability density functions The class provides hybrid a...
Double_t min(const char *rname=0) const
virtual TObject * Next()=0
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 norm(double *x, double *p)
Double_t max(const char *rname=0) const