| The Gaudi Framework v27r1

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

HelloWorld.h
Go to the documentation of this file.
1 #ifndef GAUDIEXAMPLE_HELLOWORLD_H
2 #define GAUDIEXAMPLE_HELLOWORLD_H 1
3
4 // Include files
5 #include "GaudiKernel/Algorithm.h"
6 #include "GaudiKernel/Property.h"
7 #include "GaudiKernel/MsgStream.h"
8
14 class HelloWorld : public Algorithm {
15 public:
17 HelloWorld(const std::string& name, ISvcLocator* pSvcLocator);
18
20 StatusCode initialize();
21 StatusCode execute();
22 StatusCode finalize();
23 StatusCode beginRun();
24 StatusCode endRun();
25 private:
26 bool m_initialized;
29 IntegerProperty m_int;
30 DoubleProperty m_double;
31 StringProperty m_string;
32 };
33
34 #endif // GAUDIEXAMPLE_HELLOWORLD_H
HelloWorld::endRun
StatusCode endRun()
Definition: HelloWorld.cpp:56
Algorithm.h
ISvcLocator
The ISvcLocator is the interface implemented by the Service Factory in the Application Manager to loc...
Definition: ISvcLocator.h:25
MsgStream.h
HelloWorld::m_string
StringProperty m_string
Definition: HelloWorld.h:31
HelloWorld::execute
StatusCode execute()
Definition: HelloWorld.cpp:29
std::string
STL class.
Algorithm::name
const std::string & name() const override
The identifying name of the algorithm object.
Definition: Algorithm.cpp:820
SimpleProperty< int >
HelloWorld::beginRun
StatusCode beginRun()
Definition: HelloWorld.cpp:46
StatusCode
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:26
HelloWorld
Trivial Algorithm for tutotial purposes.
Definition: HelloWorld.h:14
HelloWorld::HelloWorld
HelloWorld(const std::string &name, ISvcLocator *pSvcLocator)
Constructor of this form must be provided.
Definition: HelloWorld.cpp:9
HelloWorld::m_double
DoubleProperty m_double
Definition: HelloWorld.h:30
Algorithm
Base class from which all concrete algorithm classes should be derived.
Definition: Algorithm.h:74
HelloWorld::initialize
StatusCode initialize()
Three mandatory member functions of any algorithm.
Definition: HelloWorld.cpp:16
Property.h
HelloWorld::m_initialized
bool m_initialized
Definition: HelloWorld.h:26
HelloWorld::m_int
IntegerProperty m_int
These data members are used in the execution of this algorithm They are set in the initialisation pha...
Definition: HelloWorld.h:29
HelloWorld::finalize
StatusCode finalize()
Definition: HelloWorld.cpp:38