All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules 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  ~Engine() override = default;
38  StatusCode initialize() override;
40  StatusCode finalize() override;
42  StatusCode setSeeds(const std::vector<long>& seed) override;
44  StatusCode seeds(std::vector<long>& seed) const override;
45  private:
47  std::unique_ptr<CLHEP::HepRandomEngine> createEngine() override;
48  };
49 }
50 
51 #endif // HEPRNDM_HEPRNDMENGINE_H
The ISvcLocator is the interface implemented by the Service Factory in the Application Manager to loc...
Definition: ISvcLocator.h:25
StatusCode seeds(std::vector< long > &seed) const override
Retrieve seeds.
~Engine() override=default
Standard Destructor.
std::vector< long > m_seeds
Definition: HepRndmEngine.h:28
Engine(const std::string &name, ISvcLocator *loc)
Standard Constructor.
StatusCode finalize() override
Finalize the Engine.
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:26
std::unique_ptr< CLHEP::HepRandomEngine > createEngine() override
Create new HepEngine....
StatusCode setSeeds(const std::vector< long > &seed) override
Set seeds.
StatusCode initialize() override
Initialize the Engine.