78 return StatusCode::SUCCESS;
87 int count = ctx.evt() + 1;
94 ATH_CHECK( copy.record (std::move(ret.first), std::move(ret.second)) );
100 anInt10(*c) =
count * 20000 + c->anInt() * 100;
106 ret.first->meta1 =
vec->meta1;
109 ATH_CHECK( copy.record (std::move(ret.first), std::move(ret.second)) );
115 anInt10(*c) =
count * 20000 + c->anInt() * 100;
123 ATH_CHECK( copy.record (std::move(ret.first), std::move(ret.second)) );
128 anInt10(*copy) =
count * 20000 + copy->anInt() * 200;
140 ATH_CHECK( copy.record (std::move(ret.first), std::move(ret.second)) );
146 anInt10(*c) =
count * 20000 + c->anInt() * 300;
149 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
Handle mappings between names and auxid_t.
Class used for testing xAOD data reading/writing.
Class used for testing xAOD data reading/writing.
Class used for testing xAOD data reading/writing.
Test writing a container with metadata.
Class used for testing xAOD data reading/writing.
Class used for testing xAOD data reading/writing.
std::vector< size_t > vec
Helpers for checking error return status codes and reporting errors.
Handle class for reading from StoreGate.
Handle class for adding a decoration to an object.
Handle class for recording to StoreGate.
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
Handle class for adding a decoration to an object.
int count(std::string s, const std::string ®x)
count how many occurances of a regx are in a string
ShallowCopyResult_t< T > shallowCopy(const T &cont, const EventContext &ctx)
Create a shallow copy of an existing container.
Algorithm to test shallow-copy of xAOD data.