Warning, /geant4/examples/extended/field/field06/README is written in an unsupported language. File is not indexed.
0001
0002 =========================================================
0003 Geant4 - an Object-Oriented Toolkit for Simulation in HEP
0004 =========================================================
0005
0006
0007
0008 field06 Example
0009 ---------------
0010
0011 This example exercises the capability of tracking massive
0012 particles in a gravity field.
0013
0014 Credit goes to Erik Miller (Univ. of Northern British Columbia) and
0015 Garry Yan (Univ. of Toronto)
0016
0017 **************
0018 *Classes Used*
0019 **************
0020
0021 1 - main()
0022
0023 See field06.cc.
0024
0025
0026 2- GEOMETRY DEFINITION
0027
0028 As simple world G4Box with a G4UniformGravityField propagating momentum
0029 (G4EqGravityField) with G4ClassicalRK4(fEquation,8). The example uses the
0030 default gravity field on the earth's surface: gy = -9.81*m/s/s/c_light.
0031
0032 3- AN EVENT: THE PRIMARY GENERATOR
0033
0034 Uses an Ultra Cold Neutron (UCN) and G4ParticleGun with:
0035 particleEnergy = G4UniformRand()*1e-7*eV
0036
0037 UCN are launched from (0,0,0) uniform into 4pi
0038
0039 4- PHYSICS
0040
0041 The simulation knows of only six particles: G4Neutron, G4Proton,
0042 G4Electron, G4AntiNeutrinoE, G4MuonPlus and G4MuonMinus
0043
0044 RegisterPhysics(new G4StepLimiterPhysics());
0045
0046 G4StepLimiterPhysics defines G4StepLimiter and G4UserSpecialCuts
0047
0048 5- HOW TO START ?
0049
0050 This example handles the program arguments in a new way.
0051 It can be run with the following optional arguments:
0052 % field06 [-m macro ] [-u UIsession] [-t nThreads] [-r randomSeed]
0053
0054 The -t option is available only in multi-threading mode
0055 and it allows the user to override the Geant4 default number of
0056 threads. The number of threads can be also set via G4FORCENUMBEROFTHREADS
0057 environment variable which has the top priority.
0058
0059 - Execute field06 in 'batch' mode from macro files e.g.
0060 % field06 -m field06.in > field06.out &
0061
0062 - Execute field06 in 'interactive' mode with visualization e.g.
0063 % field06
0064 ....
0065 Idle> type your commands, for example:
0066 Idle> run/beamOn 1
0067 ....