ATLAS Offline Software
Loading...
Searching...
No Matches
graphics
VP1
VP1Utils
VP1Utils
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
21
#include "
VP1Base/VP1HelperClassBase.h
"
22
#include "
AthenaKernel/ClassID_traits.h
"
23
#include <QStringList>
24
class
StoreGateSvc
;
25
26
class
VP1SGContentsHelper
:
public
VP1HelperClassBase
{
27
public
:
28
29
VP1SGContentsHelper
(
IVP1System
*,
const
bool
detStore =
false
);
//For messages in gui (detStore=true takes detector rather than event store)
30
VP1SGContentsHelper
(
StoreGateSvc
* );
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
45
StoreGateSvc
*
m_sg
;
46
47
};
48
49
51
// Inlines //
53
54
template
<
typename
T>
55
inline
QStringList
VP1SGContentsHelper::getKeys
()
const
56
{
57
return
getKeys
(
ClassID_traits<T>::ID
());
58
}
59
60
template
<
typename
T>
61
inline
bool
VP1SGContentsHelper::contains
(
const
QString& key )
const
62
{
63
return
contains
(
ClassID_traits<T>::ID
(),key);
64
}
65
66
67
#endif
ClassID_traits.h
a traits class that associates a CLID to a type T It also detects whether T inherits from Gaudi DataO...
CLID
uint32_t CLID
The Class ID type.
Definition
Event/xAOD/xAODCore/xAODCore/ClassID_traits.h:47
VP1HelperClassBase.h
IVP1System
Definition
IVP1System.h:36
StoreGateSvc
The Athena Transient Store API.
Definition
StoreGateSvc.h:122
VP1HelperClassBase::VP1HelperClassBase
VP1HelperClassBase(IVP1System *sys=0, QString helpername="")
Definition
VP1HelperClassBase.cxx:28
VP1SGContentsHelper::m_sg
StoreGateSvc * m_sg
Definition
VP1SGContentsHelper.h:45
VP1SGContentsHelper::~VP1SGContentsHelper
virtual ~VP1SGContentsHelper()
Definition
VP1SGContentsHelper.h:31
VP1SGContentsHelper::VP1SGContentsHelper
VP1SGContentsHelper(IVP1System *, const bool detStore=false)
Definition
VP1SGContentsHelper.cxx:25
VP1SGContentsHelper::contains
bool contains(const QString &key) const
Definition
VP1SGContentsHelper.h:61
VP1SGContentsHelper::getKeys
QStringList getKeys() const
Definition
VP1SGContentsHelper.h:55
VP1SGContentsHelper::getPossibleCLIDs
QList< CLID > getPossibleCLIDs() const
Definition
VP1SGContentsHelper.cxx:113
ClassID_traits::ID
static CLID ID()
Definition
Control/AthenaKernel/AthenaKernel/ClassID_traits.h:44
Generated on
for ATLAS Offline Software by
1.14.0