ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Control
StoreGate
StoreGate
ThinningHandleKey.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-2025 CERN for the benefit of the ATLAS collaboration
4
*/
11
12
13
#ifndef STOREGATE_THINNINGHANDLEKEY_H
14
#define STOREGATE_THINNINGHANDLEKEY_H
15
16
#include "
StoreGate/ReadHandleKey.h
"
17
#include "
StoreGate/WriteHandleKey.h
"
18
#include "
AthContainers/ThinningDecision.h
"
19
#include "GaudiKernel/IDataHandleHolder.h"
20
#include <concepts>
21
22
23
namespace
SG
{
24
25
36
template
<
class
T>
37
class
ThinningHandleKey
38
:
public
ReadHandleKey
<T>
39
{
40
public
:
41
typedef
ReadHandleKey<T>
Base
;
42
43
53
explicit
54
ThinningHandleKey
(
const
std::string&
key
=
""
,
55
const
std::string& storeName =
StoreID::storeName
(
StoreID::EVENT_STORE
));
56
57
58
ThinningHandleKey
(
const
ThinningHandleKey
&) =
default
;
59
60
74
template
<std::derived_from<IProperty> OWNER>
75
ThinningHandleKey
( OWNER* owner,
76
const
std::string& name,
77
const
std::string&
key
,
78
const
std::string& doc);
79
80
85
ThinningHandleKey
&
operator=
(
const
ThinningHandleKey
& other);
86
87
96
ThinningHandleKey
&
operator=
(
const
std::string& sgkey);
97
98
111
StatusCode
initialize
(
const
std::string& stream,
112
const
std::string& qualifier,
113
bool
used
=
true
);
114
115
128
StatusCode
initialize
(
const
std::string& stream,
129
const
char
* qualifier,
130
bool
used
=
true
);
131
132
140
StatusCode
initialize
(
const
std::string& stream,
141
bool
used
=
true
);
142
143
147
const
WriteHandleKey<ThinningDecision>
&
decisionHandleKey
()
const
;
148
149
150
private
:
152
WriteHandleKey<ThinningDecision>
m_decisionKey
;
153
};
154
155
156
}
// namespace SG
157
158
159
#include "
StoreGate/ThinningHandleKey.icc
"
160
161
162
#endif
// not STOREGATE_THINNINGHANDLEKEY_H
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
WriteHandleKey.h
Property holding a SG store/key/clid from which a WriteHandle is made.
ThinningDecision.h
Hold thinning decisions for one container.
ThinningHandleKey.icc
SG::ReadHandleKey::ReadHandleKey
ReadHandleKey(const std::string &key="", const std::string &storeName=StoreID::storeName(StoreID::EVENT_STORE))
Constructor.
SG::ThinningHandleKey::Base
ReadHandleKey< T > Base
Definition
ThinningHandleKey.h:41
SG::ThinningHandleKey::decisionHandleKey
const WriteHandleKey< ThinningDecision > & decisionHandleKey() const
Return the write key for the thinning decision.
SG::ThinningHandleKey::m_decisionKey
WriteHandleKey< ThinningDecision > m_decisionKey
Thinning decision write key.
Definition
ThinningHandleKey.h:152
SG::ThinningHandleKey::ThinningHandleKey
ThinningHandleKey(const std::string &key="", const std::string &storeName=StoreID::storeName(StoreID::EVENT_STORE))
Constructor.
SG::ThinningHandleKey::initialize
StatusCode initialize(const std::string &stream, const char *qualifier, bool used=true)
Should be called during the initialize phase.
SG::ThinningHandleKey::ThinningHandleKey
ThinningHandleKey(const ThinningHandleKey &)=default
SG::ThinningHandleKey::initialize
StatusCode initialize(const std::string &stream, const std::string &qualifier, bool used=true)
Should be called during the initialize phase.
SG::ThinningHandleKey::operator=
ThinningHandleKey & operator=(const ThinningHandleKey &other)
Assignment.
SG::ThinningHandleKey::ThinningHandleKey
ThinningHandleKey(OWNER *owner, const std::string &name, const std::string &key, const std::string &doc)
Auto-declaring Property constructor.
SG::ThinningHandleKey::initialize
StatusCode initialize(const std::string &stream, bool used=true)
Should be called during the initialize phase.
SG::VarHandleKey::key
const std::string & key() const
Return the StoreGate ID for the referenced object.
Definition
AthToolSupport/AsgDataHandles/Root/VarHandleKey.cxx:141
SG::WriteHandleKey
Property holding a SG store/key/clid from which a WriteHandle is made.
Definition
StoreGate/StoreGate/WriteHandleKey.h:40
StoreID::EVENT_STORE
@ EVENT_STORE
Definition
StoreID.h:26
StoreID::storeName
static const std::string & storeName(const StoreID::type &s)
Definition
StoreID.cxx:77
used
holding In fact this class is here in order to allow STL container for all features This class is sho...
SG
Forward declaration.
Definition
CaloCellPacker_400_500.h:32
Generated on
for ATLAS Offline Software by
1.17.0