Common abstract base class for objects that represent a value and a "shape" in RooFit.
void unRegisterCache(RooAbsCache &cache)
Unregister a RooAbsCache. Called from the RooAbsCache destructor.
void registerCache(RooAbsCache &cache)
Register RooAbsCache with this object.
Abstract base class for data members of RooAbsArgs that cache other (composite) RooAbsArg expressions...
void setOwner(RooAbsArg *owner)
Reset the owner, triggering the owner to register this cache in its list of caches.
RooAbsArg * _owner
Pointer to owning RooAbsArg.
RooAbsCache(RooAbsArg *owner=nullptr)
Constructor. Takes owner as argument and register cache with owner.
virtual ~RooAbsCache()
Destructor. Unregisters cache with owner.