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 {
21 
22  public:
23 
24  CustomUIsessionToFile(const std::string& filePrefix, int threadId);
25  ~CustomUIsessionToFile() override;
26 
27  G4int ReceiveG4cout(const G4String& coutString) override;
28  G4int ReceiveG4cerr(const G4String& cerrString) override;
29 
30 private:
31  std::ofstream m_output;
32 };
33 
34 #endif
G4int ReceiveG4cout(const G4String &coutString) override
CustomUIsessionToFile(const std::string &filePrefix, int threadId)
G4int ReceiveG4cerr(const G4String &cerrString) override