00001 //---------------------------------------------------------------------------// 00002 // BOOST --- BESIII Object_Oriented Simulation Tool // 00003 //---------------------------------------------------------------------------// 00004 //Description: Save the g4cout and g4cere to logfiles 00005 //Author: Liuhm 00006 //Created: Jun. 16, 2003 00007 //Modified: 00008 //Comment: 00009 //---------------------------------------------------------------------------// 00010 00011 #ifndef BesLogSession_H 00012 #define BesLogSession_H 1 00013 00014 #include "G4UIsession.hh" 00015 #include "fstream" 00016 00017 class BesLogSession : public G4UIsession 00018 { 00019 public: 00020 00021 BesLogSession(); 00022 ~BesLogSession(); 00023 G4int ReceiveG4cout(G4String coutString); 00024 G4int ReceiveG4cerr(G4String cerrString); 00025 00026 private: 00027 00028 std::ofstream logFile; 00029 std::ofstream errFile; 00030 }; 00031 00032 #endif 00033 00034 00035 00036