7#ifndef SIMCORE_G4SESSION_H_
8#define SIMCORE_G4SESSION_H_
14#include "G4UIsession.hh"
31 const std::string& cerrFileName =
"G4cerr.log");
Do nothing with G4cout and G4cerr messages.
G4int ReceiveG4cout(const G4String &)
Does nothing with input.
G4UIsession * SessionStart()
Required hook for Geant4.
~BatchSession()
Destructor.
BatchSession()
Constructor.
G4int ReceiveG4cerr(const G4String &)
Does nothing with input.
Log the output of Geant4 to files in current directory.
std::ofstream cerrFile_
cerr log file
~LoggedSession()
Destructor.
G4UIsession * SessionStart()
Required hook for Geant4.
G4int ReceiveG4cerr(const G4String &message)
Redirects cerr to file.
std::ofstream coutFile_
cout log file
G4int ReceiveG4cout(const G4String &message)
Redirects cout to file.