ATLAS Offline Software
xAODTestWriteCInfo.h
Go to the documentation of this file.
1 // This file's extension implies that it's C, but it's really -*- C++ -*-.
2 
3 /*
4  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
5 */
6 
7 // $Id$
16 #ifndef DATAMODELTESTDATACOMMON_XAODTESTWRITECINFO_H
17 #define DATAMODELTESTDATACOMMON_XAODTESTWRITECINFO_H
18 
19 
26 
27 
28 namespace DMTest {
29 
30 
35  : public AthReentrantAlgorithm
36 {
37 public:
43  xAODTestWriteCInfo (const std::string &name, ISvcLocator *pSvcLocator);
44 
45 
49  virtual StatusCode initialize() override;
50 
51 
55  virtual StatusCode execute (const EventContext& ctx) const override;
56 
57 
61  virtual StatusCode finalize() override;
62 
63 
64 private:
65  int m_offset;
66  SG::ReadHandleKey<xAOD::EventInfo> m_eventInfoKey{this, "EvtInfo", "EventInfo", "EventInfo name"};
69 };
70 
71 
72 } // namespace DMTest
73 
74 
75 #endif // not DATAMODELTESTDATACOMMON_XAODTESTWRITECINFO_H
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
DMTest::xAODTestWriteCInfo::m_cinfoKey
SG::WriteHandleKey< DMTest::C > m_cinfoKey
Definition: xAODTestWriteCInfo.h:68
DMTest::xAODTestWriteCInfo
Algorithm for creating test aux data.
Definition: xAODTestWriteCInfo.h:36
DMTest::xAODTestWriteCInfo::m_offset
int m_offset
Definition: xAODTestWriteCInfo.h:65
DMTest::xAODTestWriteCInfo::xAODTestWriteCInfo
xAODTestWriteCInfo(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
Definition: xAODTestWriteCInfo.cxx:28
DMTest::xAODTestWriteCInfo::finalize
virtual StatusCode finalize() override
Algorithm finalization; called at the end of the job.
Definition: xAODTestWriteCInfo.cxx:92
SG::ReadHandleKey< xAOD::EventInfo >
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition: AthReentrantAlgorithm.h:83
CVec.h
Class used for testing xAOD data reading/writing.
SG::WriteHandleKey
Property holding a SG store/key/clid from which a WriteHandle is made.
Definition: StoreGate/StoreGate/WriteHandleKey.h:40
DMTest::xAODTestWriteCInfo::execute
virtual StatusCode execute(const EventContext &ctx) const override
Algorithm event processing.
Definition: xAODTestWriteCInfo.cxx:55
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
C.h
Class used for testing xAOD data reading/writing.
DMTest::xAODTestWriteCInfo::m_eventInfoKey
SG::ReadHandleKey< xAOD::EventInfo > m_eventInfoKey
Definition: xAODTestWriteCInfo.h:66
AthReentrantAlgorithm.h
WriteHandleKey.h
Property holding a SG store/key/clid from which a WriteHandle is made.
DMTest::xAODTestWriteCInfo::initialize
virtual StatusCode initialize() override
Algorithm initialization; called at the beginning of the job.
Definition: xAODTestWriteCInfo.cxx:43
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
EventInfo.h
DMTest::xAODTestWriteCInfo::m_cvecKey
SG::ReadHandleKey< DMTest::CVec > m_cvecKey
Definition: xAODTestWriteCInfo.h:67
DMTest
Definition: B.h:23