18#include "Gaudi/Property.h"
35 return StatusCode::SUCCESS;
42 return StatusCode::SUCCESS;
64 ATH_CHECK( outputHandle.
record( std::make_unique< std::vector< int > >() ) );
65 outputHandle->push_back( 10 );
69 outputHandle->push_back( *inputHandle );
73 for (
int i = 0,
imax = outputHandle->size(); i !=
imax; ++i )
75 ATH_MSG_INFO(
"val[" << i <<
"]= " << outputHandle->at( i ) );
80 ATH_MSG_INFO(
"Update handle before: " << testUpdate->val() );
81 testUpdate->val( 1234 );
82 ATH_MSG_INFO(
"Update handle after: " << testUpdate->val() );
84 ATH_MSG_INFO(
"Update handle new: " << testUpdate->val() );
86 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
#define CHECK(...)
Evaluate an expression and check for errors.
Handle class for reading from StoreGate.
Handle class for recording to StoreGate.
Handle class for modifying an existing object in StoreGate.
virtual StatusCode initialize() override
SG::WriteHandleKey< std::vector< int > > m_ints
SG::ReadHandleKey< int > m_r_int
virtual StatusCode execute(const EventContext &ctx) const override
virtual StatusCode finalize() override
SG::UpdateHandleKey< HiveDataObj > m_testUpdate
virtual bool isValid() override final
Can the handle be successfully dereferenced?
const_pointer_type cptr()
Dereference the pointer.
std::string store() const
Return the name of the store holding the object we are proxying.
CLID clid() const
Return the class ID for the referenced object.
const std::string & name() const
Return the StoreGate ID for the referenced object.
StatusCode record(std::unique_ptr< T > data)
Record a const object to the store.