4#include "G4UIsession.hh"
48 logFile.open(
"gemc.log");
49 errFile.open(
"gemc.err");
63 logFile << coutString << std::flush;
65 std::cout << coutString << std::flush;
80 errFile << cerrString << std::flush;
81 std::cerr << cerrString << std::flush;
86 std::ofstream logFile;
87 std::ofstream errFile;
Batch-mode G4UIsession that tees Geant4 output to files and the terminal.
G4int ReceiveG4cerr(const G4String &cerrString) override
Receives Geant4 standard error and tees it to gemc.err and std::cerr.
GBatch_Session()
Constructs the batch session and opens the log streams.
G4int ReceiveG4cout(const G4String &coutString) override
Receives Geant4 standard output and tees it to gemc.log and std::cout.