The Gaudi Framework  v29r0 (ff2e7097)
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 "HepRndmBaseEngine.h"
20 #include <vector>
21 
22 namespace HepRndm
23 {
24 
25  template <class TYPE>
26  class Engine : public BaseEngine
27  {
28  protected:
29  mutable Gaudi::Property<std::vector<long>> m_seeds{this, "Seeds", {}, "seed table"};
30 
31  Gaudi::Property<int> m_col{this, "Column", 0};
32  Gaudi::Property<int> m_row{this, "Row", 1};
33  Gaudi::Property<int> m_lux{this, "Luxury", 3};
34  Gaudi::Property<bool> m_useTable{this, "UseTable", false};
35  Gaudi::Property<bool> m_setSingleton{this, "SetSingleton", false};
36 
37  public:
41  ~Engine() override = default;
43  StatusCode initialize() override;
45  StatusCode finalize() override;
47  StatusCode setSeeds( const std::vector<long>& seed ) override;
49  StatusCode seeds( std::vector<long>& seed ) const override;
50 
51  private:
54  };
55 }
56 
57 #endif // HEPRNDM_HEPRNDMENGINE_H
Gaudi::Property< bool > m_useTable
Definition: HepRndmEngine.h:34
Implementation of property with value of concrete type.
Definition: Property.h:319
~Engine() override=default
Standard Destructor.
Gaudi::Property< int > m_row
Definition: HepRndmEngine.h:32
Gaudi::Property< int > m_col
Definition: HepRndmEngine.h:31
StatusCode finalize() override
Finalize the Engine.
Gaudi::Property< int > m_lux
Definition: HepRndmEngine.h:33
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:28
Gaudi::Property< bool > m_setSingleton
Definition: HepRndmEngine.h:35
BaseEngine(const std::string &name, ISvcLocator *loc)
Gaudi::Property< std::vector< long > > m_seeds
Definition: HepRndmEngine.h:29
StatusCode seeds(std::vector< long > &seed) const override
Retrieve seeds.
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.