CMS 3D CMS Logo

Public Member Functions | Protected Attributes

CustomUIsession Class Reference

#include <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.

{
  
  UI = G4UImanager::GetUIpointer();
  UI->SetCoutDestination(this);

}
CustomUIsession::~CustomUIsession ( )

Definition at line 11 of file CustomUIsession.cc.

References NULL, and UI.

{
  
  UI = G4UImanager::GetUIpointer();
  UI->SetCoutDestination(NULL);

}

Member Function Documentation

G4int CustomUIsession::ReceiveG4cerr ( G4String  cerrString)

Definition at line 26 of file CustomUIsession.cc.

{
  //std::cerr << cerrString << std::flush;
  edm::LogWarning("G4cerr") << cerrString;
  return 0;
}
G4int CustomUIsession::ReceiveG4cout ( G4String  coutString)

Definition at line 19 of file CustomUIsession.cc.

{
  //std::cout << coutString << std::flush;
  edm::LogInfo("G4cout") << coutString;
  return 0;
}

Member Data Documentation

G4UImanager* CustomUIsession::UI [protected]

Definition at line 22 of file CustomUIsession.h.

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