ATLAS Offline Software
xAODTestRead.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  Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
4 */
13 #ifndef DATAMODELTESTDATAREAD_XAODTESTREAD_H
14 #define DATAMODELTESTDATAREAD_XAODTESTREAD_H
15 
16 
23 
24 
25 namespace DMTest {
26 
27 
32  : public AthReentrantAlgorithm
33 {
34 public:
36 
37 
41  virtual StatusCode initialize() override;
42 
43 
47  virtual StatusCode execute (const EventContext& ctx) const override;
48 
49 
53  virtual StatusCode finalize() override;
54 
55 
56 private:
58  StatusCode read_cvec_with_data (const EventContext& ctx) const;
59 
61  StatusCode read_gvec (const EventContext& ctx) const;
62 
64  //StatusCode read_cview() const;
65 
67  { this, "CTrigReadKey", "ctrig", "" };
68 
70  { this, "GVecReadKey", "gvec", "" };
71 
73  { this, "CVecWDReadKey", "cvecWD", "" };
74 
76  { this, "CTrigWriteKey", "", "" };
77 
79  { this, "GVecWriteKey", "", "" };
80 
82  { this, "CVecWDWriteKey", "", "" };
83 };
84 
85 
86 } // namespace DMTest
87 
88 
89 #endif // not DATAMODELTESTDATAREAD_XAODTESTREAD_H
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
DMTest::xAODTestRead::execute
virtual StatusCode execute(const EventContext &ctx) const override
Algorithm event processing.
Definition: xAODTestRead.cxx:50
DMTest::xAODTestRead::read_gvec
StatusCode read_gvec(const EventContext &ctx) const
Test reading GVec object.
Definition: xAODTestRead.cxx:155
DMTest::xAODTestRead::m_gvecReadKey
SG::ReadHandleKey< DMTest::GVec > m_gvecReadKey
Definition: xAODTestRead.h:70
DMTest::xAODTestRead::read_cvec_with_data
StatusCode read_cvec_with_data(const EventContext &ctx) const
Test reading container with additional data.
Definition: xAODTestRead.cxx:121
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition: StoreGate/StoreGate/ReadHandleKey.h:39
DMTest::xAODTestRead::m_ctrigReadKey
SG::ReadHandleKey< DMTest::CVec > m_ctrigReadKey
Test reading view container.
Definition: xAODTestRead.h:67
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition: AthReentrantAlgorithm.h:83
DMTest::xAODTestRead
Algorithm to test reading xAOD data.
Definition: xAODTestRead.h:33
CVec.h
Class used for testing xAOD data reading/writing.
AthReentrantAlgorithm::AthReentrantAlgorithm
AthReentrantAlgorithm()
Default constructor:
SG::WriteHandleKey
Property holding a SG store/key/clid from which a WriteHandle is made.
Definition: StoreGate/StoreGate/WriteHandleKey.h:40
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
DMTest::xAODTestRead::m_cvecWDWriteKey
SG::WriteHandleKey< DMTest::CVecWithData > m_cvecWDWriteKey
Definition: xAODTestRead.h:82
DMTest::xAODTestRead::m_ctrigWriteKey
SG::WriteHandleKey< DMTest::CVec > m_ctrigWriteKey
Definition: xAODTestRead.h:76
GVec.h
AthReentrantAlgorithm.h
WriteHandleKey.h
Property holding a SG store/key/clid from which a WriteHandle is made.
DMTest::xAODTestRead::initialize
virtual StatusCode initialize() override
Algorithm initialization; called at the beginning of the job.
Definition: xAODTestRead.cxx:35
CVecWithData.h
Test writing a container with metadata.
DMTest::xAODTestRead::m_gvecWriteKey
SG::WriteHandleKey< DMTest::GVec > m_gvecWriteKey
Definition: xAODTestRead.h:79
DMTest::xAODTestRead::finalize
virtual StatusCode finalize() override
Algorithm finalization; called at the end of the job.
Definition: xAODTestRead.cxx:233
DMTest::xAODTestRead::m_cvecWDReadKey
SG::ReadHandleKey< DMTest::CVecWithData > m_cvecWDReadKey
Definition: xAODTestRead.h:73
DMTest
Definition: B.h:23