ATLAS Offline Software
|
Helper to resolve the SG key to use. More...
#include <SGKeyResolver.h>
Public Member Functions | |
SGKeyResolver (const std::string &name, ServiceHandle< StoreGateSvc > &sg, std::string &sgkey) | |
Constructor. More... | |
StatusCode | initialize (CLID clid, const std::string &typname) |
Initialize. More... | |
template<typename T > | |
StatusCode | initialize () |
Initialize, from a type. More... | |
std::string | key () |
Return the SG key we should use. More... | |
Private Attributes | |
std::string | m_name |
The name of the tool/alg in which this is used. More... | |
ServiceHandle< StoreGateSvc > & | m_sg |
The event storage service. More... | |
CLID | m_clid |
The CLID of the desired type. More... | |
std::string | m_typname |
The name of the desired type. More... | |
std::string & | m_sgkey |
The requested SG key. More... | |
std::string | m_usedKey |
The actual key we'll use. More... | |
bool | m_haveKey |
Flag that m_usedKey is valid. More... | |
Helper to resolve the SG key to use.
For the D3PD maker, we allow SG keys to be a comma-separated list. When we first look up the object, we try each of these keys in order, and use the first one that actually exists in SG.
This simplifies configurations for multiple data formats.
This is a helper object to actually to the resolution.
Definition at line 39 of file SGKeyResolver.h.
D3PD::SGKeyResolver::SGKeyResolver | ( | const std::string & | name, |
ServiceHandle< StoreGateSvc > & | sg, | ||
std::string & | sgkey | ||
) |
StatusCode D3PD::SGKeyResolver::initialize | ( | ) |
Initialize, from a type.
Initialize.
clid | The CLID of the desired type. |
typename | The name of the desired type. |
clid | The CLID of the desired object. |
typname | The name of the desired type. |
Definition at line 44 of file SGKeyResolver.cxx.
std::string D3PD::SGKeyResolver::key | ( | ) |
|
private |
The CLID of the desired type.
Definition at line 82 of file SGKeyResolver.h.
|
private |
Flag that m_usedKey is valid.
Definition at line 94 of file SGKeyResolver.h.
|
private |
The name of the tool/alg in which this is used.
Definition at line 76 of file SGKeyResolver.h.
|
private |
The event storage service.
Definition at line 79 of file SGKeyResolver.h.
|
private |
The requested SG key.
Definition at line 88 of file SGKeyResolver.h.
|
private |
The name of the desired type.
Definition at line 85 of file SGKeyResolver.h.
|
private |
The actual key we'll use.
Definition at line 91 of file SGKeyResolver.h.