|
ATLAS Offline Software
|
Go to the documentation of this file.
16 #ifndef D3PDMAKERUTILS_SGGETTERIMPL_H
17 #define D3PDMAKERUTILS_SGGETTERIMPL_H
23 #include "GaudiKernel/IClassIDSvc.h"
24 #include "GaudiKernel/ServiceHandle.h"
65 virtual const std::type_info&
typeinfo()
const;
82 virtual const void*
getUntyped (
bool allowMissing =
false);
90 #define SGGETTERIMPL_PROPS \
92 this->declareProperty ("TypeName", this->m_typename, \
93 "Name of the type of the object being retrieved");\
94 this->declareProperty ("SGKey", this->m_sgkey, \
95 "StoreGate key of the object being retrieved. " \
96 "This may be a comma or space-separated list; " \
97 "the first existing key will be used."); \
98 this->declareProperty ("ClassIDSvc", this->m_clidsvc, \
99 "ClassIDSvc instance to use."); \
136 #endif // not D3PDMAKERUTILS_SGGETTERIMPL_H
virtual const std::type_info & typeinfo() const
Return the type of object retrieved by this tool.
std::string m_sgkey
Property: StoreGate key of the object being retrieved.
Helper to resolve the SG key to use.
Block filler tool for noisy FEB information.
CLID clid() const
Return the class ID being read by this tool.
Helper to resolve the SG key to use.
::StatusCode StatusCode
StatusCode definition for legacy code.
SGGetterImpl(const std::string &name, ServiceHandle< StoreGateSvc > &sg)
Constructor.
uint32_t CLID
The Class ID type.
CLID m_clid
CLID for the object being retrieved.
std::string m_typename
Property: Name of the type of the object being retrieved.
SGKeyResolver m_resolver
Helper: Resolve the SG key to use.
ServiceHandle< IClassIDSvc > m_clidsvc
Property: Instance of the ClassIDSvc to use.
ServiceHandle< StoreGateSvc > & m_sg
The event storage service.
virtual const void * getUntyped(bool allowMissing=false)
Return the target object.
StatusCode initializeImpl()
Initialize this mixin class.
Common object getter code for retrieving from StoreGate.