CLHEP VERSION Reference Documentation
CLHEP Home Page CLHEP Documentation CLHEP Bug Reports |
00001 // $Id 00002 // -*- C++ -*- 00003 // 00004 // ----------------------------------------------------------------------- 00005 // HEP Random 00006 // --- EngineFactory --- 00007 // class header file 00008 // ----------------------------------------------------------------------- 00009 00010 // Class generating new engines from streamed saves. 00011 00012 // ======================================================================= 00013 // M Fischler - Created: 12/21/04 00014 // ======================================================================= 00015 00016 #ifndef EngineFactory_h 00017 #define EngineFactory_h 1 00018 00019 #include "CLHEP/Random/defs.h" 00020 #include "CLHEP/Random/RandomEngine.h" 00021 00022 namespace CLHEP { 00023 00024 class EngineFactory { 00025 public: 00026 static HepRandomEngine* newEngine(std::istream & is); 00027 static HepRandomEngine* newEngine(std::vector<unsigned long> const & v); 00028 }; 00029 00030 } // namespace CLHEP 00031 00032 #ifdef ENABLE_BACKWARDS_COMPATIBILITY 00033 // backwards compatibility will be enabled ONLY in CLHEP 1.9 00034 using namespace CLHEP; 00035 #endif 00036 00037 00038 #endif 00039