8 ISvcLocator* pSvcLocator ) :
38 return StatusCode::FAILURE;
44 ATH_CHECK(wrh1.
record(std::make_unique< HiveDataObj >(30000 + rdh1->val() )));
52 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
Simple Algorithm that reads a DataHandle created by HiveAlgA, and writes two more.
HiveAlgBase(const std::string &name, ISvcLocator *pSvcLocator)
virtual StatusCode initialize() override
HiveAlgC(const std::string &name, ISvcLocator *pSvcLocator)
SG::WriteHandleKey< HiveDataObj > m_wrh1
virtual StatusCode initialize() override
virtual StatusCode execute() override
SG::ReadHandleKey< HiveDataObj > m_rdh1
SG::WriteHandleKey< HiveDataObj > m_wrh2
virtual bool isValid() override final
Can the handle be successfully dereferenced?
virtual const std::string & key() const override final
Return the StoreGate ID for the referenced object.
StatusCode record(std::unique_ptr< T > data)
Record a const object to the store.