Logo ROOT   6.18/05
Reference Guide
List of all members | Public Member Functions | List of all members
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. More...
 
virtual void ReplaceWS (RooWorkspace *ws)=0
 Set the workspace irrespective of what the previous workspace is. More...
 
virtual void SetWS (RooWorkspace &ws)=0
 Set the workspace. If it exists, it is up to the implementing class to decide how to proceed. More...
 

#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

◆ GetWS()

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

Retrieve the workspace.

Implemented in RooStats::ModelConfig.

◆ 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.


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