ATLAS Offline Software
Loading...
Searching...
No Matches
AthToolSupport/AsgDataHandles/AsgDataHandles/ReadHandleKey.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-2020 CERN for the benefit of the ATLAS collaboration
5*/
6
13
14
15#ifndef ASG_DATA_HANDLES_READ_HANDLE_KEY_H
16#define ASG_DATA_HANDLES_READ_HANDLE_KEY_H
17
18#ifndef XAOD_STANDALONE
20#else
21
23
24
25namespace SG {
26
27
33template <class T>
34class ReadHandleKey
35 : public VarHandleKey
36{
37public:
47 ReadHandleKey (const std::string& key = "");
48 // const std::string& storeName = StoreID::storeName(StoreID::EVENT_STORE));
49
50
64 template <class OWNER, class K>
65 ReadHandleKey( OWNER* owner,
66 const std::string& name,
67 const K& key = {},
68 const std::string& doc = "");
69
70
79 ReadHandleKey& operator= (const std::string& sgkey);
80};
81
82
83} // namespace SG
84
85
87
88#endif
89
90#endif
A property holding a SG store/key/clid from which a VarHandle is made.
Property holding a SG store/key/clid from which a ReadHandle is made.
Property holding a SG store/key/clid from which a ReadHandle is made.
ReadHandleKey & operator=(const std::string &sgkey)
Change the key of the object to which we're referring.
ReadHandleKey(const std::string &key="", const std::string &storeName=StoreID::storeName(StoreID::EVENT_STORE))
Constructor.
A property holding a SG store/key/clid from which a VarHandle is made.
const std::string & key() const
Return the StoreGate ID for the referenced object.
Forward declaration.