Geant4 Cross Reference |
1 In this example, the particle fluence is evalu 1 In this example, the particle fluence is evaluated for a very simple 2 set-up, consisting of one target solid sphere, 2 set-up, consisting of one target solid sphere, at the center of which 3 a particle is shot (by default along the z-axi 3 a particle is shot (by default along the z-axis). 4 4 5 The particle fluence is computed in two places 5 The particle fluence is computed in two places: "forward" and "backward", 6 defined as the positions immediately after and 6 defined as the positions immediately after and before, respectively, of 7 the target with respect to the direction of th 7 the target with respect to the direction of the primary particle. 8 8 9 The particle fluence is estimated by summing t 9 The particle fluence is estimated by summing the track length in a 10 "scoring volume" - i.e. a thin hemisphere shel 10 "scoring volume" - i.e. a thin hemisphere shell filled up with G4_Galactic 11 (very low density gas) material, immediately o 11 (very low density gas) material, immediately outside the target sphere - 12 and then dividing for the cubic volume of such 12 and then dividing for the cubic volume of such scoring volume. 13 13 14 Complementary information on average multiplic 14 Complementary information on average multiplicity, average kinetic energy, 15 and average total energy flow (i.e. sum of kin 15 and average total energy flow (i.e. sum of kinetic energies) for the 16 particles produced in the target are also comp 16 particles produced in the target are also computed. 17 17 18 The particle fluence is evaluated for the foll 18 The particle fluence is evaluated for the following 11 particle types: 19 - all 19 - all 20 - electron + positron 20 - electron + positron 21 - gamma 21 - gamma 22 - muon- + muon+ 22 - muon- + muon+ 23 - neutrino (any flavour and including anti-ne 23 - neutrino (any flavour and including anti-neutrino) 24 - charged pions 24 - charged pions 25 - neutron + anti_neutron 25 - neutron + anti_neutron 26 - proton + anti_proton 26 - proton + anti_proton 27 - ion (and anti-ions) 27 - ion (and anti-ions) 28 - otherMeson (e.g. kaons, etc.) 28 - otherMeson (e.g. kaons, etc.) 29 - otherBaryon (e.g. hyperons, etc.) 29 - otherBaryon (e.g. hyperons, etc.) 30 30 31 The particle fluence is evaluated for the foll 31 The particle fluence is evaluated for the following 3 kinematical ranges: 32 - any kinetic energy 32 - any kinetic energy 33 - kinetic energy < 20 MeV 33 - kinetic energy < 20 MeV 34 - kinetic energy > 20 MeV 34 - kinetic energy > 20 MeV 35 35 36 Look for the string "***LOOKHERE***" for those 36 Look for the string "***LOOKHERE***" for those parameters/options that 37 are either hardwired in the code (i.e. not ava 37 are either hardwired in the code (i.e. not available via UI command), 38 or default values of UI commands. 38 or default values of UI commands. 39 39 40 This example uses the physics list factory, th 40 This example uses the physics list factory, therefore you can specify 41 the reference physics list you want to use via 41 the reference physics list you want to use via the PHYSLIST 42 environmental variable (by default, if you don 42 environmental variable (by default, if you don't set it, the FTFP_BERT 43 physics list is used). 43 physics list is used). 44 44 45 To build this example: 45 To build this example: 46 46 47 mkdir Build; cd Build 47 mkdir Build; cd Build 48 cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo \ 48 cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo \ 49 -DGeant4_DIR=/path-to-geant4-libraries 49 -DGeant4_DIR=/path-to-geant4-libraries ../. 50 make 50 make 51 51 52 To run it: 52 To run it: 53 53 54 ./Sphere all_together.in << 54 ./Sphere all_together.g4 55 55 56 which shoots 50 GeV pion- on different target 56 which shoots 50 GeV pion- on different target materials, 100 events 57 in each run, and print out some information on 57 in each run, and print out some information on the particle fluence 58 at the end of each run. 58 at the end of each run. 59 Other macros exist for specific materials: << 59 Other macros exist for specific materials. 60 cu.in, fe.in, graphite.in, lar.in, pb.in, pbwo <<