All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
HiveReadAlgorithm.cpp
Go to the documentation of this file.
1 #include "GaudiAlg/GaudiAlgorithm.h"
2 #include "GaudiKernel/AlgFactory.h"
3 #include "GaudiKernel/DataStoreItem.h"
4 
6 public:
7  HiveReadAlgorithm( const std::string& name, ISvcLocator* pSvcLocator ) : GaudiAlgorithm(name, pSvcLocator) {}
8  virtual ~HiveReadAlgorithm() {}
12 };
13 
15 
17  return evtSvc()->addPreLoadItem(DataStoreItem("/Event",99));
18 }
19 
21 {
22  EventContext* ctxt = getContext();
23  if (ctxt){
24  info() << "Running now for event " << ctxt->evt() << endmsg;
25  }
26  return evtSvc()->preLoad();
27 }
#define DECLARE_ALGORITHM_FACTORY(x)
Definition: Algorithm.h:946
def initialize()
Definition: AnalysisTest.py:12
The ISvcLocator is the interface implemented by the Service Factory in the Application Manager to loc...
Definition: ISvcLocator.h:25
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
Definition: MsgStream.h:244
#define GAUDI_API
Definition: Kernel.h:107
StatusCode initialize() override
standard initialization method
StatusCode execute() override
standard execution method
Description of the DataStoreItem class.
Definition: DataStoreItem.h:17
This class represents an entry point to all the event specific data.
Definition: EventContext.h:22
virtual ~HiveReadAlgorithm()
HiveReadAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:26
long int evt() const
Definition: EventContext.h:37
The useful base class for data processing algorithms.
MsgStream & info() const
shortcut for the method msgStream(MSG::INFO)