1 | #################################################################### |
---|
2 | # Test sensors |
---|
3 | |
---|
4 | /control/alias appPosZ -4.750 |
---|
5 | /control/alias enhanceZ 5.0 |
---|
6 | |
---|
7 | ############################ |
---|
8 | # Detector 0 |
---|
9 | /allpix/det/setId 100 |
---|
10 | /allpix/det/setPosition -4.3 28.2 401.95 mm |
---|
11 | /allpix/det/setRotation 0.0 0.0 180.0 deg |
---|
12 | /allpix/det/setLowTHL 13. keV |
---|
13 | |
---|
14 | /allpix/extras/setAppliancePosition -4.3 28.2 {appPosZ} mm |
---|
15 | /allpix/extras/setWrapperEnhancement 0.0 0.0 {enhanceZ} mm |
---|
16 | |
---|
17 | # Appliances |
---|
18 | # Extra volumes placed with respect to the center of the wrapper. |
---|
19 | # The wrapper is the envolvent volume of the medipix. This volumes |
---|
20 | # rotate with the Medipix ! |
---|
21 | # The command: |
---|
22 | # /allpix/extras/setWrapperEnhancement --> extends the wrapper ! |
---|
23 | # [HINT!] If you want your appliance touching the Si wafer, the |
---|
24 | # center of the volume should be (z coordinate) = |
---|
25 | # half_appliance + (PCB + Si - Enhance)/2. |
---|
26 | ## /allpix/extras/setAppliancePosition -4.3 28.2 -4.750 mm |
---|
27 | ## /allpix/extras/setWrapperEnhancement 0. 0. 5000. um |
---|
28 | |
---|
29 | ##### end of detector 0 ##### |
---|
30 | |
---|
31 | # Detector 1 |
---|
32 | /allpix/det/setId 101 |
---|
33 | /allpix/det/setPosition -4.3 28.2 455.65 mm |
---|
34 | /allpix/det/setRotation 0.0 0.0 180.0 deg |
---|
35 | /allpix/det/setLowTHL 13. keV |
---|
36 | |
---|
37 | /allpix/extras/setAppliancePosition -4.3 28.2 {appPosZ} mm |
---|
38 | /allpix/extras/setWrapperEnhancement 0.0 0.0 {enhanceZ} mm |
---|
39 | |
---|
40 | # Detector 2 |
---|
41 | /allpix/det/setId 102 |
---|
42 | /allpix/det/setPosition -4.3 28.2 505.25 mm |
---|
43 | /allpix/det/setRotation 0.0 0.0 180.0 deg |
---|
44 | /allpix/det/setLowTHL 13. keV |
---|
45 | |
---|
46 | /allpix/extras/setAppliancePosition -4.3 28.2 {appPosZ} mm |
---|
47 | /allpix/extras/setWrapperEnhancement 0.0 0.0 {enhanceZ} mm |
---|
48 | |
---|
49 | # Detector 3 |
---|
50 | /allpix/det/setId 103 |
---|
51 | /allpix/det/setPosition -4.3 28.2 557.65 mm |
---|
52 | /allpix/det/setRotation 0.0 0.0 180.0 deg |
---|
53 | /allpix/det/setLowTHL 13. keV |
---|
54 | |
---|
55 | /allpix/extras/setAppliancePosition -4.3 28.2 {appPosZ} mm |
---|
56 | /allpix/extras/setWrapperEnhancement 0.0 0.0 {enhanceZ} mm |
---|
57 | |
---|
58 | # Detector 4 |
---|
59 | /allpix/det/setId 104 |
---|
60 | /allpix/det/setPosition -4.3 28.2 606.75 mm |
---|
61 | /allpix/det/setRotation 0.0 0.0 180.0 deg |
---|
62 | /allpix/det/setLowTHL 13. keV |
---|
63 | |
---|
64 | /allpix/extras/setAppliancePosition -4.3 28.2 {appPosZ} mm |
---|
65 | /allpix/extras/setWrapperEnhancement 0.0 0.0 {enhanceZ} mm |
---|
66 | |
---|
67 | #################################################################### |
---|
68 | # EUDET Planes |
---|
69 | |
---|
70 | # Al Holder |
---|
71 | /allpix/extras/setTestStructurePosition 0. 0. 0. mm |
---|
72 | /allpix/extras/setTestStructureRotation 0. 0. 0. deg |
---|
73 | /allpix/extras/setTestStructureDetLink 300 |
---|
74 | # Mimosa detector |
---|
75 | /allpix/det/setId 300 |
---|
76 | /allpix/det/setPosition 0.0 15.0 5.0 mm |
---|
77 | /allpix/det/setRotation 0.0 0.0 180.0 deg |
---|
78 | /allpix/det/setLowTHL 13. keV |
---|
79 | |
---|
80 | # Al Holder |
---|
81 | /allpix/extras/setTestStructurePosition 0. 0. 150. mm |
---|
82 | /allpix/extras/setTestStructureRotation 0. 0. 0. deg |
---|
83 | /allpix/extras/setTestStructureDetLink 301 |
---|
84 | # Mimosa detector. |
---|
85 | /allpix/det/setId 301 |
---|
86 | /allpix/det/setPosition 0.0 15.0 155.0 mm |
---|
87 | /allpix/det/setRotation 0.0 0.0 180.0 deg |
---|
88 | /allpix/det/setLowTHL 13. keV |
---|
89 | |
---|
90 | # Al Holder |
---|
91 | /allpix/extras/setTestStructurePosition 0. 0. 300. mm |
---|
92 | /allpix/extras/setTestStructureRotation 0. 0. 0. deg |
---|
93 | /allpix/extras/setTestStructureDetLink 302 |
---|
94 | # Mimosa detector |
---|
95 | /allpix/det/setId 302 |
---|
96 | /allpix/det/setPosition 0.0 15.0 305.0 mm |
---|
97 | /allpix/det/setRotation 0.0 0.0 180.0 deg |
---|
98 | /allpix/det/setLowTHL 13. keV |
---|
99 | |
---|
100 | # Al Holder |
---|
101 | /allpix/extras/setTestStructurePosition 0. 0. 693.8 mm |
---|
102 | /allpix/extras/setTestStructureRotation 0. 0. 0. deg |
---|
103 | /allpix/extras/setTestStructureDetLink 303 |
---|
104 | # Mimosa detector |
---|
105 | /allpix/det/setId 303 |
---|
106 | /allpix/det/setPosition 0.0 15.0 698.8 mm |
---|
107 | /allpix/det/setRotation 0.0 0.0 180.0 deg |
---|
108 | /allpix/det/setLowTHL 13. keV |
---|
109 | |
---|
110 | # Al Holder |
---|
111 | /allpix/extras/setTestStructurePosition 0. 0. 843.8 mm |
---|
112 | /allpix/extras/setTestStructureRotation 0. 0. 0. deg |
---|
113 | /allpix/extras/setTestStructureDetLink 304 |
---|
114 | # Mimosa detector |
---|
115 | /allpix/det/setId 304 |
---|
116 | /allpix/det/setPosition 0.0 15.0 848.8 mm |
---|
117 | /allpix/det/setRotation 0.0 0.0 180.0 deg |
---|
118 | /allpix/det/setLowTHL 13. keV |
---|
119 | |
---|
120 | # Al Holder |
---|
121 | /allpix/extras/setTestStructurePosition 0. 0. 993.8 mm |
---|
122 | /allpix/extras/setTestStructureRotation 0. 0. 0. deg |
---|
123 | /allpix/extras/setTestStructureDetLink 305 |
---|
124 | # Mimosa detector |
---|
125 | /allpix/det/setId 305 |
---|
126 | /allpix/det/setPosition 0.0 15.0 998.8 mm |
---|
127 | /allpix/det/setRotation 0.0 0.0 180.0 deg |
---|
128 | /allpix/det/setLowTHL 13. keV |
---|
129 | |
---|
130 | #################################################################### |
---|
131 | # prefix for output filename (string) Don't use quotation marks \" |
---|
132 | /allpix/config/setOutputPrefixWithPath dataprefix |
---|
133 | |
---|
134 | #################################################################### |
---|
135 | # Scintillators |
---|
136 | /allpix/eudet/scint1Pos 0.0 0.0 -24.0 mm # offset of 18mm +/- 6mm with of scinti |
---|
137 | /allpix/eudet/scint2Pos 0.0 0.0 -18.0 mm |
---|
138 | /allpix/eudet/scint3Pos 0.0 0.0 1011.8 mm |
---|
139 | /allpix/eudet/scint4Pos 0.0 0.0 1017.8 mm |
---|
140 | |
---|
141 | #################################################################### |
---|
142 | # Build detectors |
---|
143 | /allpix/det/update |
---|
144 | |
---|
145 | #################################################################### |
---|
146 | # Bz field |
---|
147 | #/allpix/extras/setPeakField 3.0 tesla |
---|
148 | |
---|
149 | #################################################################### |
---|
150 | # Vis |
---|
151 | /vis/scene/create |
---|
152 | /vis/scene/add/axes 0. 0. 0. 10. cm |
---|
153 | |
---|
154 | #/vis/scene/add/volume World -1 2 |
---|
155 | /vis/scene/add/volume World -1 2 |
---|
156 | /vis/viewer/set/style s |
---|
157 | |
---|
158 | #/vis/open OIX 1024x768-100+100 |
---|
159 | #/vis/open OGLIXm 1024x768-100+100 |
---|
160 | |
---|
161 | #/vis/open RayTracer |
---|
162 | #/vis/open OGLIQt |
---|
163 | #/vis/open OGLSQt |
---|
164 | /vis/open OIX |
---|
165 | #/vis/open OGLIX 1024x768-100+100 |
---|
166 | #/vis/open OGLSXm |
---|
167 | #/vis/open DAWNFILE |
---|
168 | #/vis/open OGLSX |
---|
169 | |
---|
170 | /vis/viewer/set/background 0.4 0.5 0.6 |
---|
171 | /vis/viewer/set/viewpointThetaPhi 20 50 |
---|
172 | #/vis/viewer/set/background 0 0 0 |
---|
173 | /vis/viewer/zoom 2.0 |
---|
174 | |
---|
175 | /vis/viewer/flush |
---|
176 | |
---|
177 | # Draw trajectories at end of event, showing trajectory points as |
---|
178 | # markers of size 2 pixels |
---|
179 | /vis/scene/add/trajectories |
---|
180 | /vis/modeling/trajectories/create/drawByCharge |
---|
181 | /vis/modeling/trajectories/drawByCharge-0/default/setDrawStepPts true |
---|
182 | /vis/modeling/trajectories/drawByCharge-0/default/setStepPtsSize 2 |
---|
183 | /vis/scene/endOfEventAction accumulate |
---|
184 | |
---|
185 | |
---|
186 | #################################################################### |
---|
187 | # Source GPS example |
---|
188 | /gps/particle pi+ |
---|
189 | /gps/pos/type Plane |
---|
190 | #/gps/pos/rot1 0 0 1 |
---|
191 | #/gps/pos/rot2 1 0 0 |
---|
192 | /gps/pos/shape Rectangle |
---|
193 | /gps/pos/centre 0.0 0.0 1100.0 mm |
---|
194 | /gps/pos/halfy 3600. um |
---|
195 | /gps/pos/halfx 4100. um |
---|
196 | /gps/direction 0 0 -1 |
---|
197 | /gps/ene/type User |
---|
198 | /gps/hist/type energy |
---|
199 | # spectra |
---|
200 | /gps/hist/point 120000 1 |
---|
201 | |
---|
202 | /gps/source/list |
---|
203 | |
---|
204 | |
---|
205 | #################################################################### |
---|
206 | # Verbose control |
---|
207 | /run/verbose 0 |
---|
208 | /control/verbose 0 |
---|
209 | /control/saveHistory |
---|
210 | /tracking/verbose 0 |
---|
211 | /allpix/phys/verbose 0 |
---|
212 | |
---|
213 | #################################################################### |
---|
214 | # run |
---|
215 | /run/beamOn 2 |
---|
216 | |
---|
217 | # video |
---|
218 | #/control/alias phi 50 |
---|
219 | #/control/loop macros/movie.loop theta 50 200 1 |
---|
220 | #/control/loop macros/movie_zoom.loop theta 120 200 1 |
---|
221 | |
---|