ATLAS Offline Software
ReadMetaHandleKey.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef STOREGATE_READMETAHANDLEKEY_H
6 #define STOREGATE_READMETAHANDLEKEY_H
7 
9 #include <string>
10 
11 namespace SG {
12 
13  template <class T> class ReadMetaHandle;
14 
15  template <class T> class ReadMetaHandleKey
16  : public MetaHandleKey<T>
17  {
18  public:
19  friend class ReadMetaHandle<T>;
20 
21  explicit ReadMetaHandleKey (const std::string& key
22  , const std::string& dbKey="")
24  {}
25 
26  template <
27  class OWNER
29  inline ReadMetaHandleKey( OWNER* owner
30  , std::string name
31  , const std::string& key={}
32  , std::string doc="")
34  auto p = owner->declareProperty(std::move(name), *this, std::move(doc));
35  p->template setOwnerType<OWNER>();
36  }
37 
38  inline ReadMetaHandleKey& operator= (const std::string& sgkey) {
40  return *this;
41  }
42 
43  };
44 
45 } // namespace SG
46 
47 #endif // not STOREGATE_READMETAHANDLEKEY_H
common.sgkey
def sgkey(tool)
Definition: common.py:1028
SG
Forward declaration.
Definition: CaloCellPacker_400_500.h:32
SG::ReadMetaHandleKey
Definition: ReadMetaHandleKey.h:17
MetaHandleKey.h
SG::ReadMetaHandleKey::operator=
ReadMetaHandleKey & operator=(const std::string &sgkey)
Definition: ReadMetaHandleKey.h:38
athena.value
value
Definition: athena.py:124
SG::VarHandleKey::key
const std::string & key() const
Return the StoreGate ID for the referenced object.
Definition: AthToolSupport/AsgDataHandles/Root/VarHandleKey.cxx:141
python.CaloAddPedShiftConfig.type
type
Definition: CaloAddPedShiftConfig.py:42
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:210
LHEF::Reader
Pythia8::Reader Reader
Definition: Prophecy4fMerger.cxx:11
merge_scale_histograms.doc
string doc
Definition: merge_scale_histograms.py:9
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
SG::VarHandleKey::operator=
VarHandleKey & operator=(const std::string &sgkey)
Change the key of the object to which we're referring.
Definition: AthToolSupport/AsgDataHandles/Root/VarHandleKey.cxx:68
SG::ReadMetaHandle
Definition: MetaCont.h:21
DataHandle
an iterator over instances of a given type in StoreGateSvc. It d-casts and caches locally the pointed...
Definition: DataHandle.h:43
Gaudi
=============================================================================
Definition: CaloGPUClusterAndCellDataMonitorOptions.h:273
SG::ReadMetaHandleKey::ReadMetaHandleKey
ReadMetaHandleKey(const std::string &key, const std::string &dbKey="")
Definition: ReadMetaHandleKey.h:21
SG::ReadMetaHandleKey::ReadMetaHandleKey
ReadMetaHandleKey(OWNER *owner, std::string name, const std::string &key={}, std::string doc="")
Definition: ReadMetaHandleKey.h:29
SG::MetaHandleKey
Definition: MetaHandleKey.h:19
TSU::T
unsigned long long T
Definition: L1TopoDataTypes.h:35
SG::MetaHandleKey::dbKey
const MetaContBase::SourceID & dbKey() const
Definition: MetaHandleKey.h:28