|
ATLAS Offline Software
|
Go to the documentation of this file.
31 ISvcLocator *pSvcLocator)
48 return StatusCode::SUCCESS;
58 auto cview = std::make_unique<ConstDataVector<DMTest::CView> >(
SG::VIEW_ELEMENTS);
59 for (
int i = cvec->
size()-1;
i >= 0; --
i)
60 cview->push_back ((*cvec)[
i]);
65 return StatusCode::SUCCESS;
74 return StatusCode::SUCCESS;
@ VIEW_ELEMENTS
this data object is a view, it does not own its elmts
DataVector adapter that acts like it holds const pointers.
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
virtual StatusCode execute(const EventContext &ctx) const override
Algorithm event processing.
SG::ReadHandleKey< DMTest::CVec > m_cvecKey
An algorithm that can be simultaneously executed in multiple threads.
Class used for testing xAOD data reading/writing.
SG::WriteHandleKey< ConstDataVector< DMTest::CView > > m_cviewKey
::StatusCode StatusCode
StatusCode definition for legacy code.
#define CHECK(...)
Evaluate an expression and check for errors.
Class used for testing ViewVector reading/writing.
Helpers for checking error return status codes and reporting errors.
virtual StatusCode finalize() override
Algorithm finalization; called at the end of the job.
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.
StatusCode recordView1(SG::WriteHandle< ConstDataVector< ViewVector< DMTest::CVec > > > &h, std::unique_ptr< ConstDataVector< ViewVector< DMTest::CVec > > > view)
xAODTestWriteCView(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
size_type size() const noexcept
Returns the number of elements in the collection.
Algorithm to test writing an xAOD view vector (cview)