Geant4 Cross Reference |
>> 1 // $Id:$ 1 // -*- C++ -*- 2 // -*- C++ -*- 2 // 3 // 3 // ------------------------------------------- 4 // ----------------------------------------------------------------------- 4 // HEP Random 5 // HEP Random 5 // --- EngineFactory --- 6 // --- EngineFactory --- 6 // class header file 7 // class header file 7 // ------------------------------------------- 8 // ----------------------------------------------------------------------- 8 9 9 // Class generating new engines from streamed 10 // Class generating new engines from streamed saves. 10 11 11 // =========================================== 12 // ======================================================================= 12 // M Fischler - Created: 12/21/04 13 // M Fischler - Created: 12/21/04 13 // =========================================== 14 // ======================================================================= 14 15 15 #ifndef EngineFactory_h 16 #ifndef EngineFactory_h 16 #define EngineFactory_h 1 17 #define EngineFactory_h 1 17 18 18 #include "CLHEP/Random/RandomEngine.h" 19 #include "CLHEP/Random/RandomEngine.h" 19 20 20 namespace CLHEP { 21 namespace CLHEP { 21 22 22 class EngineFactory { 23 class EngineFactory { 23 public: 24 public: 24 static HepRandomEngine* newEngine(std::istre 25 static HepRandomEngine* newEngine(std::istream & is); 25 static HepRandomEngine* newEngine(std::vecto 26 static HepRandomEngine* newEngine(std::vector<unsigned long> const & v); 26 }; 27 }; 27 28 28 } // namespace CLHEP 29 } // namespace CLHEP 29 30 30 #endif 31 #endif 31 32 32 33