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. | |
virtual TClass * | IsA () 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 TClass * | Class () |
static const char * | Class_Name () |
static constexpr Version_t | Class_Version () |
static const char * | DeclFileName () |
#include <RooWorkspaceHandle.h>
|
inlinevirtual |
Definition at line 23 of file RooWorkspaceHandle.h.
|
static |
|
inlinestaticconstexpr |
Definition at line 34 of file RooWorkspaceHandle.h.
|
inlinestatic |
Definition at line 34 of file RooWorkspaceHandle.h.
|
pure virtual |
Retrieve the workspace.
Implemented in RooStats::ModelConfig.
|
inlinevirtual |
Reimplemented in RooStats::ModelConfig.
Definition at line 34 of file RooWorkspaceHandle.h.
|
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.
|
virtual |
Reimplemented in RooStats::ModelConfig.
|
inline |
Definition at line 34 of file RooWorkspaceHandle.h.