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
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
|
<?xml version="1.0"?>
<?xmsl version="1.0"?>
<DDDefinition xmlns="http://www.cern.ch/cms/DDL" xsi="http://www.w3.org/2001/XMLSchema-instance" schemaLocation="http://www.cern.ch/cms/DDL ../../../../DetectorDescription/Schema/DDLSchema.xsd">
<!-- this file defines the geometry of the Alignment Tubes in the CMS Tracker -->
<SolidSection label="AlignmentTubes.xml">
<!-- define the solids for the alignment tubes -->
<!-- this is for Alignment Tubes in +y direction -->
<Tubs name="ATEV" dz="1137.0*mm" rMin="0.0*fm" rMax="8.0*mm" startPhi="0*deg" deltaPhi="360*deg"/>
<!-- this for Alingment Tubes in -y direction -->
<Tubs name="AlignmentTube" dz="0.5*1135.0*mm" rMin="6.0*mm" rMax="8.0*mm" startPhi="0*deg" deltaPhi="360*deg"/>
<Tubs name="Mirror" dz="0.5*0.6*mm" rMin="0.0*fm" rMax="6.0*mm" startPhi="0*deg" deltaPhi="360*deg"/>
</SolidSection>
<LogicalPartSection label="AlignmentTubes.xml">
<!-- define the properties of the Solids -->
<LogicalPart name="ATEV" category="unspecified">
<rSolid name="ATEV"/>
<rMaterial name="materials:T_Air"/>
</LogicalPart>
<LogicalPart name="AlignmentTube" category="unspecified">
<rSolid name="AlignmentTube"/>
<rMaterial name="tobmaterial:TOB_CF_Str"/>
</LogicalPart>
<LogicalPart name="Mirror" category="unspecified">
<rSolid name="Mirror"/>
<rMaterial name="materials:Si O_2"/>
</LogicalPart>
</LogicalPartSection>
<PosPartSection label="AlignmentTubes.xml">
<!-- position the logical parts -->
<!-- position the first alignment tube -->
<Algorithm name="global:DDAngular">
<rParent name="tob:TOB"/>
<String name="ChildName" value="AlignmentTubes:ATEV"/>
<Numeric name="StartCopyNo" value="1"/>
<Numeric name="IncrCopyNo" value="1"/>
<Numeric name="N" value="1"/>
<Numeric name="Radius" value="0*mm"/>
<Numeric name="StartAngle" value="0*deg"/>
<Numeric name="RangeAngle" value="360*deg"/>
<Vector name="Center" type="numeric" nEntries="3"> 564*cos(22.5*deg)*mm, 564*sin(22.5*deg)*mm, 0*mm </Vector>
<Vector name="RotateSolid" type="numeric" nEntries="6"> 0.*deg, 0.*deg, 0.*deg, 0.*deg, 0.*deg, (22.5-90)*deg </Vector>
<!-- first rotation -->
<!-- first rotate the mirror about 0 degrees w.r.t. to the x-axis -->
<!-- theta=0*deg -->
<!-- phi = 0*deg -->
<!-- rotate by 0*deg around (theta,phi) -->
<!-- second rotation -->
<!-- rotate the tube, so it has the appropriate angle w.r.t. the z-axis -->
<!-- theta=0*deg -->
<!-- phi=0*deg -->
<!-- rotate by (22.5-90)*deg around (theta,phi); the angle is the position angle in phi -->
</Algorithm>
<!-- position the second alignment tube -->
<Algorithm name="global:DDAngular">
<rParent name="tob:TOB"/>
<String name="ChildName" value="AlignmentTubes:ATEV"/>
<Numeric name="StartCopyNo" value="2"/>
<Numeric name="IncrCopyNo" value="1"/>
<Numeric name="N" value="1"/>
<Numeric name="Radius" value="0*mm"/>
<Numeric name="StartAngle" value="0*deg"/>
<Numeric name="RangeAngle" value="360*deg"/>
<Vector name="Center" type="numeric" nEntries="3"> 564*cos(73.92857*deg)*mm, 564*sin(73.92857*deg)*mm, 0*mm </Vector>
<Vector name="RotateSolid" type="numeric" nEntries="6"> 0.*deg, 0.*deg, 0.*deg, 0.*deg, 0.*deg, (73.92857-90)*deg </Vector>
<!-- first rotation -->
<!-- first rotate the mirror about 0 degrees w.r.t. to the x-axis -->
<!-- theta=0*deg -->
<!-- phi = 0*deg -->
<!-- rotate by 0*deg around (theta,phi) -->
<!-- second rotation -->
<!-- rotate the tube, so it has the appropriate angle w.r.t. the z-axis -->
<!-- theta=0*deg -->
<!-- phi=0*deg -->
<!-- rotate (73.92857-90)*deg around (theta,phi); the angle is the position angle in phi -->
</Algorithm>
<!-- position the third alignment tube -->
<Algorithm name="global:DDAngular">
<rParent name="tob:TOB"/>
<String name="ChildName" value="AlignmentTubes:ATEV"/>
<Numeric name="StartCopyNo" value="3"/>
<Numeric name="IncrCopyNo" value="1"/>
<Numeric name="N" value="1"/>
<Numeric name="Radius" value="0*mm"/>
<Numeric name="StartAngle" value="0*deg"/>
<Numeric name="RangeAngle" value="360*deg"/>
<Vector name="Center" type="numeric" nEntries="3"> 564*cos(106.07143*deg)*mm, 564*sin(106.07143*deg)*mm, 0*mm </Vector>
<Vector name="RotateSolid" type="numeric" nEntries="6"> 0.*deg, 0.*deg, 0.*deg, 0.*deg, 0.*deg, (106.07143-90)*deg </Vector>
<!-- first rotation -->
<!-- first rotate the mirror about 0 degrees w.r.t. to the x-axis -->
<!-- theta=0*deg -->
<!-- phi = 0*deg -->
<!-- rotate by 0*deg around (theta,phi) -->
<!-- second rotation -->
<!-- rotate the tube, so it has the appropriate angle w.r.t. the z-axis -->
<!-- theta=0*deg -->
<!-- phi=0*deg -->
<!-- rotate by (106.07143-90)*deg around (theta,phi); the angle is the position angle in phi -->
</Algorithm>
<!-- position the fourth alignment tube -->
<Algorithm name="global:DDAngular">
<rParent name="tob:TOB"/>
<String name="ChildName" value="AlignmentTubes:ATEV"/>
<Numeric name="StartCopyNo" value="4"/>
<Numeric name="IncrCopyNo" value="1"/>
<Numeric name="N" value="1"/>
<Numeric name="Radius" value="0*mm"/>
<Numeric name="StartAngle" value="0*deg"/>
<Numeric name="RangeAngle" value="360*deg"/>
<Vector name="Center" type="numeric" nEntries="3"> 564*cos(157.5*deg)*mm, 564*sin(157.5*deg)*mm, 0*mm </Vector>
<Vector name="RotateSolid" type="numeric" nEntries="6"> 0.*deg, 0.*deg, 0.*deg, 0.*deg, 0.*deg, (157.5-90)*deg </Vector>
<!-- first rotation -->
<!-- first rotate the mirror about 0 degrees w.r.t. to the x-axis -->
<!-- theta=0*deg -->
<!-- phi = 0*deg -->
<!-- rotate by 0*deg around (theta,phi) -->
<!-- second rotation -->
<!-- rotate the tube, so it has the appropriate angle w.r.t. the z-axis -->
<!-- theta=0*deg -->
<!-- phi=0*deg -->
<!-- rotate by (157.5-90)*deg around (theta,phi); the angle is the position angle in phi -->
</Algorithm>
<!-- position the fifth alignment tube -->
<Algorithm name="global:DDAngular">
<rParent name="tob:TOB"/>
<String name="ChildName" value="AlignmentTubes:ATEV"/>
<Numeric name="StartCopyNo" value="5"/>
<Numeric name="IncrCopyNo" value="1"/>
<Numeric name="N" value="1"/>
<Numeric name="Radius" value="0*mm"/>
<Numeric name="StartAngle" value="0*deg"/>
<Numeric name="RangeAngle" value="360*deg"/>
<Vector name="Center" type="numeric" nEntries="3"> 564*cos(208.92857*deg)*mm, 564*sin(208.92857*deg)*mm, 0*mm </Vector>
<Vector name="RotateSolid" type="numeric" nEntries="6"> 0.*deg, 0.*deg, 0.*deg, 0.*deg, 0.*deg, (208.92857-90)*deg </Vector>
<!-- first rotation -->
<!-- first rotate the mirror about 0 degrees w.r.t. to the x-axis -->
<!-- theta=0*deg -->
<!-- phi = 0*deg -->
<!-- rotate by 0*deg around (theta,phi) -->
<!-- second rotation -->
<!-- rotate the tube, so it has the appropriate angle w.r.t. the z-axis -->
<!-- theta=0*deg -->
<!-- phi=0*deg -->
<!-- rotate by (208.92857-90)*deg around (theta,phi); the angle is the position angle in phi -->
</Algorithm>
<!-- position the sixth alignment tube -->
<Algorithm name="global:DDAngular">
<rParent name="tob:TOB"/>
<String name="ChildName" value="AlignmentTubes:ATEV"/>
<Numeric name="StartCopyNo" value="6"/>
<Numeric name="IncrCopyNo" value="1"/>
<Numeric name="N" value="1"/>
<Numeric name="Radius" value="0*mm"/>
<Numeric name="StartAngle" value="0*deg"/>
<Numeric name="RangeAngle" value="360*deg"/>
<Vector name="Center" type="numeric" nEntries="3"> 564*cos(247.5*deg)*mm, 564*sin(247.5*deg)*mm, 0*mm </Vector>
<Vector name="RotateSolid" type="numeric" nEntries="6"> 0.*deg, 0.*deg, 0.*deg, 0.*deg, 0.*deg, (247.5-90)*deg </Vector>
<!-- first rotation -->
<!-- first rotate the mirror about 0 degrees w.r.t. to the x-axis -->
<!-- theta=0*deg -->
<!-- phi = 0*deg -->
<!-- rotate by 0*deg around (theta,phi) -->
<!-- second rotation -->
<!-- rotate the tube, so it has the appropriate angle w.r.t. the z-axis -->
<!-- theta=0*deg -->
<!-- phi=0*deg -->
<!-- rotate by (247.5-90)*deg around (theta,phi); the angle is the position angle in phi -->
</Algorithm>
<!-- position the seventh alignment tube -->
<Algorithm name="global:DDAngular">
<rParent name="tob:TOB"/>
<String name="ChildName" value="AlignmentTubes:ATEV"/>
<Numeric name="StartCopyNo" value="7"/>
<Numeric name="IncrCopyNo" value="1"/>
<Numeric name="N" value="1"/>
<Numeric name="Radius" value="0*mm"/>
<Numeric name="StartAngle" value="0*deg"/>
<Numeric name="RangeAngle" value="360*deg"/>
<Vector name="Center" type="numeric" nEntries="3"> 564*cos(298.92857*deg)*mm, 564*sin(298.92857*deg)*mm, 0*mm </Vector>
<Vector name="RotateSolid" type="numeric" nEntries="6"> 0.*deg, 0.*deg, 0.*deg, 0.*deg, 0.*deg, (298.92857-90)*deg </Vector>
<!-- first rotation -->
<!-- first rotate the mirror about 0 degrees w.r.t. to the x-axis -->
<!-- theta=0*deg -->
<!-- phi = 0*deg -->
<!-- rotate by 0*deg around (theta,phi) -->
<!-- second rotation -->
<!-- rotate the tube, so it has the appropriate angle w.r.t. the z-axis -->
<!-- theta=0*deg -->
<!-- phi=0*deg -->
<!-- rotate by (298.92857-90)*deg around (theta,phi); the angle is the position angle in phi -->
</Algorithm>
<!-- position the eigth alignment tube -->
<Algorithm name="global:DDAngular">
<rParent name="tob:TOB"/>
<String name="ChildName" value="AlignmentTubes:ATEV"/>
<Numeric name="StartCopyNo" value="8"/>
<Numeric name="IncrCopyNo" value="1"/>
<Numeric name="N" value="1"/>
<Numeric name="Radius" value="0*mm"/>
<Numeric name="StartAngle" value="0*deg"/>
<Numeric name="RangeAngle" value="360*deg"/>
<Vector name="Center" type="numeric" nEntries="3"> 564*cos(331.07143*deg)*mm, 564*sin(331.07143*deg)*mm, 0*mm </Vector>
<Vector name="RotateSolid" type="numeric" nEntries="6"> 0.*deg, 0.*deg, 0.*deg, 0.*deg, 0.*deg, (331.07143-90)*deg </Vector>
<!-- first rotation -->
<!-- first rotate the mirror about 0 degrees w.r.t. to the x-axis -->
<!-- theta=0*deg -->
<!-- phi = 0*deg -->
<!-- rotate by 0*deg around (theta,phi) -->
<!-- second rotation -->
<!-- rotate the tube, so it has the appropriate angle w.r.t. the z-axis -->
<!-- theta=0*deg -->
<!-- phi=0*deg -->
<!-- rotate by (331.07143-90)*deg around (theta,phi); the angle is the position angle in phi -->
</Algorithm>
<!-- start of the alignment tube (+z direction) -->
<!-- the Alignment Tube -->
<PosPart copyNumber="9">
<rParent name="AlignmentTubes:ATEV"/>
<rChild name="AlignmentTubes:AlignmentTube"/>
<rRotation name="rotations:000D"/>
<Translation x="0*fm" y="0*fm" z="(567.5 + 2.0)*mm"/>
</PosPart>
<!-- the first mirror (beam down) -->
<Algorithm name="global:DDAngular">
<!-- start="1" incr="1" end="2"> -->
<rParent name="AlignmentTubes:ATEV"/>
<String name="ChildName" value="AlignmentTubes:Mirror"/>
<Numeric name="StartCopyNo" value="1"/>
<Numeric name="IncrCopyNo" value="1"/>
<Numeric name="N" value="1"/>
<Numeric name="Radius" value="0*mm"/>
<Numeric name="StartAngle" value="0*deg"/>
<Numeric name="RangeAngle" value="360*deg"/>
<Vector name="Center" type="numeric" nEntries="3"> 0, 0, 180*mm </Vector>
<Vector name="RotateSolid" type="numeric" nEntries="6"> 90.*deg, 135.*deg, 90.*deg, 90.*deg, 90.*deg, 90.*deg </Vector>
<!-- rotate the solid in its local reference frame first,
then position it acording to angular algorithm.
There can be up to 3 rotations which are applied in
sequence to the solid (this is only for convinience and not
really necessary).
In this example the solid first is rotated by 90deg around
its z-axis and then this resulting solid is again
rotated by 90deg around the y-axis.
One rotation consists of 3 parameters: (theta,phi) of the
rotation axis and (alpha) - the angle of rotation with respect
to the axis (theta,phi). -->
<!-- first rotate the mirror about 45 degrees w.r.t. to the x-axis -->
<!-- theta=90*deg -->
<!-- phi = 45*deg: beam up, phi = 135*deg: beam down -->
<!-- rotate by 90*deg around (theta,phi) -->
<!-- second rotation -->
<!-- rotate the mirror, so it has the appropriate angle w.r.t. the z-axis -->
<!-- theta=90*deg -->
<!-- phi=90*deg -->
<!-- rotate by 90deg around (theta,phi) -->
</Algorithm>
<!-- the second mirror (beam up) -->
<Algorithm name="global:DDAngular">
<!-- start="1" incr="1" end="2"> -->
<rParent name="AlignmentTubes:ATEV"/>
<String name="ChildName" value="AlignmentTubes:Mirror"/>
<Numeric name="StartCopyNo" value="2"/>
<Numeric name="IncrCopyNo" value="1"/>
<Numeric name="N" value="1"/>
<Numeric name="Radius" value="0*mm"/>
<Numeric name="StartAngle" value="0*deg"/>
<Numeric name="RangeAngle" value="360*deg"/>
<Vector name="Center" type="numeric" nEntries="3"> 0, 0, (180 + 40)*mm </Vector>
<Vector name="RotateSolid" type="numeric" nEntries="6"> 90.*deg, 45.*deg, 90.*deg, 90.*deg, 90.*deg, 90.*deg </Vector>
<!-- first rotate the mirror about 45 degrees w.r.t. to the x-axis -->
<!-- theta=90*deg -->
<!-- phi = 45*deg: beam up, phi = 135*deg: beam down -->
<!-- rotate by 90*deg around (theta,phi) -->
<!-- second rotation -->
<!-- rotate the mirror, so it has the appropriate angle w.r.t. the z-axis -->
<!-- theta=90*deg -->
<!-- phi=90*deg -->
<!-- rotate by 90deg around (theta,phi) -->
</Algorithm>
<!-- the third mirror (beam down) -->
<Algorithm name="global:DDAngular">
<!-- start="1" incr="1" end="2"> -->
<rParent name="AlignmentTubes:ATEV"/>
<String name="ChildName" value="AlignmentTubes:Mirror"/>
<Numeric name="StartCopyNo" value="3"/>
<Numeric name="IncrCopyNo" value="1"/>
<Numeric name="N" value="1"/>
<Numeric name="Radius" value="0*mm"/>
<Numeric name="StartAngle" value="0*deg"/>
<Numeric name="RangeAngle" value="360*deg"/>
<Vector name="Center" type="numeric" nEntries="3"> 0, 0, 380*mm </Vector>
<Vector name="RotateSolid" type="numeric" nEntries="6"> 90.*deg, 135.*deg, 90.*deg, 90.*deg, 90.*deg, 90.*deg </Vector>
<!-- first rotate the mirror about 45 degrees w.r.t. to the x-axis -->
<!-- theta=90*deg -->
<!-- phi = 45*deg: beam up, phi = 135*deg: beam down -->
<!-- rotate by 90*deg around (theta,phi) -->
<!-- second rotation -->
<!-- rotate the mirror, so it has the appropriate angle w.r.t. the z-axis -->
<!-- theta=90*deg -->
<!-- phi=90*deg -->
<!-- rotate by 90deg around (theta,phi) -->
</Algorithm>
<!-- the fourth mirror (beam up) -->
<Algorithm name="global:DDAngular">
<!-- start="1" incr="1" end="2"> -->
<rParent name="AlignmentTubes:ATEV"/>
<String name="ChildName" value="AlignmentTubes:Mirror"/>
<Numeric name="StartCopyNo" value="4"/>
<Numeric name="IncrCopyNo" value="1"/>
<Numeric name="N" value="1"/>
<Numeric name="Radius" value="0*mm"/>
<Numeric name="StartAngle" value="0*deg"/>
<Numeric name="RangeAngle" value="360*deg"/>
<Vector name="Center" type="numeric" nEntries="3"> 0, 0, 580*mm </Vector>
<Vector name="RotateSolid" type="numeric" nEntries="6"> 90.*deg, 45.*deg, 90.*deg, 90.*deg, 90.*deg, 90.*deg </Vector>
<!-- first rotate the mirror about 45 degrees w.r.t. to the x-axis -->
<!-- theta=90*deg -->
<!-- phi = 45*deg: beam up, phi = 135*deg: beam down -->
<!-- rotate by 90*deg around (theta,phi) -->
<!-- second rotation -->
<!-- rotate the mirror, so it has the appropriate angle w.r.t. the z-axis -->
<!-- theta=90*deg -->
<!-- phi=90*deg -->
<!-- rotate by 90deg around (theta,phi) -->
</Algorithm>
<!-- the fifth mirror (beam down) -->
<Algorithm name="global:DDAngular">
<!-- start="1" incr="1" end="2"> -->
<rParent name="AlignmentTubes:ATEV"/>
<String name="ChildName" value="AlignmentTubes:Mirror"/>
<Numeric name="StartCopyNo" value="5"/>
<Numeric name="IncrCopyNo" value="1"/>
<Numeric name="N" value="1"/>
<Numeric name="Radius" value="0*mm"/>
<Numeric name="StartAngle" value="0*deg"/>
<Numeric name="RangeAngle" value="360*deg"/>
<Vector name="Center" type="numeric" nEntries="3"> 0, 0, (580 + 40)*mm </Vector>
<Vector name="RotateSolid" type="numeric" nEntries="6"> 90.*deg, 135.*deg, 90.*deg, 90.*deg, 90.*deg, 90.*deg </Vector>
<!-- first rotate the mirror about 45 degrees w.r.t. to the x-axis -->
<!-- theta=90*deg -->
<!-- phi = 45*deg: beam up, phi = 135*deg: beam down -->
<!-- rotate by 90*deg around (theta,phi) -->
<!-- second rotation -->
<!-- rotate the mirror, so it has the appropriate angle w.r.t. the z-axis -->
<!-- theta=90*deg -->
<!-- phi=90*deg -->
<!-- rotate by 90deg around (theta,phi) -->
</Algorithm>
<!-- the sixth mirror (beam up) -->
<Algorithm name="global:DDAngular">
<!-- start="1" incr="1" end="2"> -->
<rParent name="AlignmentTubes:ATEV"/>
<String name="ChildName" value="AlignmentTubes:Mirror"/>
<Numeric name="StartCopyNo" value="6"/>
<Numeric name="IncrCopyNo" value="1"/>
<Numeric name="N" value="1"/>
<Numeric name="Radius" value="0*mm"/>
<Numeric name="StartAngle" value="0*deg"/>
<Numeric name="RangeAngle" value="360*deg"/>
<Vector name="Center" type="numeric" nEntries="3"> 0, 0, 1040*mm </Vector>
<Vector name="RotateSolid" type="numeric" nEntries="6"> 90.*deg, 45.*deg, 90.*deg, 90.*deg, 90.*deg, 90.*deg </Vector>
<!-- first rotate the mirror about 45 degrees w.r.t. to the x-axis -->
<!-- theta=90*deg -->
<!-- phi = 45*deg: beam up, phi = 135*deg: beam down -->
<!-- rotate by 90*deg around (theta,phi) -->
<!-- second rotation -->
<!-- rotate the mirror, so it has the appropriate angle w.r.t. the z-axis -->
<!-- theta=90*deg -->
<!-- phi=90*deg -->
<!-- rotate by 90deg around (theta,phi) -->
</Algorithm>
<!-- end of the alignment tube (+z direction) -->
<!-- start of the alignment tube (-z direction) -->
<!-- the Alignment Tube -->
<PosPart copyNumber="10">
<rParent name="AlignmentTubes:ATEV"/>
<rChild name="AlignmentTubes:AlignmentTube"/>
<rRotation name="rotations:000D"/>
<Translation x="0*fm" y="0*fm" z="-1*(567.5 + 2.0)*mm"/>
</PosPart>
<!-- the first mirror (beam down) -->
<Algorithm name="global:DDAngular">
<!-- start="1" incr="1" end="2"> -->
<rParent name="AlignmentTubes:ATEV"/>
<String name="ChildName" value="AlignmentTubes:Mirror"/>
<Numeric name="StartCopyNo" value="7"/>
<Numeric name="IncrCopyNo" value="1"/>
<Numeric name="N" value="1"/>
<Numeric name="Radius" value="0*mm"/>
<Numeric name="StartAngle" value="0*deg"/>
<Numeric name="RangeAngle" value="360*deg"/>
<Vector name="Center" type="numeric" nEntries="3"> 0, 0, -1*100*mm </Vector>
<Vector name="RotateSolid" type="numeric" nEntries="6"> 90.*deg, 135.*deg, 90.*deg, 90.*deg, 90.*deg, 90.*deg </Vector>
<!-- rotate the solid in its local reference frame first,
then position it acording to angular algorithm.
There can be up to 3 rotations which are applied in
sequence to the solid (this is only for convinience and not
really necessary).
In this example the solid first is rotated by 90deg around
its z-axis and then this resulting solid is again
rotated by 90deg around the y-axis.
One rotation consists of 3 parameters: (theta,phi) of the
rotation axis and (alpha) - the angle of rotation with respect
to the axis (theta,phi). -->
<!-- first rotate the mirror about 45 degrees w.r.t. to the x-axis -->
<!-- theta=90*deg -->
<!-- phi = 45*deg: beam up, phi = 135*deg: beam down -->
<!-- rotate by 90*deg around (theta,phi) -->
<!-- second rotation -->
<!-- rotate the mirror, so it has the appropriate angle w.r.t. the z-axis -->
<!-- theta=90*deg -->
<!-- phi=90*deg -->
<!-- rotate by 90deg around (theta,phi) -->
</Algorithm>
<!-- the second mirror (beam up) -->
<Algorithm name="global:DDAngular">
<!-- start="1" incr="1" end="2"> -->
<rParent name="AlignmentTubes:ATEV"/>
<String name="ChildName" value="AlignmentTubes:Mirror"/>
<Numeric name="StartCopyNo" value="8"/>
<Numeric name="IncrCopyNo" value="1"/>
<Numeric name="N" value="1"/>
<Numeric name="Radius" value="0*mm"/>
<Numeric name="StartAngle" value="0*deg"/>
<Numeric name="RangeAngle" value="360*deg"/>
<Vector name="Center" type="numeric" nEntries="3"> 0, 0, -1*(100 + 40)*mm </Vector>
<Vector name="RotateSolid" type="numeric" nEntries="6"> 90.*deg, 45.*deg, 90.*deg, 90.*deg, 90.*deg, 90.*deg </Vector>
<!-- first rotate the mirror about 45 degrees w.r.t. to the x-axis -->
<!-- theta=90*deg -->
<!-- phi = 45*deg: beam up, phi = 135*deg: beam down -->
<!-- rotate by 90*deg around (theta,phi) -->
<!-- second rotation -->
<!-- rotate the mirror, so it has the appropriate angle w.r.t. the z-axis -->
<!-- theta=90*deg -->
<!-- phi=90*deg -->
<!-- rotate by 90deg around (theta,phi) -->
</Algorithm>
<!-- the third mirror (beam down) -->
<Algorithm name="global:DDAngular">
<!-- start="1" incr="1" end="2"> -->
<rParent name="AlignmentTubes:ATEV"/>
<String name="ChildName" value="AlignmentTubes:Mirror"/>
<Numeric name="StartCopyNo" value="9"/>
<Numeric name="IncrCopyNo" value="1"/>
<Numeric name="N" value="1"/>
<Numeric name="Radius" value="0*mm"/>
<Numeric name="StartAngle" value="0*deg"/>
<Numeric name="RangeAngle" value="360*deg"/>
<Vector name="Center" type="numeric" nEntries="3"> 0, 0, -1*340*mm </Vector>
<Vector name="RotateSolid" type="numeric" nEntries="6"> 90.*deg, 135.*deg, 90.*deg, 90.*deg, 90.*deg, 90.*deg </Vector>
<!-- first rotate the mirror about 45 degrees w.r.t. to the x-axis -->
<!-- theta=90*deg -->
<!-- phi = 45*deg: beam up, phi = 135*deg: beam down -->
<!-- rotate by 90*deg around (theta,phi) -->
<!-- second rotation -->
<!-- rotate the mirror, so it has the appropriate angle w.r.t. the z-axis -->
<!-- theta=90*deg -->
<!-- phi=90*deg -->
<!-- rotate by 90deg around (theta,phi) -->
</Algorithm>
<!-- the fourth mirror (beam up) -->
<Algorithm name="global:DDAngular">
<!-- start="1" incr="1" end="2"> -->
<rParent name="AlignmentTubes:ATEV"/>
<String name="ChildName" value="AlignmentTubes:Mirror"/>
<Numeric name="StartCopyNo" value="10"/>
<Numeric name="IncrCopyNo" value="1"/>
<Numeric name="N" value="1"/>
<Numeric name="Radius" value="0*mm"/>
<Numeric name="StartAngle" value="0*deg"/>
<Numeric name="RangeAngle" value="360*deg"/>
<Vector name="Center" type="numeric" nEntries="3"> 0, 0, -1*500*mm </Vector>
<Vector name="RotateSolid" type="numeric" nEntries="6"> 90.*deg, 45.*deg, 90.*deg, 90.*deg, 90.*deg, 90.*deg </Vector>
<!-- first rotate the mirror about 45 degrees w.r.t. to the x-axis -->
<!-- theta=90*deg -->
<!-- phi = 45*deg: beam up, phi = 135*deg: beam down -->
<!-- rotate by 90*deg around (theta,phi) -->
<!-- second rotation -->
<!-- rotate the mirror, so it has the appropriate angle w.r.t. the z-axis -->
<!-- theta=90*deg -->
<!-- phi=90*deg -->
<!-- rotate by 90deg around (theta,phi) -->
</Algorithm>
<!-- the fifth mirror (beam down) -->
<Algorithm name="global:DDAngular">
<!-- start="1" incr="1" end="2"> -->
<rParent name="AlignmentTubes:ATEV"/>
<String name="ChildName" value="AlignmentTubes:Mirror"/>
<Numeric name="StartCopyNo" value="11"/>
<Numeric name="IncrCopyNo" value="1"/>
<Numeric name="N" value="1"/>
<Numeric name="Radius" value="0*mm"/>
<Numeric name="StartAngle" value="0*deg"/>
<Numeric name="RangeAngle" value="360*deg"/>
<Vector name="Center" type="numeric" nEntries="3"> 0, 0, -1*(500 + 40)*mm </Vector>
<Vector name="RotateSolid" type="numeric" nEntries="6"> 90.*deg, 135.*deg, 90.*deg, 90.*deg, 90.*deg, 90.*deg </Vector>
<!-- first rotate the mirror about 45 degrees w.r.t. to the x-axis -->
<!-- theta=90*deg -->
<!-- phi = 45*deg: beam up, phi = 135*deg: beam down -->
<!-- rotate by 90*deg around (theta,phi) -->
<!-- second rotation -->
<!-- rotate the mirror, so it has the appropriate angle w.r.t. the z-axis -->
<!-- theta=90*deg -->
<!-- phi=90*deg -->
<!-- rotate by 90deg around (theta,phi) -->
</Algorithm>
<!-- the sixth mirror (beam up) -->
<Algorithm name="global:DDAngular">
<!-- start="1" incr="1" end="2"> -->
<rParent name="AlignmentTubes:ATEV"/>
<String name="ChildName" value="AlignmentTubes:Mirror"/>
<Numeric name="StartCopyNo" value="12"/>
<Numeric name="IncrCopyNo" value="1"/>
<Numeric name="N" value="1"/>
<Numeric name="Radius" value="0*mm"/>
<Numeric name="StartAngle" value="0*deg"/>
<Numeric name="RangeAngle" value="360*deg"/>
<Vector name="Center" type="numeric" nEntries="3"> 0, 0, -1*860*mm </Vector>
<Vector name="RotateSolid" type="numeric" nEntries="6"> 90.*deg, 45.*deg, 90.*deg, 90.*deg, 90.*deg, 90.*deg </Vector>
<!-- first rotate the mirror about 45 degrees w.r.t. to the x-axis -->
<!-- theta=90*deg -->
<!-- phi = 45*deg: beam up, phi = 135*deg: beam down -->
<!-- rotate by 90*deg around (theta,phi) -->
<!-- second rotation -->
<!-- rotate the mirror, so it has the appropriate angle w.r.t. the z-axis -->
<!-- theta=90*deg -->
<!-- phi=90*deg -->
<!-- rotate by 90deg around (theta,phi) -->
</Algorithm>
<!-- end of the alignment tube (-z direction) -->
</PosPartSection>
</DDDefinition>
|