ATLAS Offline Software
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-2022 CERN for the benefit of the ATLAS collaboration
4 */
13 #ifndef STOREGATE_THINNINGHANDLEKEY_H
14 #define STOREGATE_THINNINGHANDLEKEY_H
15 
19 #include "GaudiKernel/IDataHandleHolder.h"
20 
21 
22 namespace SG {
23 
24 
35 template <class T>
37  : public ReadHandleKey<T>
38 {
39 public:
41 
42 
52  ThinningHandleKey (const std::string& key = "",
53  const std::string& storeName = StoreID::storeName(StoreID::EVENT_STORE));
54 
55 
57 
58 
72  template <class OWNER,
74  ThinningHandleKey( OWNER* owner,
75  const std::string& name,
76  const std::string& key,
77  const std::string& doc);
78 
79 
85 
86 
95  ThinningHandleKey& operator= (const std::string& sgkey);
96 
97 
110  StatusCode initialize (const std::string& stream,
111  const std::string& qualifier,
112  bool used = true);
113 
114 
127  StatusCode initialize (const std::string& stream,
128  const char* qualifier,
129  bool used = true);
130 
131 
139  StatusCode initialize (const std::string& stream,
140  bool used = true);
141 
142 
147 
148 
149 private:
152 };
153 
154 
155 } // namespace SG
156 
157 
159 
160 
161 #endif // not STOREGATE_THINNINGHANDLEKEY_H
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
used
common.sgkey
def sgkey(tool)
Definition: common.py:1028
SG::ThinningHandleKey::decisionHandleKey
const WriteHandleKey< ThinningDecision > & decisionHandleKey() const
Return the write key for the thinning decision.
SG
Forward declaration.
Definition: CaloCellPacker_400_500.h:32
SG::ThinningHandleKey::operator=
ThinningHandleKey & operator=(const ThinningHandleKey &other)
Assignment.
SG::ThinningHandleKey
HandleKey object for adding thinning to an object.
Definition: ThinningHandleKey.h:38
athena.value
value
Definition: athena.py:122
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::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition: StoreGate/StoreGate/ReadHandleKey.h:39
ThinningHandleKey.icc
AthenaPoolTestWrite.stream
string stream
Definition: AthenaPoolTestWrite.py:12
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::ThinningHandleKey
ThinningHandleKey(const ThinningHandleKey &)=default
SG::WriteHandleKey
Property holding a SG store/key/clid from which a WriteHandle is made.
Definition: StoreGate/StoreGate/WriteHandleKey.h:40
SG::ThinningHandleKey::Base
ReadHandleKey< T > Base
Definition: ThinningHandleKey.h:40
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
ThinningDecision.h
Hold thinning decisions for one container.
SG::ThinningHandleKey::ThinningHandleKey
ThinningHandleKey(OWNER *owner, const std::string &name, const std::string &key, const std::string &doc)
Auto-declaring Property constructor.
WriteHandleKey.h
Property holding a SG store/key/clid from which a WriteHandle is made.
SG::ThinningHandleKey::initialize
StatusCode initialize(const std::string &stream, const char *qualifier, bool used=true)
Should be called during the initialize phase.
merge_scale_histograms.doc
string doc
Definition: merge_scale_histograms.py:9
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
InDetDD::other
@ other
Definition: InDetDD_Defs.h:16
SG::ThinningHandleKey::ThinningHandleKey
ThinningHandleKey(const std::string &key="", const std::string &storeName=StoreID::storeName(StoreID::EVENT_STORE))
Constructor.
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
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::ThinningHandleKey::m_decisionKey
WriteHandleKey< ThinningDecision > m_decisionKey
Thinning decision write key.
Definition: ThinningHandleKey.h:151