The Gaudi Framework  v32r2 (46d42edc)
HiveReadAlgorithm.cpp
Go to the documentation of this file.
4 
6 public:
8  StatusCode initialize() override;
9  StatusCode execute() override;
10 };
11 
13 
16  if ( !sc ) return sc;
17  return evtSvc()->addPreLoadItem( DataStoreItem( "/Event", 99 ) );
18 }
19 
21  info() << "Running now for event " << Gaudi::Hive::currentContext().evt() << endmsg;
22  return evtSvc()->preLoad();
23 }
ContextEvt_t evt() const
Definition: EventContext.h:40
StatusCode initialize() override
standard initialization method
Header file for class GaudiAlgorithm.
StatusCode execute() override
standard execution method
Description of the DataStoreItem class.
Definition: DataStoreItem.h:17
#define DECLARE_COMPONENT(type)
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:50
The useful base class for data processing algorithms.
GAUDI_API const EventContext & currentContext()
StatusCode execute() override
#define GAUDI_API
Definition: Kernel.h:71
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
Definition: MsgStream.h:192
GaudiAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Standard constructor.