35 return StatusCode::SUCCESS;
44 size_t count = ctx.evt() + 1;
51 ATH_CHECK( copy.record (std::unique_ptr<DMTest::HVec>(ret.first),
52 std::unique_ptr<xAOD::ShallowAuxContainer>(ret.second)) );
55 for (
H*
h : *ret.first)
56 aFloat20(*
h) =
count * 20000 +
h->aFloat();
59 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
Handle mappings between names and auxid_t.
std::vector< size_t > vec
Helpers for checking error return status codes and reporting errors.
Test for xAOD schema evolution.
Test for xAOD schema evolution.
Handle class for reading from StoreGate.
Handle class for adding a decoration to an object.
Handle class for recording to StoreGate.
Header file for AthHistogramAlgorithm.
SG::WriteDecorHandleKey< DMTest::HVec > m_aFloat20Key
virtual StatusCode execute(const EventContext &ctx) const override
Algorithm event processing.
SG::WriteHandleKey< DMTest::HVec > m_writeKey
virtual StatusCode initialize() override
Algorithm initialization; called at the beginning of the job.
SG::ReadHandleKey< DMTest::HVec > m_readKey
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
std::pair< std::unique_ptr< T >, std::unique_ptr< ShallowAuxContainer > > shallowCopyContainer(const T &cont, const EventContext &ctx)
Function making a shallow copy of a constant container.
Algorithm to test shallow-copy of xAOD data.