asg::ToolStore Class Reference

#include <ToolStore.h>

List of all members.

Static Public Member Functions

static StatusCode put (IAsgTool *ptool)
static StatusCode put (IAsgTool *ptool, const std::string &name)
static IAsgToolget (const std::string &name, bool silent=false)
 Retrieve a tool by name.
template<typename T >
static Tget (const std::string &name)
 Retrieve a tool by name and interface.
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.
static StatusCode remove (const IAsgTool *tool)
 Remove the specified tool from the store.
static StatusCode remove (const std::string &name)
 Remove a tool with a given name from the store.

Detailed Description

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.

Author:
David Adams <dladams@bnl.gov>
Attila Krasznahorkay <Attila.Krasznahorkay@cern.ch>
Revision
671353
Date
2015-06-01 15:33:51 +0200 (Mon, 01 Jun 2015)

Member Function Documentation

StatusCode asg::ToolStore::put ( IAsgTool ptool,
const std::string &  name 
) [static]

Store a tool by an alternate name. The name must be non-blank and not already exist in the store.

StatusCode asg::ToolStore::put ( IAsgTool ptool  )  [static]

Store a named tool by its name. The name must be non-blank and not already exist in the store.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 15 Apr 2017 for RootCore Packages by  doxygen 1.6.1