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. | |
| TClass * | IsA () const override |
| void | Streamer (TBuffer &) override |
| void | StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b) |
Static Public Member Functions | |
| static TClass * | Class () |
| static const char * | Class_Name () |
| static constexpr Version_t | Class_Version () |
| static const char * | DeclFileName () |
Protected Member Functions | |
| RooFit::OwningPtr< RooArgSet > | actualObservables (const RooArgSet &) const |
| RooFit::OwningPtr< RooArgSet > | actualObservables (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< RooArgSet > | actualParameters (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>
|
inline |
Definition at line 44 of file RooAbsSelfCachedReal.h.
|
inline |
Constructor.
Definition at line 46 of file RooAbsSelfCachedReal.h.
|
inline |
Copy constructor.
Definition at line 49 of file RooAbsSelfCachedReal.h.
|
inlineprotected |
Definition at line 112 of file RooAbsSelfCachedReal.h.
|
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.
|
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.
|
inlinestaticconstexpr |
Definition at line 62 of file RooAbsSelfCachedReal.h.
|
inlinestatic |
Definition at line 62 of file RooAbsSelfCachedReal.h.
|
overrideprotected |
Fill cache with sampling of function as defined by the evaluate() implementation.
Definition at line 72 of file RooAbsSelfCachedReal.h.
|
inlineoverrideprotected |
Definition at line 52 of file RooAbsSelfCachedReal.h.
|
inlineoverride |
Definition at line 62 of file RooAbsSelfCachedReal.h.
|
override |
|
inline |
Definition at line 62 of file RooAbsSelfCachedReal.h.