ATLAS Offline Software
xAODTestShallowCopy.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 DATAMODELTESTDATACOMMON_XAODTESTSHALLOWCOPY_H
14 #define DATAMODELTESTDATACOMMON_XAODTESTSHALLOWCOPY_H
15 
16 
25 
26 
27 namespace DMTest {
28 
29 
34  : public AthReentrantAlgorithm
35 {
36 public:
38 
39 
43  virtual StatusCode initialize() override;
44 
45 
49  virtual StatusCode execute (const EventContext& ctx) const override;
50 
51 
52 private:
54  { this, "CVecReadKey", "cvec", "Key for cvec object read from SG" };
56  { this, "CVecWriteKey", "scopy_cvec", "Key for cvec object written to SG" };
58  { this, "CVecAnInt10Key", "scopy_cvec.anInt10", "Key for cvec anInt10 decoration" };
60  { this, "CVecDecorHelper", { "dInt1" } };
61 
63  { this, "CVecWDReadKey", "cvecWD", "Key for cvecWD object read from SG" };
65  { this, "CVecWDWriteKey", "scopy_cvecWD", "Key for cvecWD object written to SG" };
67  { this, "CVecWDAnInt10Key", "scopy_cvecWD.anInt10", "Key for cvecWD anInt10 decoration" };
69  { this, "CVecWDDecorHelper", { "dInt1" } };
70 
72  { this, "CInfoReadKey", "cinfo", "Key for cinfo object read from SG" };
74  { this, "CInfoWriteKey", "scopy_cinfo", "Key for cinfo object written to SG" };
76  { this, "CInfoAnInt10Key", "scopy_cinfo.anInt10", "Key for cinfo anInt10 decoration" };
78  { this, "CInfoDecorHelper", { "dInt1" } };
79 
81  { this, "CTrigReadKey", "ctrig", "Key for ctrig object read from SG" };
83  { this, "CTrigWriteKey", "scopy_ctrig", "Key for ctrig object written to SG" };
85  { this, "CTrigAnInt10Key", "scopy_ctrig.anInt10", "Key for ctrig anInt10 decoration" };
87  { this, "CTrigDecorHelper", { "dInt1" } };
88 
89 };
90 
91 
92 } // namespace DMTest
93 
94 
95 #endif // not DATAMODELTESTDATACOMMON_XAODTESTSHALLOWCOPY_H
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
SG::WriteDecorHandleKey
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
Definition: StoreGate/StoreGate/WriteDecorHandleKey.h:89
DMTest::xAODTestShallowCopy::execute
virtual StatusCode execute(const EventContext &ctx) const override
Algorithm event processing.
Definition: xAODTestShallowCopy.cxx:78
DMTest::xAODTestShallowCopy::m_cvecDecorDeps
SG::ShallowCopyDecorDeps< DMTest::CVec > m_cvecDecorDeps
Definition: xAODTestShallowCopy.h:60
DMTest::xAODTestShallowCopy::m_ctrigDecorDeps
SG::ShallowCopyDecorDeps< DMTest::CVec > m_ctrigDecorDeps
Definition: xAODTestShallowCopy.h:87
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition: StoreGate/StoreGate/ReadHandleKey.h:39
DMTest::xAODTestShallowCopy::m_cvecReadKey
SG::ReadHandleKey< DMTest::CVec > m_cvecReadKey
Definition: xAODTestShallowCopy.h:54
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition: AthReentrantAlgorithm.h:83
ShallowCopyDecorDeps.h
Helper to propagate decoration dependencies to a shallow copy.
DMTest::xAODTestShallowCopy::m_cvecWDAnInt10Key
SG::WriteDecorHandleKey< DMTest::CVecWithData > m_cvecWDAnInt10Key
Definition: xAODTestShallowCopy.h:67
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
WriteDecorHandleKey.h
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
DMTest::xAODTestShallowCopy::m_cvecWriteKey
SG::WriteHandleKey< DMTest::CVec > m_cvecWriteKey
Definition: xAODTestShallowCopy.h:56
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::xAODTestShallowCopy::m_ctrigReadKey
SG::ReadHandleKey< DMTest::CVec > m_ctrigReadKey
Definition: xAODTestShallowCopy.h:81
DMTest::xAODTestShallowCopy::m_ctrigAnInt10Key
SG::WriteDecorHandleKey< DMTest::CVec > m_ctrigAnInt10Key
Definition: xAODTestShallowCopy.h:85
DMTest::xAODTestShallowCopy::m_cinfoDecorDeps
SG::ShallowCopyDecorDeps< DMTest::C > m_cinfoDecorDeps
Definition: xAODTestShallowCopy.h:78
SG::ShallowCopyDecorDeps
Helper to propagate decoration dependencies to a shallow copy.
Definition: StoreGate/StoreGate/ShallowCopyDecorDeps.h:75
DMTest::xAODTestShallowCopy::m_cvecAnInt10Key
SG::WriteDecorHandleKey< DMTest::CVec > m_cvecAnInt10Key
Definition: xAODTestShallowCopy.h:58
AthReentrantAlgorithm.h
WriteHandleKey.h
Property holding a SG store/key/clid from which a WriteHandle is made.
CVecWithData.h
Test writing a container with metadata.
DMTest::xAODTestShallowCopy::m_ctrigWriteKey
SG::WriteHandleKey< DMTest::CVec > m_ctrigWriteKey
Definition: xAODTestShallowCopy.h:83
DMTest::xAODTestShallowCopy
Algorithm to do a shallow copy of CVec types.
Definition: xAODTestShallowCopy.h:35
DMTest::xAODTestShallowCopy::m_cinfoWriteKey
SG::WriteHandleKey< DMTest::C > m_cinfoWriteKey
Definition: xAODTestShallowCopy.h:74
DMTest::xAODTestShallowCopy::m_cinfoAnInt10Key
SG::WriteDecorHandleKey< DMTest::C > m_cinfoAnInt10Key
Definition: xAODTestShallowCopy.h:76
DMTest::xAODTestShallowCopy::m_cvecWDWriteKey
SG::WriteHandleKey< DMTest::CVecWithData > m_cvecWDWriteKey
Definition: xAODTestShallowCopy.h:65
DMTest::xAODTestShallowCopy::m_cvecWDReadKey
SG::ReadHandleKey< DMTest::CVecWithData > m_cvecWDReadKey
Definition: xAODTestShallowCopy.h:63
DMTest::xAODTestShallowCopy::m_cvecWDDecorDeps
SG::ShallowCopyDecorDeps< DMTest::CVecWithData > m_cvecWDDecorDeps
Definition: xAODTestShallowCopy.h:69
DMTest::xAODTestShallowCopy::m_cinfoReadKey
SG::ReadHandleKey< DMTest::C > m_cinfoReadKey
Definition: xAODTestShallowCopy.h:72
DMTest
Definition: B.h:23
DMTest::xAODTestShallowCopy::initialize
virtual StatusCode initialize() override
Algorithm initialization; called at the beginning of the job.
Definition: xAODTestShallowCopy.cxx:33