16#ifndef ROO_BIN_INTEGRATOR
17#define ROO_BIN_INTEGRATOR
41 double integral(
const double *yvec=
nullptr)
override ;
59 mutable std::vector<double>
_xmin;
60 mutable std::vector<double>
_xmax;
61 std::vector<std::vector<double>>
_binb;
66 std::unique_ptr<RooBatchCompute::RunContext>
_evalData;
69 double*
xvec(
double xx) {
_x[0] = xx ;
return _x.data(); }
70 double*
xvec(
double xx,
double yy) {
_x[0] = xx ;
_x[1] = yy ;
return _x.data(); }
71 double*
xvec(
double xx,
double yy,
double zz) {
_x[0] = xx ;
_x[1] = yy ;
_x[2] = zz ;
return _x.data(); }
73 std::vector<double>
_x ;
#define ClassDefOverride(name, id)
Abstract interface for evaluating a real-valued function of one real variable and performing numerica...
RooAbsIntegrator is the abstract interface for integrators of real-valued functions that implement th...
virtual bool setLimits(double *, double *)
RooBinIntegrator computes the integral over a binned distribution by summing the bin contents of all ...
double * xvec(double xx, double yy)
std::vector< double > _xmax
! Upper integration bound
RooAbsIntegrator * clone(const RooAbsFunc &function, const RooNumIntConfig &config) const override
Clone integrator with new function binding and configuration. Needed by RooNumIntFactory.
static void registerIntegrator(RooNumIntFactory &fact)
Register RooBinIntegrator, is parameters and capabilities with RooNumIntFactory.
RooBinIntegrator(const RooBinIntegrator &)
double * xvec(double xx, double yy, double zz)
Int_t _numBins
! Size of integration range
bool setLimits(double *xmin, double *xmax) override
Change our integration limits.
bool canIntegrateOpenEnded() const override
bool canIntegrate2D() const override
std::vector< std::vector< double > > _binb
! list of bin boundaries
bool canIntegrate1D() const override
std::vector< double > _xmin
! Lower integration bound
std::unique_ptr< RooBatchCompute::RunContext > _evalDataOrig
! Run context to save bin centres in between invocations.
std::vector< double > _x
! do not persist
bool _useIntegrandLimits
If true limits of function binding are ued.
bool canIntegrateND() const override
RooBinIntegrator()
Default constructor.
bool checkLimits() const override
Check that our integration range is finite and otherwise return false.
std::unique_ptr< RooBatchCompute::RunContext > _evalData
! Run context for evaluating a function.
double integral(const double *yvec=nullptr) override
Calculate numeric integral at given set of function binding parameters.
~RooBinIntegrator() override
Destructor.
bool setUseIntegrandLimits(bool flag) override
Interface function that allows to defer limit definition to integrand definition.
RooNumIntConfig holds the configuration parameters of the various numeric integrators used by RooReal...
RooNumIntFactory is a factory to instantiate numeric integrators from a given function binding and a ...
Namespace for dispatching RooFit computations to various backends.