BOSS 7.0.5
BESIII Offline Software System
Loading...
Searching...
No Matches
BesLogSession Class Reference

#include <BesLogSession.hh>

+ Inheritance diagram for BesLogSession:

Public Member Functions

 BesLogSession ()
 
 ~BesLogSession ()
 
G4int ReceiveG4cout (G4String coutString)
 
G4int ReceiveG4cerr (G4String cerrString)
 
 BesLogSession ()
 
 ~BesLogSession ()
 
G4int ReceiveG4cout (G4String coutString)
 
G4int ReceiveG4cerr (G4String cerrString)
 

Detailed Description

Constructor & Destructor Documentation

◆ BesLogSession() [1/2]

BesLogSession::BesLogSession ( )

Definition at line 16 of file BesLogSession.cc.

17{
18 logFile.open("boost.log");
19 errFile.open("boost.err");
20// G4UImanager::GetUIpointer()->SetCoutDestination(this);
21}

◆ ~BesLogSession() [1/2]

BesLogSession::~BesLogSession ( )

Definition at line 23 of file BesLogSession.cc.

24{
25 logFile.close();
26 errFile.close();
27}

◆ BesLogSession() [2/2]

BesLogSession::BesLogSession ( )

◆ ~BesLogSession() [2/2]

BesLogSession::~BesLogSession ( )

Member Function Documentation

◆ ReceiveG4cerr() [1/2]

G4int BesLogSession::ReceiveG4cerr ( G4String  cerrString)

Definition at line 35 of file BesLogSession.cc.

36{
37 errFile << cerrString << std::flush;
38 return 0;
39}

◆ ReceiveG4cerr() [2/2]

G4int BesLogSession::ReceiveG4cerr ( G4String  cerrString)

◆ ReceiveG4cout() [1/2]

G4int BesLogSession::ReceiveG4cout ( G4String  coutString)

Definition at line 29 of file BesLogSession.cc.

30{
31 logFile << coutString << std::flush;
32 return 0;
33}

◆ ReceiveG4cout() [2/2]

G4int BesLogSession::ReceiveG4cout ( G4String  coutString)

The documentation for this class was generated from the following files: