ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Control
StoreGate
StoreGate
StoreGate/StoreGate/ReadHandleKey.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
/*
4
Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
5
*/
12
13
14
#ifndef STOREGATE_READHANDLEKEY_H
15
#define STOREGATE_READHANDLEKEY_H
16
17
18
#include "
StoreGate/VarHandleKey.h
"
19
#include "
StoreGate/exceptions.h
"
20
#include "
AthenaKernel/CLASS_DEF.h
"
21
#include <concepts>
22
23
24
namespace
SG
{
25
26
37
template
<
class
T>
38
class
ReadHandleKey
39
:
public
VarHandleKey
40
{
41
public
:
51
explicit
52
ReadHandleKey
(
const
std::string&
key
=
""
,
53
const
std::string& storeName =
StoreID::storeName
(
StoreID::EVENT_STORE
));
54
55
69
template
<std::derived_from<IProperty> OWNER>
70
ReadHandleKey
( OWNER* owner,
71
const
std::string& name,
72
const
std::string&
key
= {},
73
const
std::string& doc =
""
);
74
75
84
ReadHandleKey
&
operator=
(
const
std::string& sgkey);
85
86
87
protected
:
97
ReadHandleKey
(
CLID
clid
,
98
const
std::string&
key
,
99
const
std::string& storeName);
100
101
113
template
<std::derived_from<IProperty> OWNER>
114
ReadHandleKey
(
CLID
clid
,
115
OWNER* owner,
116
const
std::string& name,
117
const
std::string&
key
,
118
const
std::string& doc);
119
};
120
121
130
template
<
class
T>
131
class
InitializedReadHandleKey
132
:
public
ReadHandleKey
<T>
133
{
134
public
:
144
InitializedReadHandleKey
(
const
std::string&
key
=
""
,
145
const
std::string& storeName =
StoreID::storeName
(
StoreID::EVENT_STORE
));
146
};
147
148
149
}
// namespace SG
150
151
152
#include "
StoreGate/ReadHandleKey.icc
"
153
154
155
#endif
// not STOREGATE_READHANDLEKEY_H
CLASS_DEF.h
macros to associate a CLID to a type
exceptions.h
Exceptions that can be thrown from StoreGate.
CLID
uint32_t CLID
The Class ID type.
Definition
Event/xAOD/xAODCore/xAODCore/ClassID_traits.h:47
ReadHandleKey.icc
VarHandleKey.h
A property holding a SG store/key/clid from which a VarHandle is made.
SG::InitializedReadHandleKey::InitializedReadHandleKey
InitializedReadHandleKey(const std::string &key="", const std::string &storeName=StoreID::storeName(StoreID::EVENT_STORE))
Constructor.
SG::ReadHandleKey::ReadHandleKey
ReadHandleKey(OWNER *owner, const std::string &name, const std::string &key={}, const std::string &doc="")
Auto-declaring Property constructor.
SG::ReadHandleKey::operator=
ReadHandleKey & operator=(const std::string &sgkey)
Change the key of the object to which we're referring.
SG::ReadHandleKey::ReadHandleKey
ReadHandleKey(CLID clid, const std::string &key, const std::string &storeName)
Constructor with explicit CLID.
SG::ReadHandleKey::ReadHandleKey
ReadHandleKey(CLID clid, OWNER *owner, const std::string &name, const std::string &key, const std::string &doc)
Auto-declaring constructor with explicit CLID.
SG::ReadHandleKey::ReadHandleKey
ReadHandleKey(const std::string &key="", const std::string &storeName=StoreID::storeName(StoreID::EVENT_STORE))
Constructor.
SG::ReadHandleKey< xAOD::CaloClusterContainer >::clid
CLID clid() const
Definition
StoreGate/src/VarHandleKey.cxx:188
SG::ReadHandleKey< xAOD::CaloClusterContainer >::key
const std::string & key() const
Definition
AthToolSupport/AsgDataHandles/Root/VarHandleKey.cxx:141
SG::VarHandleKey::VarHandleKey
VarHandleKey(CLID clid, const std::string &sgkey, Gaudi::DataHandle::Mode a, const std::string &storeName=StoreID::storeName(StoreID::EVENT_STORE), bool isCond=false)
Constructor.
Definition
AthToolSupport/AsgDataHandles/Root/VarHandleKey.cxx:38
StoreID::EVENT_STORE
@ EVENT_STORE
Definition
StoreID.h:26
StoreID::storeName
static const std::string & storeName(const StoreID::type &s)
Definition
StoreID.cxx:77
SG
Forward declaration.
Definition
CaloCellPacker_400_500.h:32
Generated on
for ATLAS Offline Software by
1.17.0