forked from jintonic/gears
-
Notifications
You must be signed in to change notification settings - Fork 0
/
radiate.mac
46 lines (41 loc) · 1.08 KB
/
radiate.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
# print macro commands on screen
/control/verbose 1
# geometry must be specified before /run/initialize
/geometry/source detector.tg
# specify a physics list
#/physics_lists/select QGSP_BERT_EMV
# initialize geometry and physics
/run/initialize
# change particle and its energy here
/gps/particle gamma
/gps/energy 2.6 MeV
# isotropically emit gamma rays in a range
/gps/ang/type iso
/gps/ang/minphi 180 deg
/gps/ang/maxphi 270 deg
/gps/ang/mintheta 40 deg
/gps/ang/maxtheta 150 deg
# visualize geometry and events for debugging
/vis/open VRML2FILE
/vis/drawVolume
/vis/scene/add/trajectories
/vis/scene/endOfEventAction accumulate 10
/run/beamOn 10
/vis/open HepRepFile
/vis/drawVolume
/vis/scene/add/axes
/vis/scene/add/trajectories
# turn on detailed information about tracking
/tracking/verbose 2
# dump a few events on screen for debugging
/run/beamOn 10
# turn off screen printing for fast simulation
/vis/disable
/tracking/verbose 0
# turn on data recording
/analysis/setFileName gears.root
# turn on progress report
/run/verbose 2
/run/printProgress 10000
# start simulation
/run/beamOn 50000