ATLAS Offline Software
StoreGate/StoreGate/DecorKeyHelpers.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  * Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration.
4  */
13 #ifndef STOREGATE_DECORKEYHELPERS_H
14 #define STOREGATE_DECORKEYHELPERS_H
15 
16 
17 #include <string>
18 
19 
20 namespace SG {
21 
22 class VarHandleKey;
23 
30 std::string contKeyFromKey (const std::string& key);
31 
32 
39 std::string decorKeyFromKey (const std::string& key);
40 
41 
50 std::string makeContDecorKey(const std::string& cont, const std::string& decor);
51 
52 
62 std::string makeContDecorKey(const VarHandleKey& contKey, const std::string& sgkey);
63 
64 
72 void removeContFromDecorKey(const VarHandleKey& contKey, std::string& key);
73 
74 } // namespace SG
75 
76 
77 #endif // not STOREGATE_DECORKEYHELPERS_H
SG::contKeyFromKey
std::string contKeyFromKey(const std::string &key)
Extract the container part of key.
Definition: DecorKeyHelpers.cxx:26
common.sgkey
def sgkey(tool)
Definition: common.py:1028
SG
Forward declaration.
Definition: CaloCellPacker_400_500.h:32
SG::decorKeyFromKey
std::string decorKeyFromKey(const std::string &key)
Extract the decoration part of key.
Definition: DecorKeyHelpers.cxx:41
SG::removeContFromDecorKey
void removeContFromDecorKey(const VarHandleKey &contKey, std::string &key)
Remove container name from decoration key.
Definition: DecorKeyHelpers.cxx:94
SG::makeContDecorKey
std::string makeContDecorKey(const std::string &cont, const std::string &decor)
Make a StoreGate key from container and decoration name.
Definition: DecorKeyHelpers.cxx:58
mapkey::key
key
Definition: TElectronEfficiencyCorrectionTool.cxx:37