Warning, /geant4/examples/extended/hadronic/Hadr00/README is written in an unsupported language. File is not indexed.
0001 =========================================================
0002 Geant4 - an Object-Oriented Toolkit for Simulation in HEP
0003 =========================================================
0004
0005
0006 HADR00
0007
0008 V.Ivanchenko
0009 CERN, Geneva, Switzerland
0010
0011
0012 This example demonstrates a usage of G4PhysListFactory to build
0013 Physics List and G4HadronicProcessStore to access cross sections.
0014
0015 GEOMETRY
0016
0017 The Target volume is a cylinder placed inside the World volume. Following
0018 UI commands are available to modify the geometry:
0019
0020 /testhadr/TargetMat G4_Pb
0021 /testhadr/WorldMat G4_AIR
0022 /testhadr/TargetRadius 10 mm
0023 /testhadr/TargetLength 20 cm
0024
0025 By default beam direction coincides with the target axis and is Z axis
0026 in the global coordinate system. The beam starts in the middle of the target.
0027 G4ParticleGun is used as a primary generator. The energy and the type of
0028 the beam can be defined via standard UI commands
0029
0030 /gun/energy 15 GeV
0031 /gun/particle proton
0032
0033 PHYSICS
0034
0035 Physics List is defined by its name given in the 3d argument of the of the
0036 run command.
0037
0038 Hadr00 my.macro QGSP_BERT
0039
0040 If 3d argument is not set then by the PHYSLIST environment variable.
0041 By default FTFP_BERT Physics List will be instantiated.
0042
0043
0044 CROSS SECTION
0045
0046 At the end of any run the set of cross sections is built and can be printed
0047 out for a given projectile particle and a target element, which can be
0048 defined via UI commands:
0049
0050 /testhadr/particle pi+
0051 /testhadr/targetElm Pb
0052 /testhadr/verbose 1
0053
0054 The level verbosity above zero provides printout of the cross section table.
0055 The energy/momentum limits and number of bins can be set via UI commands:
0056
0057 /testhadr/nBinsE 900
0058 /testhadr/nBinsP 700
0059 /testhadr/minEnergy 1 keV
0060 /testhadr/maxEnergy 1 TeV
0061 /testhadr/minMomentum 1 MeV
0062 /testhadr/maxMOmentum 10 TeV
0063
0064 VISUALIZATION
0065
0066 For interactive mode G4 visualization options and variables should be
0067 defined, then the example should be recompiled:
0068
0069 gmake visclean
0070 gmake
0071
0072 The vis.mac file can be used an example of visualization. The following
0073 command can be used:
0074
0075 /testhadr/DrawTracks charged
0076 /testhadr/DrawTracks neutral
0077 /testhadr/DrawTracks all
0078
0079 HISTOGRAMS
0080
0081 All histograms are provided in decimal logarithmic scale (log10(E/MeV)
0082 and log10(p/GeV)) for one projectile particle and one target element.
0083 The element is taken from the Geant4 NIST database, natural isotope
0084 composition is assumed.
0085
0086 It is possible to change scale and output file name using UI commands:
0087
0088 /testhadr/histo/fileName name
0089 /testhadr/histo/setHisto idx nbins vmin vmax unit
0090
0091 Only ROOT histograms are available.