Changeset 1337 for trunk/examples/extended/geometry
- Timestamp:
- Sep 30, 2010, 2:47:17 PM (14 years ago)
- Location:
- trunk/examples/extended/geometry/olap
- Files:
-
- 29 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/examples/extended/geometry/olap/History
r807 r1337 1 $Id: History,v 1.1 0 2005/11/15 14:15:25 gcosmoExp $1 $Id: History,v 1.11 2010/05/12 20:38:24 allison Exp $ 2 2 ------------------------------------------------------------------- 3 3 … … 17 17 * Reverse chronological order (last date on top), please * 18 18 ---------------------------------------------------------- 19 20 May 12th, 2010 J.Allison - olapex-V09-03-00 21 - Introduced G4UIExecutive. 19 22 20 23 November 15th, 2005 G.Cosmo - olapex-V07-01-00 -
trunk/examples/extended/geometry/olap/include/G4GeoNav.hh
r1230 r1337 26 26 // 27 27 // $Id: G4GeoNav.hh,v 1.4 2006/06/29 17:21:58 gunter Exp $ 28 // GEANT4 tag $Name: geant4-09-0 3-cand-01 $28 // GEANT4 tag $Name: geant4-09-04-beta-01 $ 29 29 // 30 30 // -
trunk/examples/extended/geometry/olap/include/OlapDetConstr.hh
r1230 r1337 26 26 // 27 27 // $Id: OlapDetConstr.hh,v 1.2 2006/06/29 17:22:00 gunter Exp $ 28 // GEANT4 tag $Name: geant4-09-0 3-cand-01 $28 // GEANT4 tag $Name: geant4-09-04-beta-01 $ 29 29 // 30 30 // -
trunk/examples/extended/geometry/olap/include/OlapEventAction.hh
r1230 r1337 26 26 // 27 27 // $Id: OlapEventAction.hh,v 1.3 2006/06/29 17:22:02 gunter Exp $ 28 // GEANT4 tag $Name: geant4-09-0 3-cand-01 $28 // GEANT4 tag $Name: geant4-09-04-beta-01 $ 29 29 // 30 30 // -
trunk/examples/extended/geometry/olap/include/OlapGenerator.hh
r1230 r1337 26 26 // 27 27 // $Id: OlapGenerator.hh,v 1.3 2006/06/29 17:22:04 gunter Exp $ 28 // GEANT4 tag $Name: geant4-09-0 3-cand-01 $28 // GEANT4 tag $Name: geant4-09-04-beta-01 $ 29 29 // 30 30 // -
trunk/examples/extended/geometry/olap/include/OlapLogManager.hh
r1230 r1337 26 26 // 27 27 // $Id: OlapLogManager.hh,v 1.2 2006/06/29 17:22:06 gunter Exp $ 28 // GEANT4 tag $Name: geant4-09-0 3-cand-01 $28 // GEANT4 tag $Name: geant4-09-04-beta-01 $ 29 29 // 30 30 // -
trunk/examples/extended/geometry/olap/include/OlapManager.hh
r1230 r1337 26 26 // 27 27 // $Id: OlapManager.hh,v 1.4 2006/06/29 17:22:08 gunter Exp $ 28 // GEANT4 tag $Name: geant4-09-0 3-cand-01 $28 // GEANT4 tag $Name: geant4-09-04-beta-01 $ 29 29 // 30 30 // -
trunk/examples/extended/geometry/olap/include/OlapManagerMessenger.hh
r1230 r1337 26 26 // 27 27 // $Id: OlapManagerMessenger.hh,v 1.2 2006/06/29 17:22:10 gunter Exp $ 28 // GEANT4 tag $Name: geant4-09-0 3-cand-01 $28 // GEANT4 tag $Name: geant4-09-04-beta-01 $ 29 29 // 30 30 // -
trunk/examples/extended/geometry/olap/include/OlapNotify.hh
r1230 r1337 26 26 // 27 27 // $Id: OlapNotify.hh,v 1.3 2006/06/29 17:22:13 gunter Exp $ 28 // GEANT4 tag $Name: geant4-09-0 3-cand-01 $28 // GEANT4 tag $Name: geant4-09-04-beta-01 $ 29 29 // 30 30 // -
trunk/examples/extended/geometry/olap/include/OlapPhysicsList.hh
r1230 r1337 26 26 // 27 27 // $Id: OlapPhysicsList.hh,v 1.2 2006/06/29 17:22:35 gunter Exp $ 28 // GEANT4 tag $Name: geant4-09-0 3-cand-01 $28 // GEANT4 tag $Name: geant4-09-04-beta-01 $ 29 29 // 30 30 // -
trunk/examples/extended/geometry/olap/include/OlapRunAction.hh
r1230 r1337 26 26 // 27 27 // $Id: OlapRunAction.hh,v 1.3 2006/06/29 17:22:38 gunter Exp $ 28 // GEANT4 tag $Name: geant4-09-0 3-cand-01 $28 // GEANT4 tag $Name: geant4-09-04-beta-01 $ 29 29 // 30 30 // -
trunk/examples/extended/geometry/olap/include/OlapSteppingAction.hh
r1230 r1337 26 26 // 27 27 // $Id: OlapSteppingAction.hh,v 1.3 2006/06/29 17:22:41 gunter Exp $ 28 // GEANT4 tag $Name: geant4-09-0 3-cand-01 $28 // GEANT4 tag $Name: geant4-09-04-beta-01 $ 29 29 // 30 30 // -
trunk/examples/extended/geometry/olap/include/RandomDetector.hh
r1230 r1337 26 26 // 27 27 // $Id: RandomDetector.hh,v 1.2 2006/06/29 17:22:44 gunter Exp $ 28 // GEANT4 tag $Name: geant4-09-0 3-cand-01 $28 // GEANT4 tag $Name: geant4-09-04-beta-01 $ 29 29 // 30 30 // -
trunk/examples/extended/geometry/olap/include/SolidAnalyser.hh
r1230 r1337 26 26 // 27 27 // $Id: SolidAnalyser.hh,v 1.3 2006/06/29 17:22:46 gunter Exp $ 28 // GEANT4 tag $Name: geant4-09-0 3-cand-01 $28 // GEANT4 tag $Name: geant4-09-04-beta-01 $ 29 29 // 30 30 // -
trunk/examples/extended/geometry/olap/include/tree.hh
r1230 r1337 26 26 // 27 27 // $Id: tree.hh,v 1.4 2006/06/29 17:22:48 gunter Exp $ 28 // GEANT4 tag $Name: geant4-09-0 3-cand-01 $28 // GEANT4 tag $Name: geant4-09-04-beta-01 $ 29 29 // 30 30 // -
trunk/examples/extended/geometry/olap/olapex.cc
r1230 r1337 25 25 // 26 26 // 27 // $Id: olapex.cc,v 1. 3 2006/06/29 17:21:55 gunterExp $28 // GEANT4 tag $Name: geant4-09-0 3-cand-01 $27 // $Id: olapex.cc,v 1.4 2010/05/12 20:38:24 allison Exp $ 28 // GEANT4 tag $Name: geant4-09-04-beta-01 $ 29 29 // 30 30 // … … 41 41 // Geant4 42 42 #include "G4RunManager.hh" 43 #include "G4UIterminal.hh"44 #include "G4UItcsh.hh"45 43 46 44 // this module … … 56 54 #ifdef G4VIS_USE 57 55 #include "G4VisExecutive.hh" 56 #endif 57 58 #ifdef G4UI_USE 59 #include "G4UIExecutive.hh" 58 60 #endif 59 61 … … 85 87 olap->GotoLV(olap->GetFullWorld()->GetLogicalVolume()->GetName()); 86 88 87 #ifdef G4VIS_USE88 //Instantiating VisManager89 G4VisManager *visManager = new G4VisExecutive;90 visManager -> Initialize();91 #endif92 93 89 //User action classes. 94 90 OlapRunAction * olapRunAction = new OlapRunAction; … … 98 94 runManager->SetUserAction(olapEventAction); 99 95 runManager->SetUserAction(olapSteppingAction); 100 101 102 96 103 97 #ifdef debug … … 112 106 #endif 113 107 114 108 #ifdef G4VIS_USE 109 //Instantiating VisManager 110 G4VisManager *visManager = new G4VisExecutive; 111 visManager -> Initialize(); 112 #endif 115 113 116 114 //Get the pointer for the User Interface maager 117 G4UImanager* UI = G4UImanager::GetUIpointer();115 G4UImanager* UImanager = G4UImanager::GetUIpointer(); 118 116 119 if (argc == 1) {120 G4VUIshell * s = new G4UItcsh("Idle> ",10);121 G4UIsession* session = new G4UIterminal(s); 122 123 G4String command = "/control/execute gui.mac"; 124 UI->ApplyCommand(command);125 session->SessionStart();126 127 delete session;128 }129 //Batch mode130 else { 131 G4String command = "/control/execute ";132 G4String fileName = argv[1];133 UI->ApplyCommand(command+fileName);134 } 135 117 if (argc!=1) // batch mode 118 { 119 #ifdef G4VIS_USE 120 visManager->SetVerboseLevel("quiet"); 121 #endif 122 G4String command = "/control/execute "; 123 G4String fileName = argv[1]; 124 UImanager->ApplyCommand(command+fileName); 125 } 126 else 127 { // interactive mode : define UI session 128 #ifdef G4UI_USE 129 G4UIExecutive* ui = new G4UIExecutive(argc, argv); 130 ui->SessionStart(); 131 delete ui; 132 #endif 133 } 136 134 137 135 #ifdef G4VIS_USE -
trunk/examples/extended/geometry/olap/src/G4GeoNav.cc
r1230 r1337 26 26 // 27 27 // $Id: G4GeoNav.cc,v 1.3 2006/06/29 17:22:50 gunter Exp $ 28 // GEANT4 tag $Name: geant4-09-0 3-cand-01 $28 // GEANT4 tag $Name: geant4-09-04-beta-01 $ 29 29 // 30 30 // -
trunk/examples/extended/geometry/olap/src/OlapDetConstr.cc
r1230 r1337 26 26 // 27 27 // $Id: OlapDetConstr.cc,v 1.4 2006/06/29 17:22:52 gunter Exp $ 28 // GEANT4 tag $Name: geant4-09-0 3-cand-01 $28 // GEANT4 tag $Name: geant4-09-04-beta-01 $ 29 29 // 30 30 // -
trunk/examples/extended/geometry/olap/src/OlapEventAction.cc
r1230 r1337 26 26 // 27 27 // $Id: OlapEventAction.cc,v 1.5 2006/06/29 17:22:54 gunter Exp $ 28 // GEANT4 tag $Name: geant4-09-0 3-cand-01 $28 // GEANT4 tag $Name: geant4-09-04-beta-01 $ 29 29 // 30 30 // -
trunk/examples/extended/geometry/olap/src/OlapGenerator.cc
r1230 r1337 26 26 // 27 27 // $Id: OlapGenerator.cc,v 1.4 2006/06/29 17:22:56 gunter Exp $ 28 // GEANT4 tag $Name: geant4-09-0 3-cand-01 $28 // GEANT4 tag $Name: geant4-09-04-beta-01 $ 29 29 // 30 30 // -
trunk/examples/extended/geometry/olap/src/OlapLogManager.cc
r1230 r1337 26 26 // 27 27 // $Id: OlapLogManager.cc,v 1.3 2006/06/29 17:22:58 gunter Exp $ 28 // GEANT4 tag $Name: geant4-09-0 3-cand-01 $28 // GEANT4 tag $Name: geant4-09-04-beta-01 $ 29 29 // 30 30 // -
trunk/examples/extended/geometry/olap/src/OlapManager.cc
r1230 r1337 26 26 // 27 27 // $Id: OlapManager.cc,v 1.3 2006/06/29 17:23:00 gunter Exp $ 28 // GEANT4 tag $Name: geant4-09-0 3-cand-01 $28 // GEANT4 tag $Name: geant4-09-04-beta-01 $ 29 29 // 30 30 // -
trunk/examples/extended/geometry/olap/src/OlapManagerMessenger.cc
r1230 r1337 26 26 // 27 27 // $Id: OlapManagerMessenger.cc,v 1.3 2006/06/29 17:23:02 gunter Exp $ 28 // GEANT4 tag $Name: geant4-09-0 3-cand-01 $28 // GEANT4 tag $Name: geant4-09-04-beta-01 $ 29 29 // 30 30 // -
trunk/examples/extended/geometry/olap/src/OlapNotify.cc
r1230 r1337 26 26 // 27 27 // $Id: OlapNotify.cc,v 1.2 2006/06/29 17:23:04 gunter Exp $ 28 // GEANT4 tag $Name: geant4-09-0 3-cand-01 $28 // GEANT4 tag $Name: geant4-09-04-beta-01 $ 29 29 // 30 30 // -
trunk/examples/extended/geometry/olap/src/OlapPhysicsList.cc
r1230 r1337 26 26 // 27 27 // $Id: OlapPhysicsList.cc,v 1.2 2006/06/29 17:23:07 gunter Exp $ 28 // GEANT4 tag $Name: geant4-09-0 3-cand-01 $28 // GEANT4 tag $Name: geant4-09-04-beta-01 $ 29 29 // 30 30 // -
trunk/examples/extended/geometry/olap/src/OlapRunAction.cc
r1230 r1337 26 26 // 27 27 // $Id: OlapRunAction.cc,v 1.5 2006/06/29 17:23:10 gunter Exp $ 28 // GEANT4 tag $Name: geant4-09-0 3-cand-01 $28 // GEANT4 tag $Name: geant4-09-04-beta-01 $ 29 29 // 30 30 // -
trunk/examples/extended/geometry/olap/src/OlapSteppingAction.cc
r1230 r1337 26 26 // 27 27 // $Id: OlapSteppingAction.cc,v 1.3 2006/06/29 17:23:13 gunter Exp $ 28 // GEANT4 tag $Name: geant4-09-0 3-cand-01 $28 // GEANT4 tag $Name: geant4-09-04-beta-01 $ 29 29 // 30 30 // -
trunk/examples/extended/geometry/olap/src/RandomDetector.cc
r1230 r1337 26 26 // 27 27 // $Id: RandomDetector.cc,v 1.5 2006/06/29 17:23:16 gunter Exp $ 28 // GEANT4 tag $Name: geant4-09-0 3-cand-01 $28 // GEANT4 tag $Name: geant4-09-04-beta-01 $ 29 29 // 30 30 // -
trunk/examples/extended/geometry/olap/src/SolidAnalyser.cc
r1230 r1337 26 26 // 27 27 // $Id: SolidAnalyser.cc,v 1.6 2006/06/29 17:23:19 gunter Exp $ 28 // GEANT4 tag $Name: geant4-09-0 3-cand-01 $28 // GEANT4 tag $Name: geant4-09-04-beta-01 $ 29 29 // 30 30 //
Note: See TracChangeset
for help on using the changeset viewer.