Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
RooAbsIntegrator Class Referenceabstract

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 RooAbsFuncintegrand () 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>

Inheritance diagram for RooAbsIntegrator:
[legend]

Constructor & Destructor Documentation

◆ RooAbsIntegrator() [1/2]

RooAbsIntegrator::RooAbsIntegrator ( )
default

◆ RooAbsIntegrator() [2/2]

RooAbsIntegrator::RooAbsIntegrator ( const RooAbsFunc function,
bool  printEvalCounter = false 
)

Copy constructor.

Definition at line 39 of file RooAbsIntegrator.cxx.

◆ ~RooAbsIntegrator()

virtual RooAbsIntegrator::~RooAbsIntegrator ( )
virtualdefault

Member Function Documentation

◆ calculate()

double RooAbsIntegrator::calculate ( const double yvec = nullptr)

Calculate integral value with given array of parameter values.

Definition at line 49 of file RooAbsIntegrator.cxx.

◆ checkLimits()

virtual bool RooAbsIntegrator::checkLimits ( ) const
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.

◆ integral()

◆ integrand() [1/2]

const RooAbsFunc * RooAbsIntegrator::integrand ( ) const
inline

Return integrand function binding.

Definition at line 39 of file RooAbsIntegrator.h.

◆ integrand() [2/2]

double RooAbsIntegrator::integrand ( const double  x[]) const
inline

Return value of integrand at given observable values.

Definition at line 34 of file RooAbsIntegrator.h.

◆ isValid()

bool RooAbsIntegrator::isValid ( ) const
inline

Is integrator in valid state.

Definition at line 29 of file RooAbsIntegrator.h.

◆ printEvalCounter()

bool RooAbsIntegrator::printEvalCounter ( ) const
inline

Definition at line 51 of file RooAbsIntegrator.h.

◆ setLimits() [1/2]

◆ setLimits() [2/2]

bool RooAbsIntegrator::setLimits ( double  xmin,
double  xmax 
)
virtual

◆ setPrintEvalCounter()

void RooAbsIntegrator::setPrintEvalCounter ( bool  value)
inline

Definition at line 52 of file RooAbsIntegrator.h.

◆ setUseIntegrandLimits()

bool RooAbsIntegrator::setUseIntegrandLimits ( bool  flag)
virtual

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.

Member Data Documentation

◆ _function

const RooAbsFunc* RooAbsIntegrator::_function = nullptr
protected

Pointer to function binding of integrand.

Definition at line 60 of file RooAbsIntegrator.h.

◆ _printEvalCounter

bool RooAbsIntegrator::_printEvalCounter = false
protected

If true print number of function evaluation required for integration.

Definition at line 62 of file RooAbsIntegrator.h.

◆ _valid

bool RooAbsIntegrator::_valid = false
protected

Is integrator in valid state?

Definition at line 61 of file RooAbsIntegrator.h.

Libraries for RooAbsIntegrator:

The documentation for this class was generated from the following files: