CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Protected Attributes
CustomUIsession Class Reference

#include <CustomUIsession.h>

Inheritance diagram for CustomUIsession:

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.

4 {
5 
6  UI = G4UImanager::GetUIpointer();
7  UI->SetCoutDestination(this);
8 
9 }
G4UImanager * UI
CustomUIsession::~CustomUIsession ( )

Definition at line 11 of file CustomUIsession.cc.

References NULL, and UI.

12 {
13 
14  UI = G4UImanager::GetUIpointer();
15  UI->SetCoutDestination(NULL);
16 
17 }
G4UImanager * UI
#define NULL
Definition: scimark2.h:8

Member Function Documentation

G4int CustomUIsession::ReceiveG4cerr ( G4String  cerrString)

Definition at line 26 of file CustomUIsession.cc.

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

Definition at line 19 of file CustomUIsession.cc.

20 {
21  //std::cout << coutString << std::flush;
22  edm::LogInfo("G4cout") << coutString;
23  return 0;
24 }

Member Data Documentation

G4UImanager* CustomUIsession::UI
protected

Definition at line 22 of file CustomUIsession.h.

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