BOSS 8.0.0
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 "G4ios.hh"
14#include "fstream"
15
17 logFile.open( "boost.log" );
18 errFile.open( "boost.err" );
19 // G4UImanager::GetUIpointer()->SetCoutDestination(this);
20}
21
23 logFile.close();
24 errFile.close();
25}
26
27G4int BesLogSession::ReceiveG4cout( G4String coutString ) {
28 logFile << coutString << std::flush;
29 return 0;
30}
31
32G4int BesLogSession::ReceiveG4cerr( G4String cerrString ) {
33 errFile << cerrString << std::flush;
34 return 0;
35}
G4int ReceiveG4cerr(G4String cerrString)
G4int ReceiveG4cout(G4String coutString)