Changeset 1337 for trunk/examples/extended/electromagnetic/TestEm16
- Timestamp:
- Sep 30, 2010, 2:47:17 PM (15 years ago)
- Location:
- trunk/examples/extended/electromagnetic/TestEm16
- Files:
-
- 25 edited
-
History (modified) (2 diffs)
-
README (modified) (2 diffs)
-
TestEm16.cc (modified) (6 diffs)
-
TestEm16.out (modified) (10 diffs)
-
include/DetectorConstruction.hh (modified) (1 diff)
-
include/DetectorMessenger.hh (modified) (1 diff)
-
include/EventAction.hh (modified) (1 diff)
-
include/EventActionMessenger.hh (modified) (1 diff)
-
include/PhysicsList.hh (modified) (1 diff)
-
include/PhysicsListMessenger.hh (modified) (1 diff)
-
include/PrimaryGeneratorAction.hh (modified) (1 diff)
-
include/RunAction.hh (modified) (1 diff)
-
include/SteppingAction.hh (modified) (1 diff)
-
include/SteppingVerbose.hh (modified) (1 diff)
-
src/DetectorConstruction.cc (modified) (1 diff)
-
src/DetectorMessenger.cc (modified) (1 diff)
-
src/EventAction.cc (modified) (3 diffs)
-
src/EventActionMessenger.cc (modified) (1 diff)
-
src/PhysicsList.cc (modified) (1 diff)
-
src/PhysicsListMessenger.cc (modified) (1 diff)
-
src/PrimaryGeneratorAction.cc (modified) (1 diff)
-
src/RunAction.cc (modified) (1 diff)
-
src/SteppingAction.cc (modified) (1 diff)
-
src/SteppingVerbose.cc (modified) (1 diff)
-
vis.mac (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/examples/extended/electromagnetic/TestEm16/History
r807 r1337 1 $Id: History,v 1. 6 2007/01/18 10:24:35 vnivanchExp $1 $Id: History,v 1.13 2010/06/07 05:40:46 perl Exp $ 2 2 ------------------------------------------------------------------- 3 3 … … 15 15 * Reverse chronological order (last date on top), please * 16 16 ---------------------------------------------------------- 17 18 06-06-10 J.Perl (testem16-V09-03-02) 19 - Remove unused variable in EventAction 20 21 03-06-10 J.Perl (testem16-V09-03-01) 22 - Updated vis usage 23 24 20-05-10 mma (testem16-V09-03-00) 25 - TestEm16.cc : introduction of G4UIExecutive 26 27 19-11-09 mma (testem16-V09-02-00) 28 - PhysicsList : introduce eMultipleScattering and MuMultipleScattering 29 30 24-09-08 mma (testem16-V09-01-02) 31 - HistoManager : root as default format 32 33 12-06-08 mma (testem16-V09-01-01) 34 - Remove AIDA from GNUmakefile 35 36 07-05-08 mma (testem16-V09-01-00) 37 - README : update Aida informations 17 38 18 39 18-01-07 V.Ivant (testem16-V08-02-00) -
trunk/examples/extended/electromagnetic/TestEm16/README
r807 r1337 1 $Id: README,v 1. 3 2007/01/18 09:07:20 hbuExp $1 $Id: README,v 1.5 2008/09/26 20:05:13 maire Exp $ 2 2 ------------------------------------------------------------------- 3 3 … … 120 120 make 121 121 122 By default the histograms are saved as testem16. hbook122 By default the histograms are saved as testem16.root 123 123 It is possible to choose the format of the histogram file (hbook, root, XML) 124 124 and the binning using /testem/histo/ command, see run01.mac 125 126 To use histograms, at least one of the AIDA implementations should be 127 available. See InstallAida.txt -
trunk/examples/extended/electromagnetic/TestEm16/TestEm16.cc
r1230 r1337 24 24 // ******************************************************************** 25 25 // 26 // $Id: TestEm16.cc,v 1. 3 2007/01/18 09:07:20 hbuExp $27 // GEANT4 tag $Name: geant4-09-0 3-cand-01 $26 // $Id: TestEm16.cc,v 1.4 2010/05/20 21:38:19 maire Exp $ 27 // GEANT4 tag $Name: geant4-09-04-beta-01 $ 28 28 // 29 29 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... … … 32 32 #include "G4RunManager.hh" 33 33 #include "G4UImanager.hh" 34 #include "G4UIterminal.hh"35 #include "G4UItcsh.hh"36 34 #include "Randomize.hh" 37 35 … … 48 46 #ifdef G4VIS_USE 49 47 #include "G4VisExecutive.hh" 48 #endif 49 50 #ifdef G4UI_USE 51 #include "G4UIExecutive.hh" 50 52 #endif 51 53 … … 69 71 runManager->SetUserAction(new PrimaryGeneratorAction(det)); 70 72 71 #ifdef G4VIS_USE72 //visualization manager73 G4VisManager* visManager = new G4VisExecutive;74 visManager->Initialize();75 #endif76 77 73 HistoManager* histo = new HistoManager(); 78 74 … … 87 83 G4UImanager* UI = G4UImanager::GetUIpointer(); 88 84 89 if (argc==1) // Define UI terminal for interactive mode 90 { 91 G4UIsession* session = 0; 92 #ifdef G4UI_USE_TCSH 93 session = new G4UIterminal(new G4UItcsh); 94 #else 95 session = new G4UIterminal(); 96 #endif 97 session->SessionStart(); 98 delete session; 99 } 100 else // Batch mode 85 if (argc!=1) // batch mode 101 86 { 102 87 G4String command = "/control/execute "; … … 104 89 UI->ApplyCommand(command+fileName); 105 90 } 91 92 else //define visualization and UI terminal for interactive mode 93 { 94 #ifdef G4VIS_USE 95 G4VisManager* visManager = new G4VisExecutive; 96 visManager->Initialize(); 97 #endif 98 99 #ifdef G4UI_USE 100 G4UIExecutive * ui = new G4UIExecutive(argc,argv); 101 ui->SessionStart(); 102 delete ui; 103 #endif 104 105 #ifdef G4VIS_USE 106 delete visManager; 107 #endif 108 } 106 109 107 110 //job termination 108 #ifdef G4VIS_USE 109 delete visManager; 110 #endif 111 111 // 112 delete histo; 112 113 delete runManager; 113 114 -
trunk/examples/extended/electromagnetic/TestEm16/TestEm16.out
r807 r1337 1 2 ############################################ 3 !!! WARNING - FPE detection is activated !!! 4 ############################################ 1 5 2 6 ************************************************************* 3 Geant4 version Name: g lobal-V09-00-03 (9-May-2008)7 Geant4 version Name: geant4-09-03-ref-06 (25-June-2010) 4 8 Copyright : Geant4 Collaboration 5 9 Reference : NIM A 506 (2003), 250-303 … … 10 14 ***** Table : Nb of materials = 4 ***** 11 15 12 Material: Beryllium density: 1.848 g/cm3 RadL: 35.276 cm Imean: 63.600 eV16 Material: Beryllium density: 1.848 g/cm3 RadL: 35.276 cm Nucl.Int.Length: 39.413 cm Imean: 63.700 eV 13 17 ---> Element: Beryllium ( ) Z = 4.0 N = 9.0 A = 9.01 g/mole ElmMassFraction: 100.00 % ElmAbundance 100.00 % 14 18 15 Material: Carbon density: 2.265 g/cm3 RadL: 18.851 cm Imean: 78.000 eV19 Material: Carbon density: 2.265 g/cm3 RadL: 18.851 cm Nucl.Int.Length: 35.388 cm Imean: 81.000 eV 16 20 ---> Element: Carbon ( ) Z = 6.0 N = 12.0 A = 12.01 g/mole ElmMassFraction: 100.00 % ElmAbundance 100.00 % 17 21 18 Material: Iron density: 7.870 g/cm3 RadL: 1.759 cm Imean: 286.000 eV19 ---> Element: Iron ( ) Z = 26.0 N = 55. 9A = 55.85 g/mole ElmMassFraction: 100.00 % ElmAbundance 100.00 %20 21 Material: Vacuum density: 0.000 mg/cm3 RadL: 25050962965.731 km Imean: 81.900 eV temperature: 296.15 K pressure: 0.00 atm22 Material: Iron density: 7.870 g/cm3 RadL: 1.759 cm Nucl.Int.Length: 16.999 cm Imean: 286.000 eV 23 ---> Element: Iron ( ) Z = 26.0 N = 55.8 A = 55.85 g/mole ElmMassFraction: 100.00 % ElmAbundance 100.00 % 24 25 Material: Vacuum density: 0.000 kg/m3 RadL: 25050955080.963 km Nucl.Int.Length: 55627598682.933 km Imean: 82.000 eV temperature: 296.15 K pressure: 0.00 atm 22 26 ---> Element: Vacuum ( ) Z = 7.0 N = 14.0 A = 14.01 g/mole ElmMassFraction: 100.00 % ElmAbundance 100.00 % 23 27 24 25 Visualization Manager instantiating...26 Visualization Manager initialising...27 Registering graphics systems...28 29 You have successfully registered the following graphics systems.30 Current available graphics systems are:31 ASCIITree (ATree)32 DAWNFILE (DAWNFILE)33 G4HepRep (HepRepXML)34 G4HepRepFile (HepRepFile)35 RayTracer (RayTracer)36 VRML1FILE (VRML1FILE)37 VRML2FILE (VRML2FILE)38 OpenGLImmediateX (OGLIX)39 OpenGLStoredX (OGLSX)40 41 Registering model factories...42 43 You have successfully registered the following model factories.44 Registered model factories:45 generic46 drawByCharge47 drawByParticleID48 drawByOriginVolume49 drawByAttribute50 51 Registered filter factories:52 chargeFilter53 particleFilter54 originVolumeFilter55 attributeFilter56 28 57 29 /run/verbose 2 … … 66 38 physicsList->Construct() start. 67 39 physicsList->Construct() start. 40 physicsList->CheckParticleList() start. 68 41 physicsList->setCut() start. 69 42 CutLength : 1 km … … 96 69 /run/beamOn 100 97 70 98 phot: Total cross sections from Sandia parametrisation. 99 Sampling according PhotoElectric model 100 101 compt: Total cross sections has a good parametrisation from 10 KeV to (100/Z) GeV 102 Sampling according Klein-Nishina model 103 tables are built for gamma 104 Lambda tables from 100 eV to 100 GeV in 90 bins. 105 106 conv: Total cross sections has a good parametrisation from 1.5 MeV to 100 GeV for all Z; 107 sampling secondary e+e- according Bethe-Heitler model 108 tables are built for gamma 109 Lambda tables from 1.022 MeV to 100 GeV in 100 bins. 110 111 msc: Model variant of multiple scattering for e- 112 Lambda tables from 100 eV to 100 TeV in 120 bins. 113 LateralDisplacementFlag= 1 Skin= 0 114 Boundary/stepping algorithm is active with RangeFactor= 0.02 Step limit type 1 115 116 eIoni: tables are built for e- 117 dE/dx and range tables from 100 eV to 100 TeV in 120 bins. 118 Lambda tables from threshold to 100 TeV in 120 bins. 119 Delta cross sections and sampling from MollerBhabha model 120 Good description from 1 KeV to 100 GeV. 121 122 eBrem: tables are built for e- 123 dE/dx and range tables from 100 eV to 100 TeV in 120 bins. 124 Lambda tables from threshold to 100 TeV in 120 bins. 125 Total cross sections and sampling from StandBrem model (based on the EEDL data library) 126 Good description from 1 KeV to 100 GeV, log scale extrapolation above 100 GeV. LPM flag 1 127 Step function: finalRange(mm)= 1, dRoverRange= 0.2, integral: 1, fluct: 1 71 phot: for gamma SubType= 12 72 ===== EM models for the G4Region DefaultRegionForTheWorld ====== 73 PhotoElectric : Emin= 0 eV Emax= 10 TeV 74 75 compt: for gamma SubType= 13 76 Lambda tables from 100 eV to 10 TeV in 77 bins, spline: 1 77 ===== EM models for the G4Region DefaultRegionForTheWorld ====== 78 Klein-Nishina : Emin= 0 eV Emax= 10 TeV 79 80 conv: for gamma SubType= 14 81 Lambda tables from 1.022 MeV to 10 TeV in 77 bins, spline: 1 82 ===== EM models for the G4Region DefaultRegionForTheWorld ====== 83 Bethe-Heitler : Emin= 0 eV Emax= 10 TeV 84 85 msc: for e- SubType= 10 86 Lambda tables from 100 eV to 10 TeV in 77 bins, spline: 1 87 RangeFactor= 0.04, stepLimitType: 1, latDisplacement: 1 88 ===== EM models for the G4Region DefaultRegionForTheWorld ====== 89 UrbanMsc93 : Emin= 0 eV Emax= 10 TeV 90 91 eIoni: for e- SubType= 2 92 dE/dx and range tables from 100 eV to 10 TeV in 77 bins 93 Lambda tables from threshold to 10 TeV in 77 bins, spline: 1 94 ===== EM models for the G4Region DefaultRegionForTheWorld ====== 95 MollerBhabha : Emin= 0 eV Emax= 10 TeV 96 97 eBrem: for e- SubType= 3 98 dE/dx and range tables from 100 eV to 10 TeV in 77 bins 99 Lambda tables from threshold to 10 TeV in 77 bins, spline: 1 100 finalRange(mm)= 1, dRoverRange= 0.2, integral: 1, fluct: 1, linLossLimit= 0.01 101 LPM flag: 1 for E > 1 GeV 102 ===== EM models for the G4Region DefaultRegionForTheWorld ====== 103 eBrem : Emin= 0 eV Emax= 1 GeV 104 eBremRel : Emin= 1 GeV Emax= 10 TeV 128 105 129 106 SynRad: Incoherent Synchrotron Radiation 130 107 good description for long magnets at all energies 131 108 132 eIoni: tables are built for e+ 133 dE/dx and range tables from 100 eV to 100 TeV in 120 bins. 134 Lambda tables from threshold to 100 TeV in 120 bins. 135 Delta cross sections and sampling from MollerBhabha model 136 Good description from 1 KeV to 100 GeV. 137 138 eBrem: tables are built for e+ 139 dE/dx and range tables from 100 eV to 100 TeV in 120 bins. 140 Lambda tables from threshold to 100 TeV in 120 bins. 141 Total cross sections and sampling from StandBrem model (based on the EEDL data library) 142 Good description from 1 KeV to 100 GeV, log scale extrapolation above 100 GeV. LPM flag 1 143 Step function: finalRange(mm)= 1, dRoverRange= 0.2, integral: 1, fluct: 1 144 145 annihil: Sampling according eplus2gg model 146 tables are built for e+ 147 Lambda tables from 100 eV to 100 TeV in 120 bins. 148 149 msc: Model variant of multiple scattering for mu+ 150 Lambda tables from 100 eV to 100 TeV in 120 bins. 151 LateralDisplacementFlag= 1 Skin= 0 152 Boundary/stepping algorithm is active with RangeFactor= 0.02 Step limit type 1 153 154 muIoni: tables are built for mu+ 155 dE/dx and range tables from 100 eV to 100 TeV in 120 bins. 156 Lambda tables from threshold to 100 TeV in 120 bins. 157 Bether-Bloch model for E > 0.2 MeV, parametrisation of Bragg peak below, 158 radiative corrections for E > 1 GeV 159 Step function: finalRange(mm)= 1, dRoverRange= 0.2, integral: 1, fluct: 1 160 161 muBrems: tables are built for mu+ 162 dE/dx and range tables from 100 eV to 100 TeV in 120 bins. 163 Lambda tables from threshold to 100 TeV in 120 bins. 164 Parametrised model 165 166 muPairProd: tables are built for mu+ 167 dE/dx and range tables from 100 eV to 100 TeV in 120 bins. 168 Lambda tables from threshold to 100 TeV in 120 bins. 169 Parametrised model 170 171 muIoni: tables are built for mu- 172 dE/dx and range tables from 100 eV to 100 TeV in 120 bins. 173 Lambda tables from threshold to 100 TeV in 120 bins. 174 Bether-Bloch model for E > 0.2 MeV, parametrisation of Bragg peak below, 175 radiative corrections for E > 1 GeV 176 Step function: finalRange(mm)= 1, dRoverRange= 0.2, integral: 1, fluct: 1 177 178 muBrems: tables are built for mu- 179 dE/dx and range tables from 100 eV to 100 TeV in 120 bins. 180 Lambda tables from threshold to 100 TeV in 120 bins. 181 Parametrised model 182 183 muPairProd: tables are built for mu- 184 dE/dx and range tables from 100 eV to 100 TeV in 120 bins. 185 Lambda tables from threshold to 100 TeV in 120 bins. 186 Parametrised model 109 eIoni: for e+ SubType= 2 110 dE/dx and range tables from 100 eV to 10 TeV in 77 bins 111 Lambda tables from threshold to 10 TeV in 77 bins, spline: 1 112 ===== EM models for the G4Region DefaultRegionForTheWorld ====== 113 MollerBhabha : Emin= 0 eV Emax= 10 TeV 114 115 eBrem: for e+ SubType= 3 116 dE/dx and range tables from 100 eV to 10 TeV in 77 bins 117 Lambda tables from threshold to 10 TeV in 77 bins, spline: 1 118 finalRange(mm)= 1, dRoverRange= 0.2, integral: 1, fluct: 1, linLossLimit= 0.01 119 LPM flag: 1 for E > 1 GeV 120 ===== EM models for the G4Region DefaultRegionForTheWorld ====== 121 eBrem : Emin= 0 eV Emax= 1 GeV 122 eBremRel : Emin= 1 GeV Emax= 10 TeV 123 124 annihil: for e+ SubType= 5 125 Lambda tables from 100 eV to 10 TeV in 77 bins, spline: 1 126 ===== EM models for the G4Region DefaultRegionForTheWorld ====== 127 eplus2gg : Emin= 0 eV Emax= 10 TeV 128 129 muMsc: for mu+ SubType= 10 130 Lambda tables from 100 eV to 10 TeV in 77 bins, spline: 1 131 RangeFactor= 0.2, step limit type: 0, lateralDisplacement: 1, polarAngleLimit(deg)= 0 132 ===== EM models for the G4Region DefaultRegionForTheWorld ====== 133 UrbanMsc90 : Emin= 0 eV Emax= 10 TeV 134 135 muIoni: for mu+ SubType= 2 136 dE/dx and range tables from 100 eV to 10 TeV in 77 bins 137 Lambda tables from threshold to 10 TeV in 77 bins, spline: 1 138 finalRange(mm)= 1, dRoverRange= 0.2, integral: 1, fluct: 1, linLossLimit= 0.01 139 ===== EM models for the G4Region DefaultRegionForTheWorld ====== 140 Bragg : Emin= 0 eV Emax= 200 keV 141 BetheBloch : Emin= 200 keV Emax= 1 GeV 142 MuBetheBloch : Emin= 1 GeV Emax= 10 TeV 143 144 muBrems: for mu+ SubType= 3 145 dE/dx and range tables from 100 eV to 10 TeV in 77 bins 146 Lambda tables from threshold to 10 TeV in 77 bins, spline: 1 147 ===== EM models for the G4Region DefaultRegionForTheWorld ====== 148 MuBrem : Emin= 0 eV Emax= 10 TeV 149 150 muPairProd: for mu+ SubType= 4 151 dE/dx and range tables from 100 eV to 10 TeV in 77 bins 152 Lambda tables from threshold to 10 TeV in 77 bins, spline: 1 153 ===== EM models for the G4Region DefaultRegionForTheWorld ====== 154 muPairProd : Emin= 0 eV Emax= 10 TeV 155 156 muIoni: for mu- SubType= 2 157 dE/dx and range tables from 100 eV to 10 TeV in 77 bins 158 Lambda tables from threshold to 10 TeV in 77 bins, spline: 1 159 finalRange(mm)= 1, dRoverRange= 0.2, integral: 1, fluct: 1, linLossLimit= 0.01 160 ===== EM models for the G4Region DefaultRegionForTheWorld ====== 161 ICRU73QO : Emin= 0 eV Emax= 200 keV 162 BetheBloch : Emin= 200 keV Emax= 1 GeV 163 MuBetheBloch : Emin= 1 GeV Emax= 10 TeV 164 165 muBrems: for mu- SubType= 3 166 dE/dx and range tables from 100 eV to 10 TeV in 77 bins 167 Lambda tables from threshold to 10 TeV in 77 bins, spline: 1 168 ===== EM models for the G4Region DefaultRegionForTheWorld ====== 169 MuBrem : Emin= 0 eV Emax= 10 TeV 170 171 muPairProd: for mu- SubType= 4 172 dE/dx and range tables from 100 eV to 10 TeV in 77 bins 173 Lambda tables from threshold to 10 TeV in 77 bins, spline: 1 174 ===== EM models for the G4Region DefaultRegionForTheWorld ====== 175 muPairProd : Emin= 0 eV Emax= 10 TeV 187 176 188 177 Region <DefaultRegionForTheWorld> -- appears in <Vacuum> world volume … … 190 179 Pointers : G4VUserRegionInformation[0], G4UserLimits[0], G4FastSimulationManager[0], G4UserSteppingAction[0] 191 180 Materials : Vacuum 192 Production cuts : gamma 1 km e- 1 km e+ 1 km181 Production cuts : gamma 1 km e- 1 km e+ 1 km proton 0 fm 193 182 194 183 ========= Table of registered couples ============================== … … 196 185 Index : 0 used in the geometry : Yes recalculation needed : No 197 186 Material : Vacuum 198 Range cuts : gamma 1 km e- 1 km e+ 1 km199 Energy thresholds : gamma 990 eV e- 990 eV e+ 990 eV187 Range cuts : gamma 1 km e- 1 km e+ 1 km proton 0 fm 188 Energy thresholds : gamma 990 eV e- 990 eV e+ 990 eV proton -1 MeV 200 189 Region(s) which use this couple : 201 190 DefaultRegionForTheWorld … … 227 216 Run Summary 228 217 Number of events processed : 100 229 User=0. 93s Real=1.19s Sys=0.04s218 User=0.61s Real=0.89s Sys=0s 230 219 Summary for synchrotron radiation : 231 220 Number of photons = 64554 … … 239 228 Current couple of seeds = 1554742231, 6856043 240 229 ---------------------------------------- 241 Graphics systems deleted.242 Visualization Manager deleting...243 230 UserDetectorConstruction deleted. 244 231 UserPhysicsList deleted. … … 247 234 G4 kernel has come to Quit state. 248 235 EventManager deleted. 249 Default detector region deleted.250 236 UImanager deleted. 251 237 Units table cleared. … … 253 239 RunManagerKernel is deleted. 254 240 RunManager is deleting. 241 -
trunk/examples/extended/electromagnetic/TestEm16/include/DetectorConstruction.hh
r1230 r1337 25 25 // 26 26 // $Id: DetectorConstruction.hh,v 1.4 2007/01/18 09:07:20 hbu Exp $ 27 // GEANT4 tag $Name: geant4-09-0 3-cand-01 $27 // GEANT4 tag $Name: geant4-09-04-beta-01 $ 28 28 // 29 29 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... -
trunk/examples/extended/electromagnetic/TestEm16/include/DetectorMessenger.hh
r1230 r1337 25 25 // 26 26 // $Id: DetectorMessenger.hh,v 1.4 2007/01/18 09:07:20 hbu Exp $ 27 // GEANT4 tag $Name: geant4-09-0 3-cand-01 $27 // GEANT4 tag $Name: geant4-09-04-beta-01 $ 28 28 // 29 29 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... -
trunk/examples/extended/electromagnetic/TestEm16/include/EventAction.hh
r1230 r1337 25 25 // 26 26 // $Id: EventAction.hh,v 1.2 2006/06/29 16:47:31 gunter Exp $ 27 // GEANT4 tag $Name: geant4-09-0 3-cand-01 $27 // GEANT4 tag $Name: geant4-09-04-beta-01 $ 28 28 // 29 29 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... -
trunk/examples/extended/electromagnetic/TestEm16/include/EventActionMessenger.hh
r1230 r1337 25 25 // 26 26 // $Id: EventActionMessenger.hh,v 1.2 2006/06/29 16:47:33 gunter Exp $ 27 // GEANT4 tag $Name: geant4-09-0 3-cand-01 $27 // GEANT4 tag $Name: geant4-09-04-beta-01 $ 28 28 // 29 29 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... -
trunk/examples/extended/electromagnetic/TestEm16/include/PhysicsList.hh
r1230 r1337 25 25 // 26 26 // $Id: PhysicsList.hh,v 1.4 2006/06/29 16:47:35 gunter Exp $ 27 // GEANT4 tag $Name: geant4-09-0 3-cand-01 $27 // GEANT4 tag $Name: geant4-09-04-beta-01 $ 28 28 // 29 29 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... -
trunk/examples/extended/electromagnetic/TestEm16/include/PhysicsListMessenger.hh
r1230 r1337 25 25 // 26 26 // $Id: PhysicsListMessenger.hh,v 1.4 2006/06/29 16:47:37 gunter Exp $ 27 // GEANT4 tag $Name: geant4-09-0 3-cand-01 $27 // GEANT4 tag $Name: geant4-09-04-beta-01 $ 28 28 // 29 29 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... -
trunk/examples/extended/electromagnetic/TestEm16/include/PrimaryGeneratorAction.hh
r1230 r1337 25 25 // 26 26 // $Id: PrimaryGeneratorAction.hh,v 1.3 2006/06/29 16:47:40 gunter Exp $ 27 // GEANT4 tag $Name: geant4-09-0 3-cand-01 $27 // GEANT4 tag $Name: geant4-09-04-beta-01 $ 28 28 // 29 29 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... -
trunk/examples/extended/electromagnetic/TestEm16/include/RunAction.hh
r1230 r1337 25 25 // 26 26 // $Id: RunAction.hh,v 1.5 2007/01/18 09:07:20 hbu Exp $ 27 // GEANT4 tag $Name: geant4-09-0 3-cand-01 $27 // GEANT4 tag $Name: geant4-09-04-beta-01 $ 28 28 // 29 29 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... -
trunk/examples/extended/electromagnetic/TestEm16/include/SteppingAction.hh
r1230 r1337 25 25 // 26 26 // $Id: SteppingAction.hh,v 1.3 2007/01/18 09:07:20 hbu Exp $ 27 // GEANT4 tag $Name: geant4-09-0 3-cand-01 $27 // GEANT4 tag $Name: geant4-09-04-beta-01 $ 28 28 // 29 29 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... -
trunk/examples/extended/electromagnetic/TestEm16/include/SteppingVerbose.hh
r1230 r1337 25 25 // 26 26 // $Id: SteppingVerbose.hh,v 1.2 2006/06/29 16:47:46 gunter Exp $ 27 // GEANT4 tag $Name: geant4-09-0 3-cand-01 $27 // GEANT4 tag $Name: geant4-09-04-beta-01 $ 28 28 // 29 29 // This class manages the verbose outputs in G4SteppingManager. -
trunk/examples/extended/electromagnetic/TestEm16/src/DetectorConstruction.cc
r1230 r1337 25 25 // 26 26 // $Id: DetectorConstruction.cc,v 1.4 2007/01/18 09:07:20 hbu Exp $ 27 // GEANT4 tag $Name: geant4-09-0 3-cand-01 $27 // GEANT4 tag $Name: geant4-09-04-beta-01 $ 28 28 // 29 29 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... -
trunk/examples/extended/electromagnetic/TestEm16/src/DetectorMessenger.cc
r1230 r1337 25 25 // 26 26 // $Id: DetectorMessenger.cc,v 1.3 2007/01/18 09:07:20 hbu Exp $ 27 // GEANT4 tag $Name: geant4-09-0 3-cand-01 $27 // GEANT4 tag $Name: geant4-09-04-beta-01 $ 28 28 // 29 29 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... -
trunk/examples/extended/electromagnetic/TestEm16/src/EventAction.cc
r1230 r1337 24 24 // ******************************************************************** 25 25 // 26 // $Id: EventAction.cc,v 1. 2 2006/06/29 16:47:52 gunterExp $27 // GEANT4 tag $Name: geant4-09-0 3-cand-01 $26 // $Id: EventAction.cc,v 1.4 2010/06/07 05:40:46 perl Exp $ 27 // GEANT4 tag $Name: geant4-09-04-beta-01 $ 28 28 // 29 29 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... … … 35 35 36 36 #include "G4Event.hh" 37 #include "G4TrajectoryContainer.hh"38 #include "G4Trajectory.hh"39 #include "G4VVisManager.hh"40 37 41 38 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... … … 67 64 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 68 65 69 void EventAction::EndOfEventAction(const G4Event* evt)66 void EventAction::EndOfEventAction(const G4Event*) 70 67 { 71 if (G4VVisManager::GetConcreteInstance())72 {73 G4TrajectoryContainer* trajectoryContainer = evt->GetTrajectoryContainer();74 G4int n_trajectories = 0;75 if (trajectoryContainer) n_trajectories = trajectoryContainer->entries();76 for(G4int i=0; i<n_trajectories; i++)77 { G4Trajectory* trj = (G4Trajectory*)78 ((*(evt->GetTrajectoryContainer()))[i]);79 if (drawFlag == "all") trj->DrawTrajectory(100);80 else if ((drawFlag == "charged")&&(trj->GetCharge() != 0.))81 trj->DrawTrajectory(100);82 }83 }84 68 } 85 69 -
trunk/examples/extended/electromagnetic/TestEm16/src/EventActionMessenger.cc
r1230 r1337 25 25 // 26 26 // $Id: EventActionMessenger.cc,v 1.2 2006/06/29 16:47:54 gunter Exp $ 27 // GEANT4 tag $Name: geant4-09-0 3-cand-01 $27 // GEANT4 tag $Name: geant4-09-04-beta-01 $ 28 28 // 29 29 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... -
trunk/examples/extended/electromagnetic/TestEm16/src/PhysicsList.cc
r1230 r1337 25 25 // 26 26 // $Id: PhysicsList.cc,v 1.5 2009/11/19 18:12:32 maire Exp $ 27 // GEANT4 tag $Name: geant4-09-0 3-cand-01 $27 // GEANT4 tag $Name: geant4-09-04-beta-01 $ 28 28 // 29 29 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... -
trunk/examples/extended/electromagnetic/TestEm16/src/PhysicsListMessenger.cc
r1230 r1337 25 25 // 26 26 // $Id: PhysicsListMessenger.cc,v 1.4 2006/06/29 16:47:58 gunter Exp $ 27 // GEANT4 tag $Name: geant4-09-0 3-cand-01 $27 // GEANT4 tag $Name: geant4-09-04-beta-01 $ 28 28 // 29 29 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... -
trunk/examples/extended/electromagnetic/TestEm16/src/PrimaryGeneratorAction.cc
r1230 r1337 25 25 // 26 26 // $Id: PrimaryGeneratorAction.cc,v 1.3 2006/06/29 16:48:00 gunter Exp $ 27 // GEANT4 tag $Name: geant4-09-0 3-cand-01 $27 // GEANT4 tag $Name: geant4-09-04-beta-01 $ 28 28 // 29 29 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... -
trunk/examples/extended/electromagnetic/TestEm16/src/RunAction.cc
r1230 r1337 25 25 // 26 26 // $Id: RunAction.cc,v 1.8 2007/01/18 10:24:35 vnivanch Exp $ 27 // GEANT4 tag $Name: geant4-09-0 3-cand-01 $27 // GEANT4 tag $Name: geant4-09-04-beta-01 $ 28 28 // 29 29 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... -
trunk/examples/extended/electromagnetic/TestEm16/src/SteppingAction.cc
r1230 r1337 25 25 // 26 26 // $Id: SteppingAction.cc,v 1.5 2007/01/18 09:07:20 hbu Exp $ 27 // GEANT4 tag $Name: geant4-09-0 3-cand-01 $27 // GEANT4 tag $Name: geant4-09-04-beta-01 $ 28 28 // 29 29 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... -
trunk/examples/extended/electromagnetic/TestEm16/src/SteppingVerbose.cc
r1230 r1337 25 25 // 26 26 // $Id: SteppingVerbose.cc,v 1.2 2006/06/29 16:48:06 gunter Exp $ 27 // GEANT4 tag $Name: geant4-09-0 3-cand-01 $27 // GEANT4 tag $Name: geant4-09-04-beta-01 $ 28 28 // 29 29 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... -
trunk/examples/extended/electromagnetic/TestEm16/vis.mac
r807 r1337 10 10 /run/initialize 11 11 # 12 # Create empty scene ("world" is default)13 /vis/scene/create14 #15 # Create a scene handler for a specific graphics system16 # Edit the next line(s) to choose another graphic system17 #18 /vis/open OGLIX19 #20 ##/vis/open DAWNFILE21 #22 # Draw scene23 /vis/viewer/zoom 1.424 /vis/viewer/flush25 #26 # for drawing the tracks27 # if too many tracks cause core dump => storeTrajectory 028 /tracking/storeTrajectory 129 /vis/scene/endOfEventAction accumulate30 #31 /testem/event/drawTracks all32 #33 12 # inactivate other processes to make SynchrotronRadiation more visible 34 13 /process/inactivate msc … … 41 20 # 42 21 /testem/det/setField 0.1 tesla 22 # 23 # Use this open statement to create an OpenGL view: 24 /vis/open OGL 600x600-0+0 25 # 26 # Use this open statement to create a .prim file suitable for 27 # viewing in DAWN: 28 #/vis/open DAWNFILE 29 # 30 # Use this open statement to create a .heprep file suitable for 31 # viewing in HepRApp: 32 #/vis/open HepRepFile 33 # 34 # Use this open statement to create a .wrl file suitable for 35 # viewing in a VRML viewer: 36 #/vis/open VRML2FILE 37 # 38 # Disable auto refresh and quieten vis messages whilst scene and 39 # trajectories are established: 40 /vis/viewer/set/autoRefresh false 41 /vis/verbose errors 42 # 43 # Draw geometry: 44 /vis/drawVolume 45 # 46 # Specify view angle: 47 #/vis/viewer/set/viewpointThetaPhi 90. 0. 48 # 49 # Specify zoom value: 50 /vis/viewer/zoom 1.4 51 # 52 # Specify style (surface or wireframe): 53 #/vis/viewer/set/style wireframe 54 # 55 # Draw coordinate axes: 56 #/vis/scene/add/axes 0 0 0 1 m 57 # 58 # Draw smooth trajectories at end of event, showing trajectory points 59 # as markers 2 pixels wide: 60 /vis/scene/add/trajectories smooth 61 /vis/modeling/trajectories/create/drawByCharge 62 /vis/modeling/trajectories/drawByCharge-0/default/setDrawStepPts true 63 /vis/modeling/trajectories/drawByCharge-0/default/setStepPtsSize 2 64 # (if too many tracks cause core dump => /tracking/storeTrajectory 0) 65 # 66 # Draw hits at end of event: 67 #/vis/scene/add/hits 68 # 69 # To draw only gammas: 70 #/vis/filtering/trajectories/create/particleFilter 71 #/vis/filtering/trajectories/particleFilter-0/add gamma 72 # 73 # To invert the above, drawing all particles except gammas, 74 # keep the above two lines but also add: 75 #/vis/filtering/trajectories/particleFilter-0/invert true 76 # 77 # Many other options are available with /vis/modeling and /vis/filtering. 78 # For example, to select colour by particle ID: 79 #/vis/modeling/trajectories/create/drawByParticleID 80 #/vis/modeling/trajectories/drawByParticleID-0/set e- blue 81 # 82 # To superimpose all of the events from a given run: 83 /vis/scene/endOfEventAction accumulate 84 # 85 # Re-establish auto refreshing and verbosity: 86 /vis/viewer/set/autoRefresh true 87 /vis/verbose warnings 88 # 89 # For file-based drivers, use this to create an empty detector view: 90 #/vis/viewer/flush
Note:
See TracChangeset
for help on using the changeset viewer.
