ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
AtlasTest
DatabaseTest
AthenaPoolTest
src
AtlasTest/DatabaseTest/AthenaPoolTest/src/EventInfoWriter.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef ATHENAPOOLTEST_EVENTINFOWRITER_H
6
#define ATHENAPOOLTEST_EVENTINFOWRITER_H
7
16
24
25
26
//<<<<<< INCLUDES >>>>>>
27
28
#include "
AthenaBaseComps/AthAlgorithm.h
"
29
#include "
StoreGate/ReadHandleKey.h
"
30
#include "
xAODEventInfo/EventInfo.h
"
31
32
//<<<<<< PUBLIC TYPES >>>>>>
33
34
class
ITagInfoMgr
;
35
36
//<<<<<< CLASS DECLARATIONS >>>>>>
37
38
class
EventInfoWriter
:
public
AthAlgorithm
39
{
40
public
:
41
43
EventInfoWriter
(
const
std::string &name,ISvcLocator *pSvcLocator);
44
46
virtual
StatusCode
initialize
()
override
;
47
49
virtual
StatusCode
execute
(
const
EventContext& ctx)
override
;
50
52
virtual
StatusCode
finalize
()
override
;
53
55
// Private methods:
57
private
:
58
60
EventInfoWriter
();
61
63
EventInfoWriter
(
const
EventInfoWriter
&);
64
66
EventInfoWriter
&
operator=
(
const
EventInfoWriter
&);
67
69
// Private data:
71
private
:
72
74
StatusCode
fillTagInfo
();
75
77
BooleanProperty
m_createDummyTags
{
this
,
"CreateDummyTags"
,
false
};
78
80
BooleanProperty
m_removeDummyTags
{
this
,
"RemoveDummyTags"
,
false
};
81
84
BooleanProperty
m_createDummyOverrideTags
{
this
,
"CreateDummyOverrideTags"
,
false
};
85
87
ServiceHandle<ITagInfoMgr>
m_tagInfoMgr
{
this
,
"TagInfoMgr"
,
"TagInfoMgr"
};
88
90
SG::ReadHandleKey<xAOD::EventInfo>
m_eventInfoKey
{
this
,
"EventInfo"
,
"EventInfo"
,
"EventInfo name"
};
91
92
bool
m_setDummyTags
=
false
;
93
94
};
95
96
97
//<<<<<< INLINE PUBLIC FUNCTIONS >>>>>>
98
//<<<<<< INLINE MEMBER FUNCTIONS >>>>>>
99
100
#endif
// SRC_EVENTINFOWRITER_H
AthAlgorithm.h
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
AthAlgorithm::AthAlgorithm
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
Definition
AthAlgorithm.cxx:10
EventInfoWriter::m_setDummyTags
bool m_setDummyTags
Definition
AtlasTest/DatabaseTest/AthenaPoolTest/src/EventInfoWriter.h:92
EventInfoWriter::initialize
virtual StatusCode initialize() override
Algorithm initialize at begin of job.
Definition
AtlasTest/DatabaseTest/AthenaPoolTest/src/EventInfoWriter.cxx:29
EventInfoWriter::EventInfoWriter
EventInfoWriter(const EventInfoWriter &)
Avoid use of copy constructor.
EventInfoWriter::m_eventInfoKey
SG::ReadHandleKey< xAOD::EventInfo > m_eventInfoKey
SG key for Event Info.
Definition
AtlasTest/DatabaseTest/AthenaPoolTest/src/EventInfoWriter.h:90
EventInfoWriter::m_createDummyOverrideTags
BooleanProperty m_createDummyOverrideTags
For testing only: add in dummy tags which may override existing tags.
Definition
AtlasTest/DatabaseTest/AthenaPoolTest/src/EventInfoWriter.h:84
EventInfoWriter::m_createDummyTags
BooleanProperty m_createDummyTags
For testing only: add in dummy tags.
Definition
AtlasTest/DatabaseTest/AthenaPoolTest/src/EventInfoWriter.h:77
EventInfoWriter::fillTagInfo
StatusCode fillTagInfo()
Add in tags to TagInfoMgr.
Definition
AtlasTest/DatabaseTest/AthenaPoolTest/src/EventInfoWriter.cxx:124
EventInfoWriter::m_tagInfoMgr
ServiceHandle< ITagInfoMgr > m_tagInfoMgr
Access to the TagInfoMgr.
Definition
AtlasTest/DatabaseTest/AthenaPoolTest/src/EventInfoWriter.h:87
EventInfoWriter::EventInfoWriter
EventInfoWriter()
Avoid use of default constructor.
EventInfoWriter::operator=
EventInfoWriter & operator=(const EventInfoWriter &)
Avoid use of copy operator.
EventInfoWriter::m_removeDummyTags
BooleanProperty m_removeDummyTags
For testing only: remove input dummy tags.
Definition
AtlasTest/DatabaseTest/AthenaPoolTest/src/EventInfoWriter.h:80
EventInfoWriter::EventInfoWriter
EventInfoWriter(const std::string &name, ISvcLocator *pSvcLocator)
Algorithm constructor.
Definition
AtlasTest/DatabaseTest/AthenaPoolTest/src/EventInfoWriter.cxx:22
EventInfoWriter::finalize
virtual StatusCode finalize() override
Algorithm finalize at end of job.
Definition
AtlasTest/DatabaseTest/AthenaPoolTest/src/EventInfoWriter.cxx:115
EventInfoWriter::execute
virtual StatusCode execute(const EventContext &ctx) override
Algorithm execute once per event.
Definition
AtlasTest/DatabaseTest/AthenaPoolTest/src/EventInfoWriter.cxx:64
ITagInfoMgr
This is a Athena service which manages detector description tag information.
Definition
ITagInfoMgr.h:58
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition
StoreGate/StoreGate/ReadHandleKey.h:40
ServiceHandle
Definition
ClusterMakerTool.h:36
EventInfo.h
Generated on
for ATLAS Offline Software by
1.17.0