The Gaudi Framework  v30r3 (a5ef0a68)
HiveReadAlgorithm.cpp
Go to the documentation of this file.
4 
6 {
7 public:
9  StatusCode initialize() override;
10  StatusCode execute() override;
11 };
12 
14 
16 {
18  if ( !sc ) return sc;
19  return evtSvc()->addPreLoadItem( DataStoreItem( "/Event", 99 ) );
20 }
21 
23 {
24  info() << "Running now for event " << Gaudi::Hive::currentContext().evt() << endmsg;
25  return evtSvc()->preLoad();
26 }
MsgStream & info() const
shortcut for the method msgStream(MSG::INFO)
virtual StatusCode addPreLoadItem(const DataStoreItem &item)=0
Add an item to the preload list.
StatusCode initialize() override
standard initialization method
Header file for class GaudiAlgorithm.
virtual StatusCode preLoad()=0
Load all preload items of the list.
StatusCode execute() override
standard execution method
Description of the DataStoreItem class.
Definition: DataStoreItem.h:17
ContextEvt_t evt() const
Definition: EventContext.h:39
#define DECLARE_COMPONENT(type)
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:51
The useful base class for data processing algorithms.
GAUDI_API const EventContext & currentContext()
StatusCode execute() override
SmartIF< IDataProviderSvc > & evtSvc() const
shortcut for method eventSvc
Definition: Algorithm.h:280
#define GAUDI_API
Definition: Kernel.h:104
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
Definition: MsgStream.h:209
GaudiAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Standard constructor.