ATLAS Offline Software
Loading...
Searching...
No Matches
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
19#include "GaudiKernel/IDataHandleHolder.h"
20#include <concepts>
21
22
23namespace SG {
24
25
36template <class T>
38 : public ReadHandleKey<T>
39{
40public:
42
43
53 explicit
54 ThinningHandleKey (const std::string& key = "",
55 const std::string& storeName = StoreID::storeName(StoreID::EVENT_STORE));
56
57
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
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
148
149
150private:
153};
154
155
156} // namespace SG
157
158
160
161
162#endif // not STOREGATE_THINNINGHANDLEKEY_H
Property holding a SG store/key/clid from which a ReadHandle is made.
Property holding a SG store/key/clid from which a WriteHandle is made.
Hold thinning decisions for one container.
ReadHandleKey(const std::string &key="", const std::string &storeName=StoreID::storeName(StoreID::EVENT_STORE))
Constructor.
ReadHandleKey< T > Base
const WriteHandleKey< ThinningDecision > & decisionHandleKey() const
Return the write key for the thinning decision.
WriteHandleKey< ThinningDecision > m_decisionKey
Thinning decision write key.
ThinningHandleKey(const std::string &key="", const std::string &storeName=StoreID::storeName(StoreID::EVENT_STORE))
Constructor.
StatusCode initialize(const std::string &stream, const char *qualifier, bool used=true)
Should be called during the initialize phase.
ThinningHandleKey(const ThinningHandleKey &)=default
StatusCode initialize(const std::string &stream, const std::string &qualifier, bool used=true)
Should be called during the initialize phase.
ThinningHandleKey & operator=(const ThinningHandleKey &other)
Assignment.
ThinningHandleKey(OWNER *owner, const std::string &name, const std::string &key, const std::string &doc)
Auto-declaring Property constructor.
StatusCode initialize(const std::string &stream, bool used=true)
Should be called during the initialize phase.
const std::string & key() const
Return the StoreGate ID for the referenced object.
Property holding a SG store/key/clid from which a WriteHandle is made.
@ EVENT_STORE
Definition StoreID.h:26
static const std::string & storeName(const StoreID::type &s)
Definition StoreID.cxx:77
holding In fact this class is here in order to allow STL container for all features This class is sho...
Forward declaration.