64 _func(
"function",
"function",this,func),
69 if (_order<0 || _order>3 ) {
70 throw std::string(
Form(
"RooDerivative::ctor(%s) ERROR, derivation order must be 1,2 or 3",
name)) ;
81 _func(
"function",
"function",this,func),
86 if (_order<0 || _order>3) {
87 throw std::string(
Form(
"RooDerivative::ctor(%s) ERROR, derivation order must be 1,2 or 3",
name)) ;
100 _nset(
"nset",this,other._nset),
101 _func(
"function",this,other._func),
102 _x(
"x",this,other._x),
char * Form(const char *fmt,...)
Formats a string in a circular formatting buffer.
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.
bool add(const RooAbsArg &var, bool valueServer, bool shapeServer, bool silent)
Overloaded RooCollection_t::add() method insert object into set and registers object as server to own...
RooDerivative represents the first, second, or third order derivative of any RooAbsReal as calculated...
Double_t evaluate() const override
Calculate value.
~RooDerivative() override
Destructor.
ROOT::Math::RichardsonDerivator * _rd
! Derivator
RooFunctor * _ftor
! Functor binding of RooAbsReal
RooDerivative()
Default constructor.
RooSetProxy _nset
Normalization set (optional)
Int_t _order
Derivation order.
RooRealProxy _func
Input function.
RooRealProxy _x
Observable.
Bool_t redirectServersHook(const RooAbsCollection &, Bool_t, Bool_t, Bool_t) override
Zap functor and derivator ;.
RooRealVar represents a variable that can be changed from the outside.
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.