| The Gaudi Framework v27r1

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

- File List
- File Members

RandomNumberAlg.h
Go to the documentation of this file.
1 #ifndef GAUDIEXAMPLES_RANDOMNUMBERALG_H
2 #define GAUDIEXAMPLES_RANDOMNUMBERALG_H
3
4 // Framework include files
5 #include "GaudiKernel/Algorithm.h"
6 #include "GaudiKernel/RndmGenerators.h"
7
8 namespace AIDA {
9 class IHistogram1D;
10 class IHistogram2D;
11 }
12
13
20 class RandomNumberAlg : public Algorithm {
21 protected:
23 Rndm::Numbers m_gaussNumbers;
24 Rndm::Numbers m_poissonNumbers;
25 Rndm::Numbers m_expNumbers;
26
27 AIDA::IHistogram1D* m_gaussHisto;
28 AIDA::IHistogram2D* m_gauss2Histo;
29 AIDA::IHistogram1D* m_poissonHisto;
30 AIDA::IHistogram1D* m_expHisto;
31
32 public:
34 RandomNumberAlg(const std::string& name, ISvcLocator* pSvcLocator);
36 virtual ~RandomNumberAlg();
38 virtual StatusCode initialize();
40 virtual StatusCode finalize();
42 virtual StatusCode execute();
43 };
44
45 #endif // GAUDIEXAMPLES_RANDOMNUMBERALG_H
Algorithm.h
RandomNumberAlg::~RandomNumberAlg
virtual ~RandomNumberAlg()
Standard Destructor.
Definition: RandomNumberAlg.cpp:28
RandomNumberAlg::m_expNumbers
Rndm::Numbers m_expNumbers
Definition: RandomNumberAlg.h:25
ISvcLocator
The ISvcLocator is the interface implemented by the Service Factory in the Application Manager to loc...
Definition: ISvcLocator.h:25
RandomNumberAlg::m_poissonHisto
AIDA::IHistogram1D * m_poissonHisto
Definition: RandomNumberAlg.h:29
RandomNumberAlg::execute
virtual StatusCode execute()
Event callback.
Definition: RandomNumberAlg.cpp:54
AIDA
GaudiKernel.
Definition: Fill.h:8
std::string
STL class.
Algorithm::name
const std::string & name() const override
The identifying name of the algorithm object.
Definition: Algorithm.cpp:820
Rndm::Numbers
Random number accessor This small class encapsulates the use of the random number generator...
Definition: RndmGenerators.h:370
RandomNumberAlg::m_poissonNumbers
Rndm::Numbers m_poissonNumbers
Definition: RandomNumberAlg.h:24
StatusCode
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:26
RandomNumberAlg::m_gauss2Histo
AIDA::IHistogram2D * m_gauss2Histo
Definition: RandomNumberAlg.h:28
RandomNumberAlg::RandomNumberAlg
RandomNumberAlg(const std::string &name, ISvcLocator *pSvcLocator)
Constructor: A constructor of this form must be provided.
Definition: RandomNumberAlg.cpp:23
RndmGenerators.h
Algorithm
Base class from which all concrete algorithm classes should be derived.
Definition: Algorithm.h:74
RandomNumberAlg::initialize
virtual StatusCode initialize()
Customized initialisation.
Definition: RandomNumberAlg.cpp:33
RandomNumberAlg::m_expHisto
AIDA::IHistogram1D * m_expHisto
Definition: RandomNumberAlg.h:30
RandomNumberAlg::m_gaussNumbers
Rndm::Numbers m_gaussNumbers
Allocate wrapper for random number generator.
Definition: RandomNumberAlg.h:23
RandomNumberAlg::finalize
virtual StatusCode finalize()
Customized finalisation.
Definition: RandomNumberAlg.cpp:64
RandomNumberAlg
A small algorithm class using the random number service.
Definition: RandomNumberAlg.h:20
RandomNumberAlg::m_gaussHisto
AIDA::IHistogram1D * m_gaussHisto
Definition: RandomNumberAlg.h:27