![Logo](../../ATLAS-Logo-Square-Blue-RGB.png) |
ATLAS Offline Software
|
Go to the documentation of this file.
34 ISvcLocator *pSvcLocator)
60 return StatusCode::SUCCESS;
70 std::ostringstream ost1;
72 for (
const H*
h : *hvec)
73 ost1 <<
" " <<
h->aFloat();
77 std::ostringstream ost2;
79 for (
const H*
h : *hview)
80 ost2 <<
" " <<
h->aFloat();
85 auto vecnew = std::make_unique<HVec>();
86 auto store = std::make_unique<HAuxContainer>();
87 vecnew->setStore (
store.get());
88 for (
size_t i = 0;
i < hview->size();
i++) {
89 vecnew->push_back (
new H);
90 *vecnew->back() = *(*hview)[
i];
93 auto viewnew = std::make_unique<HView>();
94 for (
size_t i = 0;
i < vecnew->size();
i++)
95 viewnew->push_back (vecnew->at(vecnew->size()-1-
i));
104 return StatusCode::SUCCESS;
113 return StatusCode::SUCCESS;
Algorithm to test reading xAOD data with schema evolution (HVec/HView)
SG::ReadHandleKey< DMTest::HVec > m_hviewKey
Test for xAOD schema evolution.
virtual StatusCode execute(const EventContext &ctx) const override
Algorithm event processing.
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
virtual StatusCode initialize() override
Algorithm initialization; called at the beginning of the job.
An algorithm that can be simultaneously executed in multiple threads.
xAODTestReadHVec(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
Handle class for recording to StoreGate.
::StatusCode StatusCode
StatusCode definition for legacy code.
Test for xAOD schema evolution.
SG::WriteHandleKey< DMTest::HView > m_viewWriteKey
virtual StatusCode finalize() override
Algorithm finalization; called at the end of the job.
SG::ReadHandleKey< DMTest::HVec > m_hvecKey
StatusCode record(std::unique_ptr< T > data)
Record a const object to the store.
Handle class for reading from StoreGate.
SG::WriteHandleKey< DMTest::HVec > m_vecWriteKey
const T * get(const ReadHandleKey< T > &key)
Convenience function to retrieve an object given a ReadHandleKey.