CGEM BOSS 6.6.5.i
BESIII Offline Software System
Loading...
Searching...
No Matches
BesLogSession.cc
Go to the documentation of this file.
1//---------------------------------------------------------------------------//
2// BOOST --- BESIII Object_Oriented Simulation Tool //
3//---------------------------------------------------------------------------//
4//Description: Save the g4cout and g4cere to logfiles
5//Author: Liuhm
6//Created: Jun. 16, 2003
7//Modified:
8//Comment:
9//---------------------------------------------------------------------------//
10//
11#include "BesLogSession.hh"
12#include "G4UImanager.hh"
13#include "fstream"
14#include "G4ios.hh"
15
17{
18 logFile.open("boost.log");
19 errFile.open("boost.err");
20// G4UImanager::GetUIpointer()->SetCoutDestination(this);
21}
22
24{
25 logFile.close();
26 errFile.close();
27}
28
29G4int BesLogSession::ReceiveG4cout(G4String coutString)
30{
31 logFile << coutString << std::flush;
32 return 0;
33}
34
35G4int BesLogSession::ReceiveG4cerr(G4String cerrString)
36{
37 errFile << cerrString << std::flush;
38 return 0;
39}
40
41
42
43
44
45
46
47
48
G4int ReceiveG4cerr(G4String cerrString)
G4int ReceiveG4cout(G4String coutString)