|
ATLAS Offline Software
|
Go to the documentation of this file.
6 #include "GaudiKernel/ThreadLocalContext.h"
9 ISvcLocator* pSvcLocator ) :
33 return StatusCode::SUCCESS;
45 return StatusCode::FAILURE;
48 <<
" e: " <<
evt->eventNumber() );
53 unsigned int i = Gaudi::Hive::currentContextEvt();
56 ATH_CHECK(wrh1.
record(std::make_unique< HiveDataObj >(10000 +
evt->eventNumber()*100 +
i)));
64 return StatusCode::SUCCESS;
virtual StatusCode initialize() override
Simple Algorithm that reads the EventInfo obj, and writes two HiveDataObjs to the store.
SG::WriteHandleKey< HiveDataObj > m_wrh2
virtual StatusCode finalize() override
::StatusCode StatusCode
StatusCode definition for legacy code.
virtual StatusCode initialize() override
SG::ReadHandleKey< xAOD::EventInfo > m_evt
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
virtual StatusCode execute() override
virtual const std::string & key() const override final
Return the StoreGate ID for the referenced object.
SG::WriteHandleKey< HiveDataObj > m_wrh1
StatusCode record(std::unique_ptr< T > data)
Record a const object to the store.
HiveAlgA(const std::string &name, ISvcLocator *pSvcLocator)