Changeset 1209 for trunk/examples
- Timestamp:
- Dec 2, 2009, 3:57:26 PM (15 years ago)
- Location:
- trunk/examples/novice/N03
- Files:
-
- 32 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/examples/novice/N03/G4History.macro
r1143 r1209 1 1 /run/verbose 2 2 2 /vis/scene/create 3 /vis/open OGL IX4 /vis/sceneHandler/create OGL IX3 /vis/open OGLSQt 4 /vis/sceneHandler/create OGLSQt 5 5 /vis/sceneHandler/attach 6 6 /vis/viewer/create ! ! 600 … … 10 10 /vis/viewer/refresh viewer-0 11 11 /vis/viewer/update viewer-0 12 /vis/scene/add/trajectories 13 /tracking/storeTrajectory 112 /vis/scene/add/trajectories smooth 13 /tracking/storeTrajectory 2 14 14 /vis/scene/notifyHandlers 15 15 /vis/modeling/trajectories/create/drawByCharge … … 51 51 /gui/addButton vis Vis10(OIWin32) "/control/execute visTutor/exN03Vis10.mac" 52 52 /gui/addButton vis Vis11(OGLSXm) "/control/execute visTutor/exN03Vis11.mac" 53 /gui/addButton vis Vis12(OGLSQt) "/control/execute visTutor/exN03Vis12.mac"54 /gui/addButton vis Vis12(OGLSQt) "/control/execute visTutor/exN03Vis13.mac"55 53 /gui/addMenu viewer Viewer 56 54 /gui/addButton viewer "Set style solid" "/vis/viewer/set/style solid" -
trunk/examples/novice/N03/exampleN03.cc
r1143 r1209 26 26 // 27 27 // $Id: exampleN03.cc,v 1.37 2009/10/30 15:06:01 allison Exp $ 28 // GEANT4 tag $Name: $28 // GEANT4 tag $Name: geant4-09-03-cand-01 $ 29 29 // 30 30 // … … 117 117 { // interactive mode : define UI session 118 118 #ifdef G4UI_USE 119 G4UIExecutive* ui = new G4UIExecutive(argc, 119 G4UIExecutive* ui = new G4UIExecutive(argc,argv); 120 120 #ifdef G4VIS_USE 121 121 UImanager->ApplyCommand("/control/execute vis.mac"); -
trunk/examples/novice/N03/include/ExN03DetectorConstruction.hh
r609 r1209 26 26 // 27 27 // $Id: ExN03DetectorConstruction.hh,v 1.7 2006/06/29 17:48:32 gunter Exp $ 28 // GEANT4 tag $Name: $28 // GEANT4 tag $Name: geant4-09-03-cand-01 $ 29 29 // 30 30 // -
trunk/examples/novice/N03/include/ExN03DetectorMessenger.hh
r609 r1209 26 26 // 27 27 // $Id: ExN03DetectorMessenger.hh,v 1.7 2006/06/29 17:48:34 gunter Exp $ 28 // GEANT4 tag $Name: $28 // GEANT4 tag $Name: geant4-09-03-cand-01 $ 29 29 // 30 30 // -
trunk/examples/novice/N03/include/ExN03EventAction.hh
r609 r1209 26 26 // 27 27 // $Id: ExN03EventAction.hh,v 1.12 2007/07/02 13:22:08 vnivanch Exp $ 28 // GEANT4 tag $Name: $28 // GEANT4 tag $Name: geant4-09-03-cand-01 $ 29 29 // 30 30 // -
trunk/examples/novice/N03/include/ExN03EventActionMessenger.hh
r609 r1209 26 26 // 27 27 // $Id: ExN03EventActionMessenger.hh,v 1.10 2007/07/02 13:22:08 vnivanch Exp $ 28 // GEANT4 tag $Name: $28 // GEANT4 tag $Name: geant4-09-03-cand-01 $ 29 29 // 30 30 // -
trunk/examples/novice/N03/include/ExN03PhysicsList.hh
r609 r1209 26 26 // 27 27 // $Id: ExN03PhysicsList.hh,v 1.13 2007/07/02 13:22:08 vnivanch Exp $ 28 // GEANT4 tag $Name: $28 // GEANT4 tag $Name: geant4-09-03-cand-01 $ 29 29 // 30 30 // -
trunk/examples/novice/N03/include/ExN03PrimaryGeneratorAction.hh
r609 r1209 26 26 // 27 27 // $Id: ExN03PrimaryGeneratorAction.hh,v 1.8 2007/07/02 13:22:08 vnivanch Exp $ 28 // GEANT4 tag $Name: $28 // GEANT4 tag $Name: geant4-09-03-cand-01 $ 29 29 // 30 30 // -
trunk/examples/novice/N03/include/ExN03PrimaryGeneratorMessenger.hh
r609 r1209 26 26 // 27 27 // $Id: ExN03PrimaryGeneratorMessenger.hh,v 1.8 2007/07/02 13:22:08 vnivanch Exp $ 28 // GEANT4 tag $Name: $28 // GEANT4 tag $Name: geant4-09-03-cand-01 $ 29 29 // 30 30 // -
trunk/examples/novice/N03/include/ExN03RunAction.hh
r609 r1209 26 26 // 27 27 // $Id: ExN03RunAction.hh,v 1.11 2007/07/02 13:22:08 vnivanch Exp $ 28 // GEANT4 tag $Name: $28 // GEANT4 tag $Name: geant4-09-03-cand-01 $ 29 29 // 30 30 // -
trunk/examples/novice/N03/include/ExN03SteppingAction.hh
r609 r1209 26 26 // 27 27 // $Id: ExN03SteppingAction.hh,v 1.10 2007/07/02 13:22:08 vnivanch Exp $ 28 // GEANT4 tag $Name: $28 // GEANT4 tag $Name: geant4-09-03-cand-01 $ 29 29 // 30 30 // -
trunk/examples/novice/N03/include/ExN03SteppingVerbose.hh
r609 r1209 26 26 // 27 27 // $Id: ExN03SteppingVerbose.hh,v 1.9 2006/06/29 17:48:52 gunter Exp $ 28 // GEANT4 tag $Name: $28 // GEANT4 tag $Name: geant4-09-03-cand-01 $ 29 29 // 30 30 // -
trunk/examples/novice/N03/src/ExN03DetectorConstruction.cc
r609 r1209 25 25 // 26 26 // 27 // $Id: ExN03DetectorConstruction.cc,v 1.2 3 2006/06/29 17:48:54 gunterExp $28 // GEANT4 tag $Name: $27 // $Id: ExN03DetectorConstruction.cc,v 1.24 2008/08/12 20:00:03 gum Exp $ 28 // GEANT4 tag $Name: geant4-09-03-cand-01 $ 29 29 // 30 30 // … … 184 184 185 185 G4Material* CO2 = 186 new G4Material("CarbonicGas", density= 27.*mg/cm3, ncomponents=2,186 new G4Material("CarbonicGas", density= 1.842*mg/cm3, ncomponents=2, 187 187 kStateGas, 325.*kelvin, 50.*atmosphere); 188 188 CO2->AddElement(C, natoms=1); -
trunk/examples/novice/N03/src/ExN03DetectorMessenger.cc
r609 r1209 26 26 // 27 27 // $Id: ExN03DetectorMessenger.cc,v 1.10 2006/06/29 17:48:58 gunter Exp $ 28 // GEANT4 tag $Name: $28 // GEANT4 tag $Name: geant4-09-03-cand-01 $ 29 29 // 30 30 // -
trunk/examples/novice/N03/src/ExN03EventAction.cc
r609 r1209 25 25 // 26 26 // 27 // $Id: ExN03EventAction.cc,v 1.2 8 2006/10/26 14:30:05 allisonExp $28 // GEANT4 tag $Name: $27 // $Id: ExN03EventAction.cc,v 1.29 2008/01/17 17:31:32 maire Exp $ 28 // GEANT4 tag $Name: geant4-09-03-cand-01 $ 29 29 // 30 30 // … … 66 66 void ExN03EventAction::BeginOfEventAction(const G4Event* evt) 67 67 { 68 G4int evtNb = evt->GetEventID();69 if (evtNb%printModulo == 0) {70 G4cout << "\n---> Begin of event: " << evtNb << G4endl;71 CLHEP::HepRandom::showEngineStatus();72 68 G4int evtNb = evt->GetEventID(); 69 if (evtNb%printModulo == 0) { 70 G4cout << "\n---> Begin of event: " << evtNb << G4endl; 71 CLHEP::HepRandom::showEngineStatus(); 72 } 73 73 74 74 // initialisation per event … … 103 103 << G4endl; 104 104 105 } 105 } 106 106 } 107 107 -
trunk/examples/novice/N03/src/ExN03EventActionMessenger.cc
r609 r1209 26 26 // 27 27 // $Id: ExN03EventActionMessenger.cc,v 1.12 2006/10/26 14:28:00 allison Exp $ 28 // GEANT4 tag $Name: $28 // GEANT4 tag $Name: geant4-09-03-cand-01 $ 29 29 // 30 30 // -
trunk/examples/novice/N03/src/ExN03PhysicsList.cc
r609 r1209 25 25 // 26 26 // 27 // $Id: ExN03PhysicsList.cc,v 1.2 1 2007/07/02 13:22:08 vnivanchExp $28 // GEANT4 tag $Name: $27 // $Id: ExN03PhysicsList.cc,v 1.26 2009/11/15 14:48:40 maire Exp $ 28 // GEANT4 tag $Name: geant4-09-03-cand-01 $ 29 29 // 30 30 // … … 142 142 #include "G4PhotoElectricEffect.hh" 143 143 144 #include "G4MultipleScattering.hh" 145 144 #include "G4eMultipleScattering.hh" 146 145 #include "G4eIonisation.hh" 147 146 #include "G4eBremsstrahlung.hh" 148 147 #include "G4eplusAnnihilation.hh" 149 148 149 #include "G4MuMultipleScattering.hh" 150 150 #include "G4MuIonisation.hh" 151 151 #include "G4MuBremsstrahlung.hh" 152 152 #include "G4MuPairProduction.hh" 153 153 154 #include "G4hMultipleScattering.hh" 154 155 #include "G4hIonisation.hh" 156 #include "G4hBremsstrahlung.hh" 157 #include "G4hPairProduction.hh" 158 159 #include "G4ionIonisation.hh" 155 160 156 161 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... … … 172 177 } else if (particleName == "e-") { 173 178 //electron 174 pmanager->AddProcess(new G4 MultipleScattering,-1, 1,1);175 pmanager->AddProcess(new G4eIonisation, -1, 2,2);176 pmanager->AddProcess(new G4eBremsstrahlung, -1, 3,3);179 pmanager->AddProcess(new G4eMultipleScattering,-1, 1, 1); 180 pmanager->AddProcess(new G4eIonisation, -1, 2, 2); 181 pmanager->AddProcess(new G4eBremsstrahlung, -1, 3, 3); 177 182 178 183 } else if (particleName == "e+") { 179 184 //positron 180 pmanager->AddProcess(new G4 MultipleScattering,-1, 1,1);181 pmanager->AddProcess(new G4eIonisation, -1, 2,2);182 pmanager->AddProcess(new G4eBremsstrahlung, -1, 3,3);183 pmanager->AddProcess(new G4eplusAnnihilation, 0,-1,4);184 185 pmanager->AddProcess(new G4eMultipleScattering,-1, 1, 1); 186 pmanager->AddProcess(new G4eIonisation, -1, 2, 2); 187 pmanager->AddProcess(new G4eBremsstrahlung, -1, 3, 3); 188 pmanager->AddProcess(new G4eplusAnnihilation, 0,-1, 4); 189 185 190 } else if( particleName == "mu+" || 186 191 particleName == "mu-" ) { 187 192 //muon 188 pmanager->AddProcess(new G4MultipleScattering,-1, 1,1); 189 pmanager->AddProcess(new G4MuIonisation, -1, 2,2); 190 pmanager->AddProcess(new G4MuBremsstrahlung, -1, 3,3); 191 pmanager->AddProcess(new G4MuPairProduction, -1, 4,4); 193 pmanager->AddProcess(new G4MuMultipleScattering,-1, 1, 1); 194 pmanager->AddProcess(new G4MuIonisation, -1, 2, 2); 195 pmanager->AddProcess(new G4MuBremsstrahlung, -1, 3, 3); 196 pmanager->AddProcess(new G4MuPairProduction, -1, 4, 4); 197 198 } else if( particleName == "proton" || 199 particleName == "pi-" || 200 particleName == "pi+" ) { 201 //proton 202 pmanager->AddProcess(new G4hMultipleScattering, -1, 1, 1); 203 pmanager->AddProcess(new G4hIonisation, -1, 2, 2); 204 pmanager->AddProcess(new G4hBremsstrahlung, -1, 3, 3); 205 pmanager->AddProcess(new G4hPairProduction, -1, 4, 4); 192 206 193 } else if ((!particle->IsShortLived()) && 207 } else if( particleName == "alpha" || 208 particleName == "He3" ) { 209 //alpha 210 pmanager->AddProcess(new G4hMultipleScattering, -1, 1, 1); 211 pmanager->AddProcess(new G4ionIonisation, -1, 2, 2); 212 213 } else if( particleName == "GenericIon" ) { 214 //Ions 215 pmanager->AddProcess(new G4hMultipleScattering, -1, 1, 1); 216 pmanager->AddProcess(new G4ionIonisation, -1, 2, 2); 217 218 } else if ((!particle->IsShortLived()) && 194 219 (particle->GetPDGCharge() != 0.0) && 195 220 (particle->GetParticleName() != "chargedgeantino")) { 196 221 //all others charged particles except geantino 197 pmanager->AddProcess(new G4 MultipleScattering,-1, 1,1);198 pmanager->AddProcess(new G4hIonisation, -1, 2,2);199 } 222 pmanager->AddProcess(new G4hMultipleScattering,-1, 1, 1); 223 pmanager->AddProcess(new G4hIonisation, -1, 2, 2); 224 } 200 225 } 201 226 } … … 237 262 SetCutValue(defaultCutValue, "e-"); 238 263 SetCutValue(defaultCutValue, "e+"); 264 SetCutValue(defaultCutValue, "proton"); 239 265 240 266 if (verboseLevel>0) DumpCutValuesTable(); -
trunk/examples/novice/N03/src/ExN03PrimaryGeneratorAction.cc
r609 r1209 26 26 // 27 27 // $Id: ExN03PrimaryGeneratorAction.cc,v 1.8 2006/06/29 17:49:07 gunter Exp $ 28 // GEANT4 tag $Name: $28 // GEANT4 tag $Name: geant4-09-03-cand-01 $ 29 29 // 30 30 // -
trunk/examples/novice/N03/src/ExN03PrimaryGeneratorMessenger.cc
r609 r1209 26 26 // 27 27 // $Id: ExN03PrimaryGeneratorMessenger.cc,v 1.9 2006/06/29 17:49:09 gunter Exp $ 28 // GEANT4 tag $Name: $28 // GEANT4 tag $Name: geant4-09-03-cand-01 $ 29 29 // 30 30 // -
trunk/examples/novice/N03/src/ExN03RunAction.cc
r609 r1209 25 25 // 26 26 // 27 // $Id: ExN03RunAction.cc,v 1.1 8 2006/06/29 17:49:11 gunterExp $28 // GEANT4 tag $Name: $27 // $Id: ExN03RunAction.cc,v 1.19 2008/01/17 17:31:32 maire Exp $ 28 // GEANT4 tag $Name: geant4-09-03-cand-01 $ 29 29 // 30 30 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... … … 55 55 //inform the runManager to save random number seed 56 56 G4RunManager::GetRunManager()->SetRandomNumberStore(true); 57 57 58 58 //initialize cumulative quantities 59 59 // … … 117 117 << " +- " << G4BestUnit(rmsLGap,"Length") 118 118 << "\n------------------------------------------------------------\n" 119 << G4endl; 119 << G4endl; 120 120 } 121 121 -
trunk/examples/novice/N03/src/ExN03SteppingAction.cc
r609 r1209 26 26 // 27 27 // $Id: ExN03SteppingAction.cc,v 1.15 2006/06/29 17:49:13 gunter Exp $ 28 // GEANT4 tag $Name: $28 // GEANT4 tag $Name: geant4-09-03-cand-01 $ 29 29 // 30 30 // -
trunk/examples/novice/N03/src/ExN03SteppingVerbose.cc
r609 r1209 26 26 // 27 27 // $Id: ExN03SteppingVerbose.cc,v 1.13 2006/06/29 17:49:16 gunter Exp $ 28 // GEANT4 tag $Name: $28 // GEANT4 tag $Name: geant4-09-03-cand-01 $ 29 29 // 30 30 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... -
trunk/examples/novice/N03/vis.mac
r1143 r1209 1 # $Id: vis.mac,v 1. 6 2007/06/13 10:36:39maire Exp $1 # $Id: vis.mac,v 1.7 2009/11/15 14:48:40 maire Exp $ 2 2 # 3 3 # Macro file for the initialization phase of "exampleN03.cc" … … 22 22 # 23 23 # Use this open statement instead for OpenGL in immediate mode. 24 /vis/open OGL IX24 /vis/open OGLSQt 25 25 # 26 26 # Use this open statement instead to get a HepRep version 1 file … … 37 37 # Draw trajectories at end of event, showing trajectory points as 38 38 # markers of size 2 pixels 39 /vis/scene/add/trajectories 39 /vis/scene/add/trajectories smooth 40 40 /vis/modeling/trajectories/create/drawByCharge 41 41 /vis/modeling/trajectories/drawByCharge-0/default/setDrawStepPts true -
trunk/examples/novice/N03/visTutor/exN03Vis10.mac
r921 r1209 8 8 # CONTENTS: A basic macro for demonstrating Inventor driver # 9 9 # # 10 # USAGE: % $G4BINDIR/exampleN03 visTutor/exN03Vis 10.mac#10 # USAGE: % $G4BINDIR/exampleN03 visTutor/exN03Vis6.mac # 11 11 # # 12 12 # REQUIRED PLATFORMS & SOFTWARES: Windows, # -
trunk/examples/novice/N03/visTutor/exN03Vis11.mac
r921 r1209 58 58 # 59 59 /vis/viewer/reset 60 /vis/viewer/scale 1 1 261 60 /vis/viewer/set/viewpointThetaPhi 20 70 62 61 /vis/viewer/zoom 0.8 -
trunk/examples/novice/N03/visTutor/exN03Vis12.mac
r1143 r1209 8 8 # CONTENTS: A basic macro for demonstrating time slicing # 9 9 # # 10 # USAGE: % $G4BINDIR/exampleN03 visTutor/exN03Vis12.mac #10 # USAGE: % $G4BINDIR/exampleN03 visTutor/exN03Vis12.mac # 11 11 # # 12 12 # REQUIRED PLATFORMS & SOFTWARES: Mac/Unix with X-Windows, OpenGL # … … 19 19 /vis/verbose confirmations 20 20 21 /vis/open OGLS Qt21 /vis/open OGLSX 22 22 /vis/drawVolume 23 23 /vis/scene/add/eventID -
trunk/examples/novice/N03/visTutor/exN03Vis13.mac
r1143 r1209 8 8 # CONTENTS: Time development of an electrmagnetic shower. # 9 9 # # 10 # USAGE: % $G4BINDIR/exampleN03 visTutor/exN03Vis1 3.mac#10 # USAGE: % $G4BINDIR/exampleN03 visTutor/exN03Vis12.mac # 11 11 # # 12 12 # REQUIRED PLATFORMS & SOFTWARES: Mac/Unix with X-Windows, OpenGL # … … 19 19 /vis/verbose confirmations 20 20 21 /vis/open OGLS Qt600x600-0+021 /vis/open OGLSX 600x600-0+0 22 22 /vis/drawVolume 23 23 /vis/scene/add/eventID -
trunk/examples/novice/N03/visTutor/exN03Vis5.mac
r921 r1209 8 8 # CONTENTS: A basic macro for demonstrating Inventor driver # 9 9 # # 10 # USAGE: % $G4BINDIR/exampleN03 visTutor/exN03Vis 5.mac #10 # USAGE: % $G4BINDIR/exampleN03 visTutor/exN03Vis6.mac # 11 11 # # 12 12 # REQUIRED PLATFORMS & SOFTWARES: Unix, Motif, X-window, OpenGL, # … … 42 42 # Name of the gaps = name of their material (liquidArgon) ! 43 43 #/vis/scene/add/volume liquidArgon 44 /vis/scene/add/trajectories44 #/vis/scene/add/trajectories 45 45 /tracking/storeTrajectory 1 46 46 -
trunk/examples/novice/N03/visTutor/exN03Vis6.mac
r921 r1209 15 15 # USAGE: % gmake visclean # 16 16 # % $G4BINDIR/exampleN03 # 17 # Idle> /control/execute visTutor/exN03Vis 6.mac #17 # Idle> /control/execute visTutor/exN03Vis7.mac # 18 18 # # 19 19 # REQUIRED PLATFORMS & SOFTWARES: Unix, X-window, # -
trunk/examples/novice/N03/visTutor/exN03Vis7.mac
r921 r1209 13 13 # % make visclean # 14 14 # % $G4BINDIR/exampleN03 # 15 # Idle> /control/execute visTutor/exN03Vis 7.mac #15 # Idle> /control/execute visTutor/exN03Vis8.mac # 16 16 # Idle> exit # 17 17 # % gv g4_00.eps & # -
trunk/examples/novice/N03/visTutor/exN03Vis8.mac
r921 r1209 19 19 # % gmake visclean # 20 20 # % $G4BINDIR/exampleN03 # 21 # Idle> /control/execute visTutor/exN03Vis 8.mac #21 # Idle> /control/execute visTutor/exN03Vis9.mac # 22 22 # Idle> exit # 23 23 # % gv g4_00.eps # -
trunk/examples/novice/N03/visTutor/gui.mac
r1143 r1209 1 1 # 2 2 # This file permits to customize, with commands, 3 # the menu bar of the G4UIXm, G4UI Win32 sessions.3 # the menu bar of the G4UIXm, G4UIQt, G4UIWin32 sessions. 4 4 # It has no effect with G4UIterminal. 5 5 # … … 42 42 /gui/addButton vis Vis10(OIWin32) "/control/execute visTutor/exN03Vis10.mac" 43 43 /gui/addButton vis Vis11(OGLSXm) "/control/execute visTutor/exN03Vis11.mac" 44 /gui/addButton vis Vis12(OGLSQt) "/control/execute visTutor/exN03Vis12.mac"45 /gui/addButton vis Vis12(OGLSQt) "/control/execute visTutor/exN03Vis13.mac"46 44 # 47 45 # Viewer menu :
Note: See TracChangeset
for help on using the changeset viewer.