#include <RooExpensiveObjectCache.h>
Inheritance diagram for RooExpensiveObjectCache:
Public Member Functions | |
RooExpensiveObjectCache () | |
RooExpensiveObjectCache (const RooExpensiveObjectCache &) | |
virtual | ~RooExpensiveObjectCache () |
Bool_t | registerObject (const char *ownerName, const char *objectName, TObject &cacheObject, TIterator *paramIter) |
Bool_t | registerObject (const char *ownerName, const char *objectName, TObject &cacheObject, const RooArgSet ¶ms) |
const TObject * | retrieveObject (const char *name, TClass *tclass, const RooArgSet ¶ms) |
const TObject * | getObj (Int_t uniqueID) |
Bool_t | clearObj (Int_t uniqueID) |
Bool_t | setObj (Int_t uniqueID, TObject *obj) |
void | clearAll () |
void | importCacheObjects (RooExpensiveObjectCache &other, const char *ownerName, Bool_t verbose=kFALSE) |
Int_t | size () const |
void | print () const |
RooExpensiveObjectCache () | |
RooExpensiveObjectCache (const RooExpensiveObjectCache &) | |
virtual | ~RooExpensiveObjectCache () |
Bool_t | registerObject (const char *ownerName, const char *objectName, TObject &cacheObject, TIterator *paramIter) |
Bool_t | registerObject (const char *ownerName, const char *objectName, TObject &cacheObject, const RooArgSet ¶ms) |
const TObject * | retrieveObject (const char *name, TClass *tclass, const RooArgSet ¶ms) |
const TObject * | getObj (Int_t uniqueID) |
Bool_t | clearObj (Int_t uniqueID) |
Bool_t | setObj (Int_t uniqueID, TObject *obj) |
void | clearAll () |
void | importCacheObjects (RooExpensiveObjectCache &other, const char *ownerName, Bool_t verbose=kFALSE) |
Int_t | size () const |
void | print () const |
Static Public Member Functions | |
static RooExpensiveObjectCache & | instance () |
static void | cleanup () |
static RooExpensiveObjectCache & | instance () |
static void | cleanup () |
Protected Attributes | |
Int_t | _nextUID |
std::map< TString, ExpensiveObject * > | _map |
std::map< TString, ExpensiveObject * > | _map |
Static Protected Attributes | |
static RooExpensiveObjectCache * | _instance |
static RooExpensiveObjectCache * | _instance |
Classes | |
class | ExpensiveObject |
Definition at line 25 of file RooExpensiveObjectCache.h.
RooExpensiveObjectCache::RooExpensiveObjectCache | ( | ) |
RooExpensiveObjectCache::RooExpensiveObjectCache | ( | const RooExpensiveObjectCache & | ) |
Definition at line 59 of file RooExpensiveObjectCache.cxx.
RooExpensiveObjectCache::~RooExpensiveObjectCache | ( | ) | [virtual] |
RooExpensiveObjectCache::RooExpensiveObjectCache | ( | ) |
RooExpensiveObjectCache::RooExpensiveObjectCache | ( | const RooExpensiveObjectCache & | ) |
virtual RooExpensiveObjectCache::~RooExpensiveObjectCache | ( | ) | [virtual] |
Bool_t RooExpensiveObjectCache::registerObject | ( | const char * | ownerName, | |
const char * | objectName, | |||
TObject & | cacheObject, | |||
TIterator * | paramIter | |||
) |
Definition at line 127 of file RooExpensiveObjectCache.cxx.
References _map, _nextUID, kFALSE, and RooExpensiveObjectCache::ExpensiveObject::uid().
Referenced by RooRealIntegral::evaluate(), RooAbsCachedPdf::getCache(), RooAbsCachedReal::getCache(), and registerObject().
Bool_t RooExpensiveObjectCache::registerObject | ( | const char * | ownerName, | |
const char * | objectName, | |||
TObject & | cacheObject, | |||
const RooArgSet & | params | |||
) |
Definition at line 110 of file RooExpensiveObjectCache.cxx.
References params, and registerObject().
const TObject * RooExpensiveObjectCache::retrieveObject | ( | const char * | name, | |
TClass * | tclass, | |||
const RooArgSet & | params | |||
) |
Definition at line 150 of file RooExpensiveObjectCache.cxx.
References _map, RooExpensiveObjectCache::ExpensiveObject::matches(), params, and RooExpensiveObjectCache::ExpensiveObject::payload().
Referenced by RooRealIntegral::evaluate(), RooAbsCachedPdf::getCache(), and RooAbsCachedReal::getCache().
void RooExpensiveObjectCache::clearAll | ( | ) |
void RooExpensiveObjectCache::importCacheObjects | ( | RooExpensiveObjectCache & | other, | |
const char * | ownerName, | |||
Bool_t | verbose = kFALSE | |||
) |
Definition at line 360 of file RooExpensiveObjectCache.cxx.
References _map, _nextUID, RooFit::Caching, and oocoutI.
Referenced by RooWorkspace::import().
RooExpensiveObjectCache & RooExpensiveObjectCache::instance | ( | ) | [static] |
Definition at line 85 of file RooExpensiveObjectCache.cxx.
References _instance, RooSentinel::activate(), and RooExpensiveObjectCache().
Referenced by RooAbsArg::expensiveObjectCache(), G__G__RooFitCore3_147_0_11(), and G__setup_memfuncRooExpensiveObjectCache().
Int_t RooExpensiveObjectCache::size | ( | ) | const [inline] |
Definition at line 45 of file RooExpensiveObjectCache.h.
References _map.
Referenced by RooWorkspace::Print().
void RooExpensiveObjectCache::cleanup | ( | ) | [static] |
Definition at line 100 of file RooExpensiveObjectCache.cxx.
References _instance.
Referenced by CleanUpRooFitAtExit(), G__G__RooFitCore3_147_0_13(), and G__setup_memfuncRooExpensiveObjectCache().
void RooExpensiveObjectCache::print | ( | ) | const |
Definition at line 322 of file RooExpensiveObjectCache.cxx.
References _map.
Referenced by RooWorkspace::Print().
Bool_t RooExpensiveObjectCache::registerObject | ( | const char * | ownerName, | |
const char * | objectName, | |||
TObject & | cacheObject, | |||
TIterator * | paramIter | |||
) |
Bool_t RooExpensiveObjectCache::registerObject | ( | const char * | ownerName, | |
const char * | objectName, | |||
TObject & | cacheObject, | |||
const RooArgSet & | params | |||
) |
const TObject* RooExpensiveObjectCache::retrieveObject | ( | const char * | name, | |
TClass * | tclass, | |||
const RooArgSet & | params | |||
) |
void RooExpensiveObjectCache::clearAll | ( | ) |
void RooExpensiveObjectCache::importCacheObjects | ( | RooExpensiveObjectCache & | other, | |
const char * | ownerName, | |||
Bool_t | verbose = kFALSE | |||
) |
static RooExpensiveObjectCache& RooExpensiveObjectCache::instance | ( | ) | [static] |
Int_t RooExpensiveObjectCache::size | ( | ) | const [inline] |
static void RooExpensiveObjectCache::cleanup | ( | ) | [static] |
void RooExpensiveObjectCache::print | ( | ) | const |
Int_t RooExpensiveObjectCache::_nextUID [protected] |
Definition at line 81 of file RooExpensiveObjectCache.h.
Referenced by importCacheObjects(), and registerObject().
RooExpensiveObjectCache* RooExpensiveObjectCache::_instance [static, protected] |
Definition at line 83 of file RooExpensiveObjectCache.h.
Referenced by cleanup(), instance(), and ~RooExpensiveObjectCache().
std::map<TString,ExpensiveObject*> RooExpensiveObjectCache::_map [protected] |
Definition at line 85 of file RooExpensiveObjectCache.h.
Referenced by clearAll(), clearObj(), getObj(), importCacheObjects(), print(), registerObject(), retrieveObject(), setObj(), size(), and ~RooExpensiveObjectCache().
RooExpensiveObjectCache* RooExpensiveObjectCache::_instance [static, protected] |
Definition at line 83 of file RooExpensiveObjectCache.h.
std::map<TString,ExpensiveObject*> RooExpensiveObjectCache::_map [protected] |
Definition at line 85 of file RooExpensiveObjectCache.h.