67 _func(
"function",
"function",this,func),
72 if (_order<0 || _order>3 ) {
73 throw std::string(
Form(
"RooDerivative::ctor(%s) ERROR, derivation order must be 1,2 or 3",
name)) ;
84 _func(
"function",
"function",this,func),
89 if (_order<0 || _order>3) {
90 throw std::string(
Form(
"RooDerivative::ctor(%s) ERROR, derivation order must be 1,2 or 3",
name)) ;
101 _order(other._order),
103 _nset(
"nset",this,other._nset),
104 _func(
"function",this,other._func),
105 _x(
"x",this,other._x),
char * Form(const char *fmt,...)
User class for calculating the derivatives of a function.
double Derivative2(double x)
Returns the second derivative of the function at point x, computed by Richardson's extrapolation meth...
double Derivative3(double x)
Returns the third derivative of the function at point x, computed by Richardson's extrapolation metho...
double Derivative1(double x)
Returns the first derivative of the function at point x, computed by Richardson's extrapolation metho...
Template class to wrap any C++ callable object which takes one argument i.e.
RooAbsCollection is an abstract container object that can hold multiple RooAbsArg objects.
RooAbsReal is the common abstract base class for objects that represent a real value and implements f...
RooFunctor * functor(const RooArgList &obs, const RooArgList &pars=RooArgList(), const RooArgSet &nset=RooArgSet()) const
Return a RooFunctor object bound to this RooAbsReal with given definition of observables and paramete...
RooArgSet is a container object that can hold multiple RooAbsArg objects.
RooDerivative represents the first, second, or third order derivative of any RooAbsReal as calculated...
virtual ~RooDerivative()
Destructor.
ROOT::Math::RichardsonDerivator * _rd
Functor binding of RooAbsReal.
Double_t evaluate() const
Derivator
RooDerivative()
Default constructor.
Bool_t redirectServersHook(const RooAbsCollection &, Bool_t, Bool_t, Bool_t)
Zap functor and derivator ;.
RooRealVar represents a variable that can be changed from the outside.
virtual Bool_t add(const RooAbsArg &var, Bool_t silent=kFALSE) override
Overloaded RooArgSet::add() method inserts 'var' into set and registers 'var' as server to owner with...
double min(const char *rname=0) const
Query lower limit of range. This requires the payload to be RooAbsRealLValue or derived.
double max(const char *rname=0) const
Query upper limit of range. This requires the payload to be RooAbsRealLValue or derived.
const T & arg() const
Return reference to object held in proxy.