|
ATLAS Offline Software
|
Go to the documentation of this file.
20 #include "AthLinks/ElementLink.h"
32 ISvcLocator *pSvcLocator)
49 return StatusCode::SUCCESS;
58 unsigned int count = ctx.eventID().event_number() + 1;
60 auto coll = std::make_unique<DMTest::CVec>();
61 auto store = std::make_unique<DMTest::CAuxContainer>();
62 coll->setStore (
store.get());
70 if (
count == 5) nent = 0;
71 for (
int i=0;
i < nent;
i++) {
75 c.setAFloat (
count * 200 + (
float)
i*0.1);
80 cEL(
c).toIndexedElement (*coll, 9-
i);
87 for (
int i=0;
i < nent;
i++) {
88 dtest (*(*dtest)[
i]) =
i+123;
91 return StatusCode::SUCCESS;
xAODTestWriteCVec(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
Class used for testing xAOD data reading/writing.
SG::WriteDecorHandleKey< DMTest::CVec > m_cvecDecorKey
Algorithm to test writing xAOD classes with auxiliary data (cvec).
Hold information about an option setting request.
An algorithm that can be simultaneously executed in multiple threads.
Class used for testing xAOD data reading/writing.
::StatusCode StatusCode
StatusCode definition for legacy code.
Handle class for adding a decoration to an object.
Class used for testing xAOD data reading/writing.
Handle class for adding a decoration to an object.
#define CHECK(...)
Evaluate an expression and check for errors.
SG::WriteHandleKey< DMTest::CVec > m_cvecKey
virtual StatusCode execute(const EventContext &ctx) const override
Algorithm event processing.
virtual StatusCode initialize() override
Algorithm initialization; called at the beginning of the job.
Helper class to provide type-safe access to aux data.
StatusCode record(std::unique_ptr< T > data)
Record a const object to the store.
Helper class to provide type-safe access to aux data.