Warning, /geant4/examples/extended/hadronic/Hadr08/README is written in an unsupported language. File is not indexed.
0001 This is an example of how to use "generic biasing" to get the following
0002 functionality which is currently not available directly in the Geant4
0003 hadronic framework.
0004
0005 We want to use the physics list FTFP_BERT everywhere in our detector,
0006 except that in one (or more) logical volume(s) we want to use a
0007 different combination of hadronic models, e.g. FTFP + INCLXX
0008 (instead of the default FTFP + BERT), for the final-state generation.
0009
0010 Notice that we use the powerful "generic biasing" machinery available
0011 in Geant4, but the actual weights of all tracks remain to the usual
0012 value (1.0) as in the normal (unbiased) case.
0013
0014 In this example, the detector is very simple:
0015 - a homogeneous block of silicon, as a proxy of a tracker sub-detector;
0016 - followed by a crystal, as a proxy of an electromagnetic calorimeter;
0017 - followed by a homogeneous block of iron, as a proxy of a hadron
0018 calorimeter.
0019 We assume that the block of silicon is where we want to replace FTFP+BERT
0020 with FTFP+INCLXX for the final-state modeling of proton, neutron, pion-
0021 and pion+-inelastic interactions (of any energy).
0022 This silicon layer is made artificially thick (20 cm) in order to have
0023 more hadron inelastic interactions for testing.
0024
0025 This example has been tested only for G4 10.5.p01 and 10.6, but it should
0026 work also for previous recent releases (i.e. 10.4 and 10.3).
0027 The example works in both sequential and multi-threaded modes, and the
0028 CPU overhead due to "generic biasing" for this application seems to be
0029 very small (at the per-cent level).
0030
0031 To build it:
0032 mkdir Build; cd Build
0033 cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo \
0034 -DGeant4_DIR=/path-to-geant4-libraries ../.
0035 make
0036
0037 To run it:
0038 ./Hadr08 hadr08.in
0039 which shoot 100 pion+ of 5 GeV kinetic energy.
0040