CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
CustomUIsession.cc
Go to the documentation of this file.
2 
4 {
5 
6  UI = G4UImanager::GetUIpointer();
7  UI->SetCoutDestination(this);
8 
9 }
10 
12 {
13 
14  UI = G4UImanager::GetUIpointer();
15  UI->SetCoutDestination(NULL);
16 
17 }
18 
19 G4int CustomUIsession::ReceiveG4cout(G4String coutString)
20 {
21  //std::cout << coutString << std::flush;
22  edm::LogInfo("G4cout") << coutString;
23  return 0;
24 }
25 
26 G4int CustomUIsession::ReceiveG4cerr(G4String cerrString)
27 {
28  //std::cerr << cerrString << std::flush;
29  edm::LogWarning("G4cerr") << cerrString;
30  return 0;
31 }
G4int ReceiveG4cout(G4String coutString)
G4int ReceiveG4cerr(G4String cerrString)
G4UImanager * UI
#define NULL
Definition: scimark2.h:8