41 const std::type_info* ti = 0;
74 REPORT_MESSAGE (MSG::FATAL) <<
"Can't find object in event store for "
94 m_sg->tryConstRetrieve<SG::IConstAuxStore> (
key +
"Aux.");
113 return StatusCode::SUCCESS;
Helpers for checking error return status codes and reporting errors.
#define REPORT_MESSAGE(LVL)
Report a message.
#define CHECK(...)
Evaluate an expression and check for errors.
uint32_t CLID
The Class ID type.
Interface for const operations on an auxiliary store.
Common object getter code for retrieving from StoreGate.
Utility functions for converting between type names, type_info, and CLIDs.
std::string m_typename
Property: Name of the type of the object being retrieved.
SGKeyResolver m_resolver
Helper: Resolve the SG key to use.
SGGetterImpl(const std::string &name, ServiceHandle< StoreGateSvc > &sg)
Constructor.
StatusCode initializeImpl()
Initialize this mixin class.
CLID m_clid
CLID for the object being retrieved.
virtual const void * getUntyped(bool allowMissing=false)
Return the target object.
ServiceHandle< StoreGateSvc > & m_sg
The event storage service.
ServiceHandle< IClassIDSvc > m_clidsvc
Property: Instance of the ClassIDSvc to use.
CLID clid() const
Return the class ID being read by this tool.
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.
Block filler tool for noisy FEB information.
StatusCode clidToTypeinfo(CLID clid, const std::string &nmae, std::type_info const *&ti, const std::string &context)
Convert from a CLID to a type_info; we also already know the name.
StatusCode nameToCLID(const std::string &name, CLID &clid, const std::string &context, ServiceHandle< IClassIDSvc > clidsvc=ServiceHandle< IClassIDSvc >("ClassIDSvc", "TypeNameConversions"))
Convert from a class name to a CLID.
DATA * DataProxy_cast(DataProxy *proxy)
cast the proxy into the concrete data object it proxies