12#include "Gaudi/Property.h"
25 ISvcLocator* pSvcLocator ) :
46 return StatusCode::SUCCESS;
53 return StatusCode::SUCCESS;
60 const EventContext& ctx = getContext();
63 std::vector< int > outputVector;
73 CHECK( outputHandle.
record( std::make_unique< std::vector< int > >( outputVector ) ) );
76 ATH_MSG_INFO(
"Unable to load main event store for output" );
79 for (
int const test : outputVector )
84 return StatusCode::SUCCESS;
#define CHECK(...)
Evaluate an expression and check for errors.
Handle class for reading from StoreGate.
Handle class for recording to StoreGate.
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
ServiceHandle< StoreGateSvc > & evtStore()
virtual StatusCode execute()
SG::ReadHandleKey< ViewContainer > m_r_views
virtual StatusCode finalize()
SG::WriteHandleKey< std::vector< int > > m_w_ints
virtual ~ViewMergeAlg()
Destructor:
SG::ReadHandleKey< std::vector< int > > m_r_ints
ViewMergeAlg()
Default constructor:
virtual StatusCode initialize()
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?)