Abstract interface for integrators of real-valued functions that implement the RooAbsFunc interface.
Definition at line 22 of file RooAbsIntegrator.h.
Public Member Functions | |
RooAbsIntegrator () | |
RooAbsIntegrator (const RooAbsFunc &function, bool printEvalCounter=false) | |
Copy constructor. | |
virtual | ~RooAbsIntegrator ()=default |
double | calculate (const double *yvec=nullptr) |
Calculate integral value with given array of parameter values. | |
virtual bool | checkLimits () const |
If true, finite limits are required on the observable range. | |
virtual double | integral (const double *yvec=nullptr)=0 |
const RooAbsFunc * | integrand () const |
Return integrand function binding. | |
double | integrand (const double x[]) const |
Return value of integrand at given observable values. | |
bool | isValid () const |
Is integrator in valid state. | |
bool | printEvalCounter () const |
virtual bool | setLimits (double *, double *) |
virtual bool | setLimits (double xmin, double xmax) |
Interface to set limits on integration. | |
void | setPrintEvalCounter (bool value) |
virtual bool | setUseIntegrandLimits (bool flag) |
Interface function that allows to defer limit definition to integrand definition. | |
Protected Attributes | |
const RooAbsFunc * | _function = nullptr |
Pointer to function binding of integrand. | |
bool | _printEvalCounter = false |
If true print number of function evaluation required for integration. | |
bool | _valid = false |
Is integrator in valid state? | |
#include <RooAbsIntegrator.h>
|
default |
RooAbsIntegrator::RooAbsIntegrator | ( | const RooAbsFunc & | function, |
bool | printEvalCounter = false |
||
) |
Copy constructor.
Definition at line 39 of file RooAbsIntegrator.cxx.
|
virtualdefault |
Calculate integral value with given array of parameter values.
Definition at line 49 of file RooAbsIntegrator.cxx.
|
inlinevirtual |
If true, finite limits are required on the observable range.
Reimplemented in RooAdaptiveIntegratorND, RooBinIntegrator, RooImproperIntegrator1D, RooMCIntegrator, RooRombergIntegrator, RooAdaptiveGaussKronrodIntegrator1D, and RooGaussKronrodIntegrator1D.
Definition at line 44 of file RooAbsIntegrator.h.
|
inline |
Return integrand function binding.
Definition at line 39 of file RooAbsIntegrator.h.
Return value of integrand at given observable values.
Definition at line 34 of file RooAbsIntegrator.h.
|
inline |
Is integrator in valid state.
Definition at line 29 of file RooAbsIntegrator.h.
|
inline |
Definition at line 51 of file RooAbsIntegrator.h.
Reimplemented in RooAdaptiveIntegratorND, RooBinIntegrator, RooImproperIntegrator1D, RooRombergIntegrator, RooAdaptiveGaussKronrodIntegrator1D, RooGaussKronrodIntegrator1D, RooAdaptiveIntegratorND, RooBinIntegrator, RooImproperIntegrator1D, RooRombergIntegrator, RooAdaptiveGaussKronrodIntegrator1D, and RooGaussKronrodIntegrator1D.
Definition at line 54 of file RooAbsIntegrator.h.
Interface to set limits on integration.
Reimplemented in RooAdaptiveIntegratorND, RooBinIntegrator, RooImproperIntegrator1D, RooRombergIntegrator, RooAdaptiveGaussKronrodIntegrator1D, and RooGaussKronrodIntegrator1D.
Definition at line 66 of file RooAbsIntegrator.cxx.
|
inline |
Definition at line 52 of file RooAbsIntegrator.h.
Interface function that allows to defer limit definition to integrand definition.
Reimplemented in RooAdaptiveIntegratorND, RooBinIntegrator, RooImproperIntegrator1D, RooRombergIntegrator, RooAdaptiveGaussKronrodIntegrator1D, and RooGaussKronrodIntegrator1D.
Definition at line 76 of file RooAbsIntegrator.cxx.
|
protected |
Pointer to function binding of integrand.
Definition at line 60 of file RooAbsIntegrator.h.
|
protected |
If true print number of function evaluation required for integration.
Definition at line 62 of file RooAbsIntegrator.h.
|
protected |
Is integrator in valid state?
Definition at line 61 of file RooAbsIntegrator.h.