Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
RooAbsCacheElement Class Referenceabstract

RooAbsCacheElement is the abstract base class for objects to be stored in RooAbsCache cache manager objects.

Each storage element has an interface to pass on calls for server redirection, operation mode change calls and constant term optimization management calls

Definition at line 26 of file RooAbsCacheElement.h.

Public Types

enum  Action { OperModeChange , OptimizeCaching , FindConstantNodes }
 

Public Member Functions

 RooAbsCacheElement ()
 
virtual ~RooAbsCacheElement ()
 
virtual RooArgList containedArgs (Action)=0
 
virtual void findConstantNodes (const RooArgSet &obs, RooArgSet &cacheList, RooLinkedList &processedNodes)
 Interface for constant term optimization calls.
 
virtual TClassIsA () const
 
virtual void operModeHook (RooAbsArg::OperMode)
 Interface for changes of operation mode.
 
virtual void optimizeCacheMode (const RooArgSet &obs, RooArgSet &optNodes, RooLinkedList &processedNodes)
 Interface for cache optimization calls.
 
virtual void printCompactTreeHook (std::ostream &, const char *, Int_t curElem, Int_t totElem)
 Hook function to print cache guts in tree printing mode of RooAbsArgs.
 
virtual bool redirectServersHook (const RooAbsCollection &, bool, bool, bool)
 Interface for server redirect calls.
 
void setOwner (RooAbsArg *owner)
 
virtual void Streamer (TBuffer &)
 
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 Attributes

RooAbsArg_owner
 ! Pointer to owning RooAbsArg
 

#include <RooAbsCacheElement.h>

Inheritance diagram for RooAbsCacheElement:
[legend]

Member Enumeration Documentation

◆ Action

Enumerator
OperModeChange 
OptimizeCaching 
FindConstantNodes 

Definition at line 39 of file RooAbsCacheElement.h.

Constructor & Destructor Documentation

◆ RooAbsCacheElement()

RooAbsCacheElement::RooAbsCacheElement ( )
inline

Definition at line 29 of file RooAbsCacheElement.h.

◆ ~RooAbsCacheElement()

virtual RooAbsCacheElement::~RooAbsCacheElement ( )
inlinevirtual

Definition at line 35 of file RooAbsCacheElement.h.

Member Function Documentation

◆ Class()

static TClass * RooAbsCacheElement::Class ( )
static
Returns
TClass describing this class

◆ Class_Name()

static const char * RooAbsCacheElement::Class_Name ( )
static
Returns
Name of this class

◆ Class_Version()

static constexpr Version_t RooAbsCacheElement::Class_Version ( )
inlinestaticconstexpr
Returns
Version of this class

Definition at line 55 of file RooAbsCacheElement.h.

◆ containedArgs()

◆ DeclFileName()

static const char * RooAbsCacheElement::DeclFileName ( )
inlinestatic
Returns
Name of the file containing the class declaration

Definition at line 55 of file RooAbsCacheElement.h.

◆ findConstantNodes()

void RooAbsCacheElement::findConstantNodes ( const RooArgSet obs,
RooArgSet cacheList,
RooLinkedList processedNodes 
)
virtual

Interface for constant term optimization calls.

The default implementation is to forward all these calls to all contained RooAbsArg objects as publicized through containedArg()

Definition at line 75 of file RooAbsCacheElement.cxx.

◆ IsA()

virtual TClass * RooAbsCacheElement::IsA ( ) const
inlinevirtual
Returns
TClass describing current object

Definition at line 55 of file RooAbsCacheElement.h.

◆ operModeHook()

virtual void RooAbsCacheElement::operModeHook ( RooAbsArg::OperMode  )
inlinevirtual

Interface for changes of operation mode.

Reimplemented in RooLagrangianMorphFunc::CacheElem.

Definition at line 42 of file RooAbsCacheElement.h.

◆ optimizeCacheMode()

void RooAbsCacheElement::optimizeCacheMode ( const RooArgSet obs,
RooArgSet optNodes,
RooLinkedList processedNodes 
)
virtual

Interface for cache optimization calls.

The default implementation is to forward all these calls to all contained RooAbsArg objects as publicized through containedArg()

Definition at line 62 of file RooAbsCacheElement.cxx.

◆ printCompactTreeHook()

void RooAbsCacheElement::printCompactTreeHook ( std::ostream &  ,
const char *  ,
Int_t  curElem,
Int_t  totElem 
)
virtual

Hook function to print cache guts in tree printing mode of RooAbsArgs.

Reimplemented in RooAbsCachedPdf::PdfCacheElem, RooAbsCachedReal::FuncCacheElem, RooProdPdf::CacheElem, and RooProjectedPdf::CacheElem.

Definition at line 52 of file RooAbsCacheElement.cxx.

◆ redirectServersHook()

bool RooAbsCacheElement::redirectServersHook ( const RooAbsCollection ,
bool  ,
bool  ,
bool   
)
virtual

Interface for server redirect calls.

Definition at line 41 of file RooAbsCacheElement.cxx.

◆ setOwner()

void RooAbsCacheElement::setOwner ( RooAbsArg owner)
inline

Definition at line 46 of file RooAbsCacheElement.h.

◆ Streamer()

virtual void RooAbsCacheElement::Streamer ( TBuffer )
virtual

◆ StreamerNVirtual()

void RooAbsCacheElement::StreamerNVirtual ( TBuffer ClassDef_StreamerNVirtual_b)
inline

Definition at line 55 of file RooAbsCacheElement.h.

Member Data Documentation

◆ _owner

RooAbsArg* RooAbsCacheElement::_owner
protected

! Pointer to owning RooAbsArg

Definition at line 53 of file RooAbsCacheElement.h.

Libraries for RooAbsCacheElement:

The documentation for this class was generated from the following files: