|
ATLAS Offline Software
|
Go to the documentation of this file.
9 ISvcLocator* pSvcLocator ) :
33 return StatusCode::SUCCESS;
51 return StatusCode::SUCCESS;
58 std::vector< SG::ReadHandle<HiveDataObj> > rhv =
m_rhv.makeHandles();
59 for (
auto &hnd : rhv) {
61 ATH_MSG_ERROR (
"Could not retrieve HiveDataObj with key " << hnd.key());
62 sc = StatusCode::FAILURE;
64 ATH_MSG_INFO(
" read: " << hnd.key() <<
" = " << hnd->val() );
73 std::vector< SG::WriteHandle<HiveDataObj> > whv =
m_whv.makeHandles();
74 for (
auto &hnd : whv) {
75 ATH_CHECK(hnd.record(std::make_unique<HiveDataObj>( 10101 )));
76 ATH_MSG_INFO(
" write: " << hnd.key() <<
" = " << hnd->val() );
78 return StatusCode::SUCCESS;
virtual StatusCode finalize() override
virtual StatusCode initialize() override
virtual StatusCode initialize() override
SG::WriteHandleKeyArray< HiveDataObj > m_whv
virtual StatusCode execute() override
::StatusCode StatusCode
StatusCode definition for legacy code.
Simple Algorithm that reads an array of HiveDataObjs, and then writes an array of them.
Gaudi::Property< bool > m_writeFirst
SG::ReadHandleKeyArray< HiveDataObj > m_rhv
HiveAlgV(const std::string &name, ISvcLocator *pSvcLocator)