Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:30:14

0001 #include "SimG4Core/Application/interface/CustomUIsessionToFile.h"
0002 
0003 CustomUIsessionToFile::CustomUIsessionToFile(const std::string& filePrefix, int threadId)
0004     : CustomUIsession(), m_output(filePrefix + "_" + std::to_string(threadId) + ".txt") {}
0005 
0006 CustomUIsessionToFile::~CustomUIsessionToFile() {}
0007 
0008 G4int CustomUIsessionToFile::ReceiveG4cout(const G4String& coutString) {
0009   m_output << coutString;
0010   return 0;
0011 }
0012 
0013 G4int CustomUIsessionToFile::ReceiveG4cerr(const G4String& cerrString) {
0014   m_output << cerrString;
0015   return 0;
0016 }