Geant4 Cross Reference |
>> 1 // $Id:$ 1 // -*- C++ -*- 2 // -*- C++ -*- 2 // 3 // 3 // ------------------------------------------- 4 // ----------------------------------------------------------------------- 4 // HEP Random 5 // HEP Random 5 // --- StaticRandomStates 6 // --- StaticRandomStates --- 6 // class header file 7 // class header file 7 // ------------------------------------------- 8 // ----------------------------------------------------------------------- 8 // 9 // 9 // It's a holder for methods to save and resto 10 // It's a holder for methods to save and restore the full states of all 10 // static random distribution generators, incl 11 // static random distribution generators, including engine and cached data. 11 // 12 // 12 // =========================================== 13 // ======================================================================= 13 // Mark Fischler - Created: Dec. 21, 2004 14 // Mark Fischler - Created: Dec. 21, 2004 14 // =========================================== 15 // ======================================================================= 15 16 16 #ifndef StaticRandomStates_h 17 #ifndef StaticRandomStates_h 17 #define StaticRandomStates_h 1 18 #define StaticRandomStates_h 1 18 19 19 #include <iostream> 20 #include <iostream> 20 21 21 namespace CLHEP { 22 namespace CLHEP { 22 23 23 /** 24 /** 24 * @author <mf@fnal.gov> 25 * @author <mf@fnal.gov> 25 */ 26 */ 26 class StaticRandomStates { 27 class StaticRandomStates { 27 28 28 public: 29 public: 29 30 30 static std::ostream & save (std::ostream & o 31 static std::ostream & save (std::ostream & os); 31 static std::istream & restore(std::istream & i 32 static std::istream & restore(std::istream & is); 32 33 33 }; 34 }; 34 35 35 } // namespace CLHEP 36 } // namespace CLHEP 36 37 37 #endif 38 #endif 38 39