Changeset 1337 for trunk/examples/extended/electromagnetic/TestEm13
- Timestamp:
- Sep 30, 2010, 2:47:17 PM (14 years ago)
- Location:
- trunk/examples/extended/electromagnetic/TestEm13
- Files:
-
- 32 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/examples/extended/electromagnetic/TestEm13/History
r807 r1337 1 $Id: History,v 1. 15 2007/07/02 09:18:45 vnivanchExp $1 $Id: History,v 1.22 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 (testem13-V09-03-03) 19 - Remove unused variable in EventAction 20 21 03-06-10 J.Perl (testem13-V09-03-02) 22 - Updated vis usage 23 24 05-04-10 mma (testem13-V09-03-01) 25 - PhysicsList: remove non pertinent EmOptions 26 - RunAction: replace ProcessCount by map<string, int> 27 28 02-04-10 mma (testem13-V09-03-00) 29 - PhysicsList: extend ProductionCuts down to 100 eV 30 - PhysListEmStandard, Livermore, Penelope: 31 all processes registered as discrete -> no continuous Eloss 32 - cleanup SteppingAction 33 - TestEm14.cc : introduction of G4UIExecutive 34 - update README 35 36 19-11-09 mma (testem13-V09-02-01) 37 - add new livermore and penelope physics lists 38 39 25-09-09 mma (testem13-V09-02-00) 40 - Remove old livermore and penelope physics lists 41 42 12-06-08 mma (testem13-V09-01-00) 43 - Remove AIDA from GNUmakefile 17 44 18 45 02-07-07 V.Ivant (testem13-V09-00-00) -
trunk/examples/extended/electromagnetic/TestEm13/README
r807 r1337 1 $Id: README,v 1. 4 2006/05/15 14:42:42maire Exp $1 $Id: README,v 1.5 2010/04/02 15:46:31 maire Exp $ 2 2 ------------------------------------------------------------------- 3 3 … … 27 27 28 28 The physics list contains the standard electromagnetic processes. 29 In order not to introduce 'arti cicial' constraints on the step size, the30 multiple scattering is not instanciated, and there is no limitation from31 the maximum energy lost per step.29 In order not to introduce 'artificial' constraints on the step size, the 30 multiple scattering is not instanciated, and all processes are 31 registered as discrete : there is no continuous energy loss. 32 32 33 33 3- AN EVENT : THE PRIMARY GENERATOR -
trunk/examples/extended/electromagnetic/TestEm13/TestEm13.cc
r1230 r1337 24 24 // ******************************************************************** 25 25 // 26 // $Id: TestEm13.cc,v 1. 5 2007/06/24 22:26:54maire Exp $27 // GEANT4 tag $Name: geant4-09-0 3-cand-01 $26 // $Id: TestEm13.cc,v 1.6 2010/04/02 15:46:31 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 … … 47 45 #ifdef G4VIS_USE 48 46 #include "G4VisExecutive.hh" 47 #endif 48 49 #ifdef G4UI_USE 50 #include "G4UIExecutive.hh" 49 51 #endif 50 52 … … 91 93 visManager->Initialize(); 92 94 #endif 93 94 G4UIsession * session = 0; 95 #ifdef G4UI_USE_TCSH 96 session = new G4UIterminal(new G4UItcsh); 97 #else 98 session = new G4UIterminal(); 95 96 #ifdef G4UI_USE 97 G4UIExecutive * ui = new G4UIExecutive(argc,argv); 98 ui->SessionStart(); 99 delete ui; 99 100 #endif 100 session->SessionStart();101 delete session;102 101 103 102 #ifdef G4VIS_USE -
trunk/examples/extended/electromagnetic/TestEm13/TestEm13.in
r807 r1337 1 # $Id: TestEm13.in,v 1. 5 2006/05/10 12:09:13maire Exp $1 # $Id: TestEm13.in,v 1.8 2010/04/05 13:45:17 maire Exp $ 2 2 # 3 3 # Macro file for "TestEm13.cc" … … 12 12 /testem/det/setSize 1 cm 13 13 # 14 #### /testem/phys/addPhysics livermore 15 #### /testem/phys/addPhysics penelope 14 /testem/phys/addPhysics standard 16 15 # 17 16 /run/initialize … … 19 18 /gun/particle gamma 20 19 /gun/energy 100 keV 21 /run/beamOn 100000 20 /run/beamOn 1000000 22 21 # 23 22 /gun/particle e- 24 23 /gun/energy 100 MeV 25 /run/beamOn 100000 24 /run/beamOn 1000000 -
trunk/examples/extended/electromagnetic/TestEm13/TestEm13.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 = 15 ***** 11 15 12 Material: Air density: 1.290 mg/cm3 RadL: 285.161 m Imean: 85.684eV temperature: 273.15 K pressure: 1.00 atm16 Material: Air density: 1.290 mg/cm3 RadL: 285.161 m Nucl.Int.Length: 662.680 m Imean: 85.703 eV temperature: 273.15 K pressure: 1.00 atm 13 17 ---> Element: Nitrogen (N) Z = 7.0 N = 14.0 A = 14.01 g/mole ElmMassFraction: 70.00 % ElmAbundance 72.71 % 14 18 ---> Element: Oxygen (O) Z = 8.0 N = 16.0 A = 16.00 g/mole ElmMassFraction: 30.00 % ElmAbundance 27.29 % 15 19 16 Material: H2liquid density: 70.800 mg/cm3 RadL: 8.923 m Imean: 21.800 eV20 Material: H2liquid density: 70.800 mg/cm3 RadL: 8.923 m Nucl.Int.Length: 4.960 m Imean: 19.200 eV 17 21 ---> Element: Hydrogen (H) Z = 1.0 N = 1.0 A = 1.01 g/mole ElmMassFraction: 100.00 % ElmAbundance 100.00 % 18 22 19 Material: Water H_2O density: 1.000 g/cm3 RadL: 36.092 cm Imean: 75.000 eV23 Material: Water H_2O density: 1.000 g/cm3 RadL: 36.092 cm Nucl.Int.Length: 75.416 cm Imean: 75.000 eV 20 24 ---> Element: Hydrogen (H) Z = 1.0 N = 1.0 A = 1.01 g/mole ElmMassFraction: 11.21 % ElmAbundance 66.67 % 21 25 ---> Element: Oxygen (O) Z = 8.0 N = 16.0 A = 16.00 g/mole ElmMassFraction: 88.79 % ElmAbundance 33.33 % 22 26 23 Material: liquidArgon density: 1.390 g/cm3 RadL: 14.065 cm Imean: 187.200 eV27 Material: liquidArgon density: 1.390 g/cm3 RadL: 14.065 cm Nucl.Int.Length: 86.078 cm Imean: 188.000 eV 24 28 ---> Element: liquidArgon ( ) Z = 18.0 N = 40.0 A = 39.95 g/mole ElmMassFraction: 100.00 % ElmAbundance 100.00 % 25 29 26 Material: Carbon density: 2.267 g/cm3 RadL: 18.833 cm Imean: 78.000 eV30 Material: Carbon density: 2.267 g/cm3 RadL: 18.833 cm Nucl.Int.Length: 35.356 cm Imean: 81.000 eV 27 31 ---> Element: Carbon ( ) Z = 6.0 N = 12.0 A = 12.01 g/mole ElmMassFraction: 100.00 % ElmAbundance 100.00 % 28 32 29 Material: Aluminium density: 2.700 g/cm3 RadL: 8.893 cm Imean: 166.400 eV33 Material: Aluminium density: 2.700 g/cm3 RadL: 8.893 cm Nucl.Int.Length: 38.879 cm Imean: 166.000 eV 30 34 ---> Element: Aluminium ( ) Z = 13.0 N = 27.0 A = 26.98 g/mole ElmMassFraction: 100.00 % ElmAbundance 100.00 % 31 35 32 Material: Silicon density: 2.330 g/cm3 RadL: 9.368 cm Imean: 173.600 eV36 Material: Silicon density: 2.330 g/cm3 RadL: 9.368 cm Nucl.Int.Length: 45.663 cm Imean: 173.000 eV 33 37 ---> Element: Silicon ( ) Z = 14.0 N = 28.1 A = 28.09 g/mole ElmMassFraction: 100.00 % ElmAbundance 100.00 % 34 38 35 Material: Germanium density: 5.323 g/cm3 RadL: 2.301 cm Imean: 332.800 eV39 Material: Germanium density: 5.323 g/cm3 RadL: 2.301 cm Nucl.Int.Length: 27.431 cm Imean: 350.000 eV 36 40 ---> Element: Germanium ( ) Z = 32.0 N = 72.6 A = 72.61 g/mole ElmMassFraction: 100.00 % ElmAbundance 100.00 % 37 41 38 Material: NaI density: 3.670 g/cm3 RadL: 2.586 cm Imean: 452.000 eV42 Material: NaI density: 3.670 g/cm3 RadL: 2.586 cm Nucl.Int.Length: 42.878 cm Imean: 452.000 eV 39 43 ---> Element: Sodium (Na) Z = 11.0 N = 23.0 A = 22.99 g/mole ElmMassFraction: 15.34 % ElmAbundance 50.00 % 40 44 ---> Element: Iodine (I) Z = 53.0 N = 126.9 A = 126.90 g/mole ElmMassFraction: 84.66 % ElmAbundance 50.00 % 41 45 42 Material: Iodine density: 4.930 g/cm3 RadL: 1.720 cm Imean: 492.900 eV46 Material: Iodine density: 4.930 g/cm3 RadL: 1.720 cm Nucl.Int.Length: 35.676 cm Imean: 491.000 eV 43 47 ---> Element: Iodine (I) Z = 53.0 N = 126.9 A = 126.90 g/mole ElmMassFraction: 100.00 % ElmAbundance 100.00 % 44 48 45 Material: BGO density: 7.100 g/cm3 RadL: 1.123 cm Imean: 469.142eV49 Material: BGO density: 7.100 g/cm3 RadL: 1.123 cm Nucl.Int.Length: 22.806 cm Imean: 473.785 eV 46 50 ---> Element: Oxygen (O) Z = 8.0 N = 16.0 A = 16.00 g/mole ElmMassFraction: 15.41 % ElmAbundance 63.16 % 47 51 ---> Element: Germanium (Ge) Z = 32.0 N = 72.6 A = 72.59 g/mole ElmMassFraction: 17.48 % ElmAbundance 15.79 % 48 52 ---> Element: Bismuth (Bi) Z = 83.0 N = 209.0 A = 208.98 g/mole ElmMassFraction: 67.10 % ElmAbundance 21.05 % 49 53 50 Material: Iron density: 7.870 g/cm3 RadL: 1.759 cm Imean: 286.000 eV51 ---> Element: Iron ( ) Z = 26.0 N = 55. 9A = 55.85 g/mole ElmMassFraction: 100.00 % ElmAbundance 100.00 %52 53 Material: Tungsten density: 19.300 g/cm3 RadL: 3.504 mm Imean: 725.200 eV54 Material: Iron density: 7.870 g/cm3 RadL: 1.759 cm Nucl.Int.Length: 16.999 cm Imean: 286.000 eV 55 ---> Element: Iron ( ) Z = 26.0 N = 55.8 A = 55.85 g/mole ElmMassFraction: 100.00 % ElmAbundance 100.00 % 56 57 Material: Tungsten density: 19.300 g/cm3 RadL: 3.504 mm Nucl.Int.Length: 10.312 cm Imean: 727.000 eV 54 58 ---> Element: Tungsten ( ) Z = 74.0 N = 183.8 A = 183.85 g/mole ElmMassFraction: 100.00 % ElmAbundance 100.00 % 55 59 56 Material: Lead density: 11.350 g/cm3 RadL: 5.612 mm Imean: 820.000 eV60 Material: Lead density: 11.350 g/cm3 RadL: 5.612 mm Nucl.Int.Length: 18.247 cm Imean: 823.000 eV 57 61 ---> Element: Lead ( ) Z = 82.0 N = 207.2 A = 207.19 g/mole ElmMassFraction: 100.00 % ElmAbundance 100.00 % 58 62 59 Material: Uranium density: 18.950 g/cm3 RadL: 3.166 mm Imean: 892.400 eV63 Material: Uranium density: 18.950 g/cm3 RadL: 3.166 mm Nucl.Int.Length: 11.446 cm Imean: 890.000 eV 60 64 ---> Element: Uranium ( ) Z = 92.0 N = 238.0 A = 238.03 g/mole ElmMassFraction: 100.00 % ElmAbundance 100.00 % 61 65 … … 66 70 /testem/det/setSize 1 cm 67 71 # 68 #### /testem/phys/addPhysics livermore 69 #### /testem/phys/addPhysics penelope 72 /testem/phys/addPhysics standard 73 PhysicsList::AddPhysicsList: <standard> 70 74 # 71 75 /run/initialize … … 76 80 physicsList->Construct() start. 77 81 physicsList->Construct() start. 82 physicsList->CheckParticleList() start. 78 83 physicsList->setCut() start. 79 84 # 80 85 /gun/particle gamma 81 86 /gun/energy 100 keV 82 /run/beamOn 100000 83 84 phot: Total cross sections from Sandia parametrisation. 85 Sampling according PhotoElectric model 86 87 compt: Total cross sections has a good parametrisation from 10 KeV to (100/Z) GeV 88 Sampling according Klein-Nishina model 89 tables are built for gamma 90 Lambda tables from 100 eV to 100 GeV in 90 bins. 91 92 conv: Total cross sections has a good parametrisation from 1.5 MeV to 100 GeV for all Z; 93 sampling secondary e+e- according Bethe-Heitler model 94 tables are built for gamma 95 Lambda tables from 1.022 MeV to 100 GeV in 100 bins. 96 97 eIoni: tables are built for e- 98 dE/dx and range tables from 100 eV to 100 TeV in 120 bins. 99 Lambda tables from threshold to 100 TeV in 120 bins. 100 Delta cross sections and sampling from MollerBhabha model 101 Good description from 1 KeV to 100 GeV. 102 Step function: finalRange(mm)= 1, dRoverRange= 1, integral: 0, fluct: 0 103 104 eBrem: tables are built for e- 105 dE/dx and range tables from 100 eV to 100 TeV in 120 bins. 106 Lambda tables from threshold to 100 TeV in 120 bins. 107 Total cross sections and sampling from StandBrem model (based on the EEDL data library) 108 Good description from 1 KeV to 100 GeV, log scale extrapolation above 100 GeV. LPM flag 1 109 110 eIoni: tables are built for e+ 111 dE/dx and range tables from 100 eV to 100 TeV in 120 bins. 112 Lambda tables from threshold to 100 TeV in 120 bins. 113 Delta cross sections and sampling from MollerBhabha model 114 Good description from 1 KeV to 100 GeV. 115 Step function: finalRange(mm)= 1, dRoverRange= 1, integral: 0, fluct: 0 116 117 eBrem: tables are built for e+ 118 dE/dx and range tables from 100 eV to 100 TeV in 120 bins. 119 Lambda tables from threshold to 100 TeV in 120 bins. 120 Total cross sections and sampling from StandBrem model (based on the EEDL data library) 121 Good description from 1 KeV to 100 GeV, log scale extrapolation above 100 GeV. LPM flag 1 122 123 annihil: Sampling according eplus2gg model 124 tables are built for e+ 125 Lambda tables from 100 eV to 100 TeV in 120 bins. 126 127 hIoni: tables are built for proton 128 dE/dx and range tables from 100 eV to 100 TeV in 120 bins. 129 Lambda tables from threshold to 100 TeV in 120 bins. 130 Scaling relation is used from proton dE/dx and range. 131 Delta cross sections and sampling from BetheBloch model for scaled energy > 2 MeV 132 Parametrisation from Bragg for protons below. NuclearStopping= 1 133 Step function: finalRange(mm)= 1, dRoverRange= 1, integral: 0, fluct: 0 134 135 ionIoni: tables are built for GenericIon 136 dE/dx and range tables from 100 eV to 100 TeV in 120 bins. 137 Lambda tables from threshold to 100 TeV in 120 bins. 138 Scaling relation is used from proton dE/dx and range. 139 Delta cross sections and sampling from BetheBloch model for scaled energy > 2 MeV 140 Parametrisation from BraggIon for protons below. NuclearStopping= 1 141 142 Stopping Power data for 8 ion/material pairs are used. 143 Step function: finalRange(mm)= 1, dRoverRange= 1, integral: 0, fluct: 0 144 145 hIoni: tables are built for anti_proton 146 dE/dx and range tables from 100 eV to 100 TeV in 120 bins. 147 Lambda tables from threshold to 100 TeV in 120 bins. 148 Scaling relation is used from proton dE/dx and range. 149 Delta cross sections and sampling from BetheBloch model for scaled energy > 2 MeV 150 Parametrisation from Bragg for protons below. NuclearStopping= 1 151 Step function: finalRange(mm)= 1, dRoverRange= 1, integral: 0, fluct: 0 152 153 muIoni: tables are built for mu+ 154 dE/dx and range tables from 100 eV to 100 TeV in 120 bins. 155 Lambda tables from threshold to 100 TeV in 120 bins. 156 Bether-Bloch model for E > 0.2 MeV, parametrisation of Bragg peak below, 157 radiative corrections for E > 1 GeV 158 Step function: finalRange(mm)= 1, dRoverRange= 1, integral: 0, fluct: 0 159 160 muBrems: tables are built for mu+ 161 dE/dx and range tables from 100 eV to 100 TeV in 120 bins. 162 Lambda tables from threshold to 100 TeV in 120 bins. 163 Parametrised model 164 165 muPairProd: tables are built for mu+ 166 dE/dx and range tables from 100 eV to 100 TeV in 120 bins. 167 Lambda tables from threshold to 100 TeV in 120 bins. 168 Parametrised model 169 170 muIoni: tables are built for mu- 171 dE/dx and range tables from 100 eV to 100 TeV in 120 bins. 172 Lambda tables from threshold to 100 TeV in 120 bins. 173 Bether-Bloch model for E > 0.2 MeV, parametrisation of Bragg peak below, 174 radiative corrections for E > 1 GeV 175 Step function: finalRange(mm)= 1, dRoverRange= 1, integral: 0, fluct: 0 176 177 muBrems: tables are built for mu- 178 dE/dx and range tables from 100 eV to 100 TeV in 120 bins. 179 Lambda tables from threshold to 100 TeV in 120 bins. 180 Parametrised model 181 182 muPairProd: tables are built for mu- 183 dE/dx and range tables from 100 eV to 100 TeV in 120 bins. 184 Lambda tables from threshold to 100 TeV in 120 bins. 185 Parametrised model 186 187 hIoni: tables are built for pi+ 188 dE/dx and range tables from 100 eV to 100 TeV in 120 bins. 189 Lambda tables from threshold to 100 TeV in 120 bins. 190 Scaling relation is used from proton dE/dx and range. 191 Delta cross sections and sampling from BetheBloch model for scaled energy > 0.297504 MeV 192 Parametrisation from Bragg for protons below. NuclearStopping= 1 193 Step function: finalRange(mm)= 1, dRoverRange= 1, integral: 0, fluct: 0 194 195 hIoni: tables are built for pi- 196 dE/dx and range tables from 100 eV to 100 TeV in 120 bins. 197 Lambda tables from threshold to 100 TeV in 120 bins. 198 Scaling relation is used from proton dE/dx and range. 199 Delta cross sections and sampling from BetheBloch model for scaled energy > 0.297504 MeV 200 Parametrisation from Bragg for protons below. NuclearStopping= 1 201 Step function: finalRange(mm)= 1, dRoverRange= 1, integral: 0, fluct: 0 87 /run/beamOn 1000000 88 89 phot: for gamma SubType= 12 90 ===== EM models for the G4Region DefaultRegionForTheWorld ====== 91 PhotoElectric : Emin= 0 eV Emax= 10 TeV 92 93 compt: for gamma SubType= 13 94 Lambda tables from 100 eV to 10 TeV in 77 bins, spline: 1 95 ===== EM models for the G4Region DefaultRegionForTheWorld ====== 96 Klein-Nishina : Emin= 0 eV Emax= 10 TeV 97 98 conv: for gamma SubType= 14 99 Lambda tables from 1.022 MeV to 10 TeV in 77 bins, spline: 1 100 ===== EM models for the G4Region DefaultRegionForTheWorld ====== 101 Bethe-Heitler : Emin= 0 eV Emax= 10 TeV 102 103 eIoni: for e- SubType= 2 104 dE/dx and range tables from 100 eV to 10 TeV in 77 bins 105 Lambda tables from threshold to 10 TeV in 77 bins, spline: 1 106 finalRange(mm)= 1, dRoverRange= 0.2, integral: 0, fluct: 1, linLossLimit= 0.01 107 ===== EM models for the G4Region DefaultRegionForTheWorld ====== 108 MollerBhabha : Emin= 0 eV Emax= 10 TeV 109 110 eBrem: for e- SubType= 3 111 dE/dx and range tables from 100 eV to 10 TeV in 77 bins 112 Lambda tables from threshold to 10 TeV in 77 bins, spline: 1 113 LPM flag: 1 for E > 1 GeV 114 ===== EM models for the G4Region DefaultRegionForTheWorld ====== 115 eBrem : Emin= 0 eV Emax= 1 GeV 116 eBremRel : Emin= 1 GeV Emax= 10 TeV 117 118 eIoni: for e+ SubType= 2 119 dE/dx and range tables from 100 eV to 10 TeV in 77 bins 120 Lambda tables from threshold to 10 TeV in 77 bins, spline: 1 121 finalRange(mm)= 1, dRoverRange= 0.2, integral: 0, fluct: 1, linLossLimit= 0.01 122 ===== EM models for the G4Region DefaultRegionForTheWorld ====== 123 MollerBhabha : Emin= 0 eV Emax= 10 TeV 124 125 eBrem: for e+ SubType= 3 126 dE/dx and range tables from 100 eV to 10 TeV in 77 bins 127 Lambda tables from threshold to 10 TeV in 77 bins, spline: 1 128 LPM flag: 1 for E > 1 GeV 129 ===== EM models for the G4Region DefaultRegionForTheWorld ====== 130 eBrem : Emin= 0 eV Emax= 1 GeV 131 eBremRel : Emin= 1 GeV Emax= 10 TeV 132 133 annihil: for e+ SubType= 5 134 Lambda tables from 100 eV to 10 TeV in 77 bins, spline: 1 135 ===== EM models for the G4Region DefaultRegionForTheWorld ====== 136 eplus2gg : Emin= 0 eV Emax= 10 TeV 137 138 hIoni: for proton SubType= 2 139 dE/dx and range tables from 100 eV to 10 TeV in 77 bins 140 Lambda tables from threshold to 10 TeV in 77 bins, spline: 1 141 finalRange(mm)= 1, dRoverRange= 0.2, integral: 0, fluct: 1, linLossLimit= 0.01 142 ===== EM models for the G4Region DefaultRegionForTheWorld ====== 143 Bragg : Emin= 0 eV Emax= 2 MeV 144 BetheBloch : Emin= 2 MeV Emax= 10 TeV 145 146 ionIoni: for GenericIon SubType= 2 147 dE/dx and range tables from 100 eV to 10 TeV in 77 bins 148 Lambda tables from threshold to 10 TeV in 77 bins, spline: 1 149 finalRange(mm)= 0.1, dRoverRange= 0.1, integral: 0, fluct: 1, linLossLimit= 0.02 150 Stopping Power data for 17 ion/material pairs, nuclearStopping: 1 151 ===== EM models for the G4Region DefaultRegionForTheWorld ====== 152 BraggIon : Emin= 0 eV Emax= 2 MeV 153 BetheBloch : Emin= 2 MeV Emax= 10 TeV 154 155 hIoni: for anti_proton SubType= 2 156 dE/dx and range tables from 100 eV to 10 TeV in 77 bins 157 Lambda tables from threshold to 10 TeV in 77 bins, spline: 1 158 finalRange(mm)= 1, dRoverRange= 0.2, integral: 0, fluct: 1, linLossLimit= 0.01 159 ===== EM models for the G4Region DefaultRegionForTheWorld ====== 160 ICRU73QO : Emin= 0 eV Emax= 2 MeV 161 BetheBloch : Emin= 2 MeV Emax= 10 TeV 162 163 hIoni: for kaon+ SubType= 2 164 dE/dx and range tables from 100 eV to 10 TeV in 77 bins 165 Lambda tables from threshold to 10 TeV in 77 bins, spline: 1 166 finalRange(mm)= 1, dRoverRange= 0.2, integral: 0, fluct: 1, linLossLimit= 0.01 167 ===== EM models for the G4Region DefaultRegionForTheWorld ====== 168 Bragg : Emin= 0 eV Emax= 1.05231 MeV 169 BetheBloch : Emin= 1.05231 MeV Emax= 10 TeV 170 171 hIoni: for kaon- SubType= 2 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 finalRange(mm)= 1, dRoverRange= 0.2, integral: 0, fluct: 1, linLossLimit= 0.01 175 ===== EM models for the G4Region DefaultRegionForTheWorld ====== 176 ICRU73QO : Emin= 0 eV Emax= 1.05231 MeV 177 BetheBloch : Emin= 1.05231 MeV Emax= 10 TeV 178 179 muIoni: for mu+ SubType= 2 180 dE/dx and range tables from 100 eV to 10 TeV in 77 bins 181 Lambda tables from threshold to 10 TeV in 77 bins, spline: 1 182 finalRange(mm)= 1, dRoverRange= 0.2, integral: 0, fluct: 1, linLossLimit= 0.01 183 ===== EM models for the G4Region DefaultRegionForTheWorld ====== 184 Bragg : Emin= 0 eV Emax= 200 keV 185 BetheBloch : Emin= 200 keV Emax= 1 GeV 186 MuBetheBloch : Emin= 1 GeV Emax= 10 TeV 187 188 muBrems: for mu+ SubType= 3 189 dE/dx and range tables from 100 eV to 10 TeV in 77 bins 190 Lambda tables from threshold to 10 TeV in 77 bins, spline: 1 191 ===== EM models for the G4Region DefaultRegionForTheWorld ====== 192 MuBrem : Emin= 0 eV Emax= 10 TeV 193 194 muPairProd: for mu+ SubType= 4 195 dE/dx and range tables from 100 eV to 10 TeV in 77 bins 196 Lambda tables from threshold to 10 TeV in 77 bins, spline: 1 197 ===== EM models for the G4Region DefaultRegionForTheWorld ====== 198 muPairProd : Emin= 0 eV Emax= 10 TeV 199 200 muIoni: for mu- SubType= 2 201 dE/dx and range tables from 100 eV to 10 TeV in 77 bins 202 Lambda tables from threshold to 10 TeV in 77 bins, spline: 1 203 finalRange(mm)= 1, dRoverRange= 0.2, integral: 0, fluct: 1, linLossLimit= 0.01 204 ===== EM models for the G4Region DefaultRegionForTheWorld ====== 205 ICRU73QO : Emin= 0 eV Emax= 200 keV 206 BetheBloch : Emin= 200 keV Emax= 1 GeV 207 MuBetheBloch : Emin= 1 GeV Emax= 10 TeV 208 209 muBrems: for mu- SubType= 3 210 dE/dx and range tables from 100 eV to 10 TeV in 77 bins 211 Lambda tables from threshold to 10 TeV in 77 bins, spline: 1 212 ===== EM models for the G4Region DefaultRegionForTheWorld ====== 213 MuBrem : Emin= 0 eV Emax= 10 TeV 214 215 muPairProd: for mu- SubType= 4 216 dE/dx and range tables from 100 eV to 10 TeV in 77 bins 217 Lambda tables from threshold to 10 TeV in 77 bins, spline: 1 218 ===== EM models for the G4Region DefaultRegionForTheWorld ====== 219 muPairProd : Emin= 0 eV Emax= 10 TeV 220 221 hIoni: for pi+ SubType= 2 222 dE/dx and range tables from 100 eV to 10 TeV in 77 bins 223 Lambda tables from threshold to 10 TeV in 77 bins, spline: 1 224 finalRange(mm)= 1, dRoverRange= 0.2, integral: 0, fluct: 1, linLossLimit= 0.01 225 ===== EM models for the G4Region DefaultRegionForTheWorld ====== 226 Bragg : Emin= 0 eV Emax= 297.504 keV 227 BetheBloch : Emin= 297.504 keV Emax= 10 TeV 228 229 hIoni: for pi- SubType= 2 230 dE/dx and range tables from 100 eV to 10 TeV in 77 bins 231 Lambda tables from threshold to 10 TeV in 77 bins, spline: 1 232 finalRange(mm)= 1, dRoverRange= 0.2, integral: 0, fluct: 1, linLossLimit= 0.01 233 ===== EM models for the G4Region DefaultRegionForTheWorld ====== 234 ICRU73QO : Emin= 0 eV Emax= 297.504 keV 235 BetheBloch : Emin= 297.504 keV Emax= 10 TeV 202 236 203 237 Region <DefaultRegionForTheWorld> -- appears in <Water> world volume … … 205 239 Pointers : G4VUserRegionInformation[0], G4UserLimits[0], G4FastSimulationManager[0], G4UserSteppingAction[0] 206 240 Materials : Water 207 Production cuts : gamma 1 mm e- 1 mm e+ 1 mm241 Production cuts : gamma 1 mm e- 1 mm e+ 1 mm proton 0 fm 208 242 209 243 ========= Table of registered couples ============================== … … 211 245 Index : 0 used in the geometry : Yes recalculation needed : No 212 246 Material : Water 213 Range cuts : gamma 1 mm e- 1 mm e+ 1 mm214 Energy thresholds : gamma 2.90186 keV e- 347.138 keV e+ 338.695 keV247 Range cuts : gamma 1 mm e- 1 mm e+ 1 mm proton 0 fm 248 Energy thresholds : gamma 2.93991 keV e- 349.408 keV e+ 341.455 keV proton 0 eV 215 249 Region(s) which use this couple : 216 250 DefaultRegionForTheWorld … … 233 267 ---> Begin of Event: 0 234 268 235 ---> Begin of Event: 10000 236 237 ---> Begin of Event: 20000 238 239 ---> Begin of Event: 30000 240 241 ---> Begin of Event: 40000 242 243 ---> Begin of Event: 50000 244 245 ---> Begin of Event: 60000 246 247 ---> Begin of Event: 70000 248 249 ---> Begin of Event: 80000 250 251 ---> Begin of Event: 90000 269 ---> Begin of Event: 100000 270 271 ---> Begin of Event: 200000 272 273 ---> Begin of Event: 300000 274 275 ---> Begin of Event: 400000 276 277 ---> Begin of Event: 500000 278 279 ---> Begin of Event: 600000 280 281 ---> Begin of Event: 700000 282 283 ---> Begin of Event: 800000 284 285 ---> Begin of Event: 900000 252 286 Run terminated. 253 287 Run Summary 254 Number of events processed : 100000 255 User= 1.17s Real=1.16s Sys=0s256 257 The run consists of 100000 gamma of 100 keV through 1 cm of Water (density: 1 g/cm3 )258 259 Process calls frequency ---> Transportation = 84 934 compt = 14842 phot = 224260 261 Nb of incident particles unaltered after 1 cm of Water : 84 934 over 100000 incident particles. Ratio = 84.934 %262 ---> CrossSection per volume: 0.16 33 cm^-1 CrossSection per mass: 0.1633cm2/g288 Number of events processed : 1000000 289 User=7.49s Real=9.24s Sys=0s 290 291 The run consists of 1000000 gamma of 100 keV through 1 cm of Water (density: 1 g/cm3 ) 292 293 Process calls frequency ---> Transportation = 848441 compt = 149125 phot = 2434 294 295 Nb of incident particles unaltered after 1 cm of Water : 848441 over 1000000 incident particles. Ratio = 84.844 % 296 ---> CrossSection per volume: 0.16435 cm^-1 CrossSection per mass: 0.16435 cm2/g 263 297 264 298 Verification from G4EmCalculator: 265 compt= 0.1623 cm2/g phot= 0.0026853 cm2/g total= 0.1649 8cm2/g299 compt= 0.1623 cm2/g phot= 0.0026853 cm2/g total= 0.16499 cm2/g 266 300 Expected ratio of transmitted particles= 84.791 % 267 301 268 302 --------- Ranecu engine status --------- 269 303 Initial seed (index) = 0 270 Current couple of seeds = 507682210, 1650158306304 Current couple of seeds = 1922923057, 1535294815 271 305 ---------------------------------------- 272 306 # 273 307 /gun/particle e- 274 308 /gun/energy 100 MeV 275 /run/beamOn 100000 309 /run/beamOn 1000000 276 310 277 311 Region <DefaultRegionForTheWorld> -- appears in <Water> world volume … … 279 313 Pointers : G4VUserRegionInformation[0], G4UserLimits[0], G4FastSimulationManager[0], G4UserSteppingAction[0] 280 314 Materials : Water 281 Production cuts : gamma 1 mm e- 1 mm e+ 1 mm315 Production cuts : gamma 1 mm e- 1 mm e+ 1 mm proton 0 fm 282 316 283 317 ========= Table of registered couples ============================== … … 285 319 Index : 0 used in the geometry : Yes recalculation needed : No 286 320 Material : Water 287 Range cuts : gamma 1 mm e- 1 mm e+ 1 mm288 Energy thresholds : gamma 2.9018564 keV e- 347.13789 keV e+ 338.6954 keV321 Range cuts : gamma 1 mm e- 1 mm e+ 1 mm proton 0 fm 322 Energy thresholds : gamma 2.9399052 keV e- 349.40839 keV e+ 341.45489 keV proton 0 eV 289 323 Region(s) which use this couple : 290 324 DefaultRegionForTheWorld … … 296 330 --------- Ranecu engine status --------- 297 331 Initial seed (index) = 0 298 Current couple of seeds = 507682210, 1650158306332 Current couple of seeds = 1922923057, 1535294815 299 333 ---------------------------------------- 300 334 Start Run processing. … … 302 336 ---> Begin of Event: 0 303 337 304 ---> Begin of Event: 10000 305 306 ---> Begin of Event: 20000 307 308 ---> Begin of Event: 30000 309 310 ---> Begin of Event: 40000 311 312 ---> Begin of Event: 50000 313 314 ---> Begin of Event: 60000 315 316 ---> Begin of Event: 70000 317 318 ---> Begin of Event: 80000 319 320 ---> Begin of Event: 90000 338 ---> Begin of Event: 100000 339 340 ---> Begin of Event: 200000 341 342 ---> Begin of Event: 300000 343 344 ---> Begin of Event: 400000 345 346 ---> Begin of Event: 500000 347 348 ---> Begin of Event: 600000 349 350 ---> Begin of Event: 700000 351 352 ---> Begin of Event: 800000 353 354 ---> Begin of Event: 900000 321 355 Run terminated. 322 356 Run Summary 323 Number of events processed : 100000 324 User= 1.31s Real=1.32s Sys=0s325 326 The run consists of 100000 e- of 100 MeV through 1 cm of Water (density: 1 g/cm3 )327 328 Process calls frequency ---> eBrem = 29069 Transportation = 52915 eIoni = 18016329 330 Nb of incident particles unaltered after 1 cm of Water : 5 2915 over 100000 incident particles. Ratio = 52.915%331 ---> CrossSection per volume: 0.6 3648 cm^-1 CrossSection per mass: 0.63648cm2/g357 Number of events processed : 1000000 358 User=8.2s Real=14.35s Sys=0s 359 360 The run consists of 1000000 e- of 100 MeV through 1 cm of Water (density: 1 g/cm3 ) 361 362 Process calls frequency ---> Transportation = 540804 eBrem = 277603 eIoni = 181593 363 364 Nb of incident particles unaltered after 1 cm of Water : 540804 over 1000000 incident particles. Ratio = 54.08 % 365 ---> CrossSection per volume: 0.6147 cm^-1 CrossSection per mass: 0.6147 cm2/g 332 366 333 367 Verification from G4EmCalculator: 334 eBrem= 0.3 9397 cm2/g eIoni= 0.24497 cm2/g total= 0.63894cm2/g335 Expected ratio of transmitted particles= 5 2.785%368 eBrem= 0.37212 cm2/g eIoni= 0.24337 cm2/g total= 0.61549 cm2/g 369 Expected ratio of transmitted particles= 54.037 % 336 370 337 371 --------- Ranecu engine status --------- 338 372 Initial seed (index) = 0 339 Current couple of seeds = 1186383716, 309205105373 Current couple of seeds = 490323513, 1321056075 340 374 ---------------------------------------- 341 375 UserDetectorConstruction deleted. … … 345 379 G4 kernel has come to Quit state. 346 380 EventManager deleted. 347 Default detector region deleted.348 381 UImanager deleted. 349 382 Units table cleared. … … 351 384 RunManagerKernel is deleted. 352 385 RunManager is deleting. 386 -
trunk/examples/extended/electromagnetic/TestEm13/include/DetectorConstruction.hh
r1230 r1337 25 25 // 26 26 // $Id: DetectorConstruction.hh,v 1.2 2006/06/29 16:43: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/TestEm13/include/DetectorMessenger.hh
r1230 r1337 25 25 // 26 26 // $Id: DetectorMessenger.hh,v 1.2 2006/06/29 16:43:56 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/TestEm13/include/EventAction.hh
r1230 r1337 25 25 // 26 26 // $Id: EventAction.hh,v 1.2 2006/06/29 16:43: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/TestEm13/include/EventActionMessenger.hh
r1230 r1337 25 25 // 26 26 // $Id: EventActionMessenger.hh,v 1.2 2006/06/29 16:44:01 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/TestEm13/include/PhysListEmLivermore.hh
r1230 r1337 25 25 // 26 26 // $Id: PhysListEmLivermore.hh,v 1.4 2009/11/19 17:30:25 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/TestEm13/include/PhysListEmPenelope.hh
r1230 r1337 25 25 // 26 26 // $Id: PhysListEmPenelope.hh,v 1.4 2009/11/19 17:30:25 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/TestEm13/include/PhysListEmStandard.hh
r1230 r1337 25 25 // 26 26 // $Id: PhysListEmStandard.hh,v 1.2 2006/06/29 16:44:08 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/TestEm13/include/PhysicsList.hh
r1230 r1337 26 26 // 27 27 // $Id: PhysicsList.hh,v 1.3 2006/06/29 16:44: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 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... -
trunk/examples/extended/electromagnetic/TestEm13/include/PhysicsListMessenger.hh
r1230 r1337 25 25 // 26 26 // $Id: PhysicsListMessenger.hh,v 1.3 2006/06/29 16:44:12 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/TestEm13/include/PrimaryGeneratorAction.hh
r1230 r1337 25 25 // 26 26 // $Id: PrimaryGeneratorAction.hh,v 1.2 2006/06/29 16:44:14 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/TestEm13/include/RunAction.hh
r1230 r1337 24 24 // ******************************************************************** 25 25 // 26 // $Id: RunAction.hh,v 1. 3 2006/06/29 16:44:18 gunterExp $27 // GEANT4 tag $Name: geant4-09-0 3-cand-01 $26 // $Id: RunAction.hh,v 1.4 2010/04/05 13:45:17 maire Exp $ 27 // GEANT4 tag $Name: geant4-09-04-beta-01 $ 28 28 // 29 29 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... … … 34 34 35 35 #include "G4UserRunAction.hh" 36 #include "ProcessesCount.hh"37 36 #include "globals.hh" 37 #include <map> 38 38 39 39 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... … … 55 55 void EndOfRunAction(const G4Run*); 56 56 57 void CountProcesses(G4String );57 void CountProcesses(G4String procName) { procCounter[procName]++;}; 58 58 59 59 private: 60 DetectorConstruction* detector;61 PrimaryGeneratorAction* primary;62 ProcessesCount* ProcCounter;60 DetectorConstruction* detector; 61 PrimaryGeneratorAction* primary; 62 std::map<G4String,G4int> procCounter; 63 63 }; 64 64 -
trunk/examples/extended/electromagnetic/TestEm13/include/SteppingAction.hh
r1230 r1337 25 25 // 26 26 // $Id: SteppingAction.hh,v 1.4 2006/06/29 16:44:20 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/TestEm13/include/SteppingVerbose.hh
r1230 r1337 25 25 // 26 26 // $Id: SteppingVerbose.hh,v 1.2 2006/06/29 16:44:22 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/TestEm13/src/DetectorConstruction.cc
r1230 r1337 25 25 // 26 26 // $Id: DetectorConstruction.cc,v 1.5 2006/06/29 16:44:24 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/TestEm13/src/DetectorMessenger.cc
r1230 r1337 25 25 // 26 26 // $Id: DetectorMessenger.cc,v 1.2 2006/06/29 16:44:27 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/TestEm13/src/EventAction.cc
r1230 r1337 24 24 // ******************************************************************** 25 25 // 26 // $Id: EventAction.cc,v 1. 2 2006/06/29 16:44:30 gunterExp $27 // GEANT4 tag $Name: geant4-09-0 3-cand-01 $26 // $Id: EventAction.cc,v 1.5 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 #include "G4UnitsTable.hh" 41 38 … … 43 40 44 41 EventAction::EventAction() 45 :printModulo(10000 ),eventMessenger(0)42 :printModulo(100000),eventMessenger(0) 46 43 { 47 44 eventMessenger = new EventActionMessenger(this); … … 68 65 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 69 66 70 void EventAction::EndOfEventAction(const G4Event* evt)67 void EventAction::EndOfEventAction(const G4Event*) 71 68 { 72 if (G4VVisManager::GetConcreteInstance())73 {74 G4TrajectoryContainer* trajectoryContainer = evt->GetTrajectoryContainer();75 G4int n_trajectories = 0;76 if (trajectoryContainer) n_trajectories = trajectoryContainer->entries();77 for (G4int i=0; i<n_trajectories; i++) {78 G4Trajectory* trj = (G4Trajectory*)79 ((*(evt->GetTrajectoryContainer()))[i]);80 trj->DrawTrajectory(1000);81 }82 }83 69 } 84 70 -
trunk/examples/extended/electromagnetic/TestEm13/src/EventActionMessenger.cc
r1230 r1337 25 25 // 26 26 // $Id: EventActionMessenger.cc,v 1.2 2006/06/29 16:44:32 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/TestEm13/src/PhysListEmLivermore.cc
r1230 r1337 25 25 // 26 26 // 27 // $Id: PhysListEmLivermore.cc,v 1. 5 2009/11/19 17:30:25maire Exp $28 // GEANT4 tag $Name: geant4-09-0 3-cand-01 $27 // $Id: PhysListEmLivermore.cc,v 1.6 2010/04/02 15:46:31 maire Exp $ 28 // GEANT4 tag $Name: geant4-09-04-beta-01 $ 29 29 // 30 30 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... … … 140 140 eIoniModel->SetHighEnergyLimit(highEnergyLimit); 141 141 eIoni->AddEmModel(0, eIoniModel, new G4UniversalFluctuation() ); 142 pmanager->AddProcess(eIoni, -1, 142 pmanager->AddProcess(eIoni, -1,-1, 1); 143 143 144 144 G4eBremsstrahlung* eBrem = new G4eBremsstrahlung(); … … 147 147 eBremModel->SetHighEnergyLimit(highEnergyLimit); 148 148 eBrem->AddEmModel(0, eBremModel); 149 pmanager->AddProcess(eBrem, -1, 2, 2);149 pmanager->AddProcess(eBrem, -1,-1, 2); 150 150 151 151 } else if (particleName == "e+") { 152 152 //positron 153 pmanager->AddProcess(new G4eIonisation, -1, 154 pmanager->AddProcess(new G4eBremsstrahlung, -1, 2, 2);153 pmanager->AddProcess(new G4eIonisation, -1,-1, 1); 154 pmanager->AddProcess(new G4eBremsstrahlung, -1,-1, 2); 155 155 pmanager->AddProcess(new G4eplusAnnihilation, 0,-1, 3); 156 156 … … 158 158 particleName == "mu-" ) { 159 159 //muon 160 pmanager->AddProcess(new G4MuIonisation, -1, 161 pmanager->AddProcess(new G4MuBremsstrahlung, -1, 2, 2);162 pmanager->AddProcess(new G4MuPairProduction, -1, 3, 3);160 pmanager->AddProcess(new G4MuIonisation, -1,-1, 1); 161 pmanager->AddProcess(new G4MuBremsstrahlung, -1,-1, 2); 162 pmanager->AddProcess(new G4MuPairProduction, -1,-1, 3); 163 163 164 164 } else if( particleName == "alpha" || particleName == "GenericIon" ) { 165 pmanager->AddProcess(new G4ionIonisation, -1, 165 pmanager->AddProcess(new G4ionIonisation, -1,-1, 1); 166 166 167 167 } else if ((!particle->IsShortLived()) && … … 169 169 (particle->GetParticleName() != "chargedgeantino")) { 170 170 //all others charged particles except geantino 171 pmanager->AddProcess(new G4hIonisation, -1, 171 pmanager->AddProcess(new G4hIonisation, -1,-1, 1); 172 172 } 173 173 } -
trunk/examples/extended/electromagnetic/TestEm13/src/PhysListEmPenelope.cc
r1230 r1337 25 25 // 26 26 // 27 // $Id: PhysListEmPenelope.cc,v 1. 6 2009/11/19 17:30:25maire Exp $28 // GEANT4 tag $Name: geant4-09-0 3-cand-01 $27 // $Id: PhysListEmPenelope.cc,v 1.7 2010/04/02 15:46:31 maire Exp $ 28 // GEANT4 tag $Name: geant4-09-04-beta-01 $ 29 29 // 30 30 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... … … 141 141 eIoniModel->SetHighEnergyLimit(highEnergyLimit); 142 142 eIoni->AddEmModel(0, eIoniModel, new G4UniversalFluctuation() ); 143 pmanager->AddProcess(eIoni, -1, 143 pmanager->AddProcess(eIoni, -1,-1, 1); 144 144 145 145 G4eBremsstrahlung* eBrem = new G4eBremsstrahlung(); … … 148 148 eBremModel->SetHighEnergyLimit(highEnergyLimit); 149 149 eBrem->AddEmModel(0, eBremModel); 150 pmanager->AddProcess(eBrem, -1, 2, 2);150 pmanager->AddProcess(eBrem, -1,-1, 2); 151 151 152 152 } else if (particleName == "e+") { … … 157 157 eIoniModel->SetHighEnergyLimit(highEnergyLimit); 158 158 eIoni->AddEmModel(0, eIoniModel, new G4UniversalFluctuation() ); 159 pmanager->AddProcess(eIoni, -1, 159 pmanager->AddProcess(eIoni, -1,-1, 1); 160 160 161 161 G4eBremsstrahlung* eBrem = new G4eBremsstrahlung(); … … 164 164 eBremModel->SetHighEnergyLimit(highEnergyLimit); 165 165 eBrem->AddEmModel(0, eBremModel); 166 pmanager->AddProcess(eBrem, -1, 2, 2);166 pmanager->AddProcess(eBrem, -1,-1, 2); 167 167 168 168 G4eplusAnnihilation* eAnni = new G4eplusAnnihilation(); … … 176 176 particleName == "mu-" ) { 177 177 //muon 178 pmanager->AddProcess(new G4MuIonisation, -1, 179 pmanager->AddProcess(new G4MuBremsstrahlung, -1, 2, 2);180 pmanager->AddProcess(new G4MuPairProduction, -1, 3, 3);178 pmanager->AddProcess(new G4MuIonisation, -1,-1, 1); 179 pmanager->AddProcess(new G4MuBremsstrahlung, -1,-1, 2); 180 pmanager->AddProcess(new G4MuPairProduction, -1,-1, 3); 181 181 182 182 } else if( particleName == "alpha" || particleName == "GenericIon" ) { 183 pmanager->AddProcess(new G4ionIonisation, -1, 183 pmanager->AddProcess(new G4ionIonisation, -1,-1, 1); 184 184 185 185 } else if ((!particle->IsShortLived()) && … … 187 187 (particle->GetParticleName() != "chargedgeantino")) { 188 188 //all others charged particles except geantino 189 pmanager->AddProcess(new G4hIonisation, -1, 189 pmanager->AddProcess(new G4hIonisation, -1,-1, 1); 190 190 } 191 191 } -
trunk/examples/extended/electromagnetic/TestEm13/src/PhysListEmStandard.cc
r1230 r1337 25 25 // 26 26 // 27 // $Id: PhysListEmStandard.cc,v 1. 3 2006/06/29 16:44:38 gunterExp $28 // GEANT4 tag $Name: geant4-09-0 3-cand-01 $27 // $Id: PhysListEmStandard.cc,v 1.4 2010/04/02 15:46:31 maire Exp $ 28 // GEANT4 tag $Name: geant4-09-04-beta-01 $ 29 29 // 30 30 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... … … 81 81 } else if (particleName == "e-") { 82 82 //electron 83 pmanager->AddProcess(new G4eIonisation, -1, 84 pmanager->AddProcess(new G4eBremsstrahlung, -1, 2,2);83 pmanager->AddProcess(new G4eIonisation, -1,-1,1); 84 pmanager->AddProcess(new G4eBremsstrahlung, -1,-1,2); 85 85 86 86 } else if (particleName == "e+") { 87 87 //positron 88 pmanager->AddProcess(new G4eIonisation, -1, 89 pmanager->AddProcess(new G4eBremsstrahlung, -1, 2,2);88 pmanager->AddProcess(new G4eIonisation, -1,-1,1); 89 pmanager->AddProcess(new G4eBremsstrahlung, -1,-1,2); 90 90 pmanager->AddProcess(new G4eplusAnnihilation, 0,-1,3); 91 91 … … 93 93 particleName == "mu-" ) { 94 94 //muon 95 pmanager->AddProcess(new G4MuIonisation, -1, 96 pmanager->AddProcess(new G4MuBremsstrahlung, -1, 2,2);97 pmanager->AddProcess(new G4MuPairProduction, -1, 3,3);95 pmanager->AddProcess(new G4MuIonisation, -1,-1,1); 96 pmanager->AddProcess(new G4MuBremsstrahlung, -1,-1,2); 97 pmanager->AddProcess(new G4MuPairProduction, -1,-1,3); 98 98 99 99 } else if( particleName == "alpha" || particleName == "GenericIon" ) { 100 pmanager->AddProcess(new G4ionIonisation, -1, 100 pmanager->AddProcess(new G4ionIonisation, -1,-1,1); 101 101 102 102 } else if ((!particle->IsShortLived()) && … … 104 104 (particle->GetParticleName() != "chargedgeantino")) { 105 105 //all others charged particles except geantino 106 pmanager->AddProcess(new G4hIonisation, -1, 1,1);106 pmanager->AddProcess(new G4hIonisation, -1,-1,1); 107 107 } 108 108 } -
trunk/examples/extended/electromagnetic/TestEm13/src/PhysicsList.cc
r1230 r1337 25 25 // 26 26 // 27 // $Id: PhysicsList.cc,v 1. 7 2009/11/19 17:30:25maire Exp $28 // GEANT4 tag $Name: geant4-09-0 3-cand-01 $27 // $Id: PhysicsList.cc,v 1.9 2010/04/05 13:45:17 maire Exp $ 28 // GEANT4 tag $Name: geant4-09-04-beta-01 $ 29 29 // 30 30 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... … … 183 183 // 184 184 G4EmProcessOptions emOptions; 185 emOptions.SetStepFunction(1., 1*mm);186 185 emOptions.SetIntegral(false); 187 emOptions.SetLossFluctuations(false);188 186 } 189 187 … … 227 225 228 226 void PhysicsList::SetCuts() 229 { 227 { 228 // fixe lower limit for cut 229 G4ProductionCutsTable::GetProductionCutsTable()->SetEnergyRange(100*eV, 1*GeV); 230 230 231 // set cut values for gamma at first and for e- second and next for e+, 231 232 // because some processes for e+/e- need cut values for gamma -
trunk/examples/extended/electromagnetic/TestEm13/src/PhysicsListMessenger.cc
r1230 r1337 25 25 // 26 26 // $Id: PhysicsListMessenger.cc,v 1.3 2006/06/29 16:44:43 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/TestEm13/src/PrimaryGeneratorAction.cc
r1230 r1337 25 25 // 26 26 // $Id: PrimaryGeneratorAction.cc,v 1.2 2006/06/29 16:44:45 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/TestEm13/src/RunAction.cc
r1230 r1337 24 24 // ******************************************************************** 25 25 // 26 // $Id: RunAction.cc,v 1. 6 2006/06/29 16:44:47 gunterExp $27 // GEANT4 tag $Name: geant4-09-0 3-cand-01 $26 // $Id: RunAction.cc,v 1.8 2010/04/05 13:45:17 maire Exp $ 27 // GEANT4 tag $Name: geant4-09-04-beta-01 $ 28 28 // 29 29 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... … … 47 47 48 48 RunAction::RunAction(DetectorConstruction* det, PrimaryGeneratorAction* prim) 49 : detector(det), primary(prim) , ProcCounter(0)49 : detector(det), primary(prim) 50 50 { } 51 51 … … 64 64 G4RunManager::GetRunManager()->SetRandomNumberStore(false); 65 65 CLHEP::HepRandom::showEngineStatus(); 66 67 ProcCounter = new ProcessesCount;68 }69 70 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......71 72 void RunAction::CountProcesses(G4String procName)73 {74 //does the process already encounted ?75 size_t nbProc = ProcCounter->size();76 size_t i = 0;77 while ((i<nbProc)&&((*ProcCounter)[i]->GetName()!=procName)) i++;78 if (i == nbProc) ProcCounter->push_back( new OneProcessCount(procName));79 80 (*ProcCounter)[i]->Count();81 66 } 82 67 … … 108 93 G4int survive = 0; 109 94 G4cout << "\n Process calls frequency --->"; 110 for (size_t i=0; i< ProcCounter->size();i++) { 111 G4String procName = (*ProcCounter)[i]->GetName(); 112 G4int count = (*ProcCounter)[i]->GetCounter(); 95 std::map<G4String,G4int>::iterator it; 96 for (it = procCounter.begin(); it != procCounter.end(); it++) { 97 G4String procName = it->first; 98 G4int count = it->second; 113 99 totalCount += count; 114 100 G4cout << "\t" << procName << " = " << count; 115 101 if (procName == "Transportation") survive = count; 116 } 102 } 117 103 G4cout << G4endl; 118 104 if (totalCount == 0) return; … … 130 116 //compute cross section and related quantities 131 117 // 132 G4double CrossSection = std::log(1./ratio)/tickness;118 G4double CrossSection = - std::log(ratio)/tickness; 133 119 G4double massicCS = CrossSection/density; 134 120 … … 142 128 G4EmCalculator emCalculator; 143 129 G4double sumc = 0.0; 144 for ( size_t i=0; i< ProcCounter->size();i++) {145 G4String procName = (*ProcCounter)[i]->GetName();130 for (it = procCounter.begin(); it != procCounter.end(); it++) { 131 G4String procName = it->first; 146 132 G4double massSigma = 147 133 emCalculator.GetCrossSectionPerVolume(energy,particle, … … 167 153 G4cout.precision(prec); 168 154 169 // delete and remove all contents in ProcCounter 170 while (ProcCounter->size()>0){ 171 OneProcessCount* aProcCount=ProcCounter->back(); 172 ProcCounter->pop_back(); 173 delete aProcCount; 174 } 175 delete ProcCounter; 155 // remove all contents in procCounter 156 procCounter.clear(); 176 157 177 158 // show Rndm status -
trunk/examples/extended/electromagnetic/TestEm13/src/SteppingAction.cc
r1230 r1337 24 24 // ******************************************************************** 25 25 // 26 // $Id: SteppingAction.cc,v 1. 7 2009/09/25 11:27:13maire Exp $27 // GEANT4 tag $Name: geant4-09-0 3-cand-01 $26 // $Id: SteppingAction.cc,v 1.8 2010/04/02 15:46:31 maire Exp $ 27 // GEANT4 tag $Name: geant4-09-04-beta-01 $ 28 28 // 29 29 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... … … 53 53 G4String procName = endPoint->GetProcessDefinedStep()->GetProcessName(); 54 54 55 //count real interaction or transmitted beam 56 // 57 G4double charge = aStep->GetTrack()->GetDefinition()->GetPDGCharge(); 58 G4TrackVector* secondary = fpSteppingManager->GetSecondary(); 59 G4bool interaction = ((charge == 0.) || ((*secondary).size() > 0)); 60 G4bool transmit = (endPoint->GetStepStatus() <= fGeomBoundary); 61 62 if (interaction || transmit) { 63 runAction->CountProcesses(procName); 64 } 55 runAction->CountProcesses(procName); 65 56 66 57 // kill event after first interaction -
trunk/examples/extended/electromagnetic/TestEm13/src/SteppingVerbose.cc
r1230 r1337 25 25 // 26 26 // $Id: SteppingVerbose.cc,v 1.2 2006/06/29 16:44:51 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/TestEm13/vis.mac
r807 r1337 1 1 # 2 # Macro file for the initialization phase of "TestEm 13.cc"2 # Macro file for the initialization phase of "TestEm6.cc" 3 3 # 4 4 # Sets some default verbose … … 10 10 /run/initialize 11 11 # 12 # Create empty scene ("world" is default)13 /vis/ scene/create12 # Use this open statement to create an OpenGL view: 13 /vis/open OGL 600x600-0+0 14 14 # 15 # Create a scene handler for a specific graphics system 16 # Edit the next line(s) to choose another graphic system 17 # 18 /vis/open OGLIX 19 # 15 # Use this open statement to create a .prim file suitable for 16 # viewing in DAWN: 20 17 #/vis/open DAWNFILE 21 18 # 22 # Draw scene 19 # Use this open statement to create a .heprep file suitable for 20 # viewing in HepRApp: 21 #/vis/open HepRepFile 22 # 23 # Use this open statement to create a .wrl file suitable for 24 # viewing in a VRML viewer: 25 #/vis/open VRML2FILE 26 # 27 # Disable auto refresh and quieten vis messages whilst scene and 28 # trajectories are established: 29 /vis/viewer/set/autoRefresh false 30 /vis/verbose errors 31 # 32 # Draw geometry: 33 /vis/drawVolume 34 # 35 # Specify view angle: 36 #/vis/viewer/set/viewpointThetaPhi 90. 0. 37 # 38 # Specify zoom value: 23 39 /vis/viewer/zoom 1.4 24 /vis/viewer/flush25 40 # 26 # for drawing the tracks 27 # if too many tracks cause core dump => storeTrajectory 0 28 /tracking/storeTrajectory 1 41 # Specify style (surface or wireframe): 42 #/vis/viewer/set/style surface 43 # 44 # Draw coordinate axes: 45 #/vis/scene/add/axes 0 0 0 1 m 46 # 47 # Draw smooth trajectories at end of event, showing trajectory points 48 # as markers 2 pixels wide: 49 /vis/scene/add/trajectories smooth 50 /vis/modeling/trajectories/create/drawByCharge 51 /vis/modeling/trajectories/drawByCharge-0/default/setDrawStepPts true 52 /vis/modeling/trajectories/drawByCharge-0/default/setStepPtsSize 2 53 # (if too many tracks cause core dump => /tracking/storeTrajectory 0) 54 # 55 # Draw hits at end of event: 56 #/vis/scene/add/hits 57 # 58 # To draw only gammas: 59 #/vis/filtering/trajectories/create/particleFilter 60 #/vis/filtering/trajectories/particleFilter-0/add gamma 61 # 62 # To invert the above, drawing all particles except gammas, 63 # keep the above two lines but also add: 64 #/vis/filtering/trajectories/particleFilter-0/invert true 65 # 66 # Many other options are available with /vis/modeling and /vis/filtering. 67 # For example, to select colour by particle ID: 68 #/vis/modeling/trajectories/create/drawByParticleID 69 #/vis/modeling/trajectories/drawByParticleID-0/set e- blue 70 # 71 # To superimpose all of the events from a given run: 29 72 /vis/scene/endOfEventAction accumulate 73 # 74 # Re-establish auto refreshing and verbosity: 75 /vis/viewer/set/autoRefresh true 76 /vis/verbose warnings 77 # 78 # For file-based drivers, use this to create an empty detector view: 79 #/vis/viewer/flush
Note: See TracChangeset
for help on using the changeset viewer.