All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
RandomNumberAlg.h
Go to the documentation of this file.
1 // $Header: /tmp/svngaudi/tmp.jEpFh25751/Gaudi/GaudiPython/src/Test/RandomNumberAlg.h,v 1.3 2008/10/27 19:22:21 marcocle Exp $ //
2 #ifndef GAUDIEXAMPLES_RANDOMNUMBERALG_H
3 #define GAUDIEXAMPLES_RANDOMNUMBERALG_H
4 
5 // Framework include files
8 
9 namespace AIDA {
10  class IHistogram1D;
11  class IHistogram2D;
12 }
13 
14 
21 class RandomNumberAlg : public Algorithm {
22  protected:
27 
28  AIDA::IHistogram1D* m_gaussHisto;
29  AIDA::IHistogram2D* m_gauss2Histo;
30  AIDA::IHistogram1D* m_poissonHisto;
31  AIDA::IHistogram1D* m_expHisto;
32 
33 public:
35  RandomNumberAlg(const std::string& name, ISvcLocator* pSvcLocator);
37  virtual ~RandomNumberAlg();
39  virtual StatusCode initialize();
41  virtual StatusCode finalize();
43  virtual StatusCode execute();
44 };
45 
46 #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:26
AIDA::IHistogram1D * m_poissonHisto
virtual StatusCode execute()
Event callback.
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:30
AIDA::IHistogram2D * m_gauss2Histo
RandomNumberAlg(const std::string &name, ISvcLocator *pSvcLocator)
Constructor: A constructor of this form must be provided.
virtual const std::string & name() const
The identifying name of the algorithm object.
Definition: Algorithm.cpp:837
Base class from which all concrete algorithm classes should be derived.
Definition: Algorithm.h:61
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