ATLAS Offline Software
ReadCondHandleKey.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2022 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  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 };
54 
55 
56 } // namespace SG
57 
58 #endif // not STOREGATE_READCONDHANDLEKEY_H
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
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:228
DataHandle
an iterator over instances of a given type in StoreGateSvc. It d-casts and caches locally the pointed...
Definition: DataHandle.h:42
SG::ReadCondHandleKey
Definition: ReadCondHandleKey.h:20
SG::ReadCondHandleKey::ReadCondHandleKey
ReadCondHandleKey(OWNER *owner, std::string name, const std::string &key={}, std::string doc="")
auto-declaring Property Constructor.
Definition: ReadCondHandleKey.h:44
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
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