16#ifndef ROO_GAUSS_KRONROD_INTEGRATOR_1D
17#define ROO_GAUSS_KRONROD_INTEGRATOR_1D
30 double integral(
const double *yvec =
nullptr)
override;
55 std::vector<double>
_x;
double RooGaussKronrodIntegrator1D_GSL_GlueFunction(double x, void *data)
Abstract interface for evaluating a real-valued function of one real variable and performing numerica...
virtual bool setLimits(double *, double *)
double integral(const double *yvec=nullptr) override
Calculate and return integral.
friend class RooNumIntFactory
double _xmax
! Upper integration bound
RooGaussKronrodIntegrator1D(const RooAbsFunc &function, const RooNumIntConfig &config)
Construct integral on 'function' using given configuration object.
std::vector< double > _x
! do not persist
friend double RooGaussKronrodIntegrator1D_GSL_GlueFunction(double x, void *data)
bool initialize()
Perform one-time initialization of integrator.
bool checkLimits() const override
Check that our integration range is finite and otherwise return false.
double _xmin
! Lower integration bound
bool setUseIntegrandLimits(bool flag) override
Interface function that allows to defer limit definition to integrand definition.
bool setLimits(double *xmin, double *xmax) override
Change our integration limits.
double * xvec(double &xx)
static void registerIntegrator(RooNumIntFactory &fact)
Register RooGaussKronrodIntegrator1D, its parameters and capabilities with RooNumIntConfig.
Holds the configuration parameters of the various numeric integrators used by RooRealIntegral.