Changeset 1337 for trunk/examples/extended/radioactivedecay
- Timestamp:
- Sep 30, 2010, 2:47:17 PM (14 years ago)
- Location:
- trunk/examples/extended/radioactivedecay/exrdm
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/examples/extended/radioactivedecay/exrdm/History
r1230 r1337 1 $Id: History,v 1. 27 2009/09/22 16:50:06 gunterExp $1 $Id: History,v 1.30 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/2010 - J.Perl (exrdm-V09-03-02) 19 - Remove unused variable in EventAction 20 21 02/06/2010 - J.Perl (exrdm-V09-03-01) 22 - Updated vis usage 23 24 10/05/2010 V.Ivanchenko (exrdm-V09-03-00) 25 - substitute G4MultipleScattering by specialized processes per particle type 17 26 18 27 22/09/2009 G.Folger (exrdm-V09-02-00) -
trunk/examples/extended/radioactivedecay/exrdm/README
r1230 r1337 108 108 109 109 Visualisation of the geometry and the tracks is possible with many of the G4 visualisation packages. An 110 example of display the geometry and tracks using VRML is given in the macro file macros/v rml.mac.110 example of display the geometry and tracks using VRML is given in the macro file macros/vis.mac. 111 111 112 112 6. ANALYSIS: -
trunk/examples/extended/radioactivedecay/exrdm/exrdm.out
r807 r1337 1 2 ############################################ 3 !!! WARNING - FPE detection is activated !!! 4 ############################################ 1 5 2 6 ************************************************************* 3 Geant4 version $Name: $ (27-July-2004)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 … … 7 11 ************************************************************* 8 12 13 New histogram will be booked: #10 <Energy deposit (MeV) in the traget 100 0 15 1 14 New histogram will be booked: #11 <Energy deposit (MeV) in the detector 100 0 15 1 15 New histogram will be booked: #12 <Total energy spectrum (MeV) of the traget and detector 100 0 15 1 16 New histogram will be booked: #13 <Coincidence spectrum (MeV) between the traget and detector 100 0 15 1 17 New histogram will be booked: #14 <Anti-coincidence spectrum (MeV) in the traget 100 0 15 1 18 New histogram will be booked: #15 <Anti-coincidence spectrum (MeV) in the detector 100 0 15 1 19 New histogram will be booked: #16 <Decay emission spectrum (MeV) 100 0 15 1 20 Vacuum H 1e-25 2.73 1.87245e-14 9 21 Material:Vacuum with formula: H added! 10 22 Nb of Material = 1 11 23 Nb of Isotope = 0 12 24 Nb of Element = 1 25 Air N0.78-O0.22 0.00129 273.15 6.32421e+08 13 26 Material:Air with formula: N0.78-O0.22 added! 14 27 Nb of Material = 2 15 28 Nb of Isotope = 0 16 29 Nb of Element = 3 30 Aluminium Al 2.7 273.15 6.32421e+08 17 31 Material:Aluminium with formula: Al added! 18 32 Nb of Material = 3 19 33 Nb of Isotope = 0 20 34 Nb of Element = 4 35 Silicon Si 2.329 273.15 6.32421e+08 21 36 Material:Silicon with formula: Si added! 22 37 Nb of Material = 4 23 38 Nb of Isotope = 0 24 39 Nb of Element = 5 40 Lead Pb 11.3 273.15 6.32421e+08 25 41 Material:Lead with formula: Pb added! 26 42 Nb of Material = 5 27 43 Nb of Isotope = 0 28 44 Nb of Element = 6 45 Germanium Ge 5.323 273.15 6.32421e+08 29 46 Material:Germanium with formula: Ge added! 30 47 Nb of Material = 6 31 48 Nb of Isotope = 0 32 49 Nb of Element = 7 50 CsI Cs-I 4.51 273.15 6.32421e+08 33 51 Material:CsI with formula: Cs-I added! 34 52 Nb of Material = 7 35 53 Nb of Isotope = 0 36 54 Nb of Element = 9 37 Visualization Manager instantiating ...55 Visualization Manager instantiating with verbosity "warnings (3)"... 38 56 Visualization Manager initialising... 39 57 Registering graphics systems... 40 58 41 You have successfully chosen to usethe following graphics systems.59 You have successfully registered the following graphics systems. 42 60 Current available graphics systems are: 43 FukuiRenderer (DAWN)61 ASCIITree (ATree) 44 62 DAWNFILE (DAWNFILE) 63 G4HepRep (HepRepXML) 64 G4HepRepFile (HepRepFile) 65 RayTracer (RayTracer) 45 66 VRML1FILE (VRML1FILE) 46 67 VRML2FILE (VRML2FILE) 47 RayTracer (RayTracer) 68 gMocrenFile (gMocrenFile) 69 OpenGLStoredX (OGL) 70 OpenGLImmediateX (OGLI) 71 OpenGLStoredX (OGLS) 72 OpenGLImmediateX (OGLIX) 73 OpenGLStoredX (OGLSX) 74 75 Registering model factories... 76 77 You have successfully registered the following model factories. 78 Registered model factories: 79 generic 80 drawByCharge 81 drawByParticleID 82 drawByOriginVolume 83 drawByAttribute 84 85 Registered filter factories: 86 chargeFilter 87 particleFilter 88 originVolumeFilter 89 attributeFilter 90 48 91 49 92 ----> The target has been changed to 3 cm of Lead 50 51 phot: Total cross sections from Sandia parametrisation. 52 Thank you for using G4BinaryCascade. 53 /fred/geant4/g4/data/G4NDL 54 Thank you for using G4BinaryCascade. 55 Thank you for using G4BinaryCascade. 93 NeutronHP: /Elastic/ file for Z = 8, A = 18 is not found and NeutronHP will use /afs/cern.ch/sw/geant4/releases/share/data/G4NDL3.13/Elastic///CrossSection/8_17_Oxygen 94 NeutronHP: /Capture file for Z = 8, A = 18 is not found and NeutronHP will use /afs/cern.ch/sw/geant4/releases/share/data/G4NDL3.13/Capture//CrossSection/8_17_Oxygen 95 NeutronHP: /Elastic file for Z = 8, A = 18 is not found and NeutronHP will use /afs/cern.ch/sw/geant4/releases/share/data/G4NDL3.13/Elastic//CrossSection/8_17_Oxygen 96 NeutronHP: /Inelastic file for Z = 8, A = 18 is not found and NeutronHP will use /afs/cern.ch/sw/geant4/releases/share/data/G4NDL3.13/Inelastic//CrossSection/8_17_Oxygen 97 /afs/cern.ch/sw/geant4/releases/share/data/G4NDL3.13 98 NeutronHP: /Capture/ file for Z = 8, A = 18 is not found and NeutronHP will use /afs/cern.ch/sw/geant4/releases/share/data/G4NDL3.13/Capture///CrossSection/8_17_Oxygen 99 ### exrdmPhysicsList::ConstructProcess is done 56 100 world cuts are set 57 101 Target cuts are set 58 102 Detector cuts are set 59 G4VRangeToEnergyConverter::ConvertCutToKineticEnergy for gamma 60 The cut in range [500 (mm)] is too big for material idx=5 61 The cut in energy is set1.79769e+305GeV 103 ============================================================================================ 104 HADRONIC PROCESSES SUMMARY (verbose level 1) 62 105 63 compt: Total cross sections from a parametrisation. Good description from 10 KeV to (100/Z) GeV. 64 Scattered gamma energy according Klein-Nishina. 65 PhysicsTables from 1 keV to 100 GeV in 80 bins. 106 Hadronic Processes for <anti_neutron> 107 hElastic Models: G4HadronElastic: Emin(GeV)= 0 Emax(GeV)= 100000 108 AntiNeutronInelastic Models: G4LEAntiNeutronInelastic: Emin(GeV)= 0 Emax(GeV)= 25 109 G4HEAntiNeutronInelastic: Emin(GeV)= 20 Emax(GeV)= 100000 66 110 67 conv: Total cross sections from a parametrisation. Good description from 1.5 MeV to 100 GeV for all Z. 68 e+e- energies according Bethe-Heitler 69 PhysicsTables from 1.022 MeV to 100 GeV in 100 bins. 111 Hadronic Processes for <anti_proton> 112 hElastic Models: G4HadronElastic: Emin(GeV)= 0 Emax(GeV)= 100000 113 AntiProtonInelastic Models: G4LEAntiProtonInelastic: Emin(GeV)= 0 Emax(GeV)= 25 114 G4HEAntiProtonInelastic: Emin(GeV)= 20 Emax(GeV)= 100000 70 115 71 msc: Model variant of multiple scattering for e- 72 Lambda tables from 100 eV to 100 TeV in 120 bins. 73 Boundary algorithm is active with facrange= 0.199 116 Hadronic Processes for <e-> 117 ElectroNuclear Models: CHIPS: Emin(GeV)= 0 Emax(GeV)= 30000 74 118 75 eIoni: tables are built for e- 76 dE/dx and range tables from 100 eV to 100 TeV in 120 bins. 77 Lambda tables from threshold to 100 TeV in 120 bins. 78 Step function: finalRange(mm)= 1, dRoverRange= 1, integral: 1 79 Delta cross sections from Moller+Bhabha, good description from 1 KeV to 100 GeV. 119 Hadronic Processes for <gamma> 120 PhotonInelastic Models: CHIPS: Emin(GeV)= 0 Emax(GeV)= 3.5 121 TheoFSGenerator: Emin(GeV)= 3 Emax(GeV)= 100000 80 122 81 eBrem: tables are built for e- 82 dE/dx and range tables from 100 eV to 100 TeV in 120 bins. 83 Lambda tables from threshold to 100 TeV in 120 bins. 84 Total cross sections from a parametrisation based on the EEDL data library. 85 Good description from 1 KeV to 100 GeV, log scale extrapolation above 100 GeV. 123 Hadronic Processes for <kaon+> 124 hElastic Models: G4HadronElastic: Emin(GeV)= 0 Emax(GeV)= 100000 125 KaonPlusInelastic Models: QGSP: Emin(GeV)= 12 Emax(GeV)= 100000 126 G4LEKaonPlusInelastic: Emin(GeV)= 0 Emax(GeV)= 25 86 127 87 eIoni: tables are built for e+ 88 dE/dx and range tables from 100 eV to 100 TeV in 120 bins. 89 Lambda tables from threshold to 100 TeV in 120 bins. 90 Step function: finalRange(mm)= 1, dRoverRange= 1, integral: 1 91 Delta cross sections from Moller+Bhabha, good description from 1 KeV to 100 GeV. 128 Hadronic Processes for <kaon-> 129 hElastic Models: G4HadronElastic: Emin(GeV)= 0 Emax(GeV)= 100000 130 KaonMinusInelastic Models: QGSP: Emin(GeV)= 12 Emax(GeV)= 100000 131 G4LEKaonMinusInelastic: Emin(GeV)= 0 Emax(GeV)= 25 92 132 93 eBrem: tables are built for e+ 94 dE/dx and range tables from 100 eV to 100 TeV in 120 bins. 95 Lambda tables from threshold to 100 TeV in 120 bins. 96 Total cross sections from a parametrisation based on the EEDL data library. 97 Good description from 1 KeV to 100 GeV, log scale extrapolation above 100 GeV. 133 Hadronic Processes for <lambda> 134 hElastic Models: G4HadronElastic: Emin(GeV)= 0 Emax(GeV)= 100000 135 LambdaInelastic Models: G4LELambdaInelastic: Emin(GeV)= 0 Emax(GeV)= 25 136 G4HELambdaInelastic: Emin(GeV)= 20 Emax(GeV)= 100000 98 137 99 annihil: Total cross section from Heilter formula(annihilation into 2 photons). 100 gamma energies sampled according Heitler 101 PhysicsTables from 10 keV to 10 TeV in 100 bins. 138 Hadronic Processes for <mu-> 139 muMinusCaptureAtRest 102 140 103 msc: Model variant of multiple scattering for proton 104 Lambda tables from 100 eV to 100 TeV in 120 bins. 105 Boundary algorithm is active with facrange= 0.199 141 Hadronic Processes for <neutron> 142 hElastic Models: NeutronHPElastic: Emin(GeV)= 0 Emax(GeV)= 0.02 143 G4HadronElastic: Emin(GeV)= 0.0195 Emax(GeV)= 100000 144 NeutronInelastic Models: QGSP: Emin(GeV)= 12 Emax(GeV)= 100000 145 G4LENeutronInelastic: Emin(GeV)= 9.5 Emax(GeV)= 25 146 Binary Cascade: Emin(GeV)= 0.0199 Emax(GeV)= 9.9 147 NeutronHPInelastic: Emin(GeV)= 0 Emax(GeV)= 0.02 148 nCapture Models: G4LCapture: Emin(GeV)= 0.0199 Emax(GeV)= 20000 149 NeutronHPCapture: Emin(GeV)= 0 Emax(GeV)= 0.02 150 nFission Models: G4LFission: Emin(GeV)= 0.0199 Emax(GeV)= 20000 151 NeutronHPFission: Emin(GeV)= 0 Emax(GeV)= 0.02 106 152 107 hIoni: tables are built for proton 108 dE/dx and range tables from 100 eV to 100 TeV in 120 bins. 109 Lambda tables from threshold to 100 TeV in 120 bins. 110 Step function: finalRange(mm)= 1, dRoverRange= 0.2, integral: 1 111 Bether-Bloch model for Escaled > 2 MeV, parametrisation of Bragg peak below, Integral mode 1 153 Hadronic Processes for <pi+> 154 hElastic Models: G4HadronElastic: Emin(GeV)= 0 Emax(GeV)= 100000 155 PionPlusInelastic Models: QGSP: Emin(GeV)= 12 Emax(GeV)= 100000 156 G4LEPionPlusInelastic: Emin(GeV)= 0 Emax(GeV)= 25 112 157 113 msc: Model variant of multiple scattering for mu+ 114 Lambda tables from 100 eV to 100 TeV in 120 bins. 115 Boundary algorithm is active with facrange= 0.199 158 Hadronic Processes for <pi-> 159 hElastic Models: G4HadronElastic: Emin(GeV)= 0 Emax(GeV)= 100000 160 PionMinusInelastic Models: QGSP: Emin(GeV)= 12 Emax(GeV)= 100000 161 G4LEPionMinusInelastic: Emin(GeV)= 0 Emax(GeV)= 25 116 162 117 MuIoni: tables are built for mu+ 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 Step function: finalRange(mm)= 1, dRoverRange= 0.2, integral: 1 121 Bether-Bloch model for E > 0.2 MeV, parametrisation of Bragg peak below, 122 radiative corrections for E > 1 GeV 123 124 MuBrems: tables are built for mu+ 125 dE/dx and range tables from 100 eV to 100 TeV in 120 bins. 126 Lambda tables from threshold to 100 TeV in 120 bins. 127 Parametrised model 128 129 MuPairProd: tables are built for mu+ 130 dE/dx and range tables from 100 eV to 100 TeV in 120 bins. 131 Lambda tables from threshold to 100 TeV in 120 bins. 132 Parametrised model 133 ### All dEdx and Range tables are built ##### 134 135 MuIoni: tables are built for mu- 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 Step function: finalRange(mm)= 1, dRoverRange= 0.2, integral: 1 139 Bether-Bloch model for E > 0.2 MeV, parametrisation of Bragg peak below, 140 radiative corrections for E > 1 GeV 141 142 msc: Model variant of multiple scattering for pi- 143 Lambda tables from 100 eV to 100 TeV in 120 bins. 144 Boundary algorithm is active with facrange= 0.199 163 Hadronic Processes for <proton> 164 hElastic Models: G4HadronElastic: Emin(GeV)= 0 Emax(GeV)= 100000 165 ProtonInelastic Models: QGSP: Emin(GeV)= 12 Emax(GeV)= 100000 166 G4LEProtonInelastic: Emin(GeV)= 9.5 Emax(GeV)= 25 167 Binary Cascade: Emin(GeV)= 0 Emax(GeV)= 9.9 168 ============================================================================================ 145 169 146 170 ========= Table of registered couples ============================== … … 148 172 Index : 0 used in the geometry : Yes recalculation needed : No 149 173 Material : Air 150 Range cuts : gamma 1 mm e- 1 mm e+ 1 mm151 Energy thresholds : gamma 990 eV e- 990 eV e+ 990 eV174 Range cuts : gamma 1 mm e- 1 mm e+ 1 mm proton 0 fm 175 Energy thresholds : gamma 990 eV e- 990 eV e+ 990 eV proton 0 eV 152 176 Region(s) which use this couple : 153 177 DefaultRegionForTheWorld … … 155 179 Index : 1 used in the geometry : Yes recalculation needed : No 156 180 Material : Lead 157 Range cuts : gamma 10 cm e- 10 cm e+10 cm158 Energy thresholds : gamma 2.24888 MeV e- 437.915 MeV e+ 396.844MeV181 Range cuts : gamma 10 cm e- 10 cm e+ 10 cm proton 10 cm 182 Energy thresholds : gamma 2.10237 MeV e- 430.674 MeV e+ 408.132 MeV proton 10 MeV 159 183 Region(s) which use this couple : 160 184 Target … … 162 186 Index : 2 used in the geometry : Yes recalculation needed : No 163 187 Material : Germanium 164 Range cuts : gamma 50 cm e- 50 cm e+50 cm165 Energy thresholds : gamma 2.88022e+295 J e- 1.91846 GeV e+ 1.73853 GeV188 Range cuts : gamma 50 cm e- 50 cm e+ 50 cm proton 50 cm 189 Energy thresholds : gamma 10 GeV e- 1.83883 GeV e+ 1.74258 GeV proton 50 MeV 166 190 Region(s) which use this couple : 167 191 Detector … … 169 193 ==================================================================== 170 194 171 ### Histo books 7 histograms 172 Loaded linked in JVM. 173 Looking for already loaded JVMs... 174 None found. 175 Using CLASSPATH. 176 classpathOption: -Djava.class.path=/fred/flei/AIDAJNI-3.2.2/lib/freehep-aidajni.jar:/fred/flei/JAIDA-3.2.2/lib/optimizers.jar:/fred/flei/JAIDA-3.2.2/lib/openide-lookup.jar:/fred/flei/JAIDA-3.2.2/lib/jel.jar:/fred/flei/JAIDA-3.2.2/lib/jas-plotter.jar:/fred/flei/JAIDA-3.2.2/lib/freehep-hep.jar:/fred/flei/JAIDA-3.2.2/lib/freehep-base.jar:/fred/flei/JAIDA-3.2.2/lib/bcel.jar:/fred/flei/JAIDA-3.2.2/lib/aida-dev.jar:/fred/flei/JAIDA-3.2.2/lib/aida.jar: 177 Starting JVM...JVM Created. 178 Tree store : exrdm-proton.aida 179 Creating Ntuple: Emitted Particles 180 Creating Ntuple: RadioIsotopes 181 Creating Ntuple: Energy Depositions 195 exrdmAnalysisManager: Histograms are booked and the run has been started 182 196 ### Run : 0 183 G4AugerData for Element no. 7 are loaded184 G4AugerData for Element no. 8 are loaded185 G4AugerData for Element no. 13 are loaded186 G4AugerData for Element no. 14 are loaded187 G4AugerData for Element no. 32 are loaded188 G4AugerData for Element no. 53 are loaded189 G4AugerData for Element no. 55 are loaded190 G4AugerData for Element no. 82 are loaded191 AugerTransitionTable complete192 Closing the tree...193 Histograms and Ntuples are saved194 ### Histo books 7 histograms195 Loaded linked in JVM.196 Looking for already loaded JVMs...197 Number of jvm's returned: 1Using already loaded JVM.198 Tree store : exrdm-f24.aida199 Creating Ntuple: Emitted Particles200 Creating Ntuple: RadioIsotopes201 Creating Ntuple: Energy Depositions202 Closing the tree...203 Histograms and Ntuples are saved204 197 Graphics systems deleted. 205 198 Visualization Manager deleting... 199 -
trunk/examples/extended/radioactivedecay/exrdm/macros/vrml.mac
r807 r1337 4 4 /run/setCutForRegion Target 10 cm 5 5 /run/setCutForRegion Detector 50 cm 6 7 # vis 6 # 7 # Use this open statement to create an OpenGL view: 8 #/vis/open OGL 600x600-0+0 9 # 10 # Use this open statement to create a .prim file suitable for 11 # viewing in DAWN: 12 #/vis/open DAWNFILE 13 # 14 # Use this open statement to create a .heprep file suitable for 15 # viewing in HepRApp: 16 #/vis/open HepRepFile 17 # 18 # Use this open statement to create a .wrl file suitable for 19 # viewing in a VRML viewer: 8 20 /vis/open VRML2FILE 9 /vis/scene/create 10 /vis/viewer/reset 21 # 22 # Disable auto refresh and quieten vis messages whilst scene and 23 # trajectories are established: 24 /vis/viewer/set/autoRefresh false 25 /vis/verbose errors 26 # 27 # Draw geometry: 28 /vis/drawVolume 29 # 30 # Specify view angle: 31 /vis/viewer/set/viewpointThetaPhi 90. 180. 32 # 33 # Specify zoom value: 11 34 /vis/viewer/zoom 20. 12 /vis/viewer/set/viewpointThetaPhi 90. 180. 35 # 36 # Specify style (surface or wireframe): 13 37 /vis/viewer/set/style wireframe 14 /vis/drawVolume15 /vis/scene/endOfEventAction accumulate16 /tracking/storeTrajectory 117 38 # 18 39 # Draw coordinate axes: 40 #/vis/scene/add/axes 0 0 0 1 m 41 # 42 # Draw smooth trajectories at end of event, showing trajectory points 43 # as markers 2 pixels wide: 44 /vis/scene/add/trajectories smooth 45 /vis/modeling/trajectories/create/drawByCharge 46 /vis/modeling/trajectories/drawByCharge-0/default/setDrawStepPts true 47 /vis/modeling/trajectories/drawByCharge-0/default/setStepPtsSize 2 48 # (if too many tracks cause core dump => /tracking/storeTrajectory 0) 49 # 50 # Draw hits at end of event: 51 #/vis/scene/add/hits 52 # 53 # To draw only gammas: 54 #/vis/filtering/trajectories/create/particleFilter 55 #/vis/filtering/trajectories/particleFilter-0/add gamma 56 # 57 # To invert the above, drawing all particles except gammas, 58 # keep the above two lines but also add: 59 #/vis/filtering/trajectories/particleFilter-0/invert true 60 # 61 # Many other options are available with /vis/modeling and /vis/filtering. 62 # For example, to select colour by particle ID: 63 #/vis/modeling/trajectories/create/drawByParticleID 64 #/vis/modeling/trajectories/drawByParticleID-0/set e- blue 65 # 66 # To superimpose all of the events from a given run: 67 /vis/scene/endOfEventAction accumulate 68 # 69 # Re-establish auto refreshing and verbosity: 70 /vis/viewer/set/autoRefresh true 71 /vis/verbose warnings 72 # 73 # For file-based drivers, use this to create an empty detector view: 74 #/vis/viewer/flush 75 # 19 76 /gps/particle proton 20 77 /tracking/verbose 1 -
trunk/examples/extended/radioactivedecay/exrdm/src/exrdmEventAction.cc
r1230 r1337 32 32 #include "G4EventManager.hh" 33 33 #include "G4HCofThisEvent.hh" 34 #include "G4TrajectoryContainer.hh"35 #include "G4Trajectory.hh"36 #include "G4VVisManager.hh"37 34 #include "G4UImanager.hh" 38 35 #include "G4UnitsTable.hh" … … 65 62 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 66 63 67 void exrdmEventAction::EndOfEventAction(const G4Event* evt)64 void exrdmEventAction::EndOfEventAction(const G4Event*) 68 65 { 69 66 //analysis 70 67 exrdmAnalysisManager::getInstance()->EndOfEvent(); 71 // visualisation72 #ifdef G4VIS_USE73 G4int event_id = evt->GetEventID();74 if (event_id < 100 && G4VVisManager::GetConcreteInstance()) {75 G4TrajectoryContainer * trajectoryContainer = evt->GetTrajectoryContainer();76 G4int n_trajectories = 0;77 if (trajectoryContainer) n_trajectories = trajectoryContainer->entries();78 for (G4int i=0; i<n_trajectories; i++) {79 G4Trajectory* trj = (G4Trajectory *)80 ((*(evt->GetTrajectoryContainer()))[i]);81 if (drawFlag == "all") {82 trj->DrawTrajectory(0);83 } else if (drawFlag == "charged" && trj->GetCharge() != 0.) {84 trj->DrawTrajectory(0);85 }86 }87 }88 #endif89 68 } 90 69 -
trunk/examples/extended/radioactivedecay/exrdm/src/exrdmPhysListEmLowEnergy.cc
r807 r1337 46 46 #include "G4eplusAnnihilation.hh" 47 47 48 #include "G4MultipleScattering.hh" 48 #include "G4eMultipleScattering.hh" 49 #include "G4MuMultipleScattering.hh" 50 #include "G4hMultipleScattering.hh" 49 51 50 52 #include "G4MuIonisation.hh" … … 88 90 } else if (particleName == "e-") { 89 91 90 pmanager->AddProcess(new G4 MultipleScattering, -1, 1,1);92 pmanager->AddProcess(new G4eMultipleScattering, -1, 1,1); 91 93 pmanager->AddProcess(new G4LowEnergyIonisation, -1, 2,2); 92 94 pmanager->AddProcess(new G4LowEnergyBremsstrahlung, -1,-3,3); … … 94 96 } else if (particleName == "e+") { 95 97 96 pmanager->AddProcess(new G4 MultipleScattering, -1, 1,1);98 pmanager->AddProcess(new G4eMultipleScattering, -1, 1,1); 97 99 pmanager->AddProcess(new G4eIonisation, -1, 2,2); 98 100 pmanager->AddProcess(new G4eBremsstrahlung, -1, 3,3); … … 102 104 particleName == "mu-" ) { 103 105 104 pmanager->AddProcess(new G4Mu ltipleScattering,-1, 1,1);106 pmanager->AddProcess(new G4MuMultipleScattering,-1, 1,1); 105 107 pmanager->AddProcess(new G4MuIonisation, -1, 2,2); 106 108 pmanager->AddProcess(new G4MuBremsstrahlung, -1, 3,3); … … 109 111 } else if (particleName == "GenericIon") { 110 112 111 pmanager->AddProcess(new G4 MultipleScattering, -1, 1,1);113 pmanager->AddProcess(new G4hMultipleScattering, -1, 1,1); 112 114 pmanager->AddProcess(new G4hLowEnergyIonisation, -1,2,2); 113 115 // pmanager->AddProcess(new G4ionIonisation, -1, 2,2); … … 117 119 (particle->GetParticleName() != "chargedgeantino")) { 118 120 119 pmanager->AddProcess(new G4 MultipleScattering,-1,1,1);121 pmanager->AddProcess(new G4hMultipleScattering,-1,1,1); 120 122 pmanager->AddProcess(new G4hLowEnergyIonisation, -1,2,2); 121 123 }
Note: See TracChangeset
for help on using the changeset viewer.