/home/bes3soft/bes3soft/Boss/7.0.2/dist/7.0.2/Simulation/BOOST/BesSim/BesSim-00-01-24/src/BesLogSession.cc

Go to the documentation of this file.
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 #include "BesLogSession.hh"
00012 #include "G4UImanager.hh"
00013 #include "fstream"
00014 #include "G4ios.hh"
00015      
00016 BesLogSession::BesLogSession()
00017 {
00018   logFile.open("boost.log");
00019   errFile.open("boost.err");
00020 //  G4UImanager::GetUIpointer()->SetCoutDestination(this);
00021 }
00022 
00023 BesLogSession::~BesLogSession()
00024 {
00025   logFile.close();
00026   errFile.close(); 
00027 }
00028 
00029 G4int BesLogSession::ReceiveG4cout(G4String coutString)
00030 {
00031   logFile << coutString << std::flush;
00032   return 0;
00033 }
00034 
00035 G4int BesLogSession::ReceiveG4cerr(G4String cerrString)
00036 {
00037   errFile << cerrString << std::flush;
00038   return 0;
00039 }
00040  
00041 
00042 
00043 
00044 
00045 
00046 
00047 
00048 

Generated on Tue Nov 29 23:14:23 2016 for BOSS_7.0.2 by  doxygen 1.4.7