Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2025-08-05 08:18:11

0001 #include "PHG4UIsession.h"
0002 
0003 #include <Geant4/G4String.hh>  // for G4String
0004 #include <Geant4/G4Types.hh>   // for G4int
0005 
0006 #include <iostream>  // for flush, basic_ostream, ostream, cerr, cout
0007 #include <string>    // for operator<<
0008 
0009 class G4UIsession;
0010 
0011 PHG4UIsession::PHG4UIsession()
0012   : verbosity(0)
0013 {
0014 }
0015 
0016 G4UIsession* PHG4UIsession::SessionStart() { return nullptr; }
0017 
0018 void PHG4UIsession::PauseSessionStart(const G4String& /*Prompt*/) { ; }
0019 
0020 G4int PHG4UIsession::ReceiveG4cout(const G4String& coutString)
0021 {
0022   //  if (verbosity > 0) std::cout << coutString << std::flush;
0023   std::cout << coutString << std::flush;
0024   return 0;
0025 }
0026 
0027 G4int PHG4UIsession::ReceiveG4cerr(const G4String& cerrString)
0028 {
0029   std::cerr << cerrString << std::flush;
0030   return 0;
0031 }