55 RooRealVar maxEval2D(
"maxEval2D",
"Max number of function evaluations for 2-dim integrals",100000) ;
56 RooRealVar maxEval3D(
"maxEval3D",
"Max number of function evaluations for 3-dim integrals",1000000) ;
57 RooRealVar maxEvalND(
"maxEvalND",
"Max number of function evaluations for >3-dim integrals",10000000) ;
58 RooRealVar maxWarn(
"maxWarn",
"Max number of warnings on precision not reached that is printed",5) ;
97 case 1:
throw string(
Form(
"RooAdaptiveIntegratorND::ctor ERROR dimension of function must be at least 2")) ;
143 <<
") WARNING: Number of suppressed warningings about integral evaluations where target precision was not reached is " <<
_nError-
_nWarn << endl ;
208 <<
") Further warnings on target precision are suppressed conform specification in integrator specification" << endl ;
char * Form(const char *fmt,...)
Formats a string in a circular formatting buffer.
Class for adaptive quadrature integration in multi-dimensions using rectangular regions.
int Status() const override
return status of integration
double Integral(const double *xmin, const double *xmax) override
evaluate the integral with the previously given function between xmin[] and xmax[]
void SetFunction(const IMultiGenFunction &f) override
set the integration function (must implement multi-dim function interface: IBaseFunctionMultiDim)
double RelError() const
return relative error
Double_t getRealValue(const char *name, Double_t defVal=0, Bool_t verbose=kFALSE) const
Get value of a RooAbsReal stored in set with given name.
Abstract interface for evaluating a real-valued function of one real variable and performing numerica...
virtual Double_t getMinLimit(UInt_t dimension) const =0
virtual Double_t getMaxLimit(UInt_t dimension) const =0
virtual const char * getName() const
Name of function binding.
RooAbsIntegrator is the abstract interface for integrators of real-valued functions that implement th...
const RooAbsFunc * integrand() const
Return integrand function binding.
RooAdaptiveIntegratorND implements an adaptive one-dimensional numerical integration algorithm.
Int_t _nmax
Max number of divisions.
RooAdaptiveIntegratorND()
Default ctor.
RooAbsIntegrator * clone(const RooAbsFunc &function, const RooNumIntConfig &config) const override
Virtual constructor with given function and configuration. Needed by RooNumIntFactory.
Bool_t _useIntegrandLimits
If true limits of function binding are used.
TString _intName
Integrand name.
Double_t * _xmin
Lower bound in each dimension.
Double_t _epsAbs
Absolute precision.
~RooAdaptiveIntegratorND() override
Destructor.
Double_t * _xmax
Upper bound in each dimension.
Bool_t checkLimits() const override
Check that our integration range is finite and otherwise return kFALSE.
static void registerIntegrator(RooNumIntFactory &fact)
Register RooAdaptiveIntegratorND, its parameters, dependencies and capabilities with RooNumIntFactory...
RooMultiGenFunction * _func
! ROOT::Math multi-parameter function binding
Int_t _nError
Number of error occurrences.
Double_t integral(const Double_t *yvec=0) override
Evaluate integral at given function binding parameter values.
Bool_t setLimits(Double_t *xmin, Double_t *xmax) override
Change our integration limits.
ROOT::Math::AdaptiveIntegratorMultiDim * _integrator
Int_t _nWarn
Max number of warnings to be issued ;.
Double_t _epsRel
Relative precision.
RooArgSet is a container object that can hold multiple RooAbsArg objects.
Lightweight interface adaptor that exports a RooAbsReal as a ROOT::Math::IMultiGenFunction.
unsigned int NDim() const override
Retrieve the dimension of the function.
RooNumIntConfig holds the configuration parameters of the various numeric integrators used by RooReal...
const RooArgSet & getConfigSection(const char *name) const
Retrieve configuration information specific to integrator with given name.
RooNumIntFactory is a factory to instantiate numeric integrators from a given function binding and a ...
Bool_t storeProtoIntegrator(RooAbsIntegrator *proto, const RooArgSet &defConfig, const char *depName="")
Method accepting registration of a prototype numeric integrator along with a RooArgSet of its default...
RooRealVar represents a variable that can be changed from the outside.
Mother of all ROOT objects.
void function(const Char_t *name_, T fun, const Char_t *docstring=0)