10 ISvcLocator* pSvcLocator ) :
27 return StatusCode::SUCCESS;
38 <<
" e: " << evt->eventNumber() );
42 ATH_CHECK( wh1.
record( std::make_unique<HiveDataObj> (10000 + evt->eventNumber())));
52 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
Handle class for reading from StoreGate.
Handle class for recording to StoreGate.
virtual StatusCode initialize() override
ToolHandle< IHiveTool > m_tool1
virtual StatusCode execute() override
ToolHandle< IHiveTool > m_tool2
SG::WriteHandleKey< HiveDataObj > m_wrh1
AlgT(const std::string &name, ISvcLocator *pSvcLocator)
ToolHandle< IHiveTool > m_tool3
SG::ReadHandleKey< xAOD::EventInfo > m_evt
SG::ReadHandleKey< HiveDataObj > m_rdh1
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
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.