ATLAS Offline Software
ReadCondHandleKey.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_READCONDHANDLEKEY_H
6 #define STOREGATE_READCONDHANDLEKEY_H
7 
9 #include <string>
10 
11 
12 namespace SG {
13 
14  template <class T>
15  class ReadCondHandle;
16 
17  template <class T>
19  : public CondHandleKey<T>
20  {
21  public:
22 
23  friend class ReadCondHandle<T>;
24 
25  explicit ReadCondHandleKey (const std::string& key, const std::string& dbKey="") :
27  {}
28 
29 
42  template <class OWNER,
44  inline ReadCondHandleKey( OWNER* owner,
45  std::string name,
46  const std::string& key={},
47  std::string doc="") :
49  auto p = owner->declareProperty(std::move(name), *this, std::move(doc));
50  p->template setOwnerType<OWNER>();
51  }
52 
53 
62  inline ReadCondHandleKey& operator= (const std::string& sgkey) {
64  return *this;
65  }
66 
67 };
68 
69 
70 } // namespace SG
71 
72 #endif // not STOREGATE_READCONDHANDLEKEY_H
common.sgkey
def sgkey(tool)
Definition: common.py:1028
SG
Forward declaration.
Definition: CaloCellPacker_400_500.h:32
SG::ReadCondHandle
Definition: ReadCondHandle.h:44
SG::ReadCondHandleKey::ReadCondHandleKey
ReadCondHandleKey(const std::string &key, const std::string &dbKey="")
Definition: ReadCondHandleKey.h:25
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
SG::CondHandleKey
Definition: CondHandleKey.h:19
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:240
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
DataHandle
an iterator over instances of a given type in StoreGateSvc. It d-casts and caches locally the pointed...
Definition: DataHandle.h:43
SG::ReadCondHandleKey
Definition: ReadCondHandleKey.h:20
SG::ReadCondHandleKey::operator=
ReadCondHandleKey & operator=(const std::string &sgkey)
Change the key of the object to which we're referring.
Definition: ReadCondHandleKey.h:62
SG::ReadCondHandleKey::ReadCondHandleKey
ReadCondHandleKey(OWNER *owner, std::string name, const std::string &key={}, std::string doc="")
auto-declaring Property Constructor.
Definition: ReadCondHandleKey.h:44
Gaudi
=============================================================================
Definition: CaloGPUClusterAndCellDataMonitorOptions.h:273
CondHandleKey.h
SG::CondHandleKey::dbKey
const std::string & dbKey() const
Definition: CondHandleKey.h:31
TSU::T
unsigned long long T
Definition: L1TopoDataTypes.h:35