All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
HepRndmEngine.h
Go to the documentation of this file.
1 //====================================================================
2 // CLHEP Random Engine definition file
3 //--------------------------------------------------------------------
4 //
5 // Package : HepRndm ( The LHCb Offline System)
6 // Author : M.Frank
7 // History :
8 // +---------+----------------------------------------------+---------
9 // | Date | Comment | Who
10 // +---------+----------------------------------------------+---------
11 // | 29/10/99| Initial version | MF
12 // +---------+----------------------------------------------+---------
13 //
14 //====================================================================
15 #ifndef HEPRNDM_HEPRNDMENGINE_H
16 #define HEPRNDM_HEPRNDMENGINE_H 1
17 
18 // Framework include files
19 #include <vector>
20 #include "HepRndmBaseEngine.h"
21 
22 namespace HepRndm {
23 
24  template <class TYPE>
25  class Engine : public BaseEngine {
26  protected:
27  // Seed table
28  mutable std::vector<long> m_seeds;
29  // Other parameters
30  int m_row, m_col, m_lux;
32  public:
34  Engine(const std::string& name, ISvcLocator* loc);
36  virtual ~Engine();
38  virtual StatusCode initialize();
40  virtual StatusCode finalize();
42  virtual StatusCode initializeEngine();
50  virtual double rndm() const;
55  StatusCode setSeeds(const std::vector<long>& seed);
57  StatusCode seeds(std::vector<long>& seed) const;
58  };
59 }
60 
61 #endif // HEPRNDM_HEPRNDMENGINE_H
virtual StatusCode initialize()
Initialize the Engine.
The ISvcLocator is the interface implemented by the Service Factory in the Application Manager to loc...
Definition: ISvcLocator.h:26
virtual double rndm() const
Single shot / This was declared "virtual double rndm()" which causes / compiler warnings since the si...
std::vector< long > m_seeds
Definition: HepRndmEngine.h:28
Engine(const std::string &name, ISvcLocator *loc)
Standard Constructor.
StatusCode seeds(std::vector< long > &seed) const
Retrieve seeds.
StatusCode setSeeds(const std::vector< long > &seed)
virtual double rndm() const { return BaseEngine::rndm( ); }
virtual StatusCode initializeEngine()
Create/Initialize new HepEngine....
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:30
virtual const std::string & name() const
Retrieve name of the service.
Definition: Service.cpp:331
virtual StatusCode finalize()
Finalize the Engine.
virtual ~Engine()
Standard Destructor.