31 ISvcLocator *pSvcLocator)
45 return StatusCode::SUCCESS;
54 auto coll = std::make_unique<DMTest::CVec>();
55 auto store = std::make_unique<DMTest::CAuxContainer>();
56 coll->setStore (store.get());
59 CHECK( cvec.
record (std::move(coll), std::move(store)) );
61 size_t count = ctx.evt();
62 for (
int i=0; i < 10; i++) {
65 c.setAnInt (
count * 100 + i+1);
66 c.setAFloat (
count * 200 + (
float)i*0.1);
69 return StatusCode::SUCCESS;
78 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
Hold information about an option setting request.
Class used for testing xAOD data reading/writing.
Class used for testing xAOD data reading/writing.
Class used for testing xAOD data reading/writing.
Helpers for checking error return status codes and reporting errors.
#define CHECK(...)
Evaluate an expression and check for errors.
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
An algorithm that can be simultaneously executed in multiple threads.
SG::WriteHandleKey< DMTest::CVec > m_cvecKey
virtual StatusCode execute(const EventContext &ctx) const override
Algorithm event processing.
virtual StatusCode finalize() override
Algorithm finalization; called at the end of the job.
virtual StatusCode initialize() override
Algorithm initialization; called at the beginning of the job.
xAODTestWriteCVecConst(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
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
Test recording a const aux obj via WriteHandle.