ATLAS Offline Software
EventInfoWriter.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef ATHENAPOOLTEST_EVENTINFOWRITER_H
6 #define ATHENAPOOLTEST_EVENTINFOWRITER_H
7 
26 //<<<<<< INCLUDES >>>>>>
27 
31 
32 //<<<<<< PUBLIC TYPES >>>>>>
33 
34 class ITagInfoMgr;
35 
36 //<<<<<< CLASS DECLARATIONS >>>>>>
37 
39 {
40 public:
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:
57 private:
58 
61 
64 
67 
69  // Private data:
71 private:
72 
75 
77  BooleanProperty m_createDummyTags;
78 
80  BooleanProperty m_removeDummyTags;
81 
84  BooleanProperty m_createDummyOverrideTags;
85 
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
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
EventInfoWriter::m_removeDummyTags
BooleanProperty m_removeDummyTags
For testing only: remove input dummy tags.
Definition: EventInfoWriter.h:80
EventInfoWriter::m_createDummyTags
BooleanProperty m_createDummyTags
For testing only: add in dummy tags.
Definition: EventInfoWriter.h:77
EventInfoWriter::operator=
EventInfoWriter & operator=(const EventInfoWriter &)
Avoid use of copy operator.
EventInfoWriter::EventInfoWriter
EventInfoWriter(const EventInfoWriter &)
Avoid use of copy constructor.
SG::ReadHandleKey< xAOD::EventInfo >
EventInfoWriter::m_setDummyTags
bool m_setDummyTags
Definition: EventInfoWriter.h:92
AthAlgorithm.h
EventInfoWriter::execute
virtual StatusCode execute() override
Algorithm execute once per event.
Definition: EventInfoWriter.cxx:75
EventInfoWriter::m_createDummyOverrideTags
BooleanProperty m_createDummyOverrideTags
For testing only: add in dummy tags which may override existing tags.
Definition: EventInfoWriter.h:84
EventInfoWriter::fillTagInfo
StatusCode fillTagInfo()
Add in tags to TagInfoMgr.
Definition: EventInfoWriter.cxx:135
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
EventInfoWriter::finalize
virtual StatusCode finalize() override
Algorithm finalize at end of job.
Definition: EventInfoWriter.cxx:126
EventInfoWriter::EventInfoWriter
EventInfoWriter()
Avoid use of default constructor.
AthAlgorithm
Definition: AthAlgorithm.h:47
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
EventInfoWriter::m_tagInfoMgr
ITagInfoMgr * m_tagInfoMgr
Access to the TagInfoMgr.
Definition: EventInfoWriter.h:87
EventInfo.h
EventInfoWriter::initialize
virtual StatusCode initialize() override
Algorithm initialize at begin of job.
Definition: EventInfoWriter.cxx:36
ITagInfoMgr
This is a Athena service which manages detector description tag information. It maintains a TagInfo o...
Definition: ITagInfoMgr.h:58
EventInfoWriter
Test Algorithm for checking TagInfoMgr and the storing of geometry and conditions tags in EventInfo,...
Definition: EventInfoWriter.h:39
EventInfoWriter::m_eventInfoKey
SG::ReadHandleKey< xAOD::EventInfo > m_eventInfoKey
SG key for Event Info.
Definition: EventInfoWriter.h:90