Logo ROOT  
Reference Guide
 
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
Loading...
Searching...
No Matches
RooWorkspaceHandle Class Referenceabstract

An interface to set and retrieve a workspace.

This is needed for all generic objects that can be saved in a workspace, which itself depend on the workspace (e.g. the RooStats::ModelConfig). Because of a circular dependency, a workspace with a ModelConfig cannot be (deep) cloned. The handle hides this dependency.

Definition at line 21 of file RooWorkspaceHandle.h.

Public Member Functions

virtual ~RooWorkspaceHandle ()
 
virtual RooWorkspaceGetWS () const =0
 Retrieve the workspace.
 
virtual TClassIsA () const
 
virtual void ReplaceWS (RooWorkspace *ws)=0
 Set the workspace irrespective of what the previous workspace is.
 
virtual void SetWS (RooWorkspace &ws)=0
 Set the workspace. If it exists, it is up to the implementing class to decide how to proceed.
 
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 ()
 

#include <RooWorkspaceHandle.h>

Inheritance diagram for RooWorkspaceHandle:
[legend]

Constructor & Destructor Documentation

◆ ~RooWorkspaceHandle()

virtual RooWorkspaceHandle::~RooWorkspaceHandle ( )
inlinevirtual

Definition at line 23 of file RooWorkspaceHandle.h.

Member Function Documentation

◆ Class()

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

◆ Class_Name()

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

◆ Class_Version()

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

Definition at line 34 of file RooWorkspaceHandle.h.

◆ DeclFileName()

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

Definition at line 34 of file RooWorkspaceHandle.h.

◆ GetWS()

virtual RooWorkspace * RooWorkspaceHandle::GetWS ( ) const
pure virtual

Retrieve the workspace.

Implemented in RooStats::ModelConfig.

◆ IsA()

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

Reimplemented in RooStats::ModelConfig.

Definition at line 34 of file RooWorkspaceHandle.h.

◆ ReplaceWS()

virtual void RooWorkspaceHandle::ReplaceWS ( RooWorkspace * ws)
pure virtual

Set the workspace irrespective of what the previous workspace is.

Implemented in RooStats::ModelConfig.

◆ SetWS()

virtual void RooWorkspaceHandle::SetWS ( RooWorkspace & ws)
pure virtual

Set the workspace. If it exists, it is up to the implementing class to decide how to proceed.

Implemented in RooStats::ModelConfig.

◆ Streamer()

virtual void RooWorkspaceHandle::Streamer ( TBuffer & )
virtual

Reimplemented in RooStats::ModelConfig.

◆ StreamerNVirtual()

void RooWorkspaceHandle::StreamerNVirtual ( TBuffer & ClassDef_StreamerNVirtual_b)
inline

Definition at line 34 of file RooWorkspaceHandle.h.


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