All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
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:
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
virtual ~RandomNumberAlg()
Standard Destructor.
Rndm::Numbers m_expNumbers
The ISvcLocator is the interface implemented by the Service Factory in the Application Manager to loc...
Definition: ISvcLocator.h:25
AIDA::IHistogram1D * m_poissonHisto
virtual StatusCode execute()
Event callback.
GaudiKernel.
Definition: Fill.h:8
const std::string & name() const override
The identifying name of the algorithm object.
Definition: Algorithm.cpp:919
Random number accessor This small class encapsulates the use of the random number generator...
Rndm::Numbers m_poissonNumbers
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:26
AIDA::IHistogram2D * m_gauss2Histo
RandomNumberAlg(const std::string &name, ISvcLocator *pSvcLocator)
Constructor: A constructor of this form must be provided.
Base class from which all concrete algorithm classes should be derived.
Definition: Algorithm.h:77
virtual StatusCode initialize()
Customized initialisation.
AIDA::IHistogram1D * m_expHisto
Rndm::Numbers m_gaussNumbers
Allocate wrapper for random number generator.
virtual StatusCode finalize()
Customized finalisation.
A small algorithm class using the random number service.
AIDA::IHistogram1D * m_gaussHisto