66 _xIntegrator = std::make_unique<RooSegmentedIntegrator1D>(function, config);
119 oocoutE(
nullptr,InputArguments) <<
"RooIntegrator1D::checkLimits: bad range with min >= max" << endl;
125 if (!
_array.empty() && ret) {
128 for (i=0 ; i<
_nseg ; i++) {
Abstract interface for evaluating a real-valued function of one real variable and performing numerica...
virtual double getMaxLimit(UInt_t dimension) const =0
virtual double getMinLimit(UInt_t dimension) const =0
RooAbsIntegrator is the abstract interface for integrators of real-valued functions that implement th...
bool isValid() const
Is integrator in valid state.
const RooAbsFunc * _function
Pointer to function binding of integrand.
const RooAbsFunc * integrand() const
Return integrand function binding.
RooArgSet is a container object that can hold multiple RooAbsArg objects.
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 storeProtoIntegrator(RooAbsIntegrator *proto, const RooArgSet &defConfig, const char *depName="")
Method accepting registration of a prototype numeric integrator along with a RooArgSet of its default...
static constexpr int isInfinite(double x)
Return true if x is infinite by RooNumber internal specification.
std::vector< std::unique_ptr< RooIntegrator1D > > _array
Array of segment integrators.
bool initialize()
One-time integrator initialization.
RooSegmentedIntegrator2D implements an adaptive one-dimensional numerical integration algorithm.
RooSegmentedIntegrator2D()
static void registerIntegrator(RooNumIntFactory &fact)
Register RooSegmentedIntegrator2D, its parameters, dependencies and capabilities with RooNumIntFactor...
std::unique_ptr< RooAbsFunc > _xint
RooAbsIntegrator * clone(const RooAbsFunc &function, const RooNumIntConfig &config) const override
Virtual constructor with given function and configuration. Needed by RooNumIntFactory.
bool checkLimits() const override
Check that our integration range is finite and otherwise return false.
std::unique_ptr< RooSegmentedIntegrator1D > _xIntegrator
~RooSegmentedIntegrator2D() override
virtual const char * GetName() const
Returns name of object.
virtual const char * ClassName() const
Returns name of class to which the object belongs.