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.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 ]
1
2 =========================================================
3 Geant4 - an Object-Oriented Toolkit for Simulation in HEP
4 =========================================================
5
6
7
8 field06 Example
9 ---------------
10
11 This example exercises the capability of tracking massive
12 particles in a gravity field.
13
14 Credit goes to Erik Miller (Univ. of Northern British Columbia) and
15 Garry Yan (Univ. of Toronto)
16
17 **************
18 *Classes Used*
19 **************
20
21 1 - main()
22
23 See field06.cc.
24
25
26 2- GEOMETRY DEFINITION
27
28 As simple world G4Box with a G4UniformGravityField propagating momentum
29 (G4EqGravityField) with G4ClassicalRK4(fEquation,8). The example uses the
30 default gravity field on the earth's surface: gy = -9.81*m/s/s/c_light.
31
32 3- AN EVENT: THE PRIMARY GENERATOR
33
34 Uses an Ultra Cold Neutron (UCN) and G4ParticleGun with:
35 particleEnergy = G4UniformRand()*1e-7*eV
36
37 UCN are launched from (0,0,0) uniform into 4pi
38
39 4- PHYSICS
40
41 The simulation knows of only six particles: G4Neutron, G4Proton,
42 G4Electron, G4AntiNeutrinoE, G4MuonPlus and G4MuonMinus
43
44 RegisterPhysics(new G4StepLimiterPhysics());
45
46 G4StepLimiterPhysics defines G4StepLimiter and G4UserSpecialCuts
47
48 5- HOW TO START ?
49
50 This example handles the program arguments in a new way.
51 It can be run with the following optional arguments:
52 % field06 [-m macro ] [-u UIsession] [-t nThreads] [-r randomSeed]
53
54 The -t option is available only in multi-threading mode
55 and it allows the user to override the Geant4 default number of
56 threads. The number of threads can be also set via G4FORCENUMBEROFTHREADS
57 environment variable which has the top priority.
58
59 - Execute field06 in 'batch' mode from macro files e.g.
60 % field06 -m field06.in > field06.out &
61
62 - Execute field06 in 'interactive' mode with visualization e.g.
63 % field06
64 ....
65 Idle> type your commands, for example:
66 Idle> run/beamOn 1
67 ....