-
Notifications
You must be signed in to change notification settings - Fork 4
/
BeamLine_HDDS_50_0.xml
1643 lines (1364 loc) · 70.7 KB
/
BeamLine_HDDS_50_0.xml
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
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<?xml version="1.0" encoding="UTF-8"?>
<!--DOCTYPE HDDS>
Hall D Geometry Data Base: Beam Line
************************************
version 1.0: Initial version -rtj
Revision 1.1 10/18/2002
-added concrete shielding to the collimator housing
-added the virtual detectors to this code:
DET1: disk intercepting entire beam upstream of collimators
DET2: plane perpendicular to beam just after second collimator
DET3: plane mounted just below the ceiling of collimator cave
DET4: plane perpendicular to beam just after entry to hall
DET5: plane perpendicular to beam at photon dump end of hall
DET6: plane mounted just below the ceiling inside the hall
DET7: plane perpendicular to beam just before the target
-added a steel tube containing a vacuum that goes from the back of
the collimator to the front of the solenoid
-csg-
Revision 1.2 10/28/2002
-revised collimator to the heavy shielding option
-added a steel tube containing a vacuum in the WALL, SHLD and ABS2 volumes
-repositioned DET3 to be inside the collimator housing
-removed the BEAM volume from the collimator system
-csg-
Revision 1.3 1/9/2003
-shrunk the size of the vacuum tube from r=5.3 to r=2.5 in order to
extend the tube into the second steering magnet
-csg-
Revision 1.4 06/16/2003
-mid-shielding option
-modified DET1, now a cylinder placed in front of primary collimator
-added tungsten pin-cushion detector model into simulation
-csg-
Revision 2.0 05/16/2008
-moved DET2 to just after the second collimator, in agreement with
the comments below. Somehow it got misplaced to upstream of the
second collimator. I guess no one was using it until now.
-added the volume CONV for the pair conversion target located inside
the vacuum pipe just downstream of the second sweep magnet. Right
now it its material is vacuum, but the thickness of 240 microns is
chosen to make a 0.1% converter if the material is set to Carbon.
Revision 2.1 12/12/2008, A.S., rtj
Made the following changes in the composition 'collimatorStack':
1. Added the composition BeamPipe0 describing a vacuum beam pipe at the entrance
of the collimator cave:
- the beam pipe radius is 12.4 cm
- the exit window: 250 micron Kapton with the radius of 10.14 cm.
2. Moved the active collimator, DET1, and other components 83.96 cm upstream the
beamline.
3. Changed layout of the 1st passive collimator to a composite W/Pb:
- the inner part is a W box, 5.08 x 5.08 x 20.0 cm3
- the outer part is a Pb box, 30.48 x 30.48 x 20.0 cm3
4. Added the vacuum beam pipe (Flange1 compositon) in front of the 1st sweeping
magnet:
- use 150 micron Kapton entrance window
- vaccuum goes all the way downstream the beamline until the GlueX detector.
5. Modified the layout of the 1st sweeping magnet:
- the outer dimensions are 29.2 x 24.8 x 355.6 cm3
- the gap size is 10.22 x 4.9 cm2
- the field inside the gap is 0.23 T (integrated field is 0.82 Tm)
- the elliptical vacuum pipe goes through the magnet. The semi-axes of the pipe
are 4.95 cm and 2.29 cm.
6. Added the concrete blocks around the 1st sweeping magnet, composition ConcreteWall1.
The size of the wall is 101.6 x 147.32 x 121.92 cm3.
7. Added the composition Flange2 to connect the 1st sweeping magnet with a vacuum chamber.
8. Added a vacuum chamber after the 1st sweeping magnet with the following dimensions:
- 50.8 cm long tube with the inner and outer radii of Rin = 9.83 cm and Rout = 9.85.
9. Added the small lead wall after the vacuum chamber, composition LeadBand1.
10. Added the composition Flange3 to connect the vacuum pipe between the lead band and the
2nd collimatoor.
11. Changed material of the 2nd collimator from Nickel to Iron. The default pinhole
diameter was changed from 1 cm to 0.6 cm.
12. Added the composition Flange4 to connect the vacuum pipe between the 2nd collimator and
the 2nd sweeping magnet.
13. Changed the layout of the second sweeping magnet:
- outer dimensions are 42 x 20.8 cm2
- the gap size is 20.3 x 5 cm2, the field in the gap is 0.23 T
- 1.75 cm radius vacuum beam pipe goes through the magnet.
14. Added the composition Flange5 to connect 2nd the sweeping magnet with the vacuum beam
pipe.
15. Added a 1m long vacuum beam pipe. The inner and outer radii are 2.38 and 2.54 cm,
respectively.
16. Added the small lead wall (composition LeadBand2), 81.28 x 20.32 x 10.16 cm3.
17. Placed the vertical plane DET2 after the lead wall.
18. Added the composition Flange6 to connect the vacuum pipe between the lead wall and
a pair spectrometer converter box.
19. Added the pair spectrometer converter. The converter thickness and material can be set
in the box 'PTAR' <box name="PTAR" X_Y_Z="1.0 1.0 0.0445" material="Aluminum" />.
20. Added the composition Flange7 to connect the vacuum pipe between the converter and
the concrete wall.
21. Modified the size of the concrete shielding wall to 450.0 x 270.0 x 121.92 cm3.
Added passage to the collimator cave.
22. Decreased thickness of the lead wall to 5.08 cm (size of the lead brick).
Revision 2.2 12/22/2008
Modified the composition 'beamPipe'. Now 'beamPipe' extends the vacuum from the
pair spectrometer to the position of the target.
Revision 3.0 3/2/2011
Large group of revisions, to reflect the beamline geometry and shielding
in the engineering drawings for the cave, and the new pair spectrometer.
Revision 3.1 9/6/2013
Updates for compatibility with geant4 -rtj
a) Many small shifts to various volumes to eliminate overlaps.
b) Changes to dimensions of the active collimator wedges, and even
the number of pins per row, so that all overlaps are eliminated.
Revision 3.2 12/12/2016
Updates to introduce the triplet polarimeter -rtj
a) renamed downstream PS converter target from PTAR to CONV
b) reserved the name PTAR for the triplet polarimeter target
c) incorporated a detailed geometric model of the triplet polarimeter
from the ASU group into the beamline geometry
Revision 3.3 3/27/2017
Added TAC and some material downstream the FCAL - A.S.
- FCAL dark box window, FCAL platform pipe with plexiglass window, beam
- intensity monitor, and TAC
Revision 3.4 1/4/2019
Small adjustments to eliminate illegal overlaps between volumes -rtj
<HDDS specification="v1.0" xmlns="http://www.gluex.org/hdds">
-->
<section name = "BeamLine"
version = "3.4"
date = "2019-01-17"
author = "R.T. Jones"
top_volume = "collimatorPackage"
specification = "v1.0">
<!-- Origin of collimatorPackage is center of the entrance face of the
primary collimator. -->
<composition name="collimatorPackage">
<posXYZ volume="ShieldedCollimator" X_Y_Z="0.0 0.0 400.0" />
</composition>
<box name="SHLD" X_Y_Z="550. 550. 1300." material="Concrete"/>
<composition name="ShieldedCollimator" envelope="SHLD">
<posXYZ volume="pipeFromTaggerHall" X_Y_Z="0.0 0.0 -625.0" />
<posXYZ volume="collimatorCave" X_Y_Z="0.0 35.0 25.0" />
</composition>
<box name="CAVE" X_Y_Z="450. 270. 1250." material="Air" />
<composition name="collimatorCave" envelope="CAVE">
<posXYZ volume="collimatorStack" X_Y_Z="0.0 -35.0 -500.0"/>
<!-- <posXYZ volume="DET2" X_Y_Z="0.0 0.0 225.0" /> -->
<posXYZ volume="DET3" X_Y_Z="0.0 132.0 0.0" />
</composition>
<composition name="collimatorSubCave">
<posXYZ volume="collimatorStack" />
</composition>
<composition name="collimatorStack">
<posXYZ volume="BeamPipe0" X_Y_Z="0.0 0.0 -125.0" />
<!--posXYZ volume="PFLD" X_Y_Z="0.0 0.0 -99.0" />
<posXYZ volume="PFSC" X_Y_Z="0.0 0.0 -97.0" />
<posXYZ volume="PFSC" X_Y_Z="0.0 0.0 -93.0" /-->
<posXYZ volume="DET1" X_Y_Z="0.0 0.0 -49.46" />
<posXYZ volume="ColDetector" X_Y_Z="0.0 0.0 -46.16" />
<posXYZ volume="PrimaryCol" X_Y_Z="0.0 0.0 -33.96" />
<posXYZ volume="Flange1" X_Y_Z="0.0 0.0 11.52" />
<posXYZ volume="sweepMagnet1" X_Y_Z="0.0 0.0 189.32" />
<posXYZ volume="ConcreteWall1" X_Y_Z="0.0 0.0 107.96" />
<posXYZ volume="Flange2" X_Y_Z="0.0 0.0 367.12" />
<posXYZ volume="VacuumChamber" X_Y_Z="0.0 0.0 426.54" />
<posXYZ volume="LeadBand1" X_Y_Z="0.0 0.0 457.02" />
<posXYZ volume="Flange3" X_Y_Z="0.0 0.0 462.10" />
<posXYZ volume="COL2" X_Y_Z="0.0 0.0 555.04" />
<posXYZ volume="Flange4" X_Y_Z="0.0 0.0 580.44" />
<posXYZ volume="sweepMagnet2" X_Y_Z="0.0 0.0 630.28" />
<posXYZ volume="Flange5" X_Y_Z="0.0 0.0 648.28" />
<posXYZ volume="BeamPipe1" X_Y_Z="0.0 0.0 712.28" />
<posXYZ volume="LeadBand2" X_Y_Z="0.0 0.0 743.52" />
<posXYZ volume="DET2" X_Y_Z="0.0 35.0 748.65" />
<posXYZ volume="Flange6" X_Y_Z="0.0 0.0 748.70" />
<posXYZ volume="TripletPolar" X_Y_Z="0.0 0.0 820.00" />
<posXYZ volume="Flange7" X_Y_Z="0.0 0.0 840.954" />
<posXYZ volume="ConcreteWall2" X_Y_Z="0.0 33.0 941.24" />
<posXYZ volume="shieldingWall" X_Y_Z="0.0 35.0 1004.74" />
<!-- <posXYZ volume="TargetBox" X_Y_Z="0.0 0.0 1085.00" /> -->
<posXYZ volume="BeamPipe2" X_Y_Z="0.0 0.0 1066.142" />
</composition>
<!-- Beam Pipe 0 -->
<composition name="pipeFromTaggerHall" envelope="PFTH">
<posXYZ volume="PFTV" X_Y_Z="0.0 0.0 0.0"/>
</composition>
<tubs name="PFTH" Rio_Z="0.0 12.7 50.0" material="Iron" />
<tubs name="PFTV" Rio_Z="0.0 12.4 50.0" material="Vacuum" />
<composition name="BeamPipe0">
<posXYZ volume="BeamPipeTube" X_Y_Z="0.0 0.0 25.0" />
<posXYZ volume="BeamPipeFlange1" X_Y_Z="0.0 0.0 48.58" />
<posXYZ volume="BeamPipeExitWindow" X_Y_Z="0.0 0.0 50.0" />
<posXYZ volume="BeamPipeFlange2" X_Y_Z="0.0 0.0 51.42" />
</composition>
<composition name="BeamPipeTube" envelope="BPTO">
<posXYZ volume="BPTI" X_Y_Z="0.0 0.0 0.0"/>
</composition>
<tubs name="BPTO" Rio_Z="0.0 12.7 50.0" material="Iron" />
<tubs name="BPTI" Rio_Z="0.0 12.4 50.0" material="Vacuum" />
<composition name="BeamPipeFlange1">
<posXYZ volume="BFO1" X_Y_Z="0.0 0.0 0.0"/>
</composition>
<tubs name="BFO1" Rio_Z="12.7 15.24 2.84" material="Iron" />
<composition name="BeamPipeExitWindow">
<posXYZ volume="FCAP" X_Y_Z="0.0 0.0 0.0125"/>
</composition>
<tubs name="FCAP" Rio_Z="0.0 10.16 0.025" material="Kapton" />
<composition name="BeamPipeFlange2">
<posXYZ volume="BFO2" X_Y_Z="0.0 0.0 0.0"/>
</composition>
<tubs name="BFO2" Rio_Z="10.16 15.24 2.84" material="Iron" />
<!-- Primary Collimator -->
<composition name="PrimaryCol" envelope="PCPB">
<posXYZ volume="TungstenInsert" X_Y_Z="0.0 0.0 0.0" />
</composition>
<box name="PCPB" X_Y_Z="30.48 30.48 20." material="Lead" />
<composition name="TungstenInsert" envelope="PCTT">
<posXYZ volume="PCTH" X_Y_Z="0.0 0.0 0.0" />
<!--posXYZ volume="PrimaryCollimatorAperture" rot="0 0" /-->
<!--posXYZ volume="PrimaryCollimatorAperture" rot="0.02865 0 0" /-->
<!--posXYZ volume="PrimaryCollimatorAperture" rot="0.05730 0 0" /-->
<!--posXYZ volume="PrimaryCollimatorAperture" rot="0.11459 0 0" /-->
</composition>
<composition name="PrimaryCollimatorAperture" envelope="PCTH">
<posXYZ volume="PCTI" X_Y_Z="0.0 0.0 -5.0" />
</composition>
<box name="PCTT" X_Y_Z="5.08 5.08 20." material="Tungsten" />
<!--tubs name="PCTH" Rio_Z="0.0 0.17 20." material="Air" /-->
<tubs name="PCTH" Rio_Z="0.0 0.25 20." material="Air" />
<tubs name="PCTI" Rio_Z="0.05 0.25 10." material="Tungsten"
comment="pin-hole insert for reduced intensity running" />
<!-- Flange 1 -->
<composition name="Flange1">
<posXYZ volume="FlangeOneDisk" X_Y_Z="0.0 0.0 -7.72" />
<posXYZ volume="FlangeOneWindow" X_Y_Z="0.0 0.0 -6.65" />
<posXYZ volume="FlangeOnePipe" X_Y_Z="0.0 0.0 -3.325" />
</composition>
<composition name="FlangeOneDisk">
<posXYZ volume="FOI1" X_Y_Z="0.0 0.0 0.0"/>
</composition>
<tubs name="FOI1" Rio_Z="1.27 8.57 2.14" material="Iron" />
<composition name="FlangeOneWindow">
<posXYZ volume="F1CP" X_Y_Z="0.0 0.0 -0.0075"/>
</composition>
<tubs name="F1CP" Rio_Z="0.0 1.27 0.015" material="Kapton" />
<composition name="FlangeOnePipe" envelope="FOPO">
<posXYZ volume="FOPI" X_Y_Z="0.0 0.0 0.0"/>
</composition>
<eltu name="FOPO" Rxy_Z="5.11 2.45 6.65" material="Iron" />
<eltu name="FOPI" Rxy_Z="4.95 2.29 6.65" material="Vacuum" />
<!-- 1st Sweeping Magnet -->
<composition name="sweepMagnet1" envelope="MAG1">
<posXYZ volume="POL1" X_Y_Z="0.0 +7.425 0.0" />
<posXYZ volume="POL1" X_Y_Z="0.0 -7.425 0.0" />
<posXYZ volume="GAP1" X_Y_Z="-9.855 0.0 0.0" />
<posXYZ volume="GAP1" X_Y_Z="+9.855 0.0 0.0" />
<posXYZ volume="MagnetPipe1" X_Y_Z="0.0 0.0 0.0" />
</composition>
<box name="MAG1" X_Y_Z="29.2 24.8 355.6" material="Air" >
<apply region="sweepDipoleBfield" />
</box>
<box name="POL1" X_Y_Z="29.2 9.95 355.6" material="Iron" />
<box name="GAP1" X_Y_Z="9.49 4.9 355.6" material="Iron" />
<composition name="MagnetPipe1" envelope="MPO1">
<posXYZ volume="MPI1" X_Y_Z="0.0 0.0 0.0"/>
</composition>
<eltu name="MPO1" Rxy_Z="5.11 2.45 355.6" material="Iron" />
<eltu name="MPI1" Rxy_Z="4.95 2.29 355.6" material="Vacuum" />
<!-- Concrete Wall around the 1st sweeping magnet -->
<composition name="ConcreteWall1">
<posXYZ volume="WTOP" X_Y_Z="0.0 +30.3 0.0" />
<posXYZ volume="WBOT" X_Y_Z="0.0 -56.2 0.0" />
<posXYZ volume="WSID" X_Y_Z="+32.7 0.0 0.0" />
<posXYZ volume="WSID" X_Y_Z="-32.7 0.0 0.0" />
</composition>
<box name="WTOP" X_Y_Z="101.6 35.8 121.92" material="Concrete" />
<box name="WBOT" X_Y_Z="101.6 87.6 121.92" material="Concrete" />
<box name="WSID" X_Y_Z="36.2 24.8 121.92" material="Concrete" />
<!-- Flange 2 -->
<composition name="Flange2">
<posXYZ volume="FlangeTwoDisk1" X_Y_Z="0.0 0.0 2.29" />
<posXYZ volume="FlangeTwoDisk2" X_Y_Z="0.0 0.0 6.72"/>
<posXYZ volume="FlangeTwoDisk3" X_Y_Z="0.0 0.0 16.88"/>
<posXYZ volume="FlangeTwoDisk4" X_Y_Z="0.0 0.0 27.04"/>
<posXYZ volume="FlangeTwoDisk5" X_Y_Z="0.0 0.0 31.6"/>
</composition>
<composition name="FlangeTwoDisk1" envelope="FTO1">
<posXYZ volume="FTI1" X_Y_Z="0.0 0.0 0.0"/>
</composition>
<eltu name="FTO1" Rxy_Z="5.11 2.45 4.58" material="Iron" />
<eltu name="FTI1" Rxy_Z="4.95 2.29 4.58" material="Vacuum" />
<composition name="FlangeTwoDisk2" envelope="FTO2">
<posXYZ volume="FTI2" X_Y_Z="0.0 0.0 0.0"/>
</composition>
<tubs name="FTO2" Rio_Z="0.0 8.57 4.28" material="Iron" />
<tubs name="FTI2" Rio_Z="0.0 6.19 4.28" material="Vacuum" />
<composition name="FlangeTwoDisk3" envelope="FTO3">
<posXYZ volume="FTI3" X_Y_Z="0.0 0.0 0.0"/>
</composition>
<tubs name="FTO3" Rio_Z="0.0 6.21 16.04" material="Iron" />
<tubs name="FTI3" Rio_Z="0.0 6.19 16.04" material="Vacuum" />
<composition name="FlangeTwoDisk4" envelope="FTO4">
<posXYZ volume="FTI4" X_Y_Z="0.0 0.0 0.0"/>
</composition>
<tubs name="FTO4" Rio_Z="0.0 8.57 4.28" material="Iron" />
<tubs name="FTI4" Rio_Z="0.0 6.19 4.28" material="Vacuum" />
<composition name="FlangeTwoDisk5" envelope="FTO5">
<posXYZ volume="FTI5" X_Y_Z="0.0 0.0 0.0"/>
</composition>
<tubs name="FTO5" Rio_Z="0.0 6.35 4.84" material="Iron" />
<tubs name="FTI5" Rio_Z="0.0 6.19 4.84" material="Vacuum" />
<!-- Vacuum chamber after the 1st sweeping magnet-->
<composition name="VacuumChamber">
<posXYZ volume="VacuumChambDisk1" X_Y_Z="0.0 0.0 -25.30"/>
<posXYZ volume="VacuumChambDisk2" X_Y_Z="0.0 0.0 0.0"/>
<posXYZ volume="VacuumChambDisk3" X_Y_Z="0.0 0.0 25.30"/>
</composition>
<composition name="VacuumChambDisk1" envelope="VCO1">
<posXYZ volume="VCI1" X_Y_Z="0.0 0.0 0.0"/>
</composition>
<tubs name="VCO1" Rio_Z="0.0 9.85 0.2" material="Iron" />
<tubs name="VCI1" Rio_Z="0.0 6.19 0.2" material="Vacuum" />
<composition name="VacuumChambDisk2" envelope="VCO2">
<posXYZ volume="VCI2" X_Y_Z="0.0 0.0 0.0"/>
</composition>
<tubs name="VCO2" Rio_Z="0.0 9.85 50.40" material="Iron" />
<tubs name="VCI2" Rio_Z="0.0 9.83 50.40" material="Vacuum" />
<composition name="VacuumChambDisk3" envelope="VCO3">
<posXYZ volume="VCI3" X_Y_Z="0.0 0.0 0.0"/>
</composition>
<tubs name="VCO3" Rio_Z="0.0 9.85 0.2" material="Iron" />
<tubs name="VCI3" Rio_Z="0.0 2.38 0.2" material="Vacuum" />
<!-- Lead Band 1 -->
<composition name="LeadBand1" envelope="LBD1">
<posXYZ volume="LeadBandPipe1" X_Y_Z="0.0 0.0 0.0"/>
</composition>
<composition name="LeadBandPipe1" envelope="LBO1">
<posXYZ volume="LBI1" X_Y_Z="0.0 0.0 0.0"/>
</composition>
<box name="LBD1" X_Y_Z="81.28 20.32 10.16" material="Lead" />
<tubs name="LBO1" Rio_Z="0.0 2.54 10.16" material="Iron" />
<tubs name="LBI1" Rio_Z="0.0 2.38 10.16" material="Vacuum" />
<!-- Flange 3 -->
<composition name="Flange3">
<posXYZ volume="FlangeThreeDisk1" X_Y_Z="0.0 0.0 24.56" />
<posXYZ volume="FlangeThreeDisk2" X_Y_Z="0.0 0.0 50.70"/>
<posXYZ volume="FlangeThreeDisk3" X_Y_Z="0.0 0.0 55.78"/>
<posXYZ volume="FlangeThreeDisk4" X_Y_Z="0.0 0.0 60.86"/>
<posXYZ volume="FlangeThreeDisk5" X_Y_Z="0.0 0.0 64.99"/>
</composition>
<composition name="FlangeThreeDisk1" envelope="F3O1">
<posXYZ volume="F3I1" X_Y_Z="0.0 0.0 0.0"/>
</composition>
<tubs name="F3O1" Rio_Z="0.0 2.54 49.12" material="Iron" />
<tubs name="F3I1" Rio_Z="0.0 2.38 49.12" material="Vacuum" />
<composition name="FlangeThreeDisk2" envelope="F3O2">
<posXYZ volume="F3I2" X_Y_Z="0.0 0.0 0.0"/>
</composition>
<tubs name="F3O2" Rio_Z="0.0 4.29 3.16" material="Iron" />
<tubs name="F3I2" Rio_Z="0.0 2.38 3.16" material="Vacuum" />
<composition name="FlangeThreeDisk3" envelope="F3O3">
<posXYZ volume="F3I3" X_Y_Z="0.0 0.0 0.0"/>
</composition>
<tubs name="F3O3" Rio_Z="0.0 2.08 7.0" material="Iron" />
<tubs name="F3I3" Rio_Z="0.0 2.06 7.0" material="Vacuum" />
<composition name="FlangeThreeDisk4" envelope="F3O4">
<posXYZ volume="F3I4" X_Y_Z="0.0 0.0 0.0"/>
</composition>
<tubs name="F3O4" Rio_Z="0.0 4.29 3.16" material="Iron" />
<tubs name="F3I4" Rio_Z="0.0 2.38 3.16" material="Vacuum" />
<composition name="FlangeThreeDisk5" envelope="F3O5">
<posXYZ volume="F3I5" X_Y_Z="0.0 0.0 0.0"/>
</composition>
<tubs name="F3O5" Rio_Z="0.0 2.54 5.1" material="Iron" />
<tubs name="F3I5" Rio_Z="0.0 2.38 5.1" material="Vacuum" />
<!-- 2nd Collimator -->
<composition name="COL2" envelope="OCOL">
<posXYZ volume="ICOL" X_Y_Z="0.0 0.0 0.0"/>
</composition>
<tubs name="OCOL" Rio_Z="0.0 10.0 50.8" material="Iron" />
<tubs name="ICOL" Rio_Z="0.0 0.5 50.8" material="Vacuum" />
<!-- Flange 4 -->
<composition name="Flange4">
<posXYZ volume="FlangeFourDisk1" X_Y_Z="0.0 0.0 4.13" />
<posXYZ volume="FlangeFourDisk2" X_Y_Z="0.0 0.0 9.84"/>
<posXYZ volume="FlangeFourDisk3" X_Y_Z="0.0 0.0 14.92"/>
<posXYZ volume="FlangeFourDisk4" X_Y_Z="0.0 0.0 20.0"/>
<posXYZ volume="FlangeFourDisk5" X_Y_Z="0.0 0.0 26.71"/>
</composition>
<composition name="FlangeFourDisk1" envelope="F4O1">
<posXYZ volume="F4I1" X_Y_Z="0.0 0.0 0.0"/>
</composition>
<tubs name="F4O1" Rio_Z="0.0 2.54 8.26" material="Iron" />
<tubs name="F4I1" Rio_Z="0.0 2.38 8.26" material="Vacuum" />
<composition name="FlangeFourDisk2" envelope="F4O2">
<posXYZ volume="F4I2" X_Y_Z="0.0 0.0 0.0"/>
</composition>
<tubs name="F4O2" Rio_Z="0.0 4.29 3.16" material="Iron" />
<tubs name="F4I2" Rio_Z="0.0 2.38 3.16" material="Vacuum" />
<composition name="FlangeFourDisk3" envelope="F4O3">
<posXYZ volume="F4I3" X_Y_Z="0.0 0.0 0.0"/>
</composition>
<tubs name="F4O3" Rio_Z="0.0 2.08 7.0" material="Iron" />
<tubs name="F4I3" Rio_Z="0.0 2.06 7.0" material="Vacuum" />
<composition name="FlangeFourDisk4" envelope="F4O4">
<posXYZ volume="F4I4" X_Y_Z="0.0 0.0 0.0"/>
</composition>
<tubs name="F4O4" Rio_Z="0.0 4.29 3.16" material="Iron" />
<tubs name="F4I4" Rio_Z="0.0 1.745 3.16" material="Vacuum" />
<composition name="FlangeFourDisk5" envelope="F4O5">
<posXYZ volume="F4I5" X_Y_Z="0.0 0.0 0.0"/>
</composition>
<tubs name="F4O5" Rio_Z="0.0 1.905 10.26" material="Iron" />
<tubs name="F4I5" Rio_Z="0.0 1.745 10.26" material="Vacuum" />
<!-- 2nd Sweeping Magnet -->
<composition name="sweepMagnet2">
<posXYZ volume="Core" X_Y_Z="0.0 0.0 0.0" />
</composition>
<composition name="Core" envelope="POL2">
<posXYZ volume="Aperture" X_Y_Z="0.0 0.0 0.0" />
</composition>
<composition name="Aperture" envelope="GAP2">
<posXYZ volume="MagnetPipe2" X_Y_Z="0.0 0.0 0.0" />
</composition>
<box name="POL2" X_Y_Z="42.0 20.8 36.0" material="Iron" />
<box name="GAP2" X_Y_Z="20.3 5.0 36.0" material="Air" >
<apply region="sweepDipoleBfield" />
</box>
<composition name="MagnetPipe2" envelope="MPO2">
<posXYZ volume="MPI2" X_Y_Z="0.0 0.0 0.0"/>
</composition>
<tubs name="MPO2" Rio_Z="0.0 1.905 36.0" material="Iron" />
<tubs name="MPI2" Rio_Z="0.0 1.745 36.0" material="Vacuum" />
<!-- Flange 5 -->
<composition name="Flange5">
<posXYZ volume="FlangeFiveDisk1" X_Y_Z="0.0 0.0 4.13" />
<posXYZ volume="FlangeFiveDisk2" X_Y_Z="0.0 0.0 9.84" />
<posXYZ volume="FlangeFiveDisk3" X_Y_Z="0.0 0.0 14.92"/>
<posXYZ volume="FlangeFiveDisk4" X_Y_Z="0.0 0.0 20.0" />
<posXYZ volume="FlangeFiveDisk5" X_Y_Z="0.0 0.0 29.71"/>
</composition>
<composition name="FlangeFiveDisk1" envelope="F5O1">
<posXYZ volume="F5I1" X_Y_Z="0.0 0.0 0.0"/>
</composition>
<tubs name="F5O1" Rio_Z="0.0 1.905 8.26" material="Iron" />
<tubs name="F5I1" Rio_Z="0.0 1.745 8.26" material="Vacuum" />
<composition name="FlangeFiveDisk2" envelope="F5O2">
<posXYZ volume="F5I2" X_Y_Z="0.0 0.0 0.0"/>
</composition>
<tubs name="F5O2" Rio_Z="0.0 4.29 3.16" material="Iron" />
<tubs name="F5I2" Rio_Z="0.0 2.38 3.16" material="Vacuum" />
<composition name="FlangeFiveDisk3" envelope="F5O3">
<posXYZ volume="F5I3" X_Y_Z="0.0 0.0 0.0"/>
</composition>
<tubs name="F5O3" Rio_Z="0.0 2.08 7.0" material="Iron" />
<tubs name="F5I3" Rio_Z="0.0 2.06 7.0" material="Vacuum" />
<composition name="FlangeFiveDisk4" envelope="F5O4">
<posXYZ volume="F5I4" X_Y_Z="0.0 0.0 0.0"/>
</composition>
<tubs name="F5O4" Rio_Z="0.0 4.29 3.16" material="Iron" />
<tubs name="F5I4" Rio_Z="0.0 2.38 3.16" material="Vacuum" />
<composition name="FlangeFiveDisk5" envelope="F5O5">
<posXYZ volume="F5I5" X_Y_Z="0.0 0.0 0.0"/>
</composition>
<tubs name="F5O5" Rio_Z="0.0 2.54 16.26" material="Iron" />
<tubs name="F5I5" Rio_Z="0.0 2.38 16.26" material="Vacuum" />
<!-- Beam Pipe1 -->
<composition name="BeamPipe1" envelope="BPO1">
<posXYZ volume="BPI1" X_Y_Z="0.0 0.0 0.0"/>
</composition>
<tubs name="BPO1" Rio_Z="0.0 2.54 52.32" material="Iron" />
<tubs name="BPI1" Rio_Z="0.0 2.38 52.32" material="Vacuum" />
<!-- Lead Band 2 -->
<composition name="LeadBand2" envelope="LBD2">
<posXYZ volume="LeadBandPipe2" X_Y_Z="0.0 0.0 0.0"/>
</composition>
<composition name="LeadBandPipe2" envelope="LBO2">
<posXYZ volume="LBI2" X_Y_Z="0.0 0.0 0.0"/>
</composition>
<box name="LBD2" X_Y_Z="81.28 20.32 10.16" material="Lead" />
<tubs name="LBO2" Rio_Z="0.0 2.54 10.16" material="Iron" />
<tubs name="LBI2" Rio_Z="0.0 2.38 10.16" material="Vacuum" />
<!-- Flange 6 -->
<!-- Without DET2
<composition name="Flange6">
<posXYZ volume="FlangeSixDisk1" X_Y_Z="0.0 0.0 4.13" />
<posXYZ volume="FlangeSixDisk2" X_Y_Z="0.0 0.0 9.84" />
<posXYZ volume="FlangeSixDisk3" X_Y_Z="0.0 0.0 14.92"/>
<posXYZ volume="FlangeSixDisk4" X_Y_Z="0.0 0.0 20.0" />
<posXYZ volume="FlangeSixDisk5" X_Y_Z="0.0 0.0 25.71"/>
</composition>
-->
<composition name="Flange6">
<posXYZ volume="FlangeSixDisk1" X_Y_Z="0.0 0.0 4.08" />
<posXYZ volume="FlangeSixDisk2" X_Y_Z="0.0 0.0 9.74" />
<posXYZ volume="FlangeSixDisk3" X_Y_Z="0.0 0.0 14.82"/>
<posXYZ volume="FlangeSixDisk4" X_Y_Z="0.0 0.0 19.9" />
<posXYZ volume="FlangeSixDisk5" X_Y_Z="0.0 0.0 35.98"/>
</composition>
<composition name="FlangeSixDisk1" envelope="F6O1">
<posXYZ volume="F6I1" X_Y_Z="0.0 0.0 0.0"/>
</composition>
<!-- Without DET2
<tubs name="F6O1" Rio_Z="0.0 2.54 8.26" material="Iron" />
<tubs name="F6I1" Rio_Z="0.0 2.38 8.26" material="Vacuum" />
-->
<tubs name="F6O1" Rio_Z="0.0 2.54 8.16" material="Iron" />
<tubs name="F6I1" Rio_Z="0.0 2.38 8.16" material="Vacuum" />
<composition name="FlangeSixDisk2" envelope="F6O2">
<posXYZ volume="F6I2" X_Y_Z="0.0 0.0 0.0"/>
</composition>
<tubs name="F6O2" Rio_Z="0.0 4.29 3.16" material="Iron" />
<tubs name="F6I2" Rio_Z="0.0 2.38 3.16" material="Vacuum" />
<composition name="FlangeSixDisk3" envelope="F6O3">
<posXYZ volume="F6I3" X_Y_Z="0.0 0.0 0.0"/>
</composition>
<tubs name="F6O3" Rio_Z="0.0 2.08 7.0" material="Iron" />
<tubs name="F6I3" Rio_Z="0.0 2.06 7.0" material="Vacuum" />
<composition name="FlangeSixDisk4" envelope="F6O4">
<posXYZ volume="F6I4" X_Y_Z="0.0 0.0 0.0"/>
</composition>
<tubs name="F6O4" Rio_Z="0.0 4.29 3.16" material="Iron" />
<tubs name="F6I4" Rio_Z="0.0 2.38 3.16" material="Vacuum" />
<composition name="FlangeSixDisk5" envelope="F6O5">
<posXYZ volume="F6I5" X_Y_Z="0.0 0.0 0.0"/>
</composition>
<tubs name="F6O5" Rio_Z="0.0 2.54 28.73" material="Iron" />
<tubs name="F6I5" Rio_Z="0.0 2.38 28.73" material="Vacuum" />
<composition name="TargetBox">
<posXYZ volume="TargetBoxDisk1" X_Y_Z="0.0 0.0 -10.9"/>
<posXYZ volume="TargetBoxDisk2" X_Y_Z="0.0 0.0 0.0" />
<posXYZ volume="TargetBoxDisk3" X_Y_Z="0.0 0.0 10.9"/>
</composition>
<composition name="TargetBoxDisk1" envelope="TBO1">
<posXYZ volume="TBI1" X_Y_Z="0.0 0.0 0.0"/>
</composition>
<box name="TBO1" X_Y_Z="22.0 20.0 0.2" material="Iron" />
<tubs name="TBI1" Rio_Z="0.0 2.38 0.2" material="Vacuum" />
<composition name="TargetBoxDisk2" envelope="TBO2">
<posXYZ volume="TargetInnerBox" X_Y_Z="0.0 0.0 0.0"/>
</composition>
<composition name="TargetInnerBox" envelope="TBI2">
<posXYZ volume="CONV" X_Y_Z="0.0 0.0 0.0"/>
</composition>
<box name="TBO2" X_Y_Z="22.0 20.0 21.6" material="Iron" />
<box name="TBI2" X_Y_Z="21.6 19.6 21.6" material="Vacuum" />
<composition name="TargetBoxDisk3" envelope="TBO3">
<posXYZ volume="TBI3" X_Y_Z="0.0 0.0 0.0"/>
</composition>
<box name="TBO3" X_Y_Z="22.0 20.0 0.2" material="Iron" />
<tubs name="TBI3" Rio_Z="0.0 2.38 0.2" material="Vacuum" />
<box name="CONV" X_Y_Z="1.0 1.0 0.0445" material="Aluminum" />
<!-- Flange 7 -->
<composition name="Flange7">
<posXYZ volume="FlangeSevenDisk1" X_Y_Z="0.0 0.0 8.8721" />
<posXYZ volume="FlangeSevenDisk2" X_Y_Z="0.0 0.0 19.3224" />
<posXYZ volume="FlangeSevenDisk3" X_Y_Z="0.0 0.0 24.4024" />
<posXYZ volume="FlangeSevenDisk4" X_Y_Z="0.0 0.0 29.4824" />
<posXYZ volume="FlangeSevenDisk5" X_Y_Z="0.0 0.0 35.1924" />
</composition>
<composition name="FlangeSevenDisk1" envelope="F7O1">
<posXYZ volume="F7I1" X_Y_Z="0.0 0.0 0.0"/>
</composition>
<tubs name="F7O1" Rio_Z="0.0 2.54 17.74" material="Iron" />
<tubs name="F7I1" Rio_Z="0.0 2.38 17.74" material="Vacuum" />
<composition name="FlangeSevenDisk2" envelope="F7O2">
<posXYZ volume="F7I2" X_Y_Z="0.0 0.0 0.0"/>
</composition>
<tubs name="F7O2" Rio_Z="0.0 4.29 3.16" material="Iron" />
<tubs name="F7I2" Rio_Z="0.0 2.38 3.16" material="Vacuum" />
<composition name="FlangeSevenDisk3" envelope="F7O3">
<posXYZ volume="F7I3" X_Y_Z="0.0 0.0 0.0"/>
</composition>
<tubs name="F7O3" Rio_Z="0.0 2.08 7.0" material="Iron" />
<tubs name="F7I3" Rio_Z="0.0 2.06 7.0" material="Vacuum" />
<composition name="FlangeSevenDisk4" envelope="F7O4">
<posXYZ volume="F7I4" X_Y_Z="0.0 0.0 0.0"/>
</composition>
<tubs name="F7O4" Rio_Z="0.0 4.29 3.16" material="Iron" />
<tubs name="F7I4" Rio_Z="0.0 2.38 3.16" material="Vacuum" />
<composition name="FlangeSevenDisk5" envelope="F7O5">
<posXYZ volume="F7I5" X_Y_Z="0.0 0.0 0.0"/>
</composition>
<tubs name="F7O5" Rio_Z="0.0 2.54 8.26" material="Iron" />
<tubs name="F7I5" Rio_Z="0.0 2.38 8.26" material="Vacuum" />
<!-- Concrete Wall -->
<composition name="ConcreteWall2" envelope="BLC2">
<posXYZ volume="ENTR" X_Y_Z="-179.0 0.0 -30.46"/>
<posXYZ volume="Block2Hole" X_Y_Z="0.0 -33.0 0.0"/>
</composition>
<box name="ENTR" X_Y_Z="92.0 266.0 61.0" material="Air" />
<composition name="Block2Hole" envelope="OBHO">
<posXYZ volume="IBHO" X_Y_Z="0.0 0.0 0.0"/>
</composition>
<box name="BLC2" X_Y_Z="450.0 266.0 121.92" material="Concrete" />
<tubs name="OBHO" Rio_Z="0.0 2.54 121.92" material="Iron" />
<tubs name="IBHO" Rio_Z="0.0 2.38 121.92" material="Vacuum" />
<!-- Lead Wall -->
<composition name="shieldingWall" envelope="WALL">
<posXYZ volume="WallHole" X_Y_Z="0.0 -35.0 0.0"/>
</composition>
<box name="WALL" X_Y_Z="450. 270. 5.08" material="Lead" />
<composition name="WallHole" envelope="OWHO">
<posXYZ volume="IWHO" X_Y_Z="0.0 0.0 0.0"/>
</composition>
<tubs name="OWHO" Rio_Z="0.0 2.54 5.08" material="Iron" />
<tubs name="IWHO" Rio_Z="0.0 2.38 5.08" material="Vacuum" />
<!-- Beam Pipe2 -->
<composition name="BeamPipe2" envelope="BPO2">
<!-- MUST COMMENT OUt either one or the other of the two lines below -->
<!-- <posXYZ volume="BeamPipe2Inner" /> enables the photon beam harp -->
<posXYZ volume="BPI2" /> <!-- disables the photon beam harp -->
</composition>
<composition name="BeamPipe2Inner" envelope="BPI2">
<posXYZ volume="photonBeamHarp" X_Y_Z="0.0 0.0 -27.38" />
</composition>
<composition name="photonBeamHarp">
<posXYZ volume="PSCV" />
<posXYZ volume="PSCH" />
</composition>
<tubs name="BPO2" Rio_Z="0.0 2.54 117.715" material="Iron" />
<tubs name="BPI2" Rio_Z="0.0 2.38 117.715" material="Vacuum" />
<composition name="PairSpecConverter" envelope="PSCM">
<posXYZ volume="PSCV"/>
<posXYZ volume="PSCH"/>
</composition>
<tubs name="PSCM" Rio_Z="0.0 2.38 0.53" material="Vacuum"/>
<tubs name="PSCV" Rio_Z="0.0 1.143 0.01" material="Aluminum"/>
<tubs name="PSCH" Rio_Z="1.143 2.38 0.53" material="Iron"/>
<tubs name="DET1" Rio_Z="0. 50. 2." material="Air" />
<box name="DET2" X_Y_Z=" 450. 270. 0.1" material="Vacuum" />
<box name="DET3" X_Y_Z=" 450. 2. 918." material="Air" />
<!-- The composition 'beamPipe' extends the vacuum from the pair
spectrometer to the position of the target.
Origin of beamPipe is center of the hall.
-->
<composition name="beamPipe">
<!-- <posXYZ volume="DET4" X_Y_Z=" 0.0 0.0 -1400.0"/> -->
<posXYZ volume="DET5" X_Y_Z=" 0.0 0.0 1400.0"/>
<posXYZ volume="TAC1" X_Y_Z="150.0 -350.0 1225.0" />
<posXYZ volume="DarkWindow" X_Y_Z=" 150.0 -350.0 320.0" />
<posXYZ volume="PlatformPipe" X_Y_Z="150.0 -350.0 650."/>
<posXYZ volume="PlexWindow" X_Y_Z="150.0 -350.0 830."/>
<posXYZ volume="IntMonitor" X_Y_Z="150.0 -350.0 834."/>
<posXYZ volume="DET6" X_Y_Z=" 0.0 600.0 0.0"/>
<!--posXYZ volume="DET7" X_Y_Z=" 0.0 0.0 -705.0"/-->
<posXYZ volume="HallBellows" X_Y_Z="150.0 -350.0 -1223.287"/>
<posXYZ volume="HallPipe" X_Y_Z="150.0 -350.0 -1026.77"/>
<!-- Plastic scintillator for beam diagonistics -->
<!--posXYZ volume="DET8" X_Y_Z="150 -350.0 -834.0 "/-->
</composition>
<composition name="DarkWindow">
<posXYZ volume="DBOW" X_Y_Z=" 0.0 0.0 0.0" />
<posXYZ volume="DBEW" X_Y_Z=" 0.0 0.0 0.0" />
</composition>
<tubs name="DBOW" Rio_Z="20.0 60.0 0.3" material="Aluminum"/>
<tubs name="DBEW" Rio_Z="0.0 20.0 0.01" material="Tedlar"/>
<composition name="PlatformPipe">
<posXYZ volume="PPWD" X_Y_Z="0.0 0.0 -176.5127" />
<posXYZ volume="PipeSection" X_Y_Z="0.0 0.0 0.0" />
<posXYZ volume="PPWD" X_Y_Z="0.0 0.0 176.5127" />
</composition>
<tubs name="PPWD" Rio_Z="0.0 20.32 0.0254" material="Kapton" />
<composition name="PipeSection" envelope="PPOV">
<posXYZ volume="PPIV" X_Y_Z="0.0 0.0 0.0"/>
</composition>
<tubs name="PPOV" Rio_Z="0.0 20.32 353.0" material="Iron" />
<tubs name="PPIV" Rio_Z="0.0 20.04 353.0" material="Vacuum" />
<composition name="PlexWindow">
<posXYZ volume="PPPW" X_Y_Z="0.0 0.0 0.0"/>
</composition>
<composition name="IntMonitor" >
<posXYZ volume="INTM" X_Y_Z="0.0 0.0 0.0"/>
</composition>
<box name="INTM" X_Y_Z="2 6 1" material="Scintillator" />
<tubs name="PPPW" Rio_Z="0.0 20.32 0.3" material="Plexiglas" />
<box name="TAC1" X_Y_Z="20 20 45" material="leadGlassF800" sensitive="true" />
<box name="DET4" X_Y_Z="1700.0 1200.0 2.0" material="Vacuum" />
<box name="DET5" X_Y_Z="1700.0 1198.0 2.0" material="Air" />
<box name="DET6" X_Y_Z="1700.0 2.0 3000.0" material="Air" />
<!--box name="DET7" X_Y_Z="1700.0 1198.0 2.0" material="Air" /-->
<tubs name="DET7" Rio_Z="0.0 1.7399 2.0" material="Vacuum"
comment="disk detector inside beam pipe at target entrance" />
<box name="DET8" X_Y_Z="10.0 10.0 1.0" material="Scintillator" sensitive="true"/>
<!-- Hall bellows -->
<composition name="HallBellows" envelope="BLWO">
<posXYZ volume="BLWI" X_Y_Z="0.0 0.0 -3.5011"/>
</composition>
<pcon name="BLWO" material="Iron">
<polyplane Rio_Z="0.0 1.90500 -13.4"/>
<polyplane Rio_Z="0.0 1.90500 -7.9148"/>
<polyplane Rio_Z="0.0 4.27355 -7.9148"/>
<polyplane Rio_Z="0.0 4.27355 -4.7652"/>
<polyplane Rio_Z="0.0 1.905 -4.7652"/>
<polyplane Rio_Z="0.0 1.905 -2.8602"/>
<polyplane Rio_Z="0.0 2.0726 -2.8602"/>
<polyplane Rio_Z="0.0 2.0726 2.8602"/>
<polyplane Rio_Z="0.0 1.905 2.8602"/>
<polyplane Rio_Z="0.0 1.905 4.7652"/>
<polyplane Rio_Z="0.0 4.27355 4.7652"/>
<polyplane Rio_Z="0.0 4.27355 6.3978"/>
</pcon>
<tubs name="BLWI" Rio_Z="0. 1.7399 19.7978" material="Vacuum"/>
<!-- Hall Pipe -->
<composition name="HallPipe" envelope="OHPI" >
<!--posXYZ volume="IHPI" X_Y_Z="0 0 98.6305"/-->
<posXYZ volume="InnerHallPipe" X_Y_Z="0.0 0.0 98.4805"/>
</composition>
<composition name="InnerHallPipe" envelope="IHPI">
<posXYZ volume="DET7" X_Y_Z="0 0 280.0"/>
<!--posXYZ volume="CAP1" X_Y_Z="0.0 0.0 190.11265" /-->
</composition>
<pcon name="OHPI" material="Iron">
<polyplane Rio_Z="0.0 4.27355 -190.1190"/>
<polyplane Rio_Z="0.0 4.27355 -188.5442"/>
<polyplane Rio_Z="0.0 1.90500 -188.5442"/>
<polyplane Rio_Z="0.0 1.90500 +385.378"/>
<polyplane Rio_Z="0.0 22.504 +385.378"/>
<polyplane Rio_Z="0.0 22.504 +387.080"/>
</pcon>
<tubs name="IHPI" Rio_Z="0.0 1.7399 577.199" material="Vacuum" />
<tubs name="CAP1" Rio_Z="0.0 1.7399 0.0127" material="Kapton"/>
<composition name="SixWayCross" envelope="SWCM">
<posXYZ volume="sixWayTube" X_Y_Z="0 0 0"/>
<posXYZ volume="sixWayTube" X_Y_Z="0. 0 0." rot="0. 180. 0."/>
<posXYZ volume="sixWayTube" X_Y_Z="0. 0. 0." rot="0. 90. 0."/>
<posXYZ volume="sixWayTube" X_Y_Z="0. 0. 0." rot="0. 270. 0."/>
<posXYZ volume="sixWayTube" X_Y_Z="0. 0. 0." rot="90. 0. 0."/>
<posXYZ volume="sixWayTube" X_Y_Z="0. 0. 0." rot="270. 0. 0."/>
<posXYZ volume="sixWayBox" X_Y_Z="0. 0. 0."/>
</composition>
<box name="SWCM" X_Y_Z="67.9196 67.9196 67.9196" material="Air"
comment="Six-way cross mother volume"/>
<pcon name="SWCP" material="StainlessSteel" comment="Vacuum pipe for 6-way cross">
<polyplane Rio_Z="0. 20.32 20.32"/>
<polyplane Rio_Z="0. 20.32 32.258"/>
<polyplane Rio_Z="0. 22.504 32.258"/>
<polyplane Rio_Z="0. 22.504 33.9598"/>
</pcon>
<composition name="sixWayTube" envelope="SWCP">
<posXYZ volume="SWC2" X_Y_Z="0.0 0.0 27.1399"/>
</composition>
<composition name="sixWayBox" envelope="SWCB">
<posXYZ volume="SWC1" X_Y_Z="0.0 0.0 20.08125"/>
<posXYZ volume="SWC1" X_Y_Z="0.0 0.0 -20.08125"/>
<posXYZ volume="SWC1" X_Y_Z="0.0 20.08125 0.0" rot="90 0 0"/>
<posXYZ volume="SWC1" X_Y_Z="0.0 -20.08125 0.0" rot="90 0 0"/>
<posXYZ volume="SWC1" X_Y_Z="20.08125 0. 0." rot="0 90 0 "/>
<posXYZ volume="SWC1" X_Y_Z="-20.08125 0. 0." rot="0 90 0"/>
<posXYZ volume="coldCubeMotherVolume" X_Y_Z="0. 0. 0." />
</composition>
<composition name="coldCubeMotherVolume" envelope="CBXM">
<posXYZ volume="CBX1" X_Y_Z="0. -7.712 0."/>
<posXYZ volume="coldCubeBeamPlate" X_Y_Z="0. 4.28 12.1444"/>
<posXYZ volume="coldCubeBeamPlate" X_Y_Z="0. 4.28 12.3032"/>
<posXYZ volume="coldCubeBeamPlate" X_Y_Z="0. 4.28 -12.1444"/>
<posXYZ volume="CBXS" X_Y_Z="12.1444 4.28 0."/>
<posXYZ volume="CBXS" X_Y_Z="-12.1444 4.28 0."/>
<posXYZ volume="coldCubeTopPlate" X_Y_Z="0. 16.272 0." rot="90 90 0"/>
<posXYZ volume="coldCubeSidePlate" X_Y_Z="0. 4.28 11.9856"/>
<posXYZ volume="coldCubeSidePlate" X_Y_Z="0. 4.28 -11.9856"/>
<posXYZ volume="coldCubeSidePlate" X_Y_Z="11.9856 4.28 0." rot="0 90 0"/>
<posXYZ volume="coldCubeSidePlate" X_Y_Z="-11.9856 4.28 0." rot="0 90 0"/>
</composition>
<composition name="coldCubeBeamPlate" envelope="CBXB">
<posXYZ volume="CBH0" X_Y_Z="0. -4.2926 0."/>
</composition>
<composition name="coldCubeSidePlate" envelope="CBSP">
<posXYZ volume="CBH2" X_Y_Z="0. 0. 0."/>