Changeset 1337 for trunk/examples/extended/electromagnetic/TestEm14
- Timestamp:
- Sep 30, 2010, 2:47:17 PM (14 years ago)
- Location:
- trunk/examples/extended/electromagnetic/TestEm14
- Files:
-
- 36 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/examples/extended/electromagnetic/TestEm14/History
r807 r1337 1 $Id: History,v 1. 12 2007/11/13 12:13:32 maireExp $1 $Id: History,v 1.22 2010/06/07 05:40:46 perl Exp $ 2 2 ------------------------------------------------------------------- 3 3 … … 16 16 ---------------------------------------------------------- 17 17 18 06-06-10 J.Perl (testem14-V09-03-03) 19 - Remove unused variable in EventAction 20 21 03-06-10 J.Perl (testem14-V09-03-02) 22 - Updated vis usage 23 24 05-04-10 mma (testem14-V09-03-01) 25 - PhysicsList: remove non pertinent EmOptions 26 - RunAction: replace ProcessCount by map<string, int> 27 28 02-04-10 mma (testem14-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 - remove SteppingMessenger 34 - TestEm14.cc : introduction of G4UIExecutive 35 - update README 36 37 19-11-09 mma (testem14-V09-02-01) 38 - add new livermore and penelope physics lists 39 40 25-09-09 mma (testem14-V09-02-00) 41 - Remove old livermore and penelope physics lists 42 43 24-09-08 mma (testem14-V09-01-03) 44 - HistoManager : root as default format 45 46 12-06-08 mma (testem14-V09-01-02) 47 - Remove AIDA from GNUmakefile 48 49 07-05-08 mma (testem14-V09-01-01) 50 - README : update Aida informations 51 52 08-01-08 mma (testem14-V09-01-00) 53 - HistoManager : ascii[0] = flag to control creation of .ascii file 54 18 55 13-11-07 mma (testem14-V09-00-01) 19 56 - HistoManager/HistoMessenger : print selected histos on ascii file -
trunk/examples/extended/electromagnetic/TestEm14/README
r807 r1337 1 $Id: README,v 1. 6 2007/11/13 12:13:32 maire Exp $1 $Id: README,v 1.9 2010/04/02 13:22:02 maire Exp $ 2 2 ------------------------------------------------------------------- 3 3 … … 28 28 The physics list contains the standard electromagnetic processes. 29 29 In order not to introduce 'artificial' constraints on the step size, the 30 multiple scattering is not instanciated, and there is no limitation from31 the maximum energy lost per step.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 … … 79 79 the commands: 80 80 /testem/histo/setFileName name (default testem14) 81 /testem/histo/setFileType name (default hbook)81 /testem/histo/setFileType name (default root) 82 82 83 83 It is also possible to print selected histograms on an ascii file: … … 130 130 131 131 To use histograms, at least one of the AIDA implementations should be 132 available (see http://aida.freehep.org).132 available. See InstallAida.txt 133 133 134 8a - PI135 136 A package including AIDA and extended interfaces also using Python is PI,137 available from: http://cern.ch/pi138 139 Once installed PI or PI-Lite in a specified local area $MYPY, it is required140 to add the installation path to $PATH, i.e. for example, for release 1.2.1 of141 PI:142 setenv PATH ${PATH}:$MYPI/1.2.1/app/releases/PI/PI_1_2_1/rh73_gcc32/bin143 144 CERN users can use the PATH to the LCG area on AFS.145 Before running the example the command should be issued:146 eval `aida-config --runtime csh`147 148 8b - OpenScientist149 150 OpenScientist is available at http://OpenScientist.lal.in2p3.fr.151 152 You have to "setup" the OpenScientist AIDA implementation before compiling153 (then with G4ANALYSIS_USE set) and running your Geant4 application.154 155 On UNIX you setup, with a csh flavoured shell :156 csh> source <<OpenScientist install path>/aida-setup.csh157 or with a sh flavoured shell :158 sh> . <<OpenScientist install path>/aida-setup.sh159 On Windows :160 DOS> call <<OpenScientist install path>/aida-setup.bat161 162 You can use various file formats for writing (AIDA-XML, hbook, root).163 These formats are readable by the Lab onx interactive program164 or the OpenPAW application. See the web pages.165 166 167 With OpenPAW, on a run.hbook file, one can view the histograms168 with something like :169 OS> opaw170 opaw> h/file 1 run.hbook ( or opaw> h/file 1 run.aida or run.root)171 opaw> zone 2 2172 opaw> h/plot 1173 opaw> h/plot 2 -
trunk/examples/extended/electromagnetic/TestEm14/TestEm14.cc
r1230 r1337 24 24 // ******************************************************************** 25 25 // 26 // $Id: TestEm14.cc,v 1. 4 2007/06/23 22:23:20maire Exp $27 // GEANT4 tag $Name: geant4-09-0 3-cand-01 $26 // $Id: TestEm14.cc,v 1.5 2010/04/02 13:22:02 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 … … 94 96 visManager->Initialize(); 95 97 #endif 96 97 G4UIsession * session = 0; 98 #ifdef G4UI_USE_TCSH 99 session = new G4UIterminal(new G4UItcsh); 100 #else 101 session = new G4UIterminal(); 102 #endif 103 session->SessionStart(); 104 delete session; 98 99 #ifdef G4UI_USE 100 G4UIExecutive * ui = new G4UIExecutive(argc,argv); 101 ui->SessionStart(); 102 delete ui; 103 #endif 105 104 106 105 #ifdef G4VIS_USE -
trunk/examples/extended/electromagnetic/TestEm14/TestEm14.in
r807 r1337 1 # $Id: TestEm14.in,v 1. 3 2006/05/10 11:15:33maire Exp $1 # $Id: TestEm14.in,v 1.6 2010/04/05 18:02:39 maire Exp $ 2 2 # 3 3 # Macro file for "TestEm14.cc" … … 12 12 #### /testem/det/setSize 100 m 13 13 # 14 #### /testem/phys/addPhysics livermore 15 #### /testem/phys/addPhysics penelope 14 /testem/phys/addPhysics standard 16 15 # 17 16 /run/initialize … … 20 19 /gun/energy 100 keV 21 20 # 22 /run/beamOn 100000 21 /run/beamOn 1000000 23 22 # 24 23 /gun/particle e- 25 24 /gun/energy 100 MeV 26 25 # 27 /run/beamOn 100000 26 /run/beamOn 1000000 -
trunk/examples/extended/electromagnetic/TestEm14/TestEm14.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 100 m 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 # … … 81 86 /gun/energy 100 keV 82 87 # 83 /run/beamOn 100000 84 85 phot: Total cross sections from Sandia parametrisation. 86 Sampling according PhotoElectric model 87 88 compt: Total cross sections has a good parametrisation from 10 KeV to (100/Z) GeV 89 Sampling according Klein-Nishina model 90 tables are built for gamma 91 Lambda tables from 100 eV to 100 GeV in 90 bins. 92 93 conv: Total cross sections has a good parametrisation from 1.5 MeV to 100 GeV for all Z; 94 sampling secondary e+e- according Bethe-Heitler model 95 tables are built for gamma 96 Lambda tables from 1.022 MeV to 100 GeV in 100 bins. 97 98 eIoni: tables are built for e- 99 dE/dx and range tables from 100 eV to 100 TeV in 120 bins. 100 Lambda tables from threshold to 100 TeV in 120 bins. 101 Delta cross sections and sampling from MollerBhabha model 102 Good description from 1 KeV to 100 GeV. 103 Step function: finalRange(mm)= 1, dRoverRange= 1, integral: 0, fluct: 0 104 105 eBrem: tables are built for e- 106 dE/dx and range tables from 100 eV to 100 TeV in 120 bins. 107 Lambda tables from threshold to 100 TeV in 120 bins. 108 Total cross sections and sampling from StandBrem model (based on the EEDL data library) 109 Good description from 1 KeV to 100 GeV, log scale extrapolation above 100 GeV. LPM flag 1 110 111 eIoni: tables are built for e+ 112 dE/dx and range tables from 100 eV to 100 TeV in 120 bins. 113 Lambda tables from threshold to 100 TeV in 120 bins. 114 Delta cross sections and sampling from MollerBhabha model 115 Good description from 1 KeV to 100 GeV. 116 Step function: finalRange(mm)= 1, dRoverRange= 1, integral: 0, fluct: 0 117 118 eBrem: tables are built for e+ 119 dE/dx and range tables from 100 eV to 100 TeV in 120 bins. 120 Lambda tables from threshold to 100 TeV in 120 bins. 121 Total cross sections and sampling from StandBrem model (based on the EEDL data library) 122 Good description from 1 KeV to 100 GeV, log scale extrapolation above 100 GeV. LPM flag 1 123 124 annihil: Sampling according eplus2gg model 125 tables are built for e+ 126 Lambda tables from 100 eV to 100 TeV in 120 bins. 127 128 hIoni: tables are built for proton 129 dE/dx and range tables from 100 eV to 100 TeV in 120 bins. 130 Lambda tables from threshold to 100 TeV in 120 bins. 131 Scaling relation is used from proton dE/dx and range. 132 Delta cross sections and sampling from BetheBloch model for scaled energy > 2 MeV 133 Parametrisation from Bragg for protons below. NuclearStopping= 1 134 Step function: finalRange(mm)= 1, dRoverRange= 1, integral: 0, fluct: 0 135 136 ionIoni: tables are built for GenericIon 137 dE/dx and range tables from 100 eV to 100 TeV in 120 bins. 138 Lambda tables from threshold to 100 TeV in 120 bins. 139 Scaling relation is used from proton dE/dx and range. 140 Delta cross sections and sampling from BetheBloch model for scaled energy > 2 MeV 141 Parametrisation from BraggIon for protons below. NuclearStopping= 1 142 143 Stopping Power data for 8 ion/material pairs are used. 144 Step function: finalRange(mm)= 1, dRoverRange= 1, integral: 0, fluct: 0 145 146 hIoni: tables are built for anti_proton 147 dE/dx and range tables from 100 eV to 100 TeV in 120 bins. 148 Lambda tables from threshold to 100 TeV in 120 bins. 149 Scaling relation is used from proton dE/dx and range. 150 Delta cross sections and sampling from BetheBloch model for scaled energy > 2 MeV 151 Parametrisation from Bragg for protons below. NuclearStopping= 1 152 Step function: finalRange(mm)= 1, dRoverRange= 1, integral: 0, fluct: 0 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= 1, integral: 0, fluct: 0 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= 1, integral: 0, fluct: 0 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 187 188 hIoni: tables are built for pi+ 189 dE/dx and range tables from 100 eV to 100 TeV in 120 bins. 190 Lambda tables from threshold to 100 TeV in 120 bins. 191 Scaling relation is used from proton dE/dx and range. 192 Delta cross sections and sampling from BetheBloch model for scaled energy > 0.297504 MeV 193 Parametrisation from Bragg for protons below. NuclearStopping= 1 194 Step function: finalRange(mm)= 1, dRoverRange= 1, integral: 0, fluct: 0 195 196 hIoni: tables are built for pi- 197 dE/dx and range tables from 100 eV to 100 TeV in 120 bins. 198 Lambda tables from threshold to 100 TeV in 120 bins. 199 Scaling relation is used from proton dE/dx and range. 200 Delta cross sections and sampling from BetheBloch model for scaled energy > 0.297504 MeV 201 Parametrisation from Bragg for protons below. NuclearStopping= 1 202 Step function: finalRange(mm)= 1, dRoverRange= 1, integral: 0, fluct: 0 88 /run/beamOn 1000000 89 90 phot: for gamma SubType= 12 91 ===== EM models for the G4Region DefaultRegionForTheWorld ====== 92 PhotoElectric : Emin= 0 eV Emax= 10 TeV 93 94 compt: for gamma SubType= 13 95 Lambda tables from 100 eV to 10 TeV in 77 bins, spline: 1 96 ===== EM models for the G4Region DefaultRegionForTheWorld ====== 97 Klein-Nishina : Emin= 0 eV Emax= 10 TeV 98 99 conv: for gamma SubType= 14 100 Lambda tables from 1.022 MeV to 10 TeV in 77 bins, spline: 1 101 ===== EM models for the G4Region DefaultRegionForTheWorld ====== 102 Bethe-Heitler : Emin= 0 eV Emax= 10 TeV 103 104 eIoni: for e- SubType= 2 105 dE/dx and range tables from 100 eV to 10 TeV in 77 bins 106 Lambda tables from threshold to 10 TeV in 77 bins, spline: 1 107 finalRange(mm)= 1, dRoverRange= 0.2, integral: 0, fluct: 1, linLossLimit= 0.01 108 ===== EM models for the G4Region DefaultRegionForTheWorld ====== 109 MollerBhabha : Emin= 0 eV Emax= 10 TeV 110 111 eBrem: for e- SubType= 3 112 dE/dx and range tables from 100 eV to 10 TeV in 77 bins 113 Lambda tables from threshold to 10 TeV in 77 bins, spline: 1 114 LPM flag: 1 for E > 1 GeV 115 ===== EM models for the G4Region DefaultRegionForTheWorld ====== 116 eBrem : Emin= 0 eV Emax= 1 GeV 117 eBremRel : Emin= 1 GeV Emax= 10 TeV 118 119 eIoni: for e+ SubType= 2 120 dE/dx and range tables from 100 eV to 10 TeV in 77 bins 121 Lambda tables from threshold to 10 TeV in 77 bins, spline: 1 122 finalRange(mm)= 1, dRoverRange= 0.2, integral: 0, fluct: 1, linLossLimit= 0.01 123 ===== EM models for the G4Region DefaultRegionForTheWorld ====== 124 MollerBhabha : Emin= 0 eV Emax= 10 TeV 125 126 eBrem: for e+ SubType= 3 127 dE/dx and range tables from 100 eV to 10 TeV in 77 bins 128 Lambda tables from threshold to 10 TeV in 77 bins, spline: 1 129 LPM flag: 1 for E > 1 GeV 130 ===== EM models for the G4Region DefaultRegionForTheWorld ====== 131 eBrem : Emin= 0 eV Emax= 1 GeV 132 eBremRel : Emin= 1 GeV Emax= 10 TeV 133 134 annihil: for e+ SubType= 5 135 Lambda tables from 100 eV to 10 TeV in 77 bins, spline: 1 136 ===== EM models for the G4Region DefaultRegionForTheWorld ====== 137 eplus2gg : Emin= 0 eV Emax= 10 TeV 138 139 hIoni: for proton SubType= 2 140 dE/dx and range tables from 100 eV to 10 TeV in 77 bins 141 Lambda tables from threshold to 10 TeV in 77 bins, spline: 1 142 finalRange(mm)= 1, dRoverRange= 0.2, integral: 0, fluct: 1, linLossLimit= 0.01 143 ===== EM models for the G4Region DefaultRegionForTheWorld ====== 144 Bragg : Emin= 0 eV Emax= 2 MeV 145 BetheBloch : Emin= 2 MeV Emax= 10 TeV 146 147 ionIoni: for GenericIon SubType= 2 148 dE/dx and range tables from 100 eV to 10 TeV in 77 bins 149 Lambda tables from threshold to 10 TeV in 77 bins, spline: 1 150 finalRange(mm)= 0.1, dRoverRange= 0.1, integral: 0, fluct: 1, linLossLimit= 0.02 151 Stopping Power data for 17 ion/material pairs, nuclearStopping: 1 152 ===== EM models for the G4Region DefaultRegionForTheWorld ====== 153 BraggIon : Emin= 0 eV Emax= 2 MeV 154 BetheBloch : Emin= 2 MeV Emax= 10 TeV 155 156 hIoni: for anti_proton 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: 0, fluct: 1, linLossLimit= 0.01 160 ===== EM models for the G4Region DefaultRegionForTheWorld ====== 161 ICRU73QO : Emin= 0 eV Emax= 2 MeV 162 BetheBloch : Emin= 2 MeV Emax= 10 TeV 163 164 hIoni: for kaon+ SubType= 2 165 dE/dx and range tables from 100 eV to 10 TeV in 77 bins 166 Lambda tables from threshold to 10 TeV in 77 bins, spline: 1 167 finalRange(mm)= 1, dRoverRange= 0.2, integral: 0, fluct: 1, linLossLimit= 0.01 168 ===== EM models for the G4Region DefaultRegionForTheWorld ====== 169 Bragg : Emin= 0 eV Emax= 1.05231 MeV 170 BetheBloch : Emin= 1.05231 MeV Emax= 10 TeV 171 172 hIoni: for kaon- SubType= 2 173 dE/dx and range tables from 100 eV to 10 TeV in 77 bins 174 Lambda tables from threshold to 10 TeV in 77 bins, spline: 1 175 finalRange(mm)= 1, dRoverRange= 0.2, integral: 0, fluct: 1, linLossLimit= 0.01 176 ===== EM models for the G4Region DefaultRegionForTheWorld ====== 177 ICRU73QO : Emin= 0 eV Emax= 1.05231 MeV 178 BetheBloch : Emin= 1.05231 MeV Emax= 10 TeV 179 180 muIoni: for mu+ SubType= 2 181 dE/dx and range tables from 100 eV to 10 TeV in 77 bins 182 Lambda tables from threshold to 10 TeV in 77 bins, spline: 1 183 finalRange(mm)= 1, dRoverRange= 0.2, integral: 0, fluct: 1, linLossLimit= 0.01 184 ===== EM models for the G4Region DefaultRegionForTheWorld ====== 185 Bragg : Emin= 0 eV Emax= 200 keV 186 BetheBloch : Emin= 200 keV Emax= 1 GeV 187 MuBetheBloch : Emin= 1 GeV Emax= 10 TeV 188 189 muBrems: for mu+ SubType= 3 190 dE/dx and range tables from 100 eV to 10 TeV in 77 bins 191 Lambda tables from threshold to 10 TeV in 77 bins, spline: 1 192 ===== EM models for the G4Region DefaultRegionForTheWorld ====== 193 MuBrem : Emin= 0 eV Emax= 10 TeV 194 195 muPairProd: for mu+ SubType= 4 196 dE/dx and range tables from 100 eV to 10 TeV in 77 bins 197 Lambda tables from threshold to 10 TeV in 77 bins, spline: 1 198 ===== EM models for the G4Region DefaultRegionForTheWorld ====== 199 muPairProd : Emin= 0 eV Emax= 10 TeV 200 201 muIoni: for mu- SubType= 2 202 dE/dx and range tables from 100 eV to 10 TeV in 77 bins 203 Lambda tables from threshold to 10 TeV in 77 bins, spline: 1 204 finalRange(mm)= 1, dRoverRange= 0.2, integral: 0, fluct: 1, linLossLimit= 0.01 205 ===== EM models for the G4Region DefaultRegionForTheWorld ====== 206 ICRU73QO : Emin= 0 eV Emax= 200 keV 207 BetheBloch : Emin= 200 keV Emax= 1 GeV 208 MuBetheBloch : Emin= 1 GeV Emax= 10 TeV 209 210 muBrems: for mu- SubType= 3 211 dE/dx and range tables from 100 eV to 10 TeV in 77 bins 212 Lambda tables from threshold to 10 TeV in 77 bins, spline: 1 213 ===== EM models for the G4Region DefaultRegionForTheWorld ====== 214 MuBrem : Emin= 0 eV Emax= 10 TeV 215 216 muPairProd: for mu- SubType= 4 217 dE/dx and range tables from 100 eV to 10 TeV in 77 bins 218 Lambda tables from threshold to 10 TeV in 77 bins, spline: 1 219 ===== EM models for the G4Region DefaultRegionForTheWorld ====== 220 muPairProd : Emin= 0 eV Emax= 10 TeV 221 222 hIoni: for pi+ SubType= 2 223 dE/dx and range tables from 100 eV to 10 TeV in 77 bins 224 Lambda tables from threshold to 10 TeV in 77 bins, spline: 1 225 finalRange(mm)= 1, dRoverRange= 0.2, integral: 0, fluct: 1, linLossLimit= 0.01 226 ===== EM models for the G4Region DefaultRegionForTheWorld ====== 227 Bragg : Emin= 0 eV Emax= 297.504 keV 228 BetheBloch : Emin= 297.504 keV Emax= 10 TeV 229 230 hIoni: for pi- SubType= 2 231 dE/dx and range tables from 100 eV to 10 TeV in 77 bins 232 Lambda tables from threshold to 10 TeV in 77 bins, spline: 1 233 finalRange(mm)= 1, dRoverRange= 0.2, integral: 0, fluct: 1, linLossLimit= 0.01 234 ===== EM models for the G4Region DefaultRegionForTheWorld ====== 235 ICRU73QO : Emin= 0 eV Emax= 297.504 keV 236 BetheBloch : Emin= 297.504 keV Emax= 10 TeV 203 237 204 238 Region <DefaultRegionForTheWorld> -- appears in <Water> world volume … … 206 240 Pointers : G4VUserRegionInformation[0], G4UserLimits[0], G4FastSimulationManager[0], G4UserSteppingAction[0] 207 241 Materials : Water 208 Production cuts : gamma 1 mm e- 1 mm e+ 1 mm242 Production cuts : gamma 1 mm e- 1 mm e+ 1 mm proton 0 fm 209 243 210 244 ========= Table of registered couples ============================== … … 212 246 Index : 0 used in the geometry : Yes recalculation needed : No 213 247 Material : Water 214 Range cuts : gamma 1 mm e- 1 mm e+ 1 mm215 Energy thresholds : gamma 2.90186 keV e- 347.138 keV e+ 338.695 keV248 Range cuts : gamma 1 mm e- 1 mm e+ 1 mm proton 0 fm 249 Energy thresholds : gamma 2.93991 keV e- 349.408 keV e+ 341.455 keV proton 0 eV 216 250 Region(s) which use this couple : 217 251 DefaultRegionForTheWorld … … 234 268 ---> Begin of Event: 0 235 269 236 ---> Begin of Event: 10000 237 238 ---> Begin of Event: 20000 239 240 ---> Begin of Event: 30000 241 242 ---> Begin of Event: 40000 243 244 ---> Begin of Event: 50000 245 246 ---> Begin of Event: 60000 247 248 ---> Begin of Event: 70000 249 250 ---> Begin of Event: 80000 251 252 ---> Begin of Event: 90000 270 ---> Begin of Event: 100000 271 272 ---> Begin of Event: 200000 273 274 ---> Begin of Event: 300000 275 276 ---> Begin of Event: 400000 277 278 ---> Begin of Event: 500000 279 280 ---> Begin of Event: 600000 281 282 ---> Begin of Event: 700000 283 284 ---> Begin of Event: 800000 285 286 ---> Begin of Event: 900000 253 287 Run terminated. 254 288 Run Summary 255 Number of events processed : 100000 256 User= 1.4s Real=1.4s Sys=0s257 258 The run consists of 100000 gamma of 100 keV through 100 m of Water (density: 1 g/cm3 )259 260 Process calls frequency ---> compt = 983 35 phot = 1665261 262 MeanFreePath: 6.0 496 cm +- 6.0503 cm massic: 6.0496g/cm2263 CrossSection: 0.16 53 cm^-1 massic: 0.1653cm2/g264 265 mean energy of charged secondaries: 15. 209 keV mass_energy_transfer coef: 0.025141cm2/g289 Number of events processed : 1000000 290 User=8.8s Real=11s Sys=0s 291 292 The run consists of 1000000 gamma of 100 keV through 100 m of Water (density: 1 g/cm3 ) 293 294 Process calls frequency ---> compt = 983863 phot = 16137 295 296 MeanFreePath: 6.0708 cm +- 6.0755 cm massic: 6.0708 g/cm2 297 CrossSection: 0.16472 cm^-1 massic: 0.16472 cm2/g 298 299 mean energy of charged secondaries: 15.188 keV mass_energy_transfer coef: 0.025018 cm2/g 266 300 267 301 Verification : crossSections from G4EmCalculator 268 compt= 0.1623 cm2/g phot= 0.0026853 cm2/g total= 0.1649 8cm2/g302 compt= 0.1623 cm2/g phot= 0.0026853 cm2/g total= 0.16499 cm2/g 269 303 270 304 --------- Ranecu engine status --------- 271 305 Initial seed (index) = 0 272 Current couple of seeds = 1982964064, 678286457306 Current couple of seeds = 2024716243, 1456126694 273 307 ---------------------------------------- 274 308 # … … 276 310 /gun/energy 100 MeV 277 311 # 278 /run/beamOn 100000 312 /run/beamOn 1000000 279 313 280 314 Region <DefaultRegionForTheWorld> -- appears in <Water> world volume … … 282 316 Pointers : G4VUserRegionInformation[0], G4UserLimits[0], G4FastSimulationManager[0], G4UserSteppingAction[0] 283 317 Materials : Water 284 Production cuts : gamma 1 mm e- 1 mm e+ 1 mm318 Production cuts : gamma 1 mm e- 1 mm e+ 1 mm proton 0 fm 285 319 286 320 ========= Table of registered couples ============================== … … 288 322 Index : 0 used in the geometry : Yes recalculation needed : No 289 323 Material : Water 290 Range cuts : gamma 1 mm e- 1 mm e+ 1 mm291 Energy thresholds : gamma 2.9 keV e- 3.5e+02 keV e+ 3.4e+02 keV324 Range cuts : gamma 1 mm e- 1 mm e+ 1 mm proton 0 fm 325 Energy thresholds : gamma 2.9 keV e- 3.5e+02 keV e+ 3.4e+02 keV proton 0 eV 292 326 Region(s) which use this couple : 293 327 DefaultRegionForTheWorld … … 299 333 --------- Ranecu engine status --------- 300 334 Initial seed (index) = 0 301 Current couple of seeds = 1982964064, 678286457335 Current couple of seeds = 2024716243, 1456126694 302 336 ---------------------------------------- 303 337 Start Run processing. … … 305 339 ---> Begin of Event: 0 306 340 307 ---> Begin of Event: 10000 308 309 ---> Begin of Event: 20000 310 311 ---> Begin of Event: 30000 312 313 ---> Begin of Event: 40000 314 315 ---> Begin of Event: 50000 316 317 ---> Begin of Event: 60000 318 319 ---> Begin of Event: 70000 320 321 ---> Begin of Event: 80000 322 323 ---> Begin of Event: 90000 341 ---> Begin of Event: 100000 342 343 ---> Begin of Event: 200000 344 345 ---> Begin of Event: 300000 346 347 ---> Begin of Event: 400000 348 349 ---> Begin of Event: 500000 350 351 ---> Begin of Event: 600000 352 353 ---> Begin of Event: 700000 354 355 ---> Begin of Event: 800000 356 357 ---> Begin of Event: 900000 324 358 Run terminated. 325 359 Run Summary 326 Number of events processed : 100000 327 User= 1.4s Real=1.4s Sys=0s328 329 The run consists of 100000 e- of 100 MeV through 100 m of Water (density: 1 g/cm3 )330 331 Process calls frequency ---> eBrem = 6 1697 eIoni = 38303332 333 MeanFreePath: 1. 5679 cm +- 1.5695 cm massic: 1.5679g/cm2334 CrossSection: 0.6 3781 cm^-1 massic: 0.63781cm2/g335 336 mean energy of charged secondaries: 7 05.83 keV mass_energy_transfer coef: 0.0045019cm2/g360 Number of events processed : 1000000 361 User=9.8s Real=14s Sys=0s 362 363 The run consists of 1000000 e- of 100 MeV through 100 m of Water (density: 1 g/cm3 ) 364 365 Process calls frequency ---> eBrem = 604059 eIoni = 395941 366 367 MeanFreePath: 1.626 cm +- 1.6247 cm massic: 1.626 g/cm2 368 CrossSection: 0.61499 cm^-1 massic: 0.61499 cm2/g 369 370 mean energy of charged secondaries: 750.63 keV mass_energy_transfer coef: 0.0046163 cm2/g 337 371 338 372 Verification : crossSections from G4EmCalculator 339 eBrem= 0.3 9397 cm2/g eIoni= 0.24497 cm2/g total= 0.63894cm2/g373 eBrem= 0.37212 cm2/g eIoni= 0.24337 cm2/g total= 0.61549 cm2/g 340 374 341 375 --------- Ranecu engine status --------- 342 376 Initial seed (index) = 0 343 Current couple of seeds = 679237908, 105871640377 Current couple of seeds = 1860356547, 1898423253 344 378 ---------------------------------------- 345 379 UserDetectorConstruction deleted. … … 349 383 G4 kernel has come to Quit state. 350 384 EventManager deleted. 351 Default detector region deleted.352 385 UImanager deleted. 353 386 Units table cleared. … … 355 388 RunManagerKernel is deleted. 356 389 RunManager is deleting. 390 -
trunk/examples/extended/electromagnetic/TestEm14/include/DetectorConstruction.hh
r1230 r1337 25 25 // 26 26 // $Id: DetectorConstruction.hh,v 1.3 2006/06/29 16:44: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/TestEm14/include/DetectorMessenger.hh
r1230 r1337 25 25 // 26 26 // $Id: DetectorMessenger.hh,v 1.3 2006/06/29 16:44: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/TestEm14/include/EventAction.hh
r1230 r1337 25 25 // 26 26 // $Id: EventAction.hh,v 1.3 2006/06/29 16:45: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/TestEm14/include/EventActionMessenger.hh
r1230 r1337 25 25 // 26 26 // $Id: EventActionMessenger.hh,v 1.3 2006/06/29 16:45:02 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/TestEm14/include/HistoManager.hh
r1230 r1337 25 25 // 26 26 // $Id: HistoManager.hh,v 1.4 2007/11/13 12:13: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/TestEm14/include/HistoMessenger.hh
r1230 r1337 25 25 // 26 26 // $Id: HistoMessenger.hh,v 1.4 2007/11/13 12:13: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/TestEm14/include/PhysListEmLivermore.hh
r1230 r1337 25 25 // 26 26 // $Id: PhysListEmLivermore.hh,v 1.4 2009/11/19 10:36:37 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/TestEm14/include/PhysListEmPenelope.hh
r1230 r1337 25 25 // 26 26 // $Id: PhysListEmPenelope.hh,v 1.4 2009/11/19 10:36:37 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/TestEm14/include/PhysListEmStandard.hh
r1230 r1337 25 25 // 26 26 // $Id: PhysListEmStandard.hh,v 1.3 2006/06/29 16:45: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/TestEm14/include/PhysicsList.hh
r1230 r1337 26 26 // 27 27 // $Id: PhysicsList.hh,v 1.3 2006/06/29 16:45:16 gunter Exp $ 28 // GEANT4 tag $Name: geant4-09-0 3-cand-01 $28 // GEANT4 tag $Name: geant4-09-04-beta-01 $ 29 29 // 30 30 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... -
trunk/examples/extended/electromagnetic/TestEm14/include/PhysicsListMessenger.hh
r1230 r1337 25 25 // 26 26 // $Id: PhysicsListMessenger.hh,v 1.3 2006/06/29 16:45:18 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/TestEm14/include/PrimaryGeneratorAction.hh
r1230 r1337 25 25 // 26 26 // $Id: PrimaryGeneratorAction.hh,v 1.3 2006/06/29 16:45: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/TestEm14/include/RunAction.hh
r1230 r1337 24 24 // ******************************************************************** 25 25 // 26 // $Id: RunAction.hh,v 1. 4 2006/09/06 09:56:06maire Exp $27 // GEANT4 tag $Name: geant4-09-0 3-cand-01 $26 // $Id: RunAction.hh,v 1.5 2010/04/05 18:02:39 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...... … … 56 56 void EndOfRunAction(const G4Run*); 57 57 58 void CountProcesses(G4String); 58 void CountProcesses(G4String procName) 59 {procCounter[procName]++;}; 59 60 void SumTrack (G4double track) 60 {totalCount++; sumTrack += track; sumTrack2 += track*track;};61 {totalCount++; sumTrack += track; sumTrack2 += track*track;}; 61 62 void SumeTransf (G4double energy) 62 {eTransfer += energy;};63 {eTransfer += energy;}; 63 64 64 65 private: 65 DetectorConstruction* detector; 66 PrimaryGeneratorAction* primary; 67 ProcessesCount* ProcCounter; 68 HistoManager* histoManager; 66 DetectorConstruction* detector; 67 PrimaryGeneratorAction* primary; 68 HistoManager* histoManager; 69 69 70 std::map<G4String,G4int> procCounter; 70 71 G4int totalCount; //all processes counter 71 72 G4double sumTrack; //sum of trackLength -
trunk/examples/extended/electromagnetic/TestEm14/include/SteppingAction.hh
r1230 r1337 24 24 // ******************************************************************** 25 25 // 26 // $Id: SteppingAction.hh,v 1. 4 2006/09/06 09:56:06maire Exp $27 // GEANT4 tag $Name: geant4-09-0 3-cand-01 $26 // $Id: SteppingAction.hh,v 1.5 2010/04/02 13:22:02 maire Exp $ 27 // GEANT4 tag $Name: geant4-09-04-beta-01 $ 28 28 // 29 29 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... … … 39 39 class RunAction; 40 40 class HistoManager; 41 class SteppingMessenger;42 41 43 42 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... … … 51 50 void UserSteppingAction(const G4Step*); 52 51 53 void SetMaxEdepForPlot(G4double value) {fract = value;};54 55 52 private: 56 53 PrimaryGeneratorAction* primary; 57 54 RunAction* runAction; 58 55 HistoManager* histoManager; 59 SteppingMessenger* stepMessenger;60 61 G4double fract; //max edep for plotting final state62 56 }; 63 57 -
trunk/examples/extended/electromagnetic/TestEm14/include/SteppingVerbose.hh
r1230 r1337 25 25 // 26 26 // $Id: SteppingVerbose.hh,v 1.3 2006/06/29 16:45: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 // This class manages the verbose outputs in G4SteppingManager. -
trunk/examples/extended/electromagnetic/TestEm14/src/DetectorConstruction.cc
r1230 r1337 25 25 // 26 26 // $Id: DetectorConstruction.cc,v 1.4 2006/06/29 16:45: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/TestEm14/src/DetectorMessenger.cc
r1230 r1337 25 25 // 26 26 // $Id: DetectorMessenger.cc,v 1.3 2006/06/29 16:45: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/TestEm14/src/EventAction.cc
r1230 r1337 24 24 // ******************************************************************** 25 25 // 26 // $Id: EventAction.cc,v 1. 3 2006/06/29 16:45:37 gunterExp $27 // GEANT4 tag $Name: geant4-09-0 3-cand-01 $26 // $Id: EventAction.cc,v 1.6 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/TestEm14/src/EventActionMessenger.cc
r1230 r1337 25 25 // 26 26 // $Id: EventActionMessenger.cc,v 1.3 2006/06/29 16:45:39 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/TestEm14/src/HistoManager.cc
r1230 r1337 25 25 // 26 26 // $Id: HistoManager.cc,v 1.7 2008/09/24 18:53:56 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/TestEm14/src/HistoMessenger.cc
r1230 r1337 25 25 // 26 26 // $Id: HistoMessenger.cc,v 1.4 2007/11/13 12:17:07 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/TestEm14/src/PhysListEmLivermore.cc
r1230 r1337 25 25 // 26 26 // 27 // $Id: PhysListEmLivermore.cc,v 1. 4 2009/11/19 10:36:37maire Exp $28 // GEANT4 tag $Name: geant4-09-0 3-cand-01 $27 // $Id: PhysListEmLivermore.cc,v 1.5 2010/04/02 13:22:02 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/TestEm14/src/PhysListEmPenelope.cc
r1230 r1337 25 25 // 26 26 // 27 // $Id: PhysListEmPenelope.cc,v 1. 4 2009/11/19 10:36:37maire Exp $28 // GEANT4 tag $Name: geant4-09-0 3-cand-01 $27 // $Id: PhysListEmPenelope.cc,v 1.5 2010/04/02 13:22:02 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/TestEm14/src/PhysListEmStandard.cc
r1230 r1337 25 25 // 26 26 // 27 // $Id: PhysListEmStandard.cc,v 1. 4 2006/10/24 16:54:16maire Exp $28 // GEANT4 tag $Name: geant4-09-0 3-cand-01 $27 // $Id: PhysListEmStandard.cc,v 1.5 2010/04/02 13:22:02 maire Exp $ 28 // GEANT4 tag $Name: geant4-09-04-beta-01 $ 29 29 // 30 30 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... … … 82 82 } else if (particleName == "e-") { 83 83 //electron 84 pmanager->AddProcess(new G4eIonisation, -1, 85 pmanager->AddProcess(new G4eBremsstrahlung, -1, 2,2);84 pmanager->AddProcess(new G4eIonisation, -1,-1,1); 85 pmanager->AddProcess(new G4eBremsstrahlung, -1,-1,2); 86 86 87 87 } else if (particleName == "e+") { 88 88 //positron 89 pmanager->AddProcess(new G4eIonisation, -1, 90 pmanager->AddProcess(new G4eBremsstrahlung, -1, 2,2);89 pmanager->AddProcess(new G4eIonisation, -1,-1,1); 90 pmanager->AddProcess(new G4eBremsstrahlung, -1,-1,2); 91 91 pmanager->AddProcess(new G4eplusAnnihilation, 0,-1,3); 92 92 … … 94 94 particleName == "mu-" ) { 95 95 //muon 96 pmanager->AddProcess(new G4MuIonisation, -1, 97 pmanager->AddProcess(new G4MuBremsstrahlung, -1, 2,2);98 pmanager->AddProcess(new G4MuPairProduction, -1, 3,3);96 pmanager->AddProcess(new G4MuIonisation, -1,-1,1); 97 pmanager->AddProcess(new G4MuBremsstrahlung, -1,-1,2); 98 pmanager->AddProcess(new G4MuPairProduction, -1,-1,3); 99 99 100 100 } else if( particleName == "alpha" || particleName == "GenericIon" ) { 101 pmanager->AddProcess(new G4ionIonisation, -1, 101 pmanager->AddProcess(new G4ionIonisation, -1,-1,1); 102 102 103 103 } else if ((!particle->IsShortLived()) && … … 105 105 (particle->GetParticleName() != "chargedgeantino")) { 106 106 //all others charged particles except geantino 107 pmanager->AddProcess(new G4hIonisation, -1, 1,1);107 pmanager->AddProcess(new G4hIonisation, -1,-1,1); 108 108 } 109 109 } -
trunk/examples/extended/electromagnetic/TestEm14/src/PhysicsList.cc
r1230 r1337 25 25 // 26 26 // 27 // $Id: PhysicsList.cc,v 1. 6 2009/11/19 10:36:37maire Exp $28 // GEANT4 tag $Name: geant4-09-0 3-cand-01 $27 // $Id: PhysicsList.cc,v 1.8 2010/04/05 18:02:39 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 { 230 // set cut values for gamma at first and for e- second and next for e+, 231 // because some processes for e+/e- need cut values for gamma 232 SetCutValue(cutForGamma, "gamma"); 233 SetCutValue(cutForElectron, "e-"); 234 SetCutValue(cutForPositron, "e+"); 227 { 228 // fixe lower limit for cut 229 G4ProductionCutsTable::GetProductionCutsTable()->SetEnergyRange(100*eV, 1*GeV); 230 231 // set cut values for gamma at first and for e- second and next for e+, 232 // because some processes for e+/e- need cut values for gamma 233 SetCutValue(cutForGamma, "gamma"); 234 SetCutValue(cutForElectron, "e-"); 235 SetCutValue(cutForPositron, "e+"); 235 236 } 236 237 -
trunk/examples/extended/electromagnetic/TestEm14/src/PhysicsListMessenger.cc
r1230 r1337 25 25 // 26 26 // $Id: PhysicsListMessenger.cc,v 1.3 2006/06/29 16:45:55 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/TestEm14/src/PrimaryGeneratorAction.cc
r1230 r1337 25 25 // 26 26 // $Id: PrimaryGeneratorAction.cc,v 1.3 2006/06/29 16:45:57 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/TestEm14/src/RunAction.cc
r1230 r1337 24 24 // ******************************************************************** 25 25 // 26 // $Id: RunAction.cc,v 1. 4 2006/09/06 09:56:06maire Exp $27 // GEANT4 tag $Name: geant4-09-0 3-cand-01 $26 // $Id: RunAction.cc,v 1.5 2010/04/05 18:02:39 maire Exp $ 27 // GEANT4 tag $Name: geant4-09-04-beta-01 $ 28 28 // 29 29 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... … … 49 49 RunAction::RunAction(DetectorConstruction* det, PrimaryGeneratorAction* prim, 50 50 HistoManager* histo) 51 : detector(det), primary(prim), ProcCounter(0),histoManager(histo)51 : detector(det), primary(prim), histoManager(histo) 52 52 { } 53 53 … … 67 67 CLHEP::HepRandom::showEngineStatus(); 68 68 69 ProcCounter = new ProcessesCount;70 69 totalCount = 0; 71 70 sumTrack = sumTrack2 = 0.; … … 73 72 74 73 histoManager->book(); 75 }76 77 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......78 79 void RunAction::CountProcesses(G4String procName)80 {81 //does the process already encounted ?82 size_t nbProc = ProcCounter->size();83 size_t i = 0;84 while ((i<nbProc)&&((*ProcCounter)[i]->GetName()!=procName)) i++;85 if (i == nbProc) ProcCounter->push_back( new OneProcessCount(procName));86 87 (*ProcCounter)[i]->Count();88 74 } 89 75 … … 113 99 //frequency of processes 114 100 G4cout << "\n Process calls frequency --->"; 115 for (size_t i=0; i< ProcCounter->size();i++) { 116 G4String procName = (*ProcCounter)[i]->GetName(); 117 G4int count = (*ProcCounter)[i]->GetCounter(); 101 std::map<G4String,G4int>::iterator it; 102 for (it = procCounter.begin(); it != procCounter.end(); it++) { 103 G4String procName = it->first; 104 G4int count = it->second; 118 105 G4cout << "\t" << procName << " = " << count; 119 106 if (procName == "Transportation") survive = count; 120 107 } 121 108 122 109 if (survive > 0) { 123 110 G4cout << "\n\n Nb of incident particles surviving after " … … 160 147 G4EmCalculator emCalculator; 161 148 G4double sumc = 0.0; 162 for ( size_t i=0; i< ProcCounter->size();i++) {163 G4String procName = (*ProcCounter)[i]->GetName();149 for (it = procCounter.begin(); it != procCounter.end(); it++) { 150 G4String procName = it->first; 164 151 G4double massSigma = 165 152 emCalculator.GetCrossSectionPerVolume(energy,particle, … … 177 164 178 165 //restore default format 179 G4cout.precision(prec); 180 181 // delete and remove all contents in ProcCounter 182 while (ProcCounter->size()>0){ 183 OneProcessCount* aProcCount=ProcCounter->back(); 184 ProcCounter->pop_back(); 185 delete aProcCount; 186 } 187 delete ProcCounter; 166 G4cout.precision(prec); 167 168 // remove all contents in procCounter 169 procCounter.clear(); 188 170 189 171 histoManager->save(); -
trunk/examples/extended/electromagnetic/TestEm14/src/SteppingAction.cc
r1230 r1337 24 24 // ******************************************************************** 25 25 // 26 // $Id: SteppingAction.cc,v 1. 5 2007/06/23 22:23:20maire Exp $27 // GEANT4 tag $Name: geant4-09-0 3-cand-01 $26 // $Id: SteppingAction.cc,v 1.6 2010/04/02 13:22:02 maire Exp $ 27 // GEANT4 tag $Name: geant4-09-04-beta-01 $ 28 28 // 29 29 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... … … 34 34 #include "RunAction.hh" 35 35 #include "HistoManager.hh" 36 #include "SteppingMessenger.hh"37 36 38 37 #include "G4RunManager.hh" … … 43 42 RunAction* RuAct, HistoManager* Hist) 44 43 :primary(prim),runAction(RuAct), histoManager(Hist) 45 { 46 stepMessenger = new SteppingMessenger(this); 47 fract = 0.1; 48 } 44 { } 49 45 50 46 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 51 47 52 48 SteppingAction::~SteppingAction() 53 { 54 delete stepMessenger; 55 } 49 { } 56 50 57 51 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... … … 60 54 { 61 55 G4StepPoint* endPoint = aStep->GetPostStepPoint(); 62 G4String procName = endPoint->GetProcessDefinedStep()->GetProcessName(); 63 G4TrackVector* secondary = fpSteppingManager->GetSecondary(); 56 G4String procName = endPoint->GetProcessDefinedStep()->GetProcessName(); 64 57 G4bool transmit = (endPoint->GetStepStatus() <= fGeomBoundary); 65 58 if (transmit) runAction->CountProcesses(procName); … … 67 60 //count real processes and sum track length 68 61 G4double stepLength = aStep->GetStepLength(); 69 G4double charge = aStep->GetTrack()->GetDefinition()->GetPDGCharge(); 70 if ((charge == 0.) || ((charge != 0.) && (((*secondary).size() > 0)))) 71 { 72 runAction->CountProcesses(procName); 73 runAction->SumTrack(stepLength); 74 } 62 runAction->CountProcesses(procName); 63 runAction->SumTrack(stepLength); 75 64 } 76 65 77 66 //plot final state (only if continuous energy loss is small enough) 78 67 // 79 G4double edep = aStep->GetTotalEnergyDeposit();80 G4double E0 = primary->GetParticleGun()->GetParticleEnergy();81 if (edep < fract*E0) {82 68 83 84 85 86 87 88 69 //scattered primary particle 70 // 71 G4int id = 1; 72 if (aStep->GetTrack()->GetTrackStatus() == fAlive) { 73 G4double energy = endPoint->GetKineticEnergy(); 74 histoManager->FillHisto(id,energy); 89 75 90 91 92 93 94 76 id = 2; 77 G4ThreeVector direction = endPoint->GetMomentumDirection(); 78 G4double costeta = direction.x(); 79 histoManager->FillHisto(id,costeta); 80 } 95 81 96 97 98 //G4TrackVector* secondary = fpSteppingManager->GetSecondary();99 100 101 102 103 82 //secondaries 83 // 84 G4TrackVector* secondary = fpSteppingManager->GetSecondary(); 85 for (size_t lp=0; lp<(*secondary).size(); lp++) { 86 G4double charge = (*secondary)[lp]->GetDefinition()->GetPDGCharge(); 87 if (charge != 0.) id = 3; else id = 5; 88 G4double energy = (*secondary)[lp]->GetKineticEnergy(); 89 histoManager->FillHisto(id,energy); 104 90 105 106 107 108 91 id++; 92 G4ThreeVector direction = (*secondary)[lp]->GetMomentumDirection(); 93 G4double costeta = direction.x(); 94 histoManager->FillHisto(id,costeta); 109 95 110 //energy tranferred to charged secondaries 111 if (charge != 0.) runAction->SumeTransf(energy); 112 } 96 //energy tranferred to charged secondaries 97 if (charge != 0.) runAction->SumeTransf(energy); 113 98 } 114 99 -
trunk/examples/extended/electromagnetic/TestEm14/src/SteppingVerbose.cc
r1230 r1337 25 25 // 26 26 // $Id: SteppingVerbose.cc,v 1.3 2006/06/29 16:46:05 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/TestEm14/vis.mac
r807 r1337 1 1 # 2 # Macro file for the initialization phase of "TestEm 14.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.