Back to home page

EIC code displayed by LXR

 
 

    


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

0001 This example shows how to use Geant4 as a generator for simulating
0002 inelastic hadron-nuclear interactions.
0003 
0004 The class HadronicGenerator is the "generator".
0005 The main hadronic models (FTFP, QGSP, BERT, BIC, IonBIC, INCL)
0006 and some combinations of two of them - in a transition energy region,
0007 similarly to what happens in physics lists - are available.
0008 See include/HadronicGenerator.hh for more detailed information.
0009 
0010 The main, Hadr09.cc, shows an example of how to use it.
0011 It samples randomly the projectile hadron, its energy, its direction
0012 and the target material, and then it calls the generator.
0013 Some information regarding the secondaries which are produced can be
0014 printed out.
0015 See the comments in Hadr09.cc for more information and how eventually
0016 to change some of its configurations.
0017 Notice that Hadr09.cc does nothing really useful: users should consider
0018 to use eventually only the class HadronicGenerator.
0019 
0020 (
0021   The file Hadr09.cc-ION_PROJECTILE shows an example of a ion-ion
0022   collision, for fixed type of projectile ion, target ion, projectile
0023   kinetic energy, and projectile direction.
0024   This file is obtained from Hadr09.cc with minimal changes.
0025 )
0026 
0027 Notice that the Geant4 run-manager is not used.
0028 
0029 To build this example:
0030   mkdir Build; cd Build
0031   cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo \
0032         -DGeant4_DIR=/path-to-geant4-libraries ../.
0033   make
0034 
0035 To run it:
0036   ./Hadr09
0037   
0038 which simulates 1000 hadron-nucleus collisions, randomnly selected, and
0039 prints out some information about the secondaries produced in these
0040 interactions. It takes only a few seconds to run.
0041 
0042 Note: this example has been included in Geant4 10.7, but it should work
0043       also for early versions of Geant4, in particular 10.6, 10.5 and 10.4.