![]() |
The Gaudi Framework
v26r4
|
Base class from which all the concrete tool classes should be derived. More...
#include <GaudiKernel/AlgTool.h>
Public Types | |
typedef Gaudi::PluginService::Factory< IAlgTool *, const std::string &, const std::string &, const IInterface * > | Factory |
typedef Gaudi::PluginService::Factory< IAlgTool *, const std::string &, const std::string &, const IInterface * > | Factory |
![]() | |
using | base_class = implements< Interfaces...> |
Typedef to this class. More... | |
using | extend_interfaces_base = extend_interfaces< Interfaces...> |
Typedef to the base of this class. More... | |
using | iids = typename extend_interfaces_base::ext_iids |
using | base_class = implements< Interfaces...> |
Typedef to this class. More... | |
using | extend_interfaces_base = extend_interfaces< Interfaces...> |
Typedef to the base of this class. More... | |
using | iids = typename extend_interfaces_base::ext_iids |
![]() | |
using | ext_iids = typename Gaudi::interface_list_cat< typename Interfaces::ext_iids...>::type |
take union of the ext_iids of all Interfaces... More... | |
using | ext_iids = typename Gaudi::interface_list_cat< typename Interfaces::ext_iids...>::type |
take union of the ext_iids of all Interfaces... More... | |
Public Member Functions | |
StatusCode | queryInterface (const InterfaceID &riid, void **ppvUnknown) override |
Query for a given interface. More... | |
const std::string & | name () const override |
Retrieve full identifying name of the concrete tool object. More... | |
const std::string & | type () const override |
Retrieve type (concrete class) of the sub-algtool. More... | |
const IInterface * | parent () const override |
Retrieve parent of the sub-algtool. More... | |
StatusCode | configure () override |
StatusCode | initialize () override |
StatusCode | start () override |
StatusCode | stop () override |
StatusCode | finalize () override |
StatusCode | terminate () override |
StatusCode | reinitialize () override |
StatusCode | restart () override |
Gaudi::StateMachine::State | FSMState () const override |
Gaudi::StateMachine::State | targetFSMState () const override |
StatusCode | sysInitialize () override |
Initialize AlgTool. More... | |
StatusCode | sysStart () override |
Start AlgTool. More... | |
StatusCode | sysStop () override |
Stop AlgTool. More... | |
StatusCode | sysFinalize () override |
Finalize AlgTool. More... | |
StatusCode | sysReinitialize () override |
Initialize AlgTool. More... | |
StatusCode | sysRestart () override |
Start AlgTool. More... | |
StatusCode | setProperty (const Property &p) override |
Default implementations for IProperty interface. More... | |
StatusCode | setProperty (const std::string &s) override |
StatusCode | setProperty (const std::string &n, const std::string &v) override |
StatusCode | getProperty (Property *p) const override |
const Property & | getProperty (const std::string &name) const override |
StatusCode | getProperty (const std::string &n, std::string &v) const override |
const std::vector< Property * > & | getProperties () const override |
bool | hasProperty (const std::string &name) const override |
PropertyMgr * | getPropertyMgr () |
template<class TYPE > | |
StatusCode | setProperty (const std::string &name, const TYPE &value) |
set the property form the value More... | |
AlgTool (const std::string &type, const std::string &name, const IInterface *parent) | |
Standard Constructor. More... | |
ISvcLocator * | serviceLocator () const |
Retrieve pointer to service locator. More... | |
ISvcLocator * | svcLoc () const |
shortcut for the method service locator More... | |
IMessageSvc * | msgSvc () const |
Retrieve pointer to message service. More... | |
IToolSvc * | toolSvc () const |
The standard ToolSvc service, Return a pointer to the service if present. More... | |
StatusCode | setProperties () |
Method for setting declared properties to the values specified in the jobOptions via the job option service. More... | |
template<class T > | |
StatusCode | service (const std::string &name, T *&svc, bool createIf=true) const |
Access a service by name, creating it if it doesn't already exist. More... | |
template<class T > | |
StatusCode | service (const std::string &type, const std::string &name, T *&svc) const |
Access a service by name, type creating it if it doesn't already exist. More... | |
SmartIF< IService > | service (const std::string &name, const bool createIf=true, const bool quiet=false) const |
Return a pointer to the service identified by name (or "type/name") More... | |
template<typename T > | |
SmartIF< T > | service (const std::string &name, const bool createIf=true, const bool quiet=false) const |
template<class T > | |
Property * | declareProperty (const std::string &name, T &property, const std::string &doc="none") const |
Declare the named property. More... | |
Property * | declareRemoteProperty (const std::string &name, IProperty *rsvc, const std::string &rname="") const |
Declare remote named properties. More... | |
IAuditorSvc * | auditorSvc () const |
Access the auditor service. More... | |
IMonitorSvc * | monitorSvc () const |
Access the monitor service. More... | |
template<class T > | |
void | declareInfo (const std::string &name, const T &var, const std::string &desc) const |
Declare monitoring information. More... | |
void | declareInfo (const std::string &name, const std::string &format, const void *var, int size, const std::string &desc) const |
Declare monitoring information (special case) More... | |
StatusCode | queryInterface (const InterfaceID &riid, void **ppvUnknown) override |
Query for a given interface. More... | |
const std::string & | name () const override |
Retrieve full identifying name of the concrete tool object. More... | |
const std::string & | type () const override |
Retrieve type (concrete class) of the sub-algtool. More... | |
const IInterface * | parent () const override |
Retrieve parent of the sub-algtool. More... | |
StatusCode | configure () override |
StatusCode | initialize () override |
StatusCode | start () override |
StatusCode | stop () override |
StatusCode | finalize () override |
StatusCode | terminate () override |
StatusCode | reinitialize () override |
StatusCode | restart () override |
Gaudi::StateMachine::State | FSMState () const override |
Gaudi::StateMachine::State | targetFSMState () const override |
StatusCode | sysInitialize () override |
Initialize AlgTool. More... | |
StatusCode | sysStart () override |
Start AlgTool. More... | |
StatusCode | sysStop () override |
Stop AlgTool. More... | |
StatusCode | sysFinalize () override |
Finalize AlgTool. More... | |
StatusCode | sysReinitialize () override |
Initialize AlgTool. More... | |
StatusCode | sysRestart () override |
Start AlgTool. More... | |
StatusCode | setProperty (const Property &p) override |
Default implementations for IProperty interface. More... | |
StatusCode | setProperty (const std::string &s) override |
StatusCode | setProperty (const std::string &n, const std::string &v) override |
StatusCode | getProperty (Property *p) const override |
const Property & | getProperty (const std::string &name) const override |
StatusCode | getProperty (const std::string &n, std::string &v) const override |
const std::vector< Property * > & | getProperties () const override |
bool | hasProperty (const std::string &name) const override |
PropertyMgr * | getPropertyMgr () |
template<class TYPE > | |
StatusCode | setProperty (const std::string &name, const TYPE &value) |
set the property form the value More... | |
AlgTool (const std::string &type, const std::string &name, const IInterface *parent) | |
Standard Constructor. More... | |
ISvcLocator * | serviceLocator () const |
Retrieve pointer to service locator. More... | |
ISvcLocator * | svcLoc () const |
shortcut for the method service locator More... | |
IMessageSvc * | msgSvc () const |
Retrieve pointer to message service. More... | |
IToolSvc * | toolSvc () const |
The standard ToolSvc service, Return a pointer to the service if present. More... | |
StatusCode | setProperties () |
Method for setting declared properties to the values specified in the jobOptions via the job option service. More... | |
template<class T > | |
StatusCode | service (const std::string &name, T *&svc, bool createIf=true) const |
Access a service by name, creating it if it doesn't already exist. More... | |
template<class T > | |
StatusCode | service (const std::string &type, const std::string &name, T *&svc) const |
Access a service by name, type creating it if it doesn't already exist. More... | |
SmartIF< IService > | service (const std::string &name, const bool createIf=true, const bool quiet=false) const |
Return a pointer to the service identified by name (or "type/name") More... | |
template<typename T > | |
SmartIF< T > | service (const std::string &name, const bool createIf=true, const bool quiet=false) const |
template<class T > | |
Property * | declareProperty (const std::string &name, T &property, const std::string &doc="none") const |
Declare the named property. More... | |
Property * | declareRemoteProperty (const std::string &name, IProperty *rsvc, const std::string &rname="") const |
Declare remote named properties. More... | |
IAuditorSvc * | auditorSvc () const |
Access the auditor service. More... | |
IMonitorSvc * | monitorSvc () const |
Access the monitor service. More... | |
template<class T > | |
void | declareInfo (const std::string &name, const T &var, const std::string &desc) const |
Declare monitoring information. More... | |
void | declareInfo (const std::string &name, const std::string &format, const void *var, int size, const std::string &desc) const |
Declare monitoring information (special case) More... | |
![]() | |
void * | i_cast (const InterfaceID &tid) const override |
Implementation of IInterface::i_cast. More... | |
StatusCode | queryInterface (const InterfaceID &ti, void **pp) override |
Implementation of IInterface::queryInterface. More... | |
std::vector< std::string > | getInterfaceNames () const override |
Implementation of IInterface::getInterfaceNames. More... | |
implements ()=default | |
Default constructor. More... | |
implements (const implements &) | |
Copy constructor (zero the reference count) More... | |
implements & | operator= (const implements &) |
Assignment operator (do not touch the reference count). More... | |
~implements () override=default | |
Virtual destructor. More... | |
unsigned long | addRef () override |
Reference Interface instance. More... | |
unsigned long | release () override |
Release Interface instance. More... | |
unsigned long | refCount () const override |
Current reference count. More... | |
void * | i_cast (const InterfaceID &tid) const override |
Implementation of IInterface::i_cast. More... | |
StatusCode | queryInterface (const InterfaceID &ti, void **pp) override |
Implementation of IInterface::queryInterface. More... | |
std::vector< std::string > | getInterfaceNames () const override |
Implementation of IInterface::getInterfaceNames. More... | |
implements ()=default | |
Default constructor. More... | |
implements (const implements &) | |
Copy constructor (zero the reference count) More... | |
implements & | operator= (const implements &) |
Assignment operator (do not touch the reference count). More... | |
~implements () override=default | |
Virtual destructor. More... | |
unsigned long | addRef () override |
Reference Interface instance. More... | |
unsigned long | release () override |
Release Interface instance. More... | |
unsigned long | refCount () const override |
Current reference count. More... | |
![]() | |
~extend_interfaces () override=default | |
Virtual destructor. More... | |
~extend_interfaces () override=default | |
Virtual destructor. More... | |
Protected Member Functions | |
template<typename I > | |
void | declareInterface (I *i) |
int | outputLevel () const |
get tool's output level More... | |
IntegerProperty & | outputLevelProperty () |
Accessor for the Message level property. More... | |
void | initOutputLevel (Property &prop) |
callback for output level property More... | |
~AlgTool () override | |
template<typename I > | |
void | declareInterface (I *i) |
int | outputLevel () const |
get tool's output level More... | |
IntegerProperty & | outputLevelProperty () |
Accessor for the Message level property. More... | |
void | initOutputLevel (Property &prop) |
callback for output level property More... | |
~AlgTool () override | |
Private Types | |
typedef std::list< std::pair< InterfaceID, void * > > | InterfaceList |
typedef std::list< std::pair< InterfaceID, void * > > | InterfaceList |
Private Member Functions | |
StatusCode | service_i (const std::string &algName, bool createIf, const InterfaceID &iid, void **ppSvc) const |
implementation of service method More... | |
StatusCode | service_i (const std::string &svcType, const std::string &svcName, const InterfaceID &iid, void **ppS) const |
StatusCode | service_i (const std::string &algName, bool createIf, const InterfaceID &iid, void **ppSvc) const |
implementation of service method More... | |
StatusCode | service_i (const std::string &svcType, const std::string &svcName, const InterfaceID &iid, void **ppS) const |
Friends | |
class | ToolSvc |
Additional Inherited Members | |
![]() | |
unsigned long | m_refCount = 0 |
Reference counter. More... | |
Base class from which all the concrete tool classes should be derived.
Specific methods for doing something useful should be implemented in the concrete tools. Sub-types of this class could implement an additional interface for behavior common to sets of concrete tools (for example vertexers).
typedef Gaudi::PluginService::Factory<IAlgTool*, const std::string&, const std::string&, const IInterface*> AlgTool::Factory |
typedef Gaudi::PluginService::Factory<IAlgTool*, const std::string&, const std::string&, const IInterface*> AlgTool::Factory |
|
private |
|
private |
AlgTool::AlgTool | ( | const std::string & | type, |
const std::string & | name, | ||
const IInterface * | parent | ||
) |
Standard Constructor.
type | the concrete class of the sub-algtool |
name | the full name of the concrete sub-algtool |
parent | the parent of the concrete sub-algtool |
Definition at line 190 of file AlgTool.cpp.
|
overrideprotected |
Definition at line 450 of file AlgTool.cpp.
AlgTool::AlgTool | ( | const std::string & | type, |
const std::string & | name, | ||
const IInterface * | parent | ||
) |
Standard Constructor.
type | the concrete class of the sub-algtool |
name | the full name of the concrete sub-algtool |
parent | the parent of the concrete sub-algtool |
|
overrideprotected |
IAuditorSvc * AlgTool::auditorSvc | ( | ) | const |
Access the auditor service.
Definition at line 483 of file AlgTool.cpp.
IAuditorSvc* AlgTool::auditorSvc | ( | ) | const |
Access the auditor service.
|
inlineoverride |
Definition at line 57 of file AlgTool.h.
|
inlineoverride |
Definition at line 57 of file AlgTool.h.
|
inline |
Declare monitoring information.
name | Monitoring information name known to the external system |
var | Monitoring Listener address (the item to monitor...) |
desc | Textual description of the information being monitored |
Definition at line 274 of file AlgTool.h.
|
inline |
Declare monitoring information.
name | Monitoring information name known to the external system |
var | Monitoring Listener address (the item to monitor...) |
desc | Textual description of the information being monitored |
Definition at line 274 of file AlgTool.h.
|
inline |
Declare monitoring information (special case)
name | Monitoring information name known to the external system |
format | Format information |
var | Monitoring Listener address |
size | Monitoring Listener address size |
desc | Textual description of the information being monitored |
Definition at line 289 of file AlgTool.h.
|
inline |
Declare monitoring information (special case)
name | Monitoring information name known to the external system |
format | Format information |
var | Monitoring Listener address |
size | Monitoring Listener address size |
desc | Textual description of the information being monitored |
Definition at line 289 of file AlgTool.h.
|
inlineprotected |
|
inlineprotected |
|
inline |
Declare the named property.
name | the property name |
property | the property itself, |
doc | the documentation string |
Definition at line 234 of file AlgTool.h.
|
inline |
Declare the named property.
name | the property name |
property | the property itself, |
doc | the documentation string |
Definition at line 234 of file AlgTool.h.
|
inline |
Declare remote named properties.
Definition at line 242 of file AlgTool.h.
|
inline |
Declare remote named properties.
Definition at line 242 of file AlgTool.h.
|
override |
Definition at line 351 of file AlgTool.cpp.
|
override |
|
inlineoverride |
|
inlineoverride |
|
override |
|
override |
Definition at line 151 of file AlgTool.cpp.
|
override |
|
override |
Definition at line 131 of file AlgTool.cpp.
|
override |
|
override |
Definition at line 138 of file AlgTool.cpp.
|
override |
|
override |
Definition at line 144 of file AlgTool.cpp.
|
inline |
Definition at line 96 of file AlgTool.h.
|
inline |
Definition at line 96 of file AlgTool.h.
|
override |
|
override |
Definition at line 157 of file AlgTool.cpp.
|
override |
Definition at line 281 of file AlgTool.cpp.
|
override |
|
protected |
callback for output level property
Definition at line 496 of file AlgTool.cpp.
|
protected |
callback for output level property
|
inline |
Access the monitor service.
NULL | No monitor service is present |
non-NULL | A monitor service is present and available to be used |
Definition at line 261 of file AlgTool.h.
|
inline |
Access the monitor service.
NULL | No monitor service is present |
non-NULL | A monitor service is present and available to be used |
Definition at line 261 of file AlgTool.h.
IMessageSvc * AlgTool::msgSvc | ( | ) | const |
IMessageSvc* AlgTool::msgSvc | ( | ) | const |
Retrieve pointer to message service.
|
override |
Retrieve full identifying name of the concrete tool object.
Definition at line 62 of file AlgTool.cpp.
|
override |
Retrieve full identifying name of the concrete tool object.
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
override |
|
override |
Retrieve parent of the sub-algtool.
|
override |
Query for a given interface.
Definition at line 42 of file AlgTool.cpp.
|
override |
Query for a given interface.
|
override |
Definition at line 382 of file AlgTool.cpp.
|
override |
|
override |
Definition at line 430 of file AlgTool.cpp.
|
override |
|
inline |
Access a service by name, creating it if it doesn't already exist.
Definition at line 180 of file AlgTool.h.
|
inline |
Access a service by name, creating it if it doesn't already exist.
Definition at line 180 of file AlgTool.h.
|
inline |
Access a service by name, type creating it if it doesn't already exist.
Definition at line 187 of file AlgTool.h.
|
inline |
Access a service by name, type creating it if it doesn't already exist.
Definition at line 187 of file AlgTool.h.
SmartIF< IService > AlgTool::service | ( | const std::string & | name, |
const bool | createIf = true , |
||
const bool | quiet = false |
||
) | const |
Return a pointer to the service identified by name (or "type/name")
Definition at line 477 of file AlgTool.cpp.
SmartIF<IService> AlgTool::service | ( | const std::string & | name, |
const bool | createIf = true , |
||
const bool | quiet = false |
||
) | const |
Return a pointer to the service identified by name (or "type/name")
|
inline |
Definition at line 195 of file AlgTool.h.
|
inline |
Definition at line 195 of file AlgTool.h.
|
private |
implementation of service method
|
private |
implementation of service method
Definition at line 459 of file AlgTool.cpp.
|
private |
|
private |
Definition at line 469 of file AlgTool.cpp.
ISvcLocator* AlgTool::serviceLocator | ( | ) | const |
Retrieve pointer to service locator.
ISvcLocator * AlgTool::serviceLocator | ( | ) | const |
Retrieve pointer to service locator.
Definition at line 83 of file AlgTool.cpp.
StatusCode AlgTool::setProperties | ( | ) |
Method for setting declared properties to the values specified in the jobOptions via the job option service.
This method is called by the ToolSvc after creating the concrete tool, before passing it to the requesting parent and does not need to be called explicitly.
Definition at line 162 of file AlgTool.cpp.
StatusCode AlgTool::setProperties | ( | ) |
Method for setting declared properties to the values specified in the jobOptions via the job option service.
This method is called by the ToolSvc after creating the concrete tool, before passing it to the requesting parent and does not need to be called explicitly.
|
override |
Default implementations for IProperty interface.
|
override |
Default implementations for IProperty interface.
Definition at line 110 of file AlgTool.cpp.
|
override |
Definition at line 117 of file AlgTool.cpp.
|
override |
|
override |
Definition at line 124 of file AlgTool.cpp.
|
override |
|
inline |
set the property form the value
Note: the interface IProperty allows setting of the properties either directly from other properties or from strings only
This is very convenient in resetting of the default properties in the derived classes. E.g. without this method one needs to convert everything into strings to use IProperty::setProperty
For simple cases it is more or less ok, but for complicated properties it is just ugly..
name | name of the property |
value | value of the property |
Definition at line 142 of file AlgTool.h.
|
inline |
set the property form the value
Note: the interface IProperty allows setting of the properties either directly from other properties or from strings only
This is very convenient in resetting of the default properties in the derived classes. E.g. without this method one needs to convert everything into strings to use IProperty::setProperty
For simple cases it is more or less ok, but for complicated properties it is just ugly..
name | name of the property |
value | value of the property |
Definition at line 142 of file AlgTool.h.
|
override |
|
override |
Definition at line 306 of file AlgTool.cpp.
|
override |
Definition at line 329 of file AlgTool.cpp.
|
override |
|
inline |
shortcut for the method service locator
Definition at line 160 of file AlgTool.h.
|
inline |
shortcut for the method service locator
Definition at line 160 of file AlgTool.h.
|
override |
Finalize AlgTool.
|
override |
Finalize AlgTool.
Definition at line 337 of file AlgTool.cpp.
|
override |
Initialize AlgTool.
|
override |
Initialize AlgTool.
Definition at line 267 of file AlgTool.cpp.
|
override |
Initialize AlgTool.
Definition at line 359 of file AlgTool.cpp.
|
override |
Initialize AlgTool.
|
override |
Start AlgTool.
|
override |
Start AlgTool.
Definition at line 407 of file AlgTool.cpp.
|
override |
Start AlgTool.
|
override |
Start AlgTool.
Definition at line 291 of file AlgTool.cpp.
|
override |
Stop AlgTool.
|
override |
Stop AlgTool.
Definition at line 314 of file AlgTool.cpp.
|
inlineoverride |
Definition at line 66 of file AlgTool.h.
|
inlineoverride |
Definition at line 66 of file AlgTool.h.
|
inlineoverride |
Definition at line 62 of file AlgTool.h.
|
inlineoverride |
Definition at line 62 of file AlgTool.h.
IToolSvc* AlgTool::toolSvc | ( | ) | const |
The standard ToolSvc service, Return a pointer to the service if present.
IToolSvc * AlgTool::toolSvc | ( | ) | const |
The standard ToolSvc service, Return a pointer to the service if present.
Definition at line 97 of file AlgTool.cpp.
|
override |
Retrieve type (concrete class) of the sub-algtool.
|
override |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
mutableprivate |
|
private |
|
private |
|
private |
|
private |
|
mutableprivate |
|
mutableprivate |
|
private |
|
private |
|
mutableprivate |
|
private |
|
private |
|
private |