|
ATLAS Offline Software
|
Go to the documentation of this file.
31 ISvcLocator *pSvcLocator)
48 return StatusCode::SUCCESS;
57 unsigned int count = ctx.eventID().event_number() + 1;
59 auto hvec = std::make_unique<DMTest::HVec>();
60 auto store = std::make_unique<DMTest::HAuxContainer>();
61 hvec->setStore (
store.get());
62 auto hview = std::make_unique<DMTest::HView>();
64 for (
int i = 0;
i < 20;
i++) {
66 hvec->back()->setAnInt (
i+1 +
count * 400);
69 for (
int i = 0;
i < 20;
i++) {
70 hview->push_back (hvec->at (19-
i));
79 return StatusCode::SUCCESS;
88 return StatusCode::SUCCESS;
Test for xAOD schema evolution.
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
Algorithm to test writing xAOD classes for schema evolution (hvec/hview).
SG::WriteHandleKey< DMTest::HView > m_hviewKey
An algorithm that can be simultaneously executed in multiple threads.
SG::ReadCondHandle< T > makeHandle(const SG::ReadCondHandleKey< T > &key, const EventContext &ctx=Gaudi::Hive::currentContext())
xAODTestWriteHVec(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
::StatusCode StatusCode
StatusCode definition for legacy code.
virtual StatusCode finalize() override
Algorithm finalization; called at the end of the job.
virtual StatusCode execute(const EventContext &ctx) const override
Algorithm event processing.
StatusCode recordView2(SG::WriteHandle< ViewVector< DMTest::HVec > > &h, std::unique_ptr< ViewVector< DMTest::HVec > > view)
Test recording ViewVector w/o having CLASS_DEF visible in compilation unit.
virtual StatusCode initialize() override
Algorithm initialization; called at the beginning of the job.
Test for xAOD schema evolution.
SG::WriteHandleKey< DMTest::HVec > m_hvecKey