CMS 3D CMS Logo

CustomUIsessionToFile.h
Go to the documentation of this file.
1 #ifndef SimG4Core_CustomUIsessionToFile_H
2 #define SimG4Core_CustomUIsessionToFile_H
3 
5 
6 #include <fstream>
7 
20 public:
21  CustomUIsessionToFile(const std::string& filePrefix, int threadId);
22  ~CustomUIsessionToFile() override;
23 
24  G4int ReceiveG4cout(const G4String& coutString) override;
25  G4int ReceiveG4cerr(const G4String& cerrString) override;
26 
27 private:
28  std::ofstream m_output;
29 };
30 
31 #endif
G4int ReceiveG4cout(const G4String &coutString) override
CustomUIsessionToFile(const std::string &filePrefix, int threadId)
G4int ReceiveG4cerr(const G4String &cerrString) override