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10.5.p1 ] [ 10.6 ] [ 10.6.p1 ] [ 10.6.p2 ] [ 10.6.p3 ] [ 10.7 ] [ 10.7.p1 ] [ 10.7.p2 ] [ 10.7.p3 ] [ 10.7.p4 ] [ 11.0 ] [ 11.0.p1 ] [ 11.0.p2 ] [ 11.0.p3, ] [ 11.0.p4 ] [ 11.1 ] [ 11.1.1 ] [ 11.1.2 ] [ 11.1.3 ] [ 11.2 ] [ 11.2.1 ] [ 11.2.2 ] [ 11.3.0 ]

Name Size       Last modified (GMT) Description
Back Parent directory       2024-12-05 15:16:16
Folder include/       2024-12-05 15:16:16
Folder scripts/       2024-12-05 15:16:16
Folder src/       2024-12-05 15:16:16
File CMakeLists.txt 2126 bytes       2024-12-05 15:16:16
File GNUmakefile 507 bytes       2024-12-05 15:16:16
C++ file Hadr00.cc 4741 bytes       2024-12-05 15:16:16
File History 4412 bytes       2024-12-05 15:16:16
File README 2777 bytes       2024-12-05 15:16:16
File ge.mac 659 bytes       2024-12-05 15:16:16
File hadr00.in 575 bytes       2024-12-05 15:16:16
File hadr00.out 88943 bytes       2024-12-05 15:16:16
File hadr00_all.in 495 bytes       2024-12-05 15:16:16
File hadr00_all_hp.in 498 bytes       2024-12-05 15:16:16
File n.mac 546 bytes       2024-12-05 15:16:16
File pi.mac 1165 bytes       2024-12-05 15:16:16
File pn.mac 1132 bytes       2024-12-05 15:16:16
File run.csh 999 bytes       2024-12-05 15:16:16
File run_single.csh 256 bytes       2024-12-05 15:16:16
File si.in 760 bytes       2024-12-05 15:16:16
File test.mac 1209 bytes       2024-12-05 15:16:16
File vis.mac 2104 bytes       2024-12-05 15:16:16

  1      =========================================================
  2      Geant4 - an Object-Oriented Toolkit for Simulation in HEP
  3      =========================================================
  4 
  5 
  6                                  HADR00
  7 
  8                              V.Ivanchenko
  9                        CERN, Geneva, Switzerland
 10 
 11 
 12 This example demonstrates a usage of G4PhysListFactory to build 
 13 Physics List and G4HadronicProcessStore to access cross sections.
 14 
 15                            GEOMETRY
 16 
 17 The Target volume is a cylinder placed inside the World volume. Following 
 18 UI commands are available to modify the geometry:
 19 
 20 /testhadr/TargetMat     G4_Pb
 21 /testhadr/WorldMat      G4_AIR
 22 /testhadr/TargetRadius  10 mm
 23 /testhadr/TargetLength  20 cm
 24 
 25 By default beam direction coincides with the target axis and is Z axis 
 26 in the global coordinate system. The beam starts in the middle of the target.
 27 G4ParticleGun is used as a primary generator. The energy and the type of 
 28 the beam can be defined via standard UI commands
 29 
 30 /gun/energy   15 GeV
 31 /gun/particle proton
 32 
 33                            PHYSICS
 34 
 35 Physics List is defined by its name given in the 3d argument of the of the 
 36 run command. 
 37 
 38 Hadr00 my.macro QGSP_BERT   
 39 
 40 If 3d argument is not set then by the PHYSLIST environment variable. 
 41 By default FTFP_BERT Physics List will be instantiated.
 42 
 43  
 44                         CROSS SECTION
 45 
 46 At the end of any run the set of cross sections is built and can be printed 
 47 out for a given projectile particle and a target element, which can be 
 48 defined via UI commands:
 49 
 50 /testhadr/particle   pi+
 51 /testhadr/targetElm  Pb
 52 /testhadr/verbose    1
 53 
 54 The level verbosity above zero provides printout of the cross section table.
 55 The energy/momentum limits and number of bins can be set via UI commands:
 56 
 57 /testhadr/nBinsE      900
 58 /testhadr/nBinsP      700
 59 /testhadr/minEnergy   1 keV
 60 /testhadr/maxEnergy   1 TeV
 61 /testhadr/minMomentum 1 MeV
 62 /testhadr/maxMOmentum 10 TeV
 63 
 64                           VISUALIZATION
 65 
 66 For interactive mode G4 visualization options and variables should be
 67 defined, then the example should be recompiled:
 68 
 69 gmake visclean
 70 gmake
 71 
 72 The vis.mac file can be used an example of visualization. The following 
 73 command can be used:
 74 
 75 /testhadr/DrawTracks  charged
 76 /testhadr/DrawTracks  neutral
 77 /testhadr/DrawTracks  all
 78 
 79                           HISTOGRAMS
 80 
 81 All histograms are provided in decimal logarithmic scale (log10(E/MeV)
 82 and log10(p/GeV)) for one projectile particle and one target element.
 83 The element is taken from the Geant4 NIST database, natural isotope 
 84 composition is assumed. 
 85 
 86 It is possible to change scale and output file name using UI commands:
 87 
 88 /testhadr/histo/fileName name
 89 /testhadr/histo/setHisto idx nbins vmin vmax unit
 90 
 91 Only ROOT histograms are available.