53 _clearOnRedirect(clearCacheOnServerRedirect),
54 _allowOptimize(allowOptimize),
56 _optCacheObservables(0)
66 _clearOnRedirect(other._clearOnRedirect),
67 _allowOptimize(other._allowOptimize),
69 _optCacheObservables(0)
100 _object[i]->redirectServersHook(newServerList,mustReplaceAll,nameChange,isRecursive) ;
150 _object[i]->optimizeCacheMode(obs,optNodes,processedNodes) ;
223 _object[i]->findConstantNodes(obs,cacheList, processedNodes) ;
virtual void findConstantNodes(const RooArgSet &, RooArgSet &, RooLinkedList &)
If clearOnRedirect is false, forward constant term optimization calls to cache elements.
virtual Bool_t redirectServersHook(const RooAbsCollection &, Bool_t, Bool_t, Bool_t)
Intercept server redirect calls.
RooObjCacheManager(RooAbsArg *owner=0, Int_t maxSize=2, Bool_t clearCacheOnServerRedirect=kTRUE, Bool_t allowOptimize=kFALSE)
Constructor of object cache manager for given owner.
virtual ~RooObjCacheManager()
Destructor.
virtual void printCompactTreeHook(std::ostream &, const char *)
Add details on cache contents when printing in tree mode.
virtual void removeAll()
Remove all arguments from our set, deleting them if we own them.
virtual void operModeHook()
Intercept changes to cache operation mode and forward to cache elements.
virtual void insertObjectHook(RooAbsCacheElement &)
Set owner link on all object inserted into cache.
ClassImp(RooObjCacheManager)
virtual const char * GetName() const
Returns name of object.
static void indent(ostringstream &buf, int indent_level)
virtual void optimizeCacheMode(const RooArgSet &obs, RooArgSet &optNodes, RooLinkedList &processedNodes)
Interface for cache optimization calls.
RooArgSet * _optCacheObservables
static Bool_t _clearObsList
current optCacheObservables
void setOwner(RooAbsArg *owner)
OperMode operMode() const
virtual void optimizeCacheMode(const RooArgSet &, RooArgSet &, RooLinkedList &)
Intercept calls to perform automatic optimization of cache mode operation.
RooAbsArg is the common abstract base class for objects that represent a value (of arbitrary type) an...
std::vector< RooAbsCacheElement * > _object
Normalization/Integration set manager.
virtual Bool_t add(const RooAbsArg &var, Bool_t silent=kFALSE)
Add element to non-owning set.