Changeset 893 for trunk/examples/advanced/cosmicray_charging
- Timestamp:
- Nov 27, 2008, 4:56:05 PM (16 years ago)
- Location:
- trunk/examples/advanced/cosmicray_charging
- Files:
-
- 2 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. -
trunk/examples/advanced/cosmicray_charging/init.mac
r807 r893 7 7 # 8 8 # Create empty scene 9 #/vis/scene/create9 /vis/scene/create 10 10 # 11 11 # Create a scene handler for a specific graphics system 12 12 # (Edit the next line(s) to choose another graphic system) 13 /vis/open OGLSX 13 /vis/open OGLSQT 14 #/vis/open OGLSX 14 15 #/vis/open OGLIX 15 16 #/vis/open OGLSXm
Note: See TracChangeset
for help on using the changeset viewer.