6#include "GaudiKernel/ServiceHandle.h"
9 ISvcLocator* pSvcLocator ) :
24 return StatusCode::SUCCESS;
30 return StatusCode::SUCCESS;
36 info() <<
"execute: " <<
index() <<
" on " << ctx <<
endmsg;
40 <<
" e: " << evt->eventNumber() );
43 ATH_CHECK(wh1.
record(std::make_unique<HiveDataObj>(10000 +evt->eventNumber()*100)));
47 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
Re-entrant Algorithm that reads the EventInfo obj, and writes a HiveDataObjs to the store.
An algorithm that can be simultaneously executed in multiple threads.
SG::ReadHandleKey< xAOD::EventInfo > m_evt
virtual StatusCode finalize() override
HiveAlgR(const std::string &name, ISvcLocator *pSvcLocator)
virtual StatusCode execute(const EventContext &) const override
SG::WriteHandleKey< HiveDataObj > m_wrh1
virtual StatusCode initialize() override
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.