Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
RooRealAnalytic Class Reference

Lightweight RooAbsFunc interface adaptor that binds an analytic integral of a RooAbsReal object (specified by a code) to a set of dependent variables.

Definition at line 21 of file RooRealAnalytic.h.

Public Member Functions

 RooRealAnalytic (const RooAbsReal &func, const RooArgSet &vars, Int_t code, const RooArgSet *normSet=nullptr, const TNamed *rangeName=nullptr)
 
 ~RooRealAnalytic () override
 
RooSpan< const doublegetValues (std::vector< RooSpan< const double > > coordinates) const override
 Evaluate the analytic integral of the function at the specified values of the dependents.
 
TClassIsA () const override
 
double operator() (const double xvector[]) const override
 Evaluate our analytic integral at the specified values of the dependents.
 
void Streamer (TBuffer &) override
 
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
 
- Public Member Functions inherited from RooRealBinding
 RooRealBinding (const RooAbsReal &func, const RooArgSet &vars, const RooArgSet *nset=nullptr, bool clipInvalid=false, const TNamed *rangeName=nullptr)
 Construct a lightweight function binding of RooAbsReal func to variables 'vars'.
 
 RooRealBinding (const RooRealBinding &other, const RooArgSet *nset=nullptr)
 Construct a lightweight function binding of RooAbsReal func to variables 'vars'.
 
 ~RooRealBinding () override
 
std::list< double > * binBoundaries (Int_t) const override
 
double getMaxLimit (UInt_t dimension) const override
 Return upper limit on i-th variable.
 
double getMinLimit (UInt_t dimension) const override
 Return lower limit on i-th variable.
 
const char * getName () const override
 Return name of function.
 
RooSpan< const doublegetValuesOfBoundFunction (RooBatchCompute::RunContext &evalData) const
 Evaluate the bound object at all locations indicated by the data in evalData.
 
TClassIsA () const override
 
RooAbsRealLValueobservable (unsigned int i) const
 Return a pointer to the observable that defines the i-th dimension of the function.
 
double operator() (const double xvector[]) const override
 Evaluate the bound RooAbsReal at the variable values provided in xvector.
 
std::list< double > * plotSamplingHint (RooAbsRealLValue &, double, double) const override
 Interface for returning an optional hint for initial sampling points when constructing a curve projected on observable.
 
void restoreXVec () const override
 Restore value of all variables to previously saved values by saveXVec()
 
void saveXVec () const override
 Save value of all variables.
 
void Streamer (TBuffer &) override
 
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
 
- Public Member Functions inherited from RooAbsFunc
 RooAbsFunc (const RooAbsFunc &other)
 
 RooAbsFunc (UInt_t dimension)
 
virtual ~RooAbsFunc ()
 
UInt_t getDimension () const
 
bool isValid () const
 
Int_t numCall () const
 Return number of function calls since last reset.
 
void resetNumCall () const
 Reset function call counter.
 
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
 

Static Public Member Functions

static TClassClass ()
 
static const char * Class_Name ()
 
static constexpr Version_t Class_Version ()
 
static const char * DeclFileName ()
 
- Static Public Member Functions inherited from RooRealBinding
static TClassClass ()
 
static const char * Class_Name ()
 
static constexpr Version_t Class_Version ()
 
static const char * DeclFileName ()
 
- Static Public Member Functions inherited from RooAbsFunc
static TClassClass ()
 
static const char * Class_Name ()
 
static constexpr Version_t Class_Version ()
 
static const char * DeclFileName ()
 

Protected Attributes

Int_t _code
 
- Protected Attributes inherited from RooRealBinding
bool _clipInvalid
 
std::vector< RooAbsReal * > _compList
 !
 
std::vector< double_compSave
 !
 
std::unique_ptr< RooBatchCompute::RunContext_evalData
 Memory for batch evaluations.
 
const RooAbsReal_func
 
double _funcSave
 !
 
const RooArgSet_nset
 
const TNamed_rangeName
 !
 
std::vector< RooAbsRealLValue * > _vars
 Non-owned pointers to variables.
 
std::vector< double_xsave
 
bool _xvecValid
 
- Protected Attributes inherited from RooAbsFunc
UInt_t _dimension
 Number of observables.
 
Int_t _ncall
 Function call counter.
 
bool _valid
 Is binding in valid state?
 

Private Attributes

std::unique_ptr< std::vector< double > > _batchBuffer
 ! Buffer for handing out spans.
 

Additional Inherited Members

- Protected Member Functions inherited from RooRealBinding
void loadValues (const double xvector[]) const
 Load the vector of variable values into the RooRealVars associated as variables with the bound RooAbsReal function.
 

#include <RooRealAnalytic.h>

Inheritance diagram for RooRealAnalytic:
[legend]

Constructor & Destructor Documentation

◆ RooRealAnalytic()

RooRealAnalytic::RooRealAnalytic ( const RooAbsReal func,
const RooArgSet vars,
Int_t  code,
const RooArgSet normSet = nullptr,
const TNamed rangeName = nullptr 
)
inline

Definition at line 23 of file RooRealAnalytic.h.

◆ ~RooRealAnalytic()

RooRealAnalytic::~RooRealAnalytic ( )
inlineoverride

Definition at line 25 of file RooRealAnalytic.h.

Member Function Documentation

◆ Class()

static TClass * RooRealAnalytic::Class ( )
static
Returns
TClass describing this class

◆ Class_Name()

static const char * RooRealAnalytic::Class_Name ( )
static
Returns
Name of this class

◆ Class_Version()

static constexpr Version_t RooRealAnalytic::Class_Version ( )
inlinestaticconstexpr
Returns
Version of this class

Definition at line 36 of file RooRealAnalytic.h.

◆ DeclFileName()

static const char * RooRealAnalytic::DeclFileName ( )
inlinestatic
Returns
Name of the file containing the class declaration

Definition at line 36 of file RooRealAnalytic.h.

◆ getValues()

RooSpan< const double > RooRealAnalytic::getValues ( std::vector< RooSpan< const double > >  coordinates) const
overridevirtual

Evaluate the analytic integral of the function at the specified values of the dependents.

Reimplemented from RooRealBinding.

Definition at line 51 of file RooRealAnalytic.cxx.

◆ IsA()

TClass * RooRealAnalytic::IsA ( ) const
inlineoverridevirtual
Returns
TClass describing current object

Reimplemented from RooAbsFunc.

Definition at line 36 of file RooRealAnalytic.h.

◆ operator()()

double RooRealAnalytic::operator() ( const double  xvector[]) const
overridevirtual

Evaluate our analytic integral at the specified values of the dependents.

Implements RooAbsFunc.

Definition at line 40 of file RooRealAnalytic.cxx.

◆ Streamer()

void RooRealAnalytic::Streamer ( TBuffer )
overridevirtual

Reimplemented from RooAbsFunc.

◆ StreamerNVirtual()

void RooRealAnalytic::StreamerNVirtual ( TBuffer ClassDef_StreamerNVirtual_b)
inline

Definition at line 36 of file RooRealAnalytic.h.

Member Data Documentation

◆ _batchBuffer

std::unique_ptr<std::vector<double> > RooRealAnalytic::_batchBuffer
mutableprivate

! Buffer for handing out spans.

Definition at line 34 of file RooRealAnalytic.h.

◆ _code

Int_t RooRealAnalytic::_code
protected

Definition at line 31 of file RooRealAnalytic.h.

Libraries for RooRealAnalytic:

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