CLHEP VERSION Reference Documentation
   
CLHEP Home Page     CLHEP Documentation     CLHEP Bug Reports

RandomObjects/CLHEP/Random/EngineFactory.h
Go to the documentation of this file.
1 // $Id
2 // -*- C++ -*-
3 //
4 // -----------------------------------------------------------------------
5 // HEP Random
6 // --- EngineFactory ---
7 // class header file
8 // -----------------------------------------------------------------------
9 
10 // Class generating new engines from streamed saves.
11 
12 // =======================================================================
13 // M Fischler - Created: 12/21/04
14 // =======================================================================
15 
16 #ifndef EngineFactory_h
17 #define EngineFactory_h 1
18 
19 #include "CLHEP/Random/defs.h"
20 #include "CLHEP/Random/RandomEngine.h"
21 
22 namespace CLHEP {
23 
24 class EngineFactory {
25 public:
26  static HepRandomEngine* newEngine(std::istream & is);
27  static HepRandomEngine* newEngine(std::vector<unsigned long> const & v);
28 };
29 
30 } // namespace CLHEP
31 
32 #ifdef ENABLE_BACKWARDS_COMPATIBILITY
33 // backwards compatibility will be enabled ONLY in CLHEP 1.9
34 using namespace CLHEP;
35 #endif
36 
37 
38 #endif
39 
static HepRandomEngine * newEngine(std::istream &is)