Back to home page

EIC code displayed by LXR

 
 

    


Warning, /geant4/examples/extended/hadronic/Hadr08/README.md is written in an unsupported language. File is not indexed.

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