CMS 3D CMS Logo

CustomUIsession Class Reference

#include <SimG4Core/Application/interface/CustomUIsession.h>

List of all members.

Public Member Functions

 CustomUIsession ()
G4int ReceiveG4cerr (G4String cerrString)
G4int ReceiveG4cout (G4String coutString)
 ~CustomUIsession ()

Protected Attributes

G4UImanager * UI


Detailed Description

Definition at line 9 of file CustomUIsession.h.


Constructor & Destructor Documentation

CustomUIsession::CustomUIsession (  ) 

Definition at line 3 of file CustomUIsession.cc.

References UI.

00004 {
00005   
00006   UI = G4UImanager::GetUIpointer();
00007   UI->SetCoutDestination(this);
00008 
00009 }

CustomUIsession::~CustomUIsession (  ) 

Definition at line 11 of file CustomUIsession.cc.

References NULL, and UI.

00012 {
00013   
00014   UI = G4UImanager::GetUIpointer();
00015   UI->SetCoutDestination(NULL);
00016 
00017 }


Member Function Documentation

G4int CustomUIsession::ReceiveG4cerr ( G4String  cerrString  ) 

Definition at line 26 of file CustomUIsession.cc.

00027 {
00028   //std::cerr << cerrString << std::flush;
00029   edm::LogWarning("G4cerr") << cerrString;
00030   return 0;
00031 }

G4int CustomUIsession::ReceiveG4cout ( G4String  coutString  ) 

Definition at line 19 of file CustomUIsession.cc.

00020 {
00021   //std::cout << coutString << std::flush;
00022   edm::LogInfo("G4cout") << coutString;
00023   return 0;
00024 }


Member Data Documentation

G4UImanager* CustomUIsession::UI [protected]

Definition at line 22 of file CustomUIsession.h.

Referenced by CustomUIsession(), and ~CustomUIsession().


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:17:35 2009 for CMSSW by  doxygen 1.5.4