#include <CustomUIsessionThreadPrefix.h>
Public Member Functions | |
CustomUIsessionThreadPrefix (const std::string &threadPrefix, int threadId) | |
G4int | ReceiveG4cerr (const G4String &cerrString) override |
G4int | ReceiveG4cout (const G4String &coutString) override |
~CustomUIsessionThreadPrefix () override | |
Public Member Functions inherited from CustomUIsession | |
CustomUIsession () | |
G4int | ReceiveG4cerr (const G4String &cerrString) override |
G4int | ReceiveG4cout (const G4String &coutString) override |
void | sendToFile (std::ofstream *) |
void | stopSendToFile () |
~CustomUIsession () override | |
Private Attributes | |
const std::string | m_threadPrefix |
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 small to moderate. The output of Geant4 is forwarded to MessageLogger as in CustomUIsession, but a thread-specific prefix is added before each line of output. This makes it easier to grab the output of a specific thread.
Definition at line 13 of file CustomUIsessionThreadPrefix.h.
|
explicit |
Definition at line 3 of file CustomUIsessionThreadPrefix.cc.
|
override |
Definition at line 6 of file CustomUIsessionThreadPrefix.cc.
References end, runTheMatrix::ret, str, and AlCaHLTBitMon_QueryRunRegistry::string.
|
override |
Definition at line 30 of file CustomUIsessionThreadPrefix.cc.
References m_threadPrefix, and CustomUIsession::trim().
|
override |
Definition at line 24 of file CustomUIsessionThreadPrefix.cc.
References m_threadPrefix, and CustomUIsession::trim().
|
private |
Definition at line 22 of file CustomUIsessionThreadPrefix.h.
Referenced by ReceiveG4cerr(), and ReceiveG4cout().