ATLAS Offline Software
|
A light-weight replacement for ToolSvc for ROOT analysis. More...
#include <ToolStore.h>
Static Public Member Functions | |
static StatusCode | put (IAsgTool *ptool) |
Store a named tool by its name. More... | |
static IAsgTool * | get (const std::string &name, bool silent=false) |
Retrieve a tool by name. More... | |
template<typename T > | |
static T * | get (const std::string &name) |
Retrieve a tool by name and interface. More... | |
template<typename T > | |
static bool | contains (const std::string &name) |
Check whether a tool with a given type and name is known in the store. More... | |
static StatusCode | remove (const IAsgTool *tool) |
Remove the specified tool from the store. More... | |
static StatusCode | remove (const std::string &name) |
Remove a tool with a given name from the store. More... | |
A light-weight replacement for ToolSvc for ROOT analysis.
In order to allow tools to find each other through ToolHandles, just like in Athena, we need a global registry of all of the tools that the user instantiates in his/her job.
This class does exactly this. All created dual-use tools register themselves in it, so that other components could later on find them.
Definition at line 32 of file ToolStore.h.
|
inlinestatic |
Check whether a tool with a given type and name is known in the store.
Definition at line 52 of file ToolStore.h.
|
inlinestatic |
Retrieve a tool by name and interface.
Definition at line 45 of file ToolStore.h.
|
static |
Store a named tool by its name.
The name must be non-blank and not already exist in the store.
Definition at line 28 of file ToolStore.cxx.
Remove the specified tool from the store.
Definition at line 77 of file ToolStore.cxx.
|
static |