ATLAS Offline Software
Loading...
Searching...
No Matches
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*/
11
12
13#ifndef DATAMODELTESTDATACOMMON_XAODTESTSHALLOWCOPY_H
14#define DATAMODELTESTDATACOMMON_XAODTESTSHALLOWCOPY_H
15
16
25
26
27namespace DMTest {
28
29
35{
36public:
37 using AthReentrantAlgorithm::AthReentrantAlgorithm;
38
39
43 virtual StatusCode initialize() override;
44
45
49 virtual StatusCode execute (const EventContext& ctx) const override;
50
51
52private:
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
80 // one of the decorations (dInt1Base) is a decoration on the SG::AuxElement base class
81 // so to propagate this we need handles for that type too
83 { this, "CInfoReadKeyBase", "cinfo", "Key for cinfo object read from SG" };
85 { this, "CInfoWriteKeyBase", "scopy_cinfo", "Key for cinfo object written to SG" };
87 { this, "CInfoDecorHelperBase", { "dInt1Base" } };
88
90 { this, "CTrigReadKey", "ctrig", "Key for ctrig object read from SG" };
92 { this, "CTrigWriteKey", "scopy_ctrig", "Key for ctrig object written to SG" };
94 { this, "CTrigAnInt10Key", "scopy_ctrig.anInt10", "Key for ctrig anInt10 decoration" };
96 { this, "CTrigDecorHelper", { "dInt1" } };
97
98};
99
100
101} // namespace DMTest
102
103
104#endif // not DATAMODELTESTDATACOMMON_XAODTESTSHALLOWCOPY_H
Test writing a container with metadata.
Class used for testing xAOD data reading/writing.
Class used for testing xAOD data reading/writing.
Property holding a SG store/key/clid from which a ReadHandle is made.
Helper to propagate decoration dependencies to a shallow copy.
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
Property holding a SG store/key/clid from which a WriteHandle is made.
An algorithm that can be simultaneously executed in multiple threads.
Algorithm to do a shallow copy of CVec types.
SG::ShallowCopyDecorDeps< DMTest::C > m_cinfoDecorDeps
virtual StatusCode execute(const EventContext &ctx) const override
Algorithm event processing.
SG::WriteHandleKey< DMTest::C > m_cinfoWriteKey
SG::ReadHandleKey< DMTest::CVecWithData > m_cvecWDReadKey
SG::ReadHandleKey< DMTest::CVec > m_cvecReadKey
SG::WriteHandleKey< DMTest::CVec > m_ctrigWriteKey
SG::WriteHandleKey< DMTest::CVec > m_cvecWriteKey
SG::WriteDecorHandleKey< DMTest::CVecWithData > m_cvecWDAnInt10Key
SG::ReadHandleKey< DMTest::C > m_cinfoReadKey
SG::ShallowCopyDecorDeps< DMTest::CVec > m_ctrigDecorDeps
SG::WriteHandleKey< DMTest::CVecWithData > m_cvecWDWriteKey
SG::WriteDecorHandleKey< DMTest::CVec > m_ctrigAnInt10Key
virtual StatusCode initialize() override
Algorithm initialization; called at the beginning of the job.
SG::WriteDecorHandleKey< DMTest::C > m_cinfoAnInt10Key
SG::ShallowCopyDecorDeps< DMTest::CVecWithData > m_cvecWDDecorDeps
SG::WriteDecorHandleKey< DMTest::CVec > m_cvecAnInt10Key
SG::ReadHandleKey< SG::AuxElement > m_cinfoReadKeyBase
SG::ShallowCopyDecorDeps< DMTest::CVec > m_cvecDecorDeps
SG::ShallowCopyDecorDeps< SG::AuxElement > m_cinfoDecorDepsBase
SG::WriteHandleKey< SG::AuxElement > m_cinfoWriteKeyBase
SG::ReadHandleKey< DMTest::CVec > m_ctrigReadKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Helper to propagate decoration dependencies to a shallow copy.
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
Property holding a SG store/key/clid from which a WriteHandle is made.
Definition B.h:23