The Gaudi Framework
v27r0
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
•
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
5
class
GAUDI_API
HiveReadAlgorithm
:
public
GaudiAlgorithm
{
6
public
:
7
HiveReadAlgorithm
(
const
std::string&
name
,
ISvcLocator
* pSvcLocator ) :
GaudiAlgorithm
(name, pSvcLocator) {}
8
virtual
~HiveReadAlgorithm
() {}
9
StatusCode
initialize
();
10
StatusCode
execute
();
11
StatusCode
finalize
() {
return
StatusCode::SUCCESS
;}
12
};
13
14
DECLARE_ALGORITHM_FACTORY
(
HiveReadAlgorithm
)
15
16
StatusCode
HiveReadAlgorithm
::
initialize
(){
17
return
evtSvc()->addPreLoadItem(
DataStoreItem
(
"/Event"
,99));
18
}
19
20
StatusCode
HiveReadAlgorithm::execute
()
21
{
22
EventContext
* ctxt = getContext();
23
if
(ctxt){
24
info
() <<
"Running now for event "
<< ctxt->
evt
() <<
endmsg
;
25
}
26
return
evtSvc()->preLoad();
27
}
HiveReadAlgorithm::finalize
StatusCode finalize()
Definition:
HiveReadAlgorithm.cpp:11
DECLARE_ALGORITHM_FACTORY
#define DECLARE_ALGORITHM_FACTORY(x)
Definition:
Algorithm.h:946
AnalysisTest.initialize
def initialize()
Definition:
AnalysisTest.py:12
ISvcLocator
The ISvcLocator is the interface implemented by the Service Factory in the Application Manager to loc...
Definition:
ISvcLocator.h:25
endmsg
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
Definition:
MsgStream.h:244
gaudiComponentHelp.name
name
Definition:
gaudiComponentHelp.py:28
GAUDI_API
#define GAUDI_API
Definition:
Kernel.h:107
GaudiAlgorithm::initialize
StatusCode initialize() override
standard initialization method
Definition:
GaudiAlgorithm.cpp:48
GaudiAlgorithm::execute
StatusCode execute() override
standard execution method
Definition:
GaudiAlgorithm.cpp:76
DataStoreItem
Description of the DataStoreItem class.
Definition:
DataStoreItem.h:17
EventContext
This class represents an entry point to all the event specific data.
Definition:
EventContext.h:22
HiveReadAlgorithm::~HiveReadAlgorithm
virtual ~HiveReadAlgorithm()
Definition:
HiveReadAlgorithm.cpp:8
HiveReadAlgorithm::HiveReadAlgorithm
HiveReadAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Definition:
HiveReadAlgorithm.cpp:7
StatusCode
This class is used for returning status codes from appropriate routines.
Definition:
StatusCode.h:26
EventContext::evt
long int evt() const
Definition:
EventContext.h:37
GaudiAlgorithm
The useful base class for data processing algorithms.
Definition:
GaudiAlgorithm.h:92
StatusCode::SUCCESS
Definition:
StatusCode.h:30
HiveReadAlgorithm
Definition:
HiveReadAlgorithm.cpp:5
HiveReadAlgorithm::execute
StatusCode execute()
Definition:
HiveReadAlgorithm.cpp:20
CommonMessaging::info
MsgStream & info() const
shortcut for the method msgStream(MSG::INFO)
Definition:
CommonMessaging.h:131
GaudiHive
src
HiveReadAlgorithm.cpp
Generated on Thu Feb 4 2016 16:42:11 for The Gaudi Framework by
1.8.9.1