All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
HepRndmBaseEngine.h
Go to the documentation of this file.
1 //====================================================================
2 // CLHEP Basic 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_HEPRNDMBASEENGINE_H
16 #define HEPRNDM_HEPRNDMBASEENGINE_H 1
17 
18 // Framework include files
19 #include "RndmEngine.h"
20 
21 // Forward declarations
22 namespace CLHEP {
23  class HepRandomEngine;
24 }
25 
26 namespace HepRndm {
27 
28  class BaseEngine : public RndmEngine {
29  protected:
30  CLHEP::HepRandomEngine* m_hepEngine;
31  public:
32  BaseEngine(const std::string& name, ISvcLocator* loc)
33  : RndmEngine( name, loc ), m_hepEngine(0) {
34  }
35  virtual ~BaseEngine() {
36  }
37  CLHEP::HepRandomEngine* hepEngine() {
38  return m_hepEngine;
39  }
40  };
41 }
42 #endif // HEPRNDM_HEPRNDMBASEENGINE_H
The ISvcLocator is the interface implemented by the Service Factory in the Application Manager to loc...
Definition: ISvcLocator.h:26
CLHEP::HepRandomEngine * m_hepEngine
BaseEngine(const std::string &name, ISvcLocator *loc)
virtual const std::string & name() const
Retrieve name of the service.
Definition: Service.cpp:331
Random Generator engine definition.
Definition: RndmEngine.h:46
CLHEP::HepRandomEngine * hepEngine()