ATLAS Offline Software
Loading...
Searching...
No Matches
SGKeyResolver.h
Go to the documentation of this file.
1// This file's extension implies that it's C, but it's really -*- C++ -*-.
2/*
3 Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
4*/
11
12
13#ifndef D3PDMAKERUTILS_SGKEYRESOLVER_H
14#define D3PDMAKERUTILS_SGKEYRESOLVER_H
15
16
17#include "GaudiKernel/ClassID.h"
18#include "GaudiKernel/ServiceHandle.h"
19#include <string>
20
21
22class StoreGateSvc;
23
24
25namespace D3PD {
26
27
40{
41public:
48 SGKeyResolver (const std::string& name,
50 std::string& sgkey);
51
52
58 StatusCode initialize (CLID clid, const std::string& typname);
59
60
64 template <typename T>
65 StatusCode initialize ();
66
67
71 std::string key();
72
73
74private:
76 std::string m_name;
77
80
83
85 std::string m_typname;
86
88 std::string& m_sgkey;
89
91 std::string m_usedKey;
92
95};
96
97
98} // namespace D3PD
99
100
102
103
104#endif // not D3PDMAKERUTILS_SGKEYRESOLVER_H
uint32_t CLID
The Class ID type.
ServiceHandle< StoreGateSvc > & m_sg
The event storage service.
bool m_haveKey
Flag that m_usedKey is valid.
std::string m_name
The name of the tool/alg in which this is used.
SGKeyResolver(const std::string &name, ServiceHandle< StoreGateSvc > &sg, std::string &sgkey)
Constructor.
CLID m_clid
The CLID of the desired type.
std::string m_typname
The name of the desired type.
std::string m_usedKey
The actual key we'll use.
std::string & m_sgkey
The requested SG key.
std::string key()
Return the SG key we should use.
StatusCode initialize()
Initialize, from a type.
The Athena Transient Store API.
Block filler tool for noisy FEB information.