|
ATLAS Offline Software
|
Go to the documentation of this file.
18 #include "AthLinks/ElementLink.h"
22 #define CHECK_OPTION(ret) \
25 ATH_MSG_ERROR("setOption failed"); \
26 return StatusCode::FAILURE; \
40 ISvcLocator *pSvcLocator)
60 return StatusCode::SUCCESS;
69 unsigned int count = ctx.eventID().event_number() + 1;
71 auto coll = std::make_unique<DMTest::CVec>();
72 auto store = std::make_unique<DMTest::CAuxContainer>();
73 coll->setStore (
store.get());
84 if (
count == 5) nent = 0;
85 for (
int i=0;
i < nent;
i++) {
89 c.setAFloat (
count * 200 + (
float)
i*0.1);
91 c.setPFloat (
i + (
float)
count * 0.01);
94 for (
int j=0; j<
i; j++)
95 pvi.push_back (j +
i*10 +
count*100 - 500);
98 std::vector<float> pvf;
99 for (
int j=0; j<
i; j++)
100 pvf.push_back ((
float)j*0.1 + (
float)
i*0.01 + (
float)
count*0.001 - 0.5);
101 c.setPVFloat (std::move (pvf));
107 cEL(
c).toIndexedElement (*coll, 9-
i);
110 for (
int j=0; j<
i; j++)
111 pvf.push_back ((
float)
i*0.1 + (
float)
count*0.01 + (
float)j*0.001);
112 dpvFloat(
c) = std::move(pvf);
119 for (
int i=0;
i < nent;
i++) {
120 dtest (*(*dtest)[
i]) =
i+123;
128 return StatusCode::SUCCESS;
137 return StatusCode::SUCCESS;
xAODTestWriteCVec(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
virtual StatusCode finalize() override
Algorithm finalization; called at the end of the job.
Helper class to provide type-safe access to aux data.
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
Class used for testing xAOD data reading/writing.
SG::WriteDecorHandleKey< DMTest::CVec > m_cvecDecorKey
Algorithm to test writing xAOD classes with auxiliary data (cvec).
#define CHECK_OPTION(ret)
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.
Helper class to provide type-safe access to aux data.
::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.
Hold information about an option setting request.
virtual StatusCode initialize() override
Algorithm initialization; called at the beginning of the job.
Helpers for checking error return status codes and reporting errors.
StatusCode record(std::unique_ptr< T > data)
Record a const object to the store.