CMS 3D CMS Logo

CustomUIsessionToFile.cc
Go to the documentation of this file.
2 
5  m_output(filePrefix+"_"+std::to_string(threadId)+".txt")
6 {}
7 
9 
10 G4int CustomUIsessionToFile::ReceiveG4cout(const G4String& coutString)
11 {
12  m_output << coutString;
13  return 0;
14 }
15 
16 G4int CustomUIsessionToFile::ReceiveG4cerr(const G4String& cerrString)
17 {
18  m_output << cerrString;
19  return 0;
20 }
G4int ReceiveG4cout(const G4String &coutString) override
CustomUIsessionToFile(const std::string &filePrefix, int threadId)
G4int ReceiveG4cerr(const G4String &cerrString) override