21 ISvcLocator* pSvcLocator)
30 return StatusCode::SUCCESS;
49 ATH_MSG_INFO(
"ExampleElectron #" << idx <<
" {pt = " << obj->pt()
50 <<
", charge = " << obj->charge()
55 ATH_MSG_INFO(
"Decoration reader: decor1 = " << hdl1(*obj));
57 ATH_MSG_INFO(
"Decoration reader decor1 hasn't been written");
65 return StatusCode::FAILURE;
68 return StatusCode::SUCCESS;
73 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
This class provides a unique identification for each event, in terms of run/event number and/or a tim...
This file contains the class definition for the EventStreamInfo class.
Handle class for reading a decoration on an object.
Handle class for reading from StoreGate.
virtual StatusCode finalize() override final
SG::ReadHandleKey< xAOD::ExampleElectronContainer > m_exampleElectronContainerKey
virtual StatusCode initialize() override final
Gaudi Service Interface method implementations:
virtual StatusCode execute(const EventContext &ctx) const override final
SG::ReadDecorHandleKey< xAOD::ExampleElectronContainer > m_decor1Key
ReadExampleElectron(const std::string &name, ISvcLocator *pSvcLocator)
An algorithm that can be simultaneously executed in multiple threads.
Handle class for reading a decoration on an object.
bool isPresent() const
Is the referenced container present in SG?
SG::ReadCondHandle< T > makeHandle(const SG::ReadCondHandleKey< T > &key, const EventContext &ctx=Gaudi::Hive::currentContext())
ExampleElectron_v1 ExampleElectron