Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
RooAbsSelfCached< Base_t > Class Template Reference

template<class Base_t>
class RooAbsSelfCached< Base_t >

Abstract base class for functions whose output is cached in terms of a histogram in all observables between getVal() and evaluate().

For certain p.d.f.s that are very expensive to calculate it may be beneficial to implement them as a RooAbsSelfCached rather than a RooAbsReal/Pdf. Class RooAbsSelfCached is designed to have its interface identical to that of RooAbsReal/Pdf, so any p.d.f can make use of its caching functionality by merely switching its base class. Existing RooAbsReal/Pdf objects can also be cached a posteriori with the RooCachedReal/Pdf wrapper function that takes any RooAbsReal/Pdf object as input.

Definition at line 42 of file RooAbsSelfCachedReal.h.

Public Member Functions

 RooAbsSelfCached ()
 
 RooAbsSelfCached (const char *name, const char *title, int ipOrder=0)
 Constructor.
 
 RooAbsSelfCached (const RooAbsSelfCached &other, const char *name=nullptr)
 Copy constructor.
 
TClassIsA () const override
 
void Streamer (TBuffer &) override
 
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 ()
 

Protected Member Functions

RooFit::OwningPtr< RooArgSetactualObservables (const RooArgSet &) const
 
RooFit::OwningPtr< RooArgSetactualObservables (const RooArgSet &nset) const override
 Defines observables to be cached, given a set of user defined observables Returns the subset of nset that are observables this p.d.f.
 
RooFit::OwningPtr< RooArgSetactualParameters (const RooArgSet &nset) const override
 Defines parameters on which cache contents depends.
 
void fillCacheObject (typename Base_t::CacheElem &cache) const override
 Fill cache with sampling of function as defined by the evaluate() implementation.
 
const char * inputBaseName () const override
 

#include <RooAbsSelfCachedReal.h>

Inheritance diagram for RooAbsSelfCached< Base_t >:
[legend]

Constructor & Destructor Documentation

◆ RooAbsSelfCached() [1/3]

template<class Base_t >
RooAbsSelfCached< Base_t >::RooAbsSelfCached ( )
inline

Definition at line 44 of file RooAbsSelfCachedReal.h.

◆ RooAbsSelfCached() [2/3]

template<class Base_t >
RooAbsSelfCached< Base_t >::RooAbsSelfCached ( const char *  name,
const char *  title,
int  ipOrder = 0 
)
inline

Constructor.

Definition at line 46 of file RooAbsSelfCachedReal.h.

◆ RooAbsSelfCached() [3/3]

template<class Base_t >
RooAbsSelfCached< Base_t >::RooAbsSelfCached ( const RooAbsSelfCached< Base_t > &  other,
const char *  name = nullptr 
)
inline

Copy constructor.

Definition at line 49 of file RooAbsSelfCachedReal.h.

Member Function Documentation

◆ actualObservables() [1/2]

RooFit::OwningPtr< RooArgSet > RooAbsSelfCached< RooAbsCachedPdf >::actualObservables ( const RooArgSet ) const
inlineprotected

Definition at line 112 of file RooAbsSelfCachedReal.h.

◆ actualObservables() [2/2]

template<class Base_t >
RooFit::OwningPtr< RooArgSet > RooAbsSelfCached< Base_t >::actualObservables ( const RooArgSet nset) const
overrideprotected

Defines observables to be cached, given a set of user defined observables Returns the subset of nset that are observables this p.d.f.

Definition at line 98 of file RooAbsSelfCachedReal.h.

◆ actualParameters()

template<class Base_t >
RooFit::OwningPtr< RooArgSet > RooAbsSelfCached< Base_t >::actualParameters ( const RooArgSet nset) const
overrideprotected

Defines parameters on which cache contents depends.

Returns subset of variables of self that is not contained in the supplied nset

Definition at line 134 of file RooAbsSelfCachedReal.h.

◆ Class()

template<class Base_t >
static TClass * RooAbsSelfCached< Base_t >::Class ( )
static
Returns
TClass describing this class

◆ Class_Name()

template<class Base_t >
static const char * RooAbsSelfCached< Base_t >::Class_Name ( )
static
Returns
Name of this class

◆ Class_Version()

template<class Base_t >
static constexpr Version_t RooAbsSelfCached< Base_t >::Class_Version ( )
inlinestaticconstexpr
Returns
Version of this class

Definition at line 62 of file RooAbsSelfCachedReal.h.

◆ DeclFileName()

template<class Base_t >
static const char * RooAbsSelfCached< Base_t >::DeclFileName ( )
inlinestatic
Returns
Name of the file containing the class declaration

Definition at line 62 of file RooAbsSelfCachedReal.h.

◆ fillCacheObject()

template<class Base_t >
void RooAbsSelfCached< Base_t >::fillCacheObject ( typename Base_t::CacheElem &  cache) const
overrideprotected

Fill cache with sampling of function as defined by the evaluate() implementation.

Definition at line 72 of file RooAbsSelfCachedReal.h.

◆ inputBaseName()

template<class Base_t >
const char * RooAbsSelfCached< Base_t >::inputBaseName ( ) const
inlineoverrideprotected

Definition at line 52 of file RooAbsSelfCachedReal.h.

◆ IsA()

template<class Base_t >
TClass * RooAbsSelfCached< Base_t >::IsA ( ) const
inlineoverride
Returns
TClass describing current object

Definition at line 62 of file RooAbsSelfCachedReal.h.

◆ Streamer()

template<class Base_t >
void RooAbsSelfCached< Base_t >::Streamer ( TBuffer )
override

◆ StreamerNVirtual()

template<class Base_t >
void RooAbsSelfCached< Base_t >::StreamerNVirtual ( TBuffer ClassDef_StreamerNVirtual_b)
inline

Definition at line 62 of file RooAbsSelfCachedReal.h.

  • roofit/roofitcore/inc/RooAbsSelfCachedReal.h