Changeset 893 for trunk/examples/advanced/cosmicray_charging/CRCharging.cc
- Timestamp:
- Nov 27, 2008, 4:56:05 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/examples/advanced/cosmicray_charging/CRCharging.cc
r807 r893 50 50 #endif 51 51 52 #ifdef G4UI_USE_QT 53 #include "G4UIQt.hh" 54 #include "G4Qt.hh" 55 #include <qapplication.h> 56 #endif 52 57 #include "Randomize.hh" 53 58 … … 91 96 92 97 98 //Initialize G4 kernel 99 runManager->Initialize(); 100 101 // get the pointer to the User Interface manager 102 G4UImanager* UI = G4UImanager::GetUIpointer(); 103 104 #ifdef G4VIS_USE 105 // visualization manager 106 G4VisManager* visManager = new G4VisExecutive; 107 visManager->Initialize(); 108 #endif 109 93 110 G4UIsession* session=0; 94 111 if (argc==1) { // Define UI session for interactive mode. … … 96 113 #ifdef G4UI_USE_XM 97 114 session = new G4UIXm(argc,argv); 98 #else 115 #elif defined(G4UI_USE_QT) 116 session = new G4UIQt(&argc,argv); 117 #else 99 118 #ifdef G4UI_USE_TCSH 100 119 session = new G4UIterminal(new G4UItcsh); … … 105 124 } 106 125 107 #ifdef G4VIS_USE108 // visualization manager109 G4VisManager* visManager = new G4VisExecutive;110 visManager->Initialize();111 #endif112 113 126 114 //Initialize G4 kernel 115 runManager->Initialize(); 116 117 // get the pointer to the User Interface manager 118 G4UImanager* UI = G4UImanager::GetUIpointer(); 127 119 128 120 129 // Define UI session for interactive mode.
Note: See TracChangeset
for help on using the changeset viewer.