ATLAS Offline Software
Loading...
Searching...
No Matches
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
31
32//<<<<<< PUBLIC TYPES >>>>>>
33
34class ITagInfoMgr;
35
36//<<<<<< CLASS DECLARATIONS >>>>>>
37
39{
40public:
41
43 EventInfoWriter(const std::string &name,ISvcLocator *pSvcLocator);
44
46 virtual StatusCode initialize() override;
47
49 virtual StatusCode execute() override;
50
52 virtual StatusCode finalize() override;
53
55 // Private methods:
57private:
58
61
64
67
69 // Private data:
71private:
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
Property holding a SG store/key/clid from which a ReadHandle is made.
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
virtual StatusCode initialize() override
Algorithm initialize at begin of job.
EventInfoWriter(const EventInfoWriter &)
Avoid use of copy constructor.
SG::ReadHandleKey< xAOD::EventInfo > m_eventInfoKey
SG key for Event Info.
BooleanProperty m_createDummyOverrideTags
For testing only: add in dummy tags which may override existing tags.
BooleanProperty m_createDummyTags
For testing only: add in dummy tags.
ServiceHandle< ITagInfoMgr > m_tagInfoMgr
Access to the TagInfoMgr.
virtual StatusCode execute() override
Algorithm execute once per event.
EventInfoWriter()
Avoid use of default constructor.
EventInfoWriter & operator=(const EventInfoWriter &)
Avoid use of copy operator.
BooleanProperty m_removeDummyTags
For testing only: remove input dummy tags.
EventInfoWriter(const std::string &name, ISvcLocator *pSvcLocator)
Algorithm constructor.
virtual StatusCode finalize() override
Algorithm finalize at end of job.
This is a Athena service which manages detector description tag information.
Definition ITagInfoMgr.h:58
Property holding a SG store/key/clid from which a ReadHandle is made.