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;
#define ATH_CHECK
Evaluate an expression and check for errors.
Class used for testing xAOD data reading/writing.
Class used for testing ViewVector reading/writing.
DataVector adapter that acts like it holds const pointers.
Helpers for checking error return status codes and reporting errors.
#define CHECK(...)
Evaluate an expression and check for errors.
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
An algorithm that can be simultaneously executed in multiple threads.
SG::WriteHandleKey< ConstDataVector< DMTest::CView > > m_cviewKey
xAODTestWriteCView(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
virtual StatusCode finalize() override
Algorithm finalization; called at the end of the job.
virtual StatusCode initialize() override
Algorithm initialization; called at the beginning of the job.
virtual StatusCode execute(const EventContext &ctx) const override
Algorithm event processing.
SG::ReadHandleKey< DMTest::CVec > m_cvecKey
StatusCode recordView1(SG::WriteHandle< ConstDataVector< ViewVector< DMTest::CVec > > > &h, std::unique_ptr< ConstDataVector< ViewVector< DMTest::CVec > > > view)
@ VIEW_ELEMENTS
this data object is a view, it does not own its elmts
Algorithm to test writing an xAOD view vector (cview)
Test recording ViewVector w/o having CLASS_DEF visible in compilation unit.