BOSS
7.0.7
BESIII Offline Software System
Toggle main menu visibility
Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
x
z
Functions
a
b
c
d
e
f
g
i
l
m
n
o
p
r
s
t
u
v
w
z
Variables
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
v
w
x
z
Typedefs
b
c
d
e
g
h
i
l
m
n
o
p
r
s
t
v
Enumerations
Enumerator
a
b
c
d
e
f
i
k
l
m
n
o
p
r
s
t
u
w
x
z
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
m
n
p
r
s
t
v
w
Enumerations
b
c
d
e
f
g
h
i
k
l
m
n
p
r
s
t
v
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
z
Related Functions
:
a
b
c
d
e
f
g
i
k
l
m
n
o
p
r
s
t
w
x
Files
File List
File Members
All
!
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
!
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
x
Variables
!
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
p
q
r
s
t
u
v
w
z
Enumerations
Enumerator
a
b
c
d
e
f
g
h
i
k
m
n
o
p
r
s
t
u
w
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
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