CMS 3D CMS Logo

/data/doxygen/doxygen-1.7.3/gen/CMSSW_4_2_8/src/SimG4Core/Application/src/CustomUIsession.cc

Go to the documentation of this file.
00001 #include "SimG4Core/Application/interface/CustomUIsession.h"
00002 
00003 CustomUIsession::CustomUIsession()
00004 {
00005   
00006   UI = G4UImanager::GetUIpointer();
00007   UI->SetCoutDestination(this);
00008 
00009 }
00010 
00011 CustomUIsession::~CustomUIsession()
00012 {
00013   
00014   UI = G4UImanager::GetUIpointer();
00015   UI->SetCoutDestination(NULL);
00016 
00017 }
00018 
00019 G4int CustomUIsession::ReceiveG4cout(G4String coutString)
00020 {
00021   //std::cout << coutString << std::flush;
00022   edm::LogInfo("G4cout") << coutString;
00023   return 0;
00024 }
00025 
00026 G4int CustomUIsession::ReceiveG4cerr(G4String cerrString)
00027 {
00028   //std::cerr << cerrString << std::flush;
00029   edm::LogWarning("G4cerr") << cerrString;
00030   return 0;
00031 }