18#include "Gaudi/Property.h"
32 ISvcLocator* pSvcLocator ) :
65 return StatusCode::SUCCESS;
72 return StatusCode::SUCCESS;
79 const EventContext& ctx = getContext();
96 ATH_CHECK( outputHandle.
record( std::make_unique< std::vector< int > >() ) );
97 outputHandle->push_back( 10 );
101 outputHandle->push_back( *inputHandle );
105 for (
int i = 0,
imax = outputHandle->size(); i !=
imax; ++i )
107 ATH_MSG_INFO(
"val[" << i <<
"]= " << outputHandle->at( i ) );
112 ATH_MSG_INFO(
"Update handle before: " << testUpdate->val() );
113 testUpdate->val( 1234 );
114 ATH_MSG_INFO(
"Update handle after: " << testUpdate->val() );
116 ATH_MSG_INFO(
"Update handle new: " << testUpdate->val() );
118 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.
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
virtual StatusCode finalize()
virtual StatusCode initialize()
SG::WriteHandleKey< std::vector< int > > m_ints
SG::ReadHandleKey< int > m_r_int
Containers.
virtual ~DFlowAlg2()
Destructor:
virtual StatusCode execute()
DFlowAlg2()
Default constructor:
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.