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
16
BesLogSession::BesLogSession
() {
17
logFile.open(
"boost.log"
);
18
errFile.open(
"boost.err"
);
19
// G4UImanager::GetUIpointer()->SetCoutDestination(this);
20
}
21
22
BesLogSession::~BesLogSession
() {
23
logFile.close();
24
errFile.close();
25
}
26
27
G4int
BesLogSession::ReceiveG4cout
( G4String coutString ) {
28
logFile << coutString << std::flush;
29
return
0;
30
}
31
32
G4int
BesLogSession::ReceiveG4cerr
( G4String cerrString ) {
33
errFile << cerrString << std::flush;
34
return
0;
35
}
BesLogSession.hh
BesLogSession::~BesLogSession
~BesLogSession()
Definition
BesLogSession.cc:22
BesLogSession::ReceiveG4cerr
G4int ReceiveG4cerr(G4String cerrString)
Definition
BesLogSession.cc:32
BesLogSession::ReceiveG4cout
G4int ReceiveG4cout(G4String coutString)
Definition
BesLogSession.cc:27
BesLogSession::BesLogSession
BesLogSession()
Definition
BesLogSession.cc:16
8.0.0
BOSS_Source
Simulation
BOOST
BesSim
src
BesLogSession.cc
Generated by
1.16.1