-
Notifications
You must be signed in to change notification settings - Fork 13
/
gui.mac
159 lines (117 loc) · 6.34 KB
/
gui.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
#/ Set verbosity high
/control/verbose 2
/run/verbose 2
# Create an empty scene
#/vis/scene/create
#Add Detectors - Examples. Uncomment and run to see the effect.
################
# Adds the full array of detectors in the forward position
#/DetSys/det/addGriffinForward 16
################
# Adds a single forward detector in the fourth position
#/DetSys/det/addGriffinForwardDetector 4
################
# Adds 10 detectors in the back position
#/DetSys/det/addGriffinBack 10
################
#Adds 8 detectors at different radial distances with no suppressors
#/DetSys/det/SetCustomShieldsPresent 0 # Turns suppressors on or off. ( 1 = on, 0 = off )
#/DetSys/det/SetCustomExtensionSuppressorLocation 0 # Sets the location of the extension suppressors (Forward = 1, Back = 0)
#/DetSys/det/SetCustomDeadLayer 12 12 0 # Detector Number, Position number, Unused.
#/DetSys/det/SetCustomRadialDistance 12.0 cm # Sets radial distance of the detector assembly. Does not affect extension suppressors
#/DetSys/det/addGriffinCustomDetector 0 # Adds a detector based on the SetCustomShieldsPresent, SetCustomRadialDistance, and SetCustomDeadLayer paramaters. The integer is currently unused.
#/DetSys/det/SetCustomRadialDistance 15.0 cm # Sets radial distance of the detector assembly. Does not affect extension suppressors
#/DetSys/det/SetCustomDeadLayer 5 5 0 # Detector Number, Position number, Unused.
#/DetSys/det/addGriffinCustomDetector 0 # Adds a detector based on the SetCustomShieldsPresent, SetCustomRadialDistance, and SetCustomDeadLayer paramaters. The integer is currently unused.
#/DetSys/det/SetCustomRadialDistance 18.0 cm # Sets radial distance of the detector assembly. Does not affect extension suppressors
#/DetSys/det/SetCustomDeadLayer 6 6 0 # Detector Number, Position number, Unused.
#/DetSys/det/addGriffinCustomDetector 0 # Adds a detector based on the SetCustomShieldsPresent, SetCustomRadialDistance, and SetCustomDeadLayer paramaters. The integer is currently unused.
#/DetSys/det/SetCustomRadialDistance 21.0 cm # Sets radial distance of the detector assembly. Does not affect extension suppressors
#/DetSys/det/SetCustomDeadLayer 7 7 0 # Detector Number, Position number, Unused.
#/DetSys/det/addGriffinCustomDetector 0 # Adds a detector based on the SetCustomShieldsPresent, SetCustomRadialDistance, and SetCustomDeadLayer paramaters. The integer is currently unused.
#/DetSys/det/SetCustomRadialDistance 24.0 cm # Sets radial distance of the detector assembly. Does not affect extension suppressors
#/DetSys/det/SetCustomDeadLayer 8 8 0 # Detector Number, Position number, Unused.
#/DetSys/det/addGriffinCustomDetector 0 # Adds a detector based on the SetCustomShieldsPresent, SetCustomRadialDistance, and SetCustomDeadLayer paramaters. The integer is currently unused.
#/DetSys/det/SetCustomRadialDistance 27.0 cm # Sets radial distance of the detector assembly. Does not affect extension suppressors
#/DetSys/det/SetCustomDeadLayer 9 9 0 # Detector Number, Position number, Unused.
#/DetSys/det/addGriffinCustomDetector 0 # Adds a detector based on the SetCustomShieldsPresent, SetCustomRadialDistance, and SetCustomDeadLayer paramaters. The integer is currently unused.
#/DetSys/det/SetCustomRadialDistance 30.0 cm # Sets radial distance of the detector assembly. Does not affect extension suppressors
#/DetSys/det/SetCustomDeadLayer 10 10 0 # Detector Number, Position number, Unused.
#/DetSys/det/addGriffinCustomDetector 0 # Adds a detector based on the SetCustomShieldsPresent, SetCustomRadialDistance, and SetCustomDeadLayer paramaters. The integer is currently unused.
#/DetSys/det/SetCustomRadialDistance 33.0 cm # Sets radial distance of the detector assembly. Does not affect extension suppressors
#/DetSys/det/SetCustomDeadLayer 11 11 0 # Detector Number, Position number, Unused.
#/DetSys/det/addGriffinCustomDetector 0 # Adds a detector based on the SetCustomShieldsPresent, SetCustomRadialDistance, and SetCustomDeadLayer paramaters. The integer is currently unused.
################
# Adds an array of 16 detectors at 25cm with no suppressors
/DetSys/det/SetCustomShieldsPresent 0
/DetSys/det/SetCustomRadialDistance 25.0 cm
/DetSys/det/addGriffinCustom 16
################
# Adds an array of forward detectors at 11cm with hevimets
#/DetSys/det/SetCustomShieldsPresent 1
#/DetSys/det/includeGriffinHevimet 1
#/DetSys/det/SetCustomRadialDistance 11.0 cm
#/DetSys/det/SetCustomExtensionSuppressorLocation 1
#/DetSys/det/addGriffinCustom 12
#Prepare Visualisation
#/vis/open OGLIQt
/vis/open OGL
/vis/drawVolume
#Draw smooth trajectories at end of event, showing trajectory points as markers 2 pixels wide:
/vis/scene/add/trajectories smooth
/vis/modeling/trajectories/create/drawByCharge
/vis/modeling/trajectories/drawByCharge-0/default/setDrawStepPts true
/vis/modeling/trajectories/drawByCharge-0/default/setStepPtsSize 2
# (if too many tracks cause core dump => /tracking/storeTrajectory 0)
# Draw hits at end of event:
/vis/scene/add/hits
#
#To draw only gammas:
#/vis/filtering/trajectories/create/particleFilter
#/vis/filtering/trajectories/particleFilter-0/add gamma
#
#To invert the above, drawing all particles except gammas,
#keep the above two lines but also add:
#/vis/filtering/trajectories/particleFilter-0/invert true
#
#To superimpose all of the events from a given run:
/vis/scene/endOfEventAction accumulate
#
#
#Decorations
#Name
/vis/set/textColour green
/vis/set/textLayout right
/vis/scene/add/text2D 0.9 -.9 24 ! ! detectorSimulations
#or, if your system does not support right-adjustment
#/vis/scene/add/text2D 0 -.9 24 ! ! exampleB1
/vis/set/textLayout # Revert to normal (left adjusted) layout
/vis/set/textColour # Revert to default text colour (blue)
#
#Axes, scale, etc.
/vis/scene/add/scale # Simple scale line
/vis/scene/add/axes # Simple axes: x=red, y=green, z=blue.
/vis/scene/add/eventID # Drawn at end of event
#/vis/scene/add/date # Date stamp
#/vis/scene/add/logo2D # Simple logo
#/vis/scene/add/logo # 3D logo
#
#Frame
/vis/set/colour red
/vis/set/lineWidth 2
/vis/scene/add/frame # Simple frame around the view
/vis/set/colour # Revert to default colour (white)
/vis/set/lineWidth # Revert to default line width (1.)
/vis/viewer/set/style surface
#
#
#refresh display
#/vis/scene/endOfEventAction refresh
/vis/viewer/set/autoRefresh True
#
#To enable output
#/DetSys/run/enableLM
#
#Set up source
/DetSys/gun/particle gamma
/DetSys/gun/energy 661.657 keV