ROOT 6.18/05 Reference Guide |
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 RooWorkspace * | GetWS () 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>
|
inlinevirtual |
Definition at line 23 of file RooWorkspaceHandle.h.
|
pure virtual |
Retrieve the workspace.
Implemented in RooStats::ModelConfig.
|
pure virtual |
Set the workspace irrespective of what the previous workspace is.
Implemented in RooStats::ModelConfig.
|
pure virtual |
Set the workspace. If it exists, it is up to the implementing class to decide how to proceed.
Implemented in RooStats::ModelConfig.