|
ATLAS Offline Software
|
Go to the documentation of this file.
12 #ifndef XAOD_STANDALONE
18 std::string
getType (
const std::string&
s)
20 std::string::size_type pos1 =
s.find(
'#');
21 if (pos1 == std::string::npos)
25 std::string::size_type pos2 =
s.find(
'/', pos1);
26 if (pos2 != std::string::npos)
27 return s.substr (pos1, pos2-pos1);
31 std::string
getName (
const std::string&
s)
33 std::string::size_type
pos =
s.find(
'/');
34 if (
pos == std::string::npos)
36 return s.substr (
pos+1, std::string::npos);
39 const IInterface* getParent (
const std::string&
s)
41 std::string::size_type
pos =
s.find(
'#');
42 if (
pos == std::string::npos)
43 return Gaudi::svcLocator()->service(
"ToolSvc" );
45 std::string
ss =
s.substr (0,
pos);
46 sscanf (
ss.c_str(),
"%p", &
p);
48 return reinterpret_cast<IInterface*
>(
p);
49 return Gaudi::svcLocator()->service(
"ToolSvc" );
53 #endif // not XAOD_STANDALONE
60 #ifndef XAOD_STANDALONE
66 #ifdef XAOD_STANDALONE
78 #ifdef XAOD_STANDALONE
85 #endif // XAOD_STANDALONE
108 #ifdef XAOD_STANDALONE
114 static const std::string
dummy =
"";
116 #endif // XAOD_STANDALONE
121 #ifdef XAOD_STANDALONE
127 return (
proxy ==
nullptr ? 0 :
proxy->sgkey() );
128 #endif // XAOD_STANDALONE
ServiceHandle< StoreGateSvc > & evtStore()
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
const std::string & name(Level lvl)
Convenience function for translating message levels to strings.
uint32_t sgkey_t
Type used for hashed StoreGate key+CLID pairs.
Wrapper for TEvent to make it look like StoreGate.
T getType(const char *cStr)
Return Ringer enumeration of type T identifying string type: