6#include "GaudiKernel/ThreadLocalContext.h"
9 ISvcLocator* pSvcLocator ) :
38 return StatusCode::FAILURE;
41 <<
" e: " << evt->eventNumber() );
46 unsigned int i = Gaudi::Hive::currentContextEvt();
49 ATH_CHECK(wrh1.
record(std::make_unique< HiveDataObj >(10000 + evt->eventNumber()*100 + i)));
57 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
Simple Algorithm that reads the EventInfo obj, and writes two HiveDataObjs to the store.
SG::WriteHandleKey< HiveDataObj > m_wrh2
SG::WriteHandleKey< HiveDataObj > m_wrh1
SG::ReadHandleKey< xAOD::EventInfo > m_evt
HiveAlgA(const std::string &name, ISvcLocator *pSvcLocator)
virtual StatusCode initialize() override
virtual StatusCode execute() override
HiveAlgBase(const std::string &name, ISvcLocator *pSvcLocator)
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.