BOSS
7.0.9
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
16
BesLogSession::BesLogSession
()
17
{
18
logFile.open(
"boost.log"
);
19
errFile.open(
"boost.err"
);
20
// G4UImanager::GetUIpointer()->SetCoutDestination(this);
21
}
22
23
BesLogSession::~BesLogSession
()
24
{
25
logFile.close();
26
errFile.close();
27
}
28
29
G4int
BesLogSession::ReceiveG4cout
(G4String coutString)
30
{
31
logFile << coutString << std::flush;
32
return
0;
33
}
34
35
G4int
BesLogSession::ReceiveG4cerr
(G4String cerrString)
36
{
37
errFile << cerrString << std::flush;
38
return
0;
39
}
40
41
42
43
44
45
46
47
48
BesLogSession.hh
BesLogSession::~BesLogSession
~BesLogSession()
Definition:
BesLogSession.cc:23
BesLogSession::ReceiveG4cerr
G4int ReceiveG4cerr(G4String cerrString)
Definition:
BesLogSession.cc:35
BesLogSession::ReceiveG4cout
G4int ReceiveG4cout(G4String coutString)
Definition:
BesLogSession.cc:29
BesLogSession::BesLogSession
BesLogSession()
Definition:
BesLogSession.cc:16
source
Simulation
BOOST
BesSim
BesSim-00-01-24
src
BesLogSession.cc
Generated by
1.9.6