The Gaudi Framework  v30r4 (9b837755)
EventDataHandle.cpp
Go to the documentation of this file.
3 #include <stdexcept>
4 
5 namespace Gaudi
6 {
7  const EventDataHandle::Metadata EventDataHandle::s_readHandleMetadata( AccessMode::Read ),
8  EventDataHandle::s_writeHandleMetadata( AccessMode::Write );
9 
11 
13  {
14  auto whiteBoard = owner.eventSvc();
15  if ( !whiteBoard ) throw std::runtime_error( "Failed to access whiteboard" );
16  m_whiteBoard = whiteBoard.get();
17  }
18 }
virtual void registerDataHandle(Gaudi::v2::DataHandle &)=0
Register a data handle of this algorithm/tool.
static const Metadata s_readHandleMetadata
void registerToOwner(IDataHandleHolder &owner)
Register ourselves to the owner (algorithm or tool)
Entity which holds DataHandles and can track the associated data dependencies for the Scheduler...
void initialize(const IDataHandleHolder &owner) final override
Initialize the data handle.
virtual SmartIF< IDataProviderSvc > & eventSvc() const =0
Provide access to the whiteboard after initialization.
static const Metadata s_writeHandleMetadata
Helper functions to set/get the application return code.
Definition: __init__.py:1
IDataProviderSvc * m_whiteBoard
Pointer to the whiteboard, set during initialize()