8 ISvcLocator* pSvcLocator ) :
38 return StatusCode::FAILURE;
44 return StatusCode::FAILURE;
51 ATH_CHECK(wrh1.
record(std::make_unique< HiveDataObj >(500000 + rdh1->val() + rdh2->val()/10)));
56 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
Simple Algorithm that reads a HiveDataObj created by HiveAlgB, and one by HiveAlgC,...
HiveAlgBase(const std::string &name, ISvcLocator *pSvcLocator)
virtual StatusCode initialize() override
virtual StatusCode execute() override
SG::ReadHandleKey< HiveDataObj > m_rdh1
SG::ReadHandleKey< HiveDataObj > m_rdh2
HiveAlgE(const std::string &name, ISvcLocator *pSvcLocator)
virtual StatusCode initialize() override
SG::WriteHandleKey< HiveDataObj > m_wrh1
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.