ATLAS Offline Software
EventInfoReader.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_EVENTINFOREADER_H
6 #define ATHENAPOOLTEST_EVENTINFOREADER_H
7 
25 #include "GaudiKernel/ServiceHandle.h"
29 
31 // GeoModel
33 
34 
35 class EventInfoReader : public AthAlgorithm {
36 public:
37 
39  EventInfoReader(const std::string &name,ISvcLocator *pSvcLocator);
40 
42  virtual StatusCode initialize() override;
43 
45  virtual StatusCode execute() override;
46 
48  virtual StatusCode finalize() override;
49 
51  // Private methods:
53 private:
54 
57 
60 
63 
65  // Private data:
67 private:
73  SG::ReadHandleKey<xAOD::EventInfo> m_eventInfoKey{this, "EventInfo", "EventInfo", "EventInfo name"};
74 };
75 
76 
77 #endif // SRC_EVENTINFOREADER_H
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
EventInfoReader::initialize
virtual StatusCode initialize() override
Algorithm initialize at begin of job.
Definition: EventInfoReader.cxx:25
EventInfoReader::operator=
EventInfoReader & operator=(const EventInfoReader &)
Avoid use of copy operator.
EventInfoReader::m_geoModel
ServiceHandle< IGeoModelSvc > m_geoModel
Access to GeoModelSvc for tags.
Definition: EventInfoReader.h:69
ITagInfoMgr.h
EventInfoReader::m_eventInfoKey
SG::ReadHandleKey< xAOD::EventInfo > m_eventInfoKey
SG key for Event Info.
Definition: EventInfoReader.h:73
EventInfoReader
Test Algorithm for checking TagInfoMgr and the storing of geometry and conditions tags in EventInfo.
Definition: EventInfoReader.h:35
SG::ReadHandleKey< xAOD::EventInfo >
AthAlgorithm.h
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
AthAlgorithm
Definition: AthAlgorithm.h:47
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
EventInfoReader::execute
virtual StatusCode execute() override
Algorithm execute once per event.
Definition: EventInfoReader.cxx:35
EventInfoReader::EventInfoReader
EventInfoReader()
Avoid use of default constructor.
EventInfo.h
EventInfoReader::EventInfoReader
EventInfoReader(const EventInfoReader &)
Avoid use of copy constructor.
EventInfoReader::m_tagInfoMgr
ServiceHandle< ITagInfoMgr > m_tagInfoMgr
Access to TagInfoMgr for tags.
Definition: EventInfoReader.h:71
EventInfoReader::finalize
virtual StatusCode finalize() override
Algorithm finalize at end of job.
Definition: EventInfoReader.cxx:73
IGeoModelSvc.h
ServiceHandle< IGeoModelSvc >