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