Warning, /geant4/examples/extended/hadronic/ParticleFluence/Sphere/README.md is written in an unsupported language. File is not indexed.
0001 \page ExampleSphere Example Sphere
0002
0003 In this example, the particle fluence is evaluated for a very simple
0004 set-up, consisting of one target solid sphere, at the center of which
0005 a particle is shot (by default along the z-axis).
0006
0007 The particle fluence is computed in two places: "forward" and "backward",
0008 defined as the positions immediately after and before, respectively, of
0009 the target with respect to the direction of the primary particle.
0010
0011 The particle fluence is estimated by summing the track length in a
0012 "scoring volume" - i.e. a thin hemisphere shell filled up with G4_Galactic
0013 (very low density gas) material, immediately outside the target sphere -
0014 and then dividing for the cubic volume of such scoring volume.
0015
0016 Complementary information on average multiplicity, average kinetic energy,
0017 and average total energy flow (i.e. sum of kinetic energies) for the
0018 particles produced in the target are also computed.
0019
0020 The particle fluence is evaluated for the following 11 particle types:
0021 - all
0022 - electron + positron
0023 - gamma
0024 - muon- + muon+
0025 - neutrino (any flavour and including anti-neutrino)
0026 - charged pions
0027 - neutron + anti_neutron
0028 - proton + anti_proton
0029 - ion (and anti-ions)
0030 - otherMeson (e.g. kaons, etc.)
0031 - otherBaryon (e.g. hyperons, etc.)
0032
0033 The particle fluence is evaluated for the following 3 kinematical ranges:
0034 - any kinetic energy
0035 - kinetic energy < 20 MeV
0036 - kinetic energy > 20 MeV
0037
0038 Look for the string "***LOOKHERE***" for those parameters/options that
0039 are either hardwired in the code (i.e. not available via UI command),
0040 or default values of UI commands.
0041
0042 This example uses the physics list factory, therefore you can specify
0043 the reference physics list you want to use via the PHYSLIST
0044 environmental variable (by default, if you don't set it, the FTFP_BERT
0045 physics list is used).
0046
0047 To build this example:
0048
0049 ```
0050 mkdir Build; cd Build
0051 cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo \
0052 -DGeant4_DIR=/path-to-geant4-libraries ../.
0053 make
0054 ```
0055
0056 To run it:
0057
0058 ```
0059 ./Sphere all_together.in
0060 ```
0061
0062 which shoots 50 GeV pion- on different target materials, 100 events
0063 in each run, and print out some information on the particle fluence
0064 at the end of each run.
0065 Other macros exist for specific materials:
0066 cu.in, fe.in, graphite.in, lar.in, pb.in, pbwo4.in, polystyrene.in, si.in, w.in .