-
Notifications
You must be signed in to change notification settings - Fork 1
/
run.mac
52 lines (40 loc) · 1.33 KB
/
run.mac
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
###################################################
# Batch running of events
###################################################
# If you need to see details about the physics
# list, you can use the following. It's also part of
# the output of "./gramsg4 -v".
#/process/em/verbose 1
#/process/had/verbose 1
# In GramsG4, every .mac file must contain this
# line after any physics/geometry/thread setup,
# but before any generation/visualization commands.
/run/initialize
# Note that the /gps (General Particle Source) commands below can
# be overridden by GramsG4PrimaryGeneratorAction.cc.
# verbosity
/tracking/verbose 1
/control/verbose 1
/run/verbose 2
# For GRAMS, let's look at monoenergetic 1MeV photons
/gps/particle gamma
/gps/ene/type Mono
/gps/ene/mono 1 MeV
# Aim a little off from the center of the detector (so we don't aim
# precisely at a PTFE sheet). (Remember that z=0 is set at the
# location of the induction plane.)
/gps/ang/type focused
/gps/ang/focuspoint 0.5 0.5 -100 cm
# Shoot along Z direction downwards from above
/gps/pos/centre 0.5 0.5 200 cm
# This means "run Geant4 and generate 20 events"
/run/beamOn 20
# Turn off detailed track information.
/tracking/verbose 0
# Shoot along the y-axis
/gps/pos/centre 0.5 -180 -100 cm
/run/beamOn 20
# Shoot along the x-axis
/gps/pos/centre -200 0.5 -100 cm
/run/beamOn 20
exit