ATLAS Offline Software
VP1SGContentsHelper.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 
7 // //
8 // Header file for class VP1SGContentsHelper //
9 // //
10 // Description: Helper class for retrieving the available //
11 // keys in storegate for a given type. //
12 // //
13 // Author: Thomas H. Kittelmann (Thomas.Kittelmann@cern.ch) //
14 // Initial version: March 2008 //
15 // //
17 
18 #ifndef VP1SGCONTENTSHELPER_H
19 #define VP1SGCONTENTSHELPER_H
20 
23 #include <QStringList>
24 class StoreGateSvc;
25 
27 public:
28 
29  VP1SGContentsHelper( IVP1System *, const bool detStore = false );//For messages in gui (detStore=true takes detector rather than event store)
31  virtual ~VP1SGContentsHelper() {}
32 
33  template <typename T>
34  QStringList getKeys() const;
35  QStringList getKeys( const CLID& id ) const;
36 
37  template <typename T>
38  bool contains( const QString& key ) const;
39  bool contains( const CLID& id, const QString& key ) const;
40 
41  QList<CLID> getPossibleCLIDs() const;
42 
43 private:
44 
46 
47 };
48 
49 
51 // Inlines //
53 
54 template <typename T>
55 inline QStringList VP1SGContentsHelper::getKeys() const
56 {
58 }
59 
60 template <typename T>
61 inline bool VP1SGContentsHelper::contains( const QString& key ) const
62 {
64 }
65 
66 
67 #endif
VP1SGContentsHelper::VP1SGContentsHelper
VP1SGContentsHelper(IVP1System *, const bool detStore=false)
Definition: VP1SGContentsHelper.cxx:25
VP1SGContentsHelper::~VP1SGContentsHelper
virtual ~VP1SGContentsHelper()
Definition: VP1SGContentsHelper.h:31
VP1SGContentsHelper::getKeys
QStringList getKeys() const
Definition: VP1SGContentsHelper.h:55
StoreGateSvc
The Athena Transient Store API.
Definition: StoreGateSvc.h:125
IVP1System
Definition: IVP1System.h:36
ClassID_traits.h
a traits class that associates a CLID to a type T It also detects whether T inherits from Gaudi DataO...
ClassID_traits
Default, invalid implementation of ClassID_traits.
Definition: Control/AthenaKernel/AthenaKernel/ClassID_traits.h:40
VP1SGContentsHelper::m_sg
StoreGateSvc * m_sg
Definition: VP1SGContentsHelper.h:45
CLID
uint32_t CLID
The Class ID type.
Definition: Event/xAOD/xAODCore/xAODCore/ClassID_traits.h:47
VP1HelperClassBase
Definition: VP1HelperClassBase.h:28
python.PyKernel.detStore
detStore
Definition: PyKernel.py:41
VP1HelperClassBase.h
VP1SGContentsHelper
Definition: VP1SGContentsHelper.h:26
VP1SGContentsHelper::contains
bool contains(const QString &key) const
Definition: VP1SGContentsHelper.h:61
VP1SGContentsHelper::getPossibleCLIDs
QList< CLID > getPossibleCLIDs() const
Definition: VP1SGContentsHelper.cxx:113
mapkey::key
key
Definition: TElectronEfficiencyCorrectionTool.cxx:37