CGEM BOSS 6.6.5.i
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)
 

Detailed Description

Definition at line 17 of file BesLogSession.hh.

Constructor & Destructor Documentation

◆ BesLogSession()

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()

BesLogSession::~BesLogSession ( )

Definition at line 23 of file BesLogSession.cc.

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

Member Function Documentation

◆ ReceiveG4cerr()

G4int BesLogSession::ReceiveG4cerr ( G4String cerrString)

Definition at line 35 of file BesLogSession.cc.

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

◆ ReceiveG4cout()

G4int BesLogSession::ReceiveG4cout ( G4String coutString)

Definition at line 29 of file BesLogSession.cc.

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

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