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