12#include "Gaudi/Property.h"
26 return StatusCode::SUCCESS;
33 return StatusCode::SUCCESS;
41 std::vector< int > outputVector;
51 CHECK( outputHandle.
record( std::make_unique< std::vector< int > >( outputVector ) ) );
54 ATH_MSG_INFO(
"Unable to load main event store for output" );
57 for (
int const test : outputVector )
62 return StatusCode::SUCCESS;
#define CHECK(...)
Evaluate an expression and check for errors.
Handle class for reading from StoreGate.
Handle class for recording to StoreGate.
ServiceHandle< StoreGateSvc > & evtStore()
SG::ReadHandleKey< ViewContainer > m_r_views
SG::WriteHandleKey< std::vector< int > > m_w_ints
SG::ReadHandleKey< std::vector< int > > m_r_ints
virtual StatusCode initialize() override
virtual StatusCode execute(const EventContext &ctx) const override
virtual StatusCode finalize() override
StatusCode record(std::unique_ptr< T > data)
Record a const object to the store.
virtual bool isValid() override final
Can the handle be successfully dereferenced?
StatusCode mergeViewCollection(ViewContainer const &viewVector, SG::ReadHandleKey< T > const &queryKey, EventContext const &sourceContext, T &outputData)
T * get(TKey *tobj)
get a TObject* from a TKey* (why can't a TObject be a TKey?)