ATLAS Offline Software
WriteCondHandleKey.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_WRITECONDHANDLEKEY_H
6 #define STOREGATE_WRITECONDHANDLEKEY_H
7 
8 
10 
11 
12 namespace SG {
13 
14  template <class T>
15  class WriteCondHandle;
16 
17  template <class T>
19  : public CondHandleKey<T>
20  {
21 
22  friend class WriteCondHandle<T>;
23 
24  public:
25 
31  WriteCondHandleKey(const std::string& key, const std::string& dbKey) :
33  {}
34 
41  WriteCondHandleKey(const std::string& key) :
43  {}
44 
45 
58  template <class OWNER,
60  inline WriteCondHandleKey( OWNER* owner,
61  std::string name,
62  const std::string& key={},
63  std::string doc="") :
65  auto p = owner->declareProperty(std::move(name), *this, std::move(doc));
66  p->template setOwnerType<OWNER>();
67  }
68 
69  };
70 
71 } // namespace SG
72 
73 #endif
SG::WriteCondHandleKey::WriteCondHandleKey
WriteCondHandleKey(OWNER *owner, std::string name, const std::string &key={}, std::string doc="")
auto-declaring Property Constructor.
Definition: WriteCondHandleKey.h:60
SG
Forward declaration.
Definition: CaloCellPacker_400_500.h:32
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::WriteCondHandleKey::WriteCondHandleKey
WriteCondHandleKey(const std::string &key, const std::string &dbKey)
Constructor for WriteCondHandle @key StoreGate key @dbKey key in the database.
Definition: WriteCondHandleKey.h:31
SG::CondHandleKey
Definition: CondHandleKey.h:19
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:210
SG::WriteCondHandleKey::WriteCondHandleKey
WriteCondHandleKey(const std::string &key)
Constructor for WriteCondHandle that takes just a SG key @key StoreGate key.
Definition: WriteCondHandleKey.h:41
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
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
Gaudi
=============================================================================
Definition: CaloGPUClusterAndCellDataMonitorOptions.h:273
CondHandleKey.h
SG::WriteCondHandleKey
Definition: WriteCondHandleKey.h:20
LHEF::Writer
Pythia8::Writer Writer
Definition: Prophecy4fMerger.cxx:12
SG::CondHandleKey::dbKey
const std::string & dbKey() const
Definition: CondHandleKey.h:31
SG::WriteCondHandle
Definition: WriteCondHandle.h:26
TSU::T
unsigned long long T
Definition: L1TopoDataTypes.h:35