|
ATLAS Offline Software
|
Go to the documentation of this file.
71 return StatusCode::SUCCESS;
80 int count = ctx.evt() + 1;
87 ATH_CHECK(
copy.record (std::unique_ptr<DMTest::CVec>(ret.first),
88 std::unique_ptr<xAOD::ShallowAuxContainer>(ret.second)) );
93 for (
C*
c : *ret.first)
94 anInt10(*
c) =
count * 20000 +
c->anInt() * 100;
100 ret.first->meta1 =
vec->meta1;
103 ATH_CHECK(
copy.record (std::unique_ptr<DMTest::CVecWithData>(ret.first),
104 std::unique_ptr<xAOD::ShallowAuxContainer>(ret.second)) );
109 for (
C*
c : *ret.first)
110 anInt10(*
c) =
count * 20000 +
c->anInt() * 100;
118 ATH_CHECK(
copy.record (std::unique_ptr<DMTest::C>(ret.first),
119 std::unique_ptr<xAOD::ShallowAuxInfo>(ret.second)) );
124 anInt10(*ret.first) =
count * 20000 + ret.first->anInt() * 200;
132 ATH_CHECK(
copy.record (std::unique_ptr<DMTest::CVec>(ret.first),
133 std::unique_ptr<xAOD::ShallowAuxContainer>(ret.second)) );
138 for (
C*
c : *ret.first)
139 anInt10(*
c) =
count * 20000 +
c->anInt() * 300;
142 return StatusCode::SUCCESS;
virtual StatusCode execute(const EventContext &ctx) const override
Algorithm event processing.
Algorithm to test shallow-copy of xAOD data.
SG::ShallowCopyDecorDeps< DMTest::CVec > m_cvecDecorDeps
SG::ShallowCopyDecorDeps< DMTest::CVec > m_ctrigDecorDeps
Class used for testing xAOD data reading/writing.
std::vector< size_t > vec
SG::ReadHandleKey< DMTest::CVec > m_cvecReadKey
Class used for testing xAOD data reading/writing.
typename vecDetail::vec_typedef< T, N >::type vec
Define a nice alias for the vectorized type.
Handle class for recording to StoreGate.
SG::WriteDecorHandleKey< DMTest::CVecWithData > m_cvecWDAnInt10Key
Class used for testing xAOD data reading/writing.
SG::WriteHandleKey< DMTest::CVec > m_cvecWriteKey
std::pair< T *, ShallowAuxInfo * > shallowCopyObject(const T &obj)
Function making a shallow copy of a constant standalone object.
::StatusCode StatusCode
StatusCode definition for legacy code.
Handle class for adding a decoration to an object.
Class used for testing xAOD data reading/writing.
SG::ReadHandleKey< DMTest::CVec > m_ctrigReadKey
SG::WriteDecorHandleKey< DMTest::CVec > m_ctrigAnInt10Key
Handle class for adding a decoration to an object.
SG::ShallowCopyDecorDeps< DMTest::C > m_cinfoDecorDeps
SG::WriteDecorHandleKey< DMTest::CVec > m_cvecAnInt10Key
Helpers for checking error return status codes and reporting errors.
Test writing a container with metadata.
std::pair< std::unique_ptr< T >, std::unique_ptr< ShallowAuxContainer > > shallowCopyContainer(const T &cont, [[maybe_unused]] const EventContext &ctx)
Function making a shallow copy of a constant container.
SG::WriteHandleKey< DMTest::CVec > m_ctrigWriteKey
SG::WriteHandleKey< DMTest::C > m_cinfoWriteKey
SG::WriteDecorHandleKey< DMTest::C > m_cinfoAnInt10Key
Handle mappings between names and auxid_t.
SG::WriteHandleKey< DMTest::CVecWithData > m_cvecWDWriteKey
Class used for testing xAOD data reading/writing.
SG::ReadHandleKey< DMTest::CVecWithData > m_cvecWDReadKey
SG::ShallowCopyDecorDeps< DMTest::CVecWithData > m_cvecWDDecorDeps
Handle class for reading from StoreGate.
SG::ReadHandleKey< DMTest::C > m_cinfoReadKey
virtual StatusCode initialize() override
Algorithm initialization; called at the beginning of the job.