16#include "AthLinks/DataLink.h"
26 return StatusCode::SUCCESS;
32 unsigned int count = ctx.eventID().event_number() + 1;
34 auto cvecaux = std::make_unique<DMTest::CAuxContainer>();
36 cvec.setStore (cvecaux.get());
37 for (
size_t i = 0; i < 10; i++) {
39 c->setAnInt (
count*100 + 10+i);
40 c->setAFloat (
count*100 + 20.5+i);
44 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
Class used for testing xAOD data reading/writing.
Class used for testing xAOD data reading/writing.
Interface for non-const operations on an auxiliary store.
Property holding a SG store/key/clid from which a WriteHandle is made.
virtual StatusCode initialize() override
SG::WriteHandleKey< DMTest::CAuxContainer > m_cvecAuxKey
virtual StatusCode execute(const EventContext &ctx) const override
value_type push_back(value_type pElem)
Add an element to the end of the collection.
StatusCode record(std::unique_ptr< T > data)
Record a const object to the store.
int count(std::string s, const std::string ®x)
count how many occurances of a regx are in a string