#include <CustomUIsessionToFile.h>
Public Member Functions | |
CustomUIsessionToFile (const std::string &filePrefix, int threadId) | |
G4int | ReceiveG4cerr (const G4String &cerrString) override |
G4int | ReceiveG4cout (const G4String &coutString) override |
~CustomUIsessionToFile () override | |
Public Member Functions inherited from CustomUIsession | |
CustomUIsession () | |
G4int | ReceiveG4cerr (const G4String &cerrString) override |
G4int | ReceiveG4cout (const G4String &coutString) override |
~CustomUIsession () override | |
Private Attributes | |
std::ofstream | m_output |
Additional Inherited Members | |
Protected Member Functions inherited from CustomUIsession | |
std::string | trim (const std::string &str) |
This class is intended for debugging of multithreaded simulation when the amount of output is moderate to large. Output of Geant4 in each thread is forwarded to a thread-specific file. Compared to using MessageLogger, this way the synchronization is avoided. Thread safety is ensured by
Definition at line 19 of file CustomUIsessionToFile.h.
CustomUIsessionToFile::CustomUIsessionToFile | ( | const std::string & | filePrefix, |
int | threadId | ||
) |
Definition at line 3 of file CustomUIsessionToFile.cc.
|
override |
Definition at line 8 of file CustomUIsessionToFile.cc.
|
override |
|
override |
|
private |
Definition at line 31 of file CustomUIsessionToFile.h.
Referenced by ReceiveG4cerr(), and ReceiveG4cout().