ATLAS Offline Software
StoreGate/StoreGate/WriteHandleKey.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 /*
4  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
5 */
6 
7 // $Id$
16 #ifndef STOREGATE_WRITEHANDLEKEY_H
17 #define STOREGATE_WRITEHANDLEKEY_H
18 
19 
20 #include "StoreGate/VarHandleKey.h"
21 #include "AthenaKernel/CLASS_DEF.h"
22 
23 
24 namespace SG {
25 
26 
37 template <class T>
39  : public VarHandleKey
40 {
41 public:
51  WriteHandleKey (const std::string& key = "",
52  const std::string& storeName = StoreID::storeName(StoreID::EVENT_STORE));
53 
54 
68  template <class OWNER,
70  inline WriteHandleKey (OWNER* owner,
71  std::string name,
72  const std::string& key={},
73  std::string doc="");
74 
75 
84  WriteHandleKey& operator= (const std::string& sgkey);
85 };
86 
87 
88 } // namespace SG
89 
90 
92 
93 
94 #endif // not STOREGATE_WRITEHANDLEKEY_H
common.sgkey
def sgkey(tool)
Definition: common.py:1028
SG::WriteHandleKey::WriteHandleKey
WriteHandleKey(const std::string &key="", const std::string &storeName=StoreID::storeName(StoreID::EVENT_STORE))
Constructor.
VarHandleKey.h
A property holding a SG store/key/clid from which a VarHandle is made.
SG
Forward declaration.
Definition: CaloCellPacker_400_500.h:32
athena.value
value
Definition: athena.py:122
SG::VarHandleKey::key
const std::string & key() const
Return the StoreGate ID for the referenced object.
Definition: AthToolSupport/AsgDataHandles/Root/VarHandleKey.cxx:141
SG::WriteHandleKey::WriteHandleKey
WriteHandleKey(OWNER *owner, std::string name, const std::string &key={}, std::string doc="")
auto-declaring Property Constructor.
SG::WriteHandleKey
Property holding a SG store/key/clid from which a WriteHandle is made.
Definition: StoreGate/StoreGate/WriteHandleKey.h:40
WriteHandleKey.icc
SG::WriteHandleKey::operator=
WriteHandleKey & operator=(const std::string &sgkey)
Change the key of the object to which we're referring.
merge_scale_histograms.doc
string doc
Definition: merge_scale_histograms.py:9
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:192
SG::VarHandleKey
A property holding a SG store/key/clid from which a VarHandle is made.
Definition: StoreGate/StoreGate/VarHandleKey.h:62
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
StoreID::EVENT_STORE
@ EVENT_STORE
Definition: StoreID.h:26
CLASS_DEF.h
macros to associate a CLID to a type
StoreID::storeName
static const std::string & storeName(const StoreID::type &s)
Definition: StoreID.cxx:77