-
Notifications
You must be signed in to change notification settings - Fork 494
Expand file tree
/
Copy pathPipe.cxx
More file actions
3176 lines (2872 loc) · 154 KB
/
Pipe.cxx
File metadata and controls
3176 lines (2872 loc) · 154 KB
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
// Copyright 2019-2020 CERN and copyright holders of ALICE O2.
// See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
// All rights not expressly granted are reserved.
//
// This software is distributed under the terms of the GNU General Public
// License v3 (GPL Version 3), copied verbatim in the file "COPYING".
//
// In applying this license CERN does not waive the privileges and immunities
// granted to it by virtue of its status as an Intergovernmental Organization
// or submit itself to any jurisdiction.
#include "DetectorsPassive/Pipe.h"
#include <DetectorsBase/Detector.h>
#include <DetectorsBase/MaterialManager.h>
#include <TGeoCompositeShape.h>
#include <TGeoCone.h>
#include <TGeoPcon.h>
#include <TGeoTorus.h>
#include <TGeoTube.h>
#include <TGeoEltu.h>
#include <TVirtualMC.h>
#include "TGeoManager.h" // for TGeoManager, gGeoManager
#include "TGeoMaterial.h" // for TGeoMaterial
#include "TGeoMedium.h" // for TGeoMedium
#include "TGeoVolume.h" // for TGeoVolume
#include <TGeoArb8.h> // for TGeoTrap
#include <TGeoTrd1.h> // for TGeoTrap
// force availability of assert
#ifdef NDEBUG
#undef NDEBUG
#endif
#include <cassert>
//-------------------------------------------------------------------------
// Beam pipe class for ALICE ITS & MFT upgrade
// Imported from AliRoot AliPIPEupdrage
// Original Authors:
// F. Manso
// A. Morsch
// R. Tieulent
// M. Sitta
//-------------------------------------------------------------------------
using namespace o2::passive;
Pipe::~Pipe() = default;
Pipe::Pipe() : PassiveBase("PIPE", "") {}
Pipe::Pipe(const char* name, const char* title, float rho, float thick)
: PassiveBase(name, title), mBePipeRmax(rho), mBePipeThick(thick)
{
}
Pipe::Pipe(const Pipe& rhs) = default;
Pipe& Pipe::operator=(const Pipe& rhs)
{
// self assignment
if (this == &rhs) {
return *this;
}
// base class assignment
PassiveBase::operator=(rhs);
return *this;
}
void Pipe::ConstructGeometry()
{
createMaterials();
//
// Class describing the beam pipe geometry
//
Float_t z, zsh, z0;
//
// Rotation Matrices
//
const Float_t kDegRad = TMath::Pi() / 180.;
// Rotation by 180 deg
TGeoRotation* rot180 = new TGeoRotation("rot180", 90., 180., 90., 90., 180., 0.);
TGeoRotation* rotyz = new TGeoRotation("rotyz", 90., 180., 0., 180., 90., 90.);
TGeoRotation* rotxz = new TGeoRotation("rotxz", 0., 0., 90., 90., 90., 180.);
//
// Media
auto& matmgr = o2::base::MaterialManager::Instance();
const TGeoMedium* kMedAir = matmgr.getTGeoMedium("PIPE_AIR");
const TGeoMedium* kMedAirNF = matmgr.getTGeoMedium("PIPE_AIR_NF");
const TGeoMedium* kMedAirHigh = matmgr.getTGeoMedium("PIPE_AIR_HIGH");
const TGeoMedium* kMedVac = matmgr.getTGeoMedium("PIPE_VACUUM");
const TGeoMedium* kMedVacNF = matmgr.getTGeoMedium("PIPE_VACUUM_NF");
const TGeoMedium* kMedVacHC = matmgr.getTGeoMedium("PIPE_VACUUM_HC");
const TGeoMedium* kMedVacNFHC = matmgr.getTGeoMedium("PIPE_VACUUM_NFHC");
const TGeoMedium* kMedInsu = matmgr.getTGeoMedium("PIPE_INS_C0");
const TGeoMedium* kMedSteel = matmgr.getTGeoMedium("PIPE_INOX");
const TGeoMedium* kMedSteelNF = matmgr.getTGeoMedium("PIPE_INOX_NF");
const TGeoMedium* kMedSteelHC = matmgr.getTGeoMedium("PIPE_INOX_HC");
const TGeoMedium* kMedSteelNFHC = matmgr.getTGeoMedium("PIPE_INOX_NFHC");
const TGeoMedium* kMedBe = matmgr.getTGeoMedium("PIPE_BE");
const TGeoMedium* kMedCu = matmgr.getTGeoMedium("PIPE_CU");
const TGeoMedium* kMedCuNF = matmgr.getTGeoMedium("PIPE_CU_NF");
const TGeoMedium* kMedCuHC = matmgr.getTGeoMedium("PIPE_CU_HC");
const TGeoMedium* kMedCuNFHC = matmgr.getTGeoMedium("PIPE_CU_NFHC");
const TGeoMedium* kMedAlu2219 = matmgr.getTGeoMedium("PIPE_AA2219");
const TGeoMedium* kMedRohacell = matmgr.getTGeoMedium("PIPE_ROHACELL");
const TGeoMedium* kMedPolyimide = matmgr.getTGeoMedium("PIPE_POLYIMIDE");
const TGeoMedium* kMedCarbonFiber = matmgr.getTGeoMedium("PIPE_M55J6K");
const TGeoMedium* kMedTitanium = matmgr.getTGeoMedium("PIPE_TITANIUM");
const TGeoMedium* kMedAlu7075 = matmgr.getTGeoMedium("PIPE_AA7075");
// Top volume
TGeoVolume* top = gGeoManager->GetVolume("cave");
TGeoVolume* barrel = gGeoManager->GetVolume("barrel");
TGeoVolume* caveRB24 = gGeoManager->GetVolume("caveRB24");
//
//
////////////////////////////////////////////////////////////////////////////////
// //
// The Central Vacuum system //
// //
////////////////////////////////////////////////////////////////////////////////
//
//
// The ALICE central beam-pipe according to drawing LHCVC2C_0001
// Drawings of sub-elements:
//
// Pos 7 - Minimised Flange: LHCVFX_P0025
// Pos 6 - Standard Flange: STDVFUHV0009
// Pos 8 - Bellow: LHCVBX__0001
//
// Absolute z-coordinates -82.0 - 400.0 cm
// Total length: 482.0 cm
// It consists of 3 main parts:
// CP/2 The flange on the non-absorber side: 36.5 cm
// CP/1 The central Be pipe: 405.0 cm
// CP/3 The double-bellow and flange on the absorber side: 40.5 cm
//
/*
// Starting position in z
const Float_t kCPz0 = -400.0;
// Length of the CP/1 section
const Float_t kCP1Length = 405.0;
// Length of the CP/2 section
const Float_t kCP2Length = 36.5;
// Length of the CP/3 section
const Float_t kCP3Length = 40.5;
// Position of the CP/2 section
// const Float_t kCP2pos = kCPz0 + kCP2Length / 2.;
// Position of the CP/3 section
const Float_t kCP3pos = kCPz0 + kCP2Length + kCP1Length + kCP3Length/2.;
*/
//////////////////// NEW BEAM PIPE GEOMETRY FOR MuonForwardTracker ////////////////////////
// Authors: F. Manso, R. Tieulent
// Drawings from C. Gargiulo :
// \\cern.ch\dfs\Workspaces\c\cgargiul\EXPERIMENT\ALICE\ALICE_MECHANICS\ALICE_DATA_PACKAGE\IN\DETECTORS\ITS_UPGRADE\1-DESIGN\3D_cad_model\R14_20140311_ALI\
//
//
// central beam pipe
//------------------- Pipe version 4.7 March 2014 -----------------------------
TGeoVolumeAssembly* beamPipeCsideSection = new TGeoVolumeAssembly("BeamPipeCsideSection");
// If user set Rmax=0/Thick=0 use defaults, else use user input
const Float_t kBeryliumSectionOuterRadius = (mBePipeRmax > 0.) ? mBePipeRmax : 1.9;
const Float_t kBeryliumSectionThickness = (mBePipeThick > 0.) ? mBePipeThick : 0.08;
const Float_t kBeryliumSectionZmax = 44.4;
const Float_t kBeryliumSectionZmin = -44.4;
const Float_t kBellowSectionOuterRadius = 2.15;
const Float_t kCSideBPSOuterRadius = 2.22;
const Float_t kCSideBPSWallThickness = 0.15;
const Float_t kBellowSectionZmax = -55.35;
const Float_t kBellowOuterRadius = 2.8;
const Float_t kFirstConeAngle = 15. * TMath::DegToRad();
const Float_t kChangeThicknessAngle = 45. * TMath::DegToRad();
const Float_t kCSideBPSLength = 3.53;
const Float_t kDzFirstCone = (kCSideBPSOuterRadius - kBeryliumSectionOuterRadius) / TMath::Tan(kFirstConeAngle);
const Float_t kReduceThicknessPartAfterBPSLength = 1.52;
const Float_t kThinPartBeforeBellowLength = 1.025;
const Float_t kDistanceBetweenBellows = 2.5;
const Float_t kAdaptConeZmax = -77.43;
const Float_t kAdaptConeZmin = -80.6;
const Float_t kAdaptConeRmax = 3.0;
const Float_t kFlangeRmax = 4.3;
const Float_t kFlangeLength = 1.4;
const Float_t kBellowPlieRadius = 0.17; // radius of bellow plies
const Float_t kBellowPlieThickness = 0.03; // Thickness of bellow plies 300 microns
const Int_t kNBellowConvolutions = 7;
const Float_t kZ1 = kBeryliumSectionZmin; // z of Be - Al jonction on the C-side
const Float_t kZ2 =
kBellowSectionZmax + kDzFirstCone; // z of end of small diameter part (beginning of first cone before the bellow
const Float_t kZ3 = kBellowSectionZmax +
(kCSideBPSOuterRadius - kBellowSectionOuterRadius) /
TMath::Tan(kFirstConeAngle); // z of End of first cone part with 0.8mm thickness
const Float_t kZ4 = kBellowSectionZmax; // z of End of first Cone
const Float_t kZ5 = kBellowSectionZmax - kCSideBPSLength; // z of End of Beam Pipe support section
const Float_t kZ6 =
kBellowSectionZmax - kCSideBPSLength -
(kCSideBPSOuterRadius - kBellowSectionOuterRadius) /
TMath::Tan(kChangeThicknessAngle); // z of End of Beam Pipe support section after reduction of thickness
const Float_t kZ7 =
kZ6 - kReduceThicknessPartAfterBPSLength; // Z of end of 800 microns section after Beam Pipe Support
const Float_t kZ8 = kZ7 - (kBeryliumSectionThickness - kBellowPlieThickness) / TMath::Tan(kChangeThicknessAngle);
const Float_t kZ9 = kZ7 - kThinPartBeforeBellowLength; // Z of the start of first bellow
const Float_t kFirstBellowZmax = kZ9;
//---------------- Be pipe around the IP ----------
TGeoTube* berylliumTube =
new TGeoTube("IP_PIPEsh", kBeryliumSectionOuterRadius - kBeryliumSectionThickness, kBeryliumSectionOuterRadius,
(kBeryliumSectionZmax - kBeryliumSectionZmin) / 2);
TGeoVolume* voberylliumTube = new TGeoVolume("IP_PIPE", berylliumTube, kMedBe);
voberylliumTube->SetLineColor(kRed);
TGeoTube* berylliumTubeVacuum =
new TGeoTube("IP_PIPEVACUUMsh", 0., kBeryliumSectionOuterRadius,
(kBeryliumSectionZmax - kBeryliumSectionZmin) / 2);
TGeoVolume* voberylliumTubeVacuum = new TGeoVolume("IP_PIPEMOTHER", berylliumTubeVacuum, kMedVac);
voberylliumTubeVacuum->AddNode(voberylliumTube, 1, gGeoIdentity);
voberylliumTubeVacuum->SetVisibility(0);
voberylliumTubeVacuum->SetLineColor(kGreen);
beamPipeCsideSection->AddNode(voberylliumTubeVacuum, 1,
new TGeoTranslation(0., 0., (kBeryliumSectionZmax + kBeryliumSectionZmin) / 2));
//---------------- Al tube ------------------
TGeoPcon* aluBeforeBellows = new TGeoPcon(0., 360., 9);
aluBeforeBellows->DefineSection(0, kZ9, 0., kBellowSectionOuterRadius - kBeryliumSectionThickness + kBellowPlieThickness);
aluBeforeBellows->DefineSection(1, kZ8, 0., kBellowSectionOuterRadius - kBeryliumSectionThickness + kBellowPlieThickness);
aluBeforeBellows->DefineSection(2, kZ7, 0., kBellowSectionOuterRadius);
aluBeforeBellows->DefineSection(3, kZ6, 0., kBellowSectionOuterRadius);
aluBeforeBellows->DefineSection(4, kZ5, 0., kCSideBPSOuterRadius);
aluBeforeBellows->DefineSection(5, kZ4, 0., kCSideBPSOuterRadius);
aluBeforeBellows->DefineSection(6, kZ3, 0., kBellowSectionOuterRadius);
aluBeforeBellows->DefineSection(7, kZ2, 0., kBeryliumSectionOuterRadius);
aluBeforeBellows->DefineSection(8, kZ1, 0., kBeryliumSectionOuterRadius);
TGeoVolume* voaluBeforeBellows = new TGeoVolume("aluBeforeBellows", aluBeforeBellows, kMedAlu2219);
voaluBeforeBellows->SetLineColor(kBlue);
beamPipeCsideSection->AddNode(voaluBeforeBellows, 1, gGeoIdentity);
TGeoPcon* aluBeforeBellowsVacuum = new TGeoPcon(0., 360., 7);
aluBeforeBellowsVacuum->DefineSection(0, kZ9, 0., kBellowSectionOuterRadius - kBeryliumSectionThickness);
aluBeforeBellowsVacuum->DefineSection(1, kZ6, 0., kBellowSectionOuterRadius - kBeryliumSectionThickness);
aluBeforeBellowsVacuum->DefineSection(2, kZ5, 0., kCSideBPSOuterRadius - kCSideBPSWallThickness);
aluBeforeBellowsVacuum->DefineSection(3, kZ4, 0., kCSideBPSOuterRadius - kCSideBPSWallThickness);
aluBeforeBellowsVacuum->DefineSection(4, kZ3, 0., kBellowSectionOuterRadius - kBeryliumSectionThickness);
aluBeforeBellowsVacuum->DefineSection(5, kZ2, 0., kBeryliumSectionOuterRadius - kBeryliumSectionThickness);
aluBeforeBellowsVacuum->DefineSection(6, kZ1, 0., kBeryliumSectionOuterRadius - kBeryliumSectionThickness);
TGeoVolume* voaluBeforeBellowsVacuum = new TGeoVolume("aluBeforeBellowsVacuum", aluBeforeBellowsVacuum, kMedVac);
voaluBeforeBellowsVacuum->SetVisibility(1);
voaluBeforeBellowsVacuum->SetLineColor(kGreen);
voaluBeforeBellows->AddNode(voaluBeforeBellowsVacuum, 1, gGeoIdentity);
//-------------------------------------------------
Float_t kBellowLength = kNBellowConvolutions * (4. * kBellowPlieRadius - 2. * kBellowPlieThickness);
// ------------------ First Bellow --------------------
TGeoVolume* vobellows1 =
MakeBellowCside("bellows1", kNBellowConvolutions, kBellowSectionOuterRadius - kBeryliumSectionThickness,
kBellowOuterRadius, kBellowPlieRadius, kBellowPlieThickness);
beamPipeCsideSection->AddNode(
vobellows1, 1, new TGeoTranslation(0., 0., kFirstBellowZmax - kBellowLength / 2. - 2. * kBellowPlieRadius));
//------------------------------------------------------
const Float_t kZ10 = kFirstBellowZmax - kBellowLength; // End of First bellow
const Float_t kZ12 = kZ10 - kThinPartBeforeBellowLength;
const Float_t kZ11 = kZ12 +
(kBeryliumSectionThickness - kBellowPlieThickness) /
TMath::Tan(kChangeThicknessAngle); // End of 300 microns thickness part after first bellow
const Float_t kZ13 = kZ12 - kDistanceBetweenBellows;
const Float_t kZ14 = kZ13 - (kBeryliumSectionThickness - kBellowPlieThickness) / TMath::Tan(kChangeThicknessAngle);
const Float_t kZ15 = kZ14 - kThinPartBeforeBellowLength;
const Float_t kSecondBellowZmax = kZ15;
//---------- Al tube between the bellows ----------
TGeoPcon* tube4 = new TGeoPcon(0., 360., 6);
tube4->DefineSection(0, kZ10, 0., kBellowSectionOuterRadius - kBeryliumSectionThickness + kBellowPlieThickness);
tube4->DefineSection(1, kZ11, 0., kBellowSectionOuterRadius - kBeryliumSectionThickness + kBellowPlieThickness);
tube4->DefineSection(2, kZ12, 0., kBellowSectionOuterRadius);
tube4->DefineSection(3, kZ13, 0., kBellowSectionOuterRadius);
tube4->DefineSection(4, kZ14, 0., kBellowSectionOuterRadius - kBeryliumSectionThickness + kBellowPlieThickness);
tube4->DefineSection(5, kZ15, 0., kBellowSectionOuterRadius - kBeryliumSectionThickness + kBellowPlieThickness);
TGeoVolume* votube4 = new TGeoVolume("votube4", tube4, kMedAlu2219);
votube4->SetLineColor(kBlue);
beamPipeCsideSection->AddNode(votube4, 1, gGeoIdentity);
TGeoTube* tube4Vacuum = new TGeoTube(0., kBellowSectionOuterRadius - kBeryliumSectionThickness, -(kZ15 - kZ10) / 2.);
TGeoVolume* votube4Vacuum = new TGeoVolume("tube4Vacuum", tube4Vacuum, kMedVac);
votube4Vacuum->SetVisibility(1);
votube4->AddNode(votube4Vacuum, 1, new TGeoTranslation(0., 0., (kZ10 + kZ15) / 2.));
// ------------------ Second Bellow --------------------
TGeoVolume* vobellows2 =
MakeBellowCside("bellows2", kNBellowConvolutions, kBellowSectionOuterRadius - kBeryliumSectionThickness,
kBellowOuterRadius, kBellowPlieRadius, kBellowPlieThickness);
beamPipeCsideSection->AddNode(
vobellows2, 1, new TGeoTranslation(0., 0., kSecondBellowZmax - kBellowLength / 2. - 2. * kBellowPlieRadius));
// -----------------------------------------------------
const Float_t kZ16 = kSecondBellowZmax - kBellowLength; // End of Second bellow
const Float_t kZ18 = kZ16 - kThinPartBeforeBellowLength;
const Float_t kZ17 = kZ18 +
(kBeryliumSectionThickness - kBellowPlieThickness) /
TMath::Tan(kChangeThicknessAngle); // End of 300 microns thickness part after first bellow
const Float_t kZ19 = kAdaptConeZmax; // Start of the Adpation Cone
const Float_t kZ20 = kAdaptConeZmin; // End of the Adpation Cone
const Float_t kZ21 = kAdaptConeZmin - kFlangeLength; // End of the Flange
//----------- 15 deg Conical adaptator + flange ----------
TGeoPcon* adaptator = new TGeoPcon(0., 360., 7);
adaptator->DefineSection(0, kZ16, 0., kBellowSectionOuterRadius - kBeryliumSectionThickness + kBellowPlieThickness);
adaptator->DefineSection(1, kZ17, 0., kBellowSectionOuterRadius - kBeryliumSectionThickness + kBellowPlieThickness);
adaptator->DefineSection(2, kZ18, 0., kBellowSectionOuterRadius);
adaptator->DefineSection(3, kZ19, 0., kBellowSectionOuterRadius);
adaptator->DefineSection(4, kZ20, 0., kAdaptConeRmax);
adaptator->DefineSection(5, kZ20, 0., kFlangeRmax);
adaptator->DefineSection(6, kZ21, 0., kFlangeRmax);
TGeoVolume* voadaptator = new TGeoVolume("voadaptator", adaptator, kMedAlu2219);
voadaptator->SetLineColor(kBlue);
beamPipeCsideSection->AddNode(voadaptator, 1, gGeoIdentity);
TGeoPcon* adaptatorvide = new TGeoPcon(0., 360., 4);
adaptatorvide->DefineSection(0, kZ16, 0., kBellowSectionOuterRadius - kBeryliumSectionThickness);
adaptatorvide->DefineSection(1, kZ19, 0., kBellowSectionOuterRadius - kBeryliumSectionThickness);
adaptatorvide->DefineSection(2, kZ20, 0., kAdaptConeRmax - kBeryliumSectionThickness);
adaptatorvide->DefineSection(3, kZ21, 0., kAdaptConeRmax - kBeryliumSectionThickness);
TGeoVolume* voadaptatorvide = new TGeoVolume("voadaptatorvide", adaptatorvide, kMedVac);
voadaptatorvide->SetVisibility(1);
// voadaptatorvide->SetLineColor(kGreen);
voadaptator->AddNode(voadaptatorvide, 1, gGeoIdentity);
//------------------------------------------------------
barrel->AddNode(beamPipeCsideSection, 1, new TGeoTranslation(0., 30., 0.));
///////////////////////////////////////////////////////////////////
// Beam Pipe support F.M. 2021 rev 2023 //
///////////////////////////////////////////////////////////////////
// Beam Pipe Support
TGeoVolume* beamPipeSupport = new TGeoVolumeAssembly("BeamPipeSupport");
const Float_t kBeamPipesupportZpos = kZ5;
// Dimensions :
const Float_t kSupportXdim = 20.67;
const Float_t kBeamPipeRingZdim = 3.6;
const Float_t kVespelRmax = 2.3;
const Float_t kVespelRmin = 2.22;
const Float_t kBeampipeCarbonCollarRmin = 2.5;
const Float_t kBeampipeCarbonCollarRmax = 2.7;
const Float_t kFixationCarbonCollarRmin = 1.5;
const Float_t kFixationCarbonCollarRmax = 1.7;
const Float_t kFixationCarbonCollarDZ = 2.5;
const Float_t kSkinThickness = 0.3;
const Float_t kSkinXdim = 14.2;
const Float_t kSkinYdim = 1.4;
const Float_t kSkinZdim = kFixationCarbonCollarDZ;
const Float_t kCarbonEarsXdim = 2.8;
const Float_t kCarbonEarsYdimIn = 1.1;
const Float_t kCarbonEarsYdimOut = 0.6;
const Float_t kCarbonEarsZdim = kFixationCarbonCollarDZ;
const Float_t kScrewDiameter = 0.4;
const Float_t kScrewHeadHeight = 0.2;
const Float_t kScrewHeadDiameter = 0.6;
const Float_t kScrewPositionIn = 3.25;
const Float_t kScrewPositionOut = 21.80;
const Float_t kScrewThreadLength = 1.0;
const Float_t holeSightDiameterOut = 0.60;
const Float_t holeSightDiameterIn = 0.25;
// Support Bar
TGeoVolumeAssembly* supportBar = new TGeoVolumeAssembly("BPS_SupportBar");
TGeoBBox* carbonSkinBPS = new TGeoBBox("carbonSkinBPS", kSkinXdim / 2., kSkinYdim / 2., kSkinZdim / 2.);
TGeoBBox* foambarBPS = new TGeoBBox("foambarBPS", kSkinXdim / 2. - kSkinThickness, kSkinYdim / 2. - kSkinThickness,
kSkinZdim / 2. - kSkinThickness / 2.);
TGeoBBox* carbonEarsBPSin = new TGeoBBox("carbonEarsBPSin", kCarbonEarsXdim / 2., kCarbonEarsYdimIn / 2., kCarbonEarsZdim / 2.);
TGeoBBox* carbonEarsBPSout = new TGeoBBox("carbonEarsBPSout", kCarbonEarsXdim / 2., kCarbonEarsYdimOut / 2., kCarbonEarsZdim / 2.);
//===== building the main support bar in carbon ====
TGeoTranslation* tBP1 = new TGeoTranslation("tBP1", (kSkinXdim + kCarbonEarsXdim) / 2., -(kSkinYdim - kCarbonEarsYdimIn) / 2., 0.);
TGeoTranslation* tBP2 = new TGeoTranslation("tBP2", -(kSkinXdim + kCarbonEarsXdim) / 2., 0., 0.);
tBP1->RegisterYourself();
tBP2->RegisterYourself();
TGeoRotation* rotScrew = new TGeoRotation("rotScrew", 0., 90., 0.);
rotScrew->RegisterYourself();
TGeoTube* holeScrew = new TGeoTube("holeScrew", 0., kScrewDiameter / 2., kCarbonEarsYdimIn / 2. + 0.001);
TGeoTube* holeSight = new TGeoTube("holeSight", 0., holeSightDiameterOut / 2., kSkinZdim / 2. + 0.001);
TGeoTranslation* tHoleSight = new TGeoTranslation("tHoleSight", kSkinXdim / 2. + kCarbonEarsXdim + kBeampipeCarbonCollarRmax - 6.55, 0., 0.);
tHoleSight->RegisterYourself();
Double_t kXHoleIn = kSkinXdim / 2. + kCarbonEarsXdim + kBeampipeCarbonCollarRmax - kScrewPositionIn;
Double_t kXHoleOut = kSkinXdim / 2. + kCarbonEarsXdim + kBeampipeCarbonCollarRmax - kScrewPositionOut;
TGeoCombiTrans* tHoleScrew1 = new TGeoCombiTrans("tHoleScrew1", kXHoleIn, -(kSkinYdim - kCarbonEarsYdimIn) / 2., -0.7, rotScrew);
TGeoCombiTrans* tHoleScrew2 = new TGeoCombiTrans("tHoleScrew2", kXHoleIn, -(kSkinYdim - kCarbonEarsYdimIn) / 2., 0.7, rotScrew);
TGeoCombiTrans* tHoleScrew3 = new TGeoCombiTrans("tHoleScrew3", kXHoleOut, -(kSkinYdim - kCarbonEarsYdimIn) / 2., -0.7, rotScrew);
TGeoCombiTrans* tHoleScrew4 = new TGeoCombiTrans("tHoleScrew4", kXHoleOut, -(kSkinYdim - kCarbonEarsYdimIn) / 2., 0.7, rotScrew);
tHoleScrew1->RegisterYourself();
tHoleScrew2->RegisterYourself();
tHoleScrew3->RegisterYourself();
tHoleScrew4->RegisterYourself();
TGeoCompositeShape* supportBarCarbon = new TGeoCompositeShape("BPS_supportBarCarbon", "(carbonSkinBPS-foambarBPS)+carbonEarsBPSin:tBP1-holeScrew:tHoleScrew1-holeScrew:tHoleScrew2+carbonEarsBPSout:tBP2-holeSight:tHoleSight-holeScrew:tHoleScrew3-holeScrew:tHoleScrew4");
TGeoVolume* supportBarCarbonVol = new TGeoVolume("BPS_supportBarCarbon", supportBarCarbon, kMedCarbonFiber);
supportBarCarbonVol->SetLineColor(kGray + 2);
supportBar->AddNode(supportBarCarbonVol, 1, new TGeoTranslation(-(kSkinXdim / 2. + kCarbonEarsXdim + kBeampipeCarbonCollarRmax), 0, 0));
TGeoRotation* rotBar1 = new TGeoRotation("rotBar1", 0., 180., 180.);
rotBar1->RegisterYourself();
TGeoCombiTrans* transBar1 = new TGeoCombiTrans("transBar1", kSkinXdim / 2. + kCarbonEarsXdim + kBeampipeCarbonCollarRmax, 0, 0, rotBar1);
transBar1->RegisterYourself();
supportBar->AddNode(supportBarCarbonVol, 2, transBar1);
//==================================================
//==== Adding the internal foam volumes ============
TGeoCompositeShape* foamVolume = new TGeoCompositeShape("foamVolume", "foambarBPS-holeSight:tHoleSight");
TGeoVolume* FoamVolume = new TGeoVolume("supportBarFoam", foamVolume, kMedRohacell);
FoamVolume->SetLineColor(kGreen);
TGeoRotation* rotBar2 = new TGeoRotation("rotBar2", 0., 0., 180.);
rotBar2->RegisterYourself();
TGeoCombiTrans* transBar2 = new TGeoCombiTrans("transBar2", kSkinXdim / 2. + kCarbonEarsXdim + kBeampipeCarbonCollarRmax, 0, 0, rotBar2);
transBar2->RegisterYourself();
supportBar->AddNode(FoamVolume, 1, transBar1);
supportBar->AddNode(FoamVolume, 2, new TGeoTranslation(-(kSkinXdim / 2. + kCarbonEarsXdim + kBeampipeCarbonCollarRmax), 0, 0));
//==================================================
//================= Screws ====================
TGeoVolumeAssembly* screw = new TGeoVolumeAssembly("screw");
TGeoTube* headScrew = new TGeoTube("headScrew", 0., kScrewHeadDiameter / 2., kScrewHeadHeight / 2.);
TGeoVolume* HeadScrew = new TGeoVolume("HeadScrew", headScrew, kMedTitanium);
HeadScrew->SetLineColor(kRed);
TGeoTube* threadScrew = new TGeoTube("threadScrew", 0., kScrewDiameter / 2., kCarbonEarsYdimIn / 2.);
TGeoVolume* ThreadScrew = new TGeoVolume("ThreadScrew", threadScrew, kMedTitanium);
ThreadScrew->SetLineColor(kRed);
screw->AddNode(HeadScrew, 1, new TGeoTranslation(0., 0., -(kCarbonEarsYdimIn + kScrewHeadHeight) / 2.));
screw->AddNode(ThreadScrew, 1);
TGeoCombiTrans* tScrew1 = new TGeoCombiTrans("transScrew1", kScrewPositionIn, (kCarbonEarsYdimIn - kSkinYdim) / 2., -0.7, rotScrew);
TGeoCombiTrans* tScrew2 = new TGeoCombiTrans("transScrew2", kScrewPositionIn, (kCarbonEarsYdimIn - kSkinYdim) / 2., 0.7, rotScrew);
TGeoCombiTrans* tScrew3 = new TGeoCombiTrans("transScrew3", -kScrewPositionIn, (kCarbonEarsYdimIn - kSkinYdim) / 2., -0.7, rotScrew);
TGeoCombiTrans* tScrew4 = new TGeoCombiTrans("transScrew4", -kScrewPositionIn, (kCarbonEarsYdimIn - kSkinYdim) / 2., 0.7, rotScrew);
tScrew1->RegisterYourself();
tScrew2->RegisterYourself();
tScrew3->RegisterYourself();
tScrew4->RegisterYourself();
supportBar->AddNode(screw, 1, tScrew1);
supportBar->AddNode(screw, 2, tScrew2);
supportBar->AddNode(screw, 3, tScrew3);
supportBar->AddNode(screw, 4, tScrew4);
//==============================================
// === Optical sights (assuming the same than the MFT ones) ===
TGeoVolumeAssembly* fixationSight = new TGeoVolumeAssembly("fixationSight");
TGeoTube* screwSight = new TGeoTube("screwSight", holeSightDiameterIn / 2., holeSightDiameterOut / 2., kScrewThreadLength / 2.);
TGeoVolume* ScrewSight = new TGeoVolume("ScrewSight", screwSight, kMedSteel);
ScrewSight->SetLineColor(kBlue);
Double_t supportSightLength = 0.5;
TGeoTube* supportSight = new TGeoTube("supportSight", holeSightDiameterIn / 2., 1.4 / 2., supportSightLength / 2.);
TGeoVolume* SupportSight = new TGeoVolume("SupportSight", supportSight, kMedSteel);
SupportSight->SetLineColor(kBlue);
fixationSight->AddNode(ScrewSight, 1);
fixationSight->AddNode(SupportSight, 1, new TGeoTranslation(0., 0., (kScrewThreadLength + supportSightLength) / 2.));
SupportSight->SetVisibility(kTRUE);
fixationSight->SetVisibility(kTRUE);
TGeoTranslation* tSight1 = new TGeoTranslation("tSight1", 6.55, 0., (kSkinZdim - kScrewThreadLength) / 2.);
TGeoTranslation* tSight2 = new TGeoTranslation("tSight2", -6.55, 0., (kSkinZdim - kScrewThreadLength) / 2.);
tSight1->RegisterYourself();
tSight2->RegisterYourself();
supportBar->AddNode(fixationSight, 1, tSight1);
supportBar->AddNode(fixationSight, 2, tSight2);
// =====================
beamPipeSupport->AddNode(supportBar, 1);
//======================= Fixation to pipe ========================
TGeoTube* pipeSupportTubeCarbon = new TGeoTube(kBeampipeCarbonCollarRmin, kBeampipeCarbonCollarRmax, kFixationCarbonCollarDZ / 2.);
TGeoVolume* FixationToPipeVol = new TGeoVolume("FixationToPipe", pipeSupportTubeCarbon, kMedCarbonFiber);
FixationToPipeVol->SetLineColor(kGray + 2);
beamPipeSupport->AddNode(FixationToPipeVol, 1);
//==================================================================
//================ Beam Pipe Ring =================
TGeoVolumeAssembly* beamPipeRing = new TGeoVolumeAssembly("beamPipeRing");
TGeoTube* beamPipeRingCarbon = new TGeoTube(kVespelRmax, kBeampipeCarbonCollarRmin, kBeamPipeRingZdim / 2.);
TGeoVolume* beamPipeRingCarbonVol = new TGeoVolume("beamPipeRingCarbon", beamPipeRingCarbon, kMedCarbonFiber);
beamPipeRingCarbonVol->SetLineColor(kGray + 2);
beamPipeRing->AddNode(beamPipeRingCarbonVol, 1,
new TGeoTranslation(0., 0, (kBeamPipeRingZdim - kFixationCarbonCollarDZ) / 2.));
TGeoTube* beamPipeRingVespel = new TGeoTube(kVespelRmin, kVespelRmax, (kBeamPipeRingZdim + 0.4) / 2.);
TGeoVolume* beamPipeRingVespelVol = new TGeoVolume("beamPipeRingVespel", beamPipeRingVespel, kMedPolyimide);
beamPipeRingVespelVol->SetLineColor(kGreen + 2);
beamPipeRing->AddNode(beamPipeRingVespelVol, 1,
new TGeoTranslation(0., 0, (kBeamPipeRingZdim - kFixationCarbonCollarDZ) / 2.));
beamPipeSupport->AddNode(beamPipeRing, 1);
beamPipeSupport->SetVisibility(1);
beamPipeSupport->IsVisible();
//==================================================
//============ Wings (connecting the support bars to the cage support) ===============
TGeoVolumeAssembly* Wing = new TGeoVolumeAssembly("Wing");
// Tige
Double_t lengthRod = 28.7 - 1.0 - 1.0 - 1.9; // sligtly decreased to accomodate to the fixation pieces
Double_t diameterRod = 1.815; // sligtly increased to account of the two ends of the rod
Double_t xRod = 22.1;
TGeoTube* Rod = new TGeoTube(0., diameterRod / 2., lengthRod / 2.);
TGeoVolume* rod = new TGeoVolume("rod", Rod, kMedAlu7075);
rod->SetLineColor(kGray);
// Connecteur Tige / Beam support
Double_t lengthFixRod = 4.0;
Double_t diameterFixRod = 3.0;
//---------------------------------------
TGeoTube* RodBracket = new TGeoTube("RodBracket", 0., diameterFixRod / 2., lengthFixRod / 2.);
TGeoBBox* BracketPlane = new TGeoBBox("BracketPlane", 3., 3., 3.);
TGeoTranslation* tBracketPlane = new TGeoTranslation("tBracketPlane", 0., 3. - kCarbonEarsYdimOut / 2., (lengthFixRod + 6.) / 2. - 2.6);
tBracketPlane->RegisterYourself();
TGeoCompositeShape* Bracket = new TGeoCompositeShape("Bracket", "RodBracket-BracketPlane:tBracketPlane");
TGeoVolume* bracket = new TGeoVolume("bracket", Bracket, kMedAlu7075);
//---------------------------------------
// Carbon box surrounding the aluminum rod
TGeoVolumeAssembly* carbonBox = new TGeoVolumeAssembly("carbonBox");
Double_t eCarbonBox = 0.1;
Double_t trdWidth = 8.6;
Double_t trdLength = 11.05 - 1.0 - 0.6; // on each side to accomodate the bracket and TRDPlate
TGeoTrd1* trdOut = new TGeoTrd1("trdOut", 1.405 / 2, 6.632 / 2, trdLength / 2, trdWidth / 2);
TGeoTrd1* trdIn = new TGeoTrd1("trdIn", 1.405 / 2 - eCarbonBox, 6.632 / 2 - eCarbonBox, trdLength / 2 + eCarbonBox, trdWidth / 2 - eCarbonBox);
TGeoCompositeShape* trd = new TGeoCompositeShape("trd", "trdOut-trdIn");
TGeoVolume* TRD = new TGeoVolume("TRD", trd, kMedCarbonFiber);
TRD->SetLineColor(kGray);
// To close the carbon box
TGeoTrd1* trdPlate = new TGeoTrd1("trdPlate", 1.405 / 2, 6.632 / 2, 1.0 / 2, trdWidth / 2);
TGeoVolume* TRDPlate = new TGeoVolume("TDRPlate", trdPlate, kMedAlu7075);
// To connect on the main cage
TGeoBBox* plateBox = new TGeoBBox("plateBox", 7.5 / 2., 9.5 / 2., 1.9 / 2.);
TGeoBBox* removeBox = new TGeoBBox("removeBox", 2.1 / 2 + 0.0001, 2.5 / 2. + 0.0001, 1.9 / 2. + 0.0001);
TGeoTranslation* tRemove1 = new TGeoTranslation("tRemove1", (7.5 - 2.1) / 2, -(9.5 - 2.5) / 2, 0.);
TGeoTranslation* tRemove2 = new TGeoTranslation("tRemove2", -(7.5 - 2.1) / 2, -(9.5 - 2.5) / 2, 0.);
tRemove1->RegisterYourself();
tRemove2->RegisterYourself();
// Connectors Rod / Cage
TGeoCompositeShape* PlateBox = new TGeoCompositeShape("PlateBox", "plateBox-removeBox:tRemove1-removeBox:tRemove2");
TGeoVolume* PLATEBox = new TGeoVolume("PLATEBox", PlateBox, kMedAlu7075);
TGeoRotation* PlateRot = new TGeoRotation("PlateRot", 0., 0., 0.);
TGeoRotation* FrontRot = new TGeoRotation("FrontRot", 180., 90., 0.);
TGeoCombiTrans* tFrontCarbonBox = new TGeoCombiTrans("tFrontCarbonBox", 0., 0., 0., FrontRot);
PlateRot->RegisterYourself();
FrontRot->RegisterYourself();
tFrontCarbonBox->RegisterYourself();
TGeoCombiTrans* tTRDPlate = new TGeoCombiTrans("tTRDPlate", 0., 0., -(trdLength + 1.0) / 2, FrontRot);
tTRDPlate->RegisterYourself();
TRDPlate->SetLineColor(kGray + 2);
TGeoCombiTrans* tPlateBox = new TGeoCombiTrans("tPlateBox", 0., 0., -(trdLength + 1.9) / 2 - 1.0, PlateRot);
tPlateBox->RegisterYourself();
PLATEBox->SetLineColor(kGray);
Double_t xyOut[16] = {0};
xyOut[0] = 3.316;
xyOut[1] = 4.3;
xyOut[2] = 0.7025;
xyOut[3] = -xyOut[1];
xyOut[4] = -xyOut[2];
xyOut[5] = -xyOut[1];
xyOut[6] = -xyOut[0];
xyOut[7] = xyOut[1];
//--------------
xyOut[8] = 1.3;
xyOut[9] = 1.3 - xyOut[1] + xyOut[8];
xyOut[10] = xyOut[8];
xyOut[11] = -xyOut[8] - xyOut[1] + xyOut[8];
xyOut[12] = -xyOut[8];
xyOut[13] = -xyOut[8] - xyOut[1] + xyOut[8];
xyOut[14] = -xyOut[8];
xyOut[15] = xyOut[8] - xyOut[1] + xyOut[8];
Double_t ARB8Length = 15.35;
TGeoArb8* ARB8Out = new TGeoArb8("ARB8Out", ARB8Length / 2, xyOut);
Double_t xyIn[16] = {0};
xyIn[0] = xyOut[0] - eCarbonBox;
xyIn[1] = xyOut[1] - eCarbonBox;
xyIn[2] = 0.7025 - eCarbonBox;
xyIn[3] = -xyIn[1];
xyIn[4] = -xyIn[2];
xyIn[5] = -xyIn[1];
xyIn[6] = -xyIn[0];
xyIn[7] = xyIn[1];
//--------------
xyIn[8] = xyOut[8] - eCarbonBox;
xyIn[9] = xyOut[8] - xyIn[1] + xyIn[8] - eCarbonBox;
xyIn[10] = xyIn[8];
xyIn[11] = -xyIn[8] - xyOut[1] + xyOut[8];
xyIn[12] = -xyIn[8];
xyIn[13] = -xyIn[8] - xyOut[1] + xyOut[8];
xyIn[14] = -xyIn[8];
xyIn[15] = xyIn[8] - xyOut[1] + xyOut[8];
TGeoArb8* ARB8In = new TGeoArb8("ARB8In", ARB8Length / 2 + 0.0001, xyIn);
TGeoCompositeShape* arb8 = new TGeoCompositeShape("arb8", "ARB8Out-ARB8In");
TGeoVolume* ARB8 = new TGeoVolume("ARB8", arb8, kMedCarbonFiber);
ARB8->SetLineColor(kGray);
TGeoRotation* RearRot = new TGeoRotation("RearRot", 0., 0., 0.);
TGeoCombiTrans* tRearCarbonBox = new TGeoCombiTrans("tRearCarbonBox", 0., 0., (ARB8Length + trdLength) / 2, RearRot);
RearRot->RegisterYourself();
tRearCarbonBox->RegisterYourself();
//===============================================================
carbonBox->AddNode(TRD, 1, tFrontCarbonBox);
carbonBox->AddNode(ARB8, 1, tRearCarbonBox);
carbonBox->AddNode(TRDPlate, 1, tTRDPlate);
carbonBox->AddNode(PLATEBox, 1, tPlateBox);
TGeoRotation* CarbonBoxRot1 = new TGeoRotation("CarbonBoxRot1", 90., 0., 0.);
Double_t xCarbonBox = xRod + trdWidth / 2 - xyOut[8];
Double_t zCarbonBox = -trdLength / 2 - ARB8Length - lengthFixRod + 1.3;
TGeoCombiTrans* tCarbonBox1 = new TGeoCombiTrans("tCarbonBox1", -xCarbonBox, 0., zCarbonBox, CarbonBoxRot1);
CarbonBoxRot1->RegisterYourself();
tCarbonBox1->RegisterYourself();
TGeoRotation* CarbonBoxRot2 = new TGeoRotation("CarbonBoxRot2", 270., 0., 0.);
TGeoCombiTrans* tCarbonBox2 = new TGeoCombiTrans("tCarbonBox2", xCarbonBox, 0., zCarbonBox, CarbonBoxRot2);
CarbonBoxRot2->RegisterYourself();
tCarbonBox2->RegisterYourself();
Wing->AddNode(rod, 1, new TGeoTranslation(xRod, 0., -(lengthRod / 2. + lengthFixRod) + 1.3));
Wing->AddNode(rod, 2, new TGeoTranslation(-xRod, 0., -(lengthRod / 2. + lengthFixRod) + 1.3));
bracket->SetLineColor(kGray);
Wing->AddNode(bracket, 1, new TGeoTranslation(xRod, 0., -lengthFixRod / 2. + 1.3));
Wing->AddNode(bracket, 2, new TGeoTranslation(-xRod, 0., -lengthFixRod / 2. + 1.3));
Wing->AddNode(carbonBox, 1, tCarbonBox1);
Wing->AddNode(carbonBox, 2, tCarbonBox2);
beamPipeSupport->AddNode(Wing, 1);
Double_t mGlobalShift = 2.45; // to be closest to the first bellow according to Corrado blueprints
barrel->AddNode(beamPipeSupport, 1, new TGeoTranslation(0., 30, kBeamPipesupportZpos + kFixationCarbonCollarDZ / 2. - mGlobalShift));
///////////// END NEW BEAM PIPE GEOMETRY FOR MFT ////////////////////
/////////////////////////////////////////////////////////////////////
// Side A section after Beryllium
// Authors: M.Sitta - 19 Sep 2014
// Drawings from C. Gargiulo :
// \\cern.ch\dfs\Workspaces\c\cgargiul\EXPERIMENT\ALICE\ALICE_MECHANICS\ALICE_DATA_PACKAGE\IN\DETECTORS\ITS_UPGRADE\1-DESIGN\0-IF_Control_Drawing\20140207_ICD_ITS_MFT_BP
/////////////////////////////////////////////////////////////////////
//---------------- Al tube ------------------
Float_t kAluminumSectionThickness = 0.08;
Float_t kAluminum1stSectionOuterRadius = 1.9;
Float_t kAluminum1stSectionZmin = kBeryliumSectionZmax;
Float_t kAluminum1stSectionLength = 20.8;
Float_t kAluminumConesAngle = 15. * TMath::DegToRad();
Float_t kAluminum2ndSectionOuterRadius = 2.5;
Float_t kAluminum2ndSectionTotalLength = 361.8; /* was 402.8 - avoid overlap till we know where the pump will be */
Float_t kBeamPipeSupportZpos = 177.5;
Float_t kBeamPipeSupportLength = 5.25;
Float_t kBeamPipeSupportThickness = 0.18;
Float_t kZToAluminiumSecondCone = 3.08;
Float_t kAluminum3rdSectionOuterRadius = 3.0;
Float_t kFlangeATotalLength = 2.14;
Float_t kFlangeASteelSectionLength = 0.8;
Float_t kFlangeAExternalRadius = 7.6;
Float_t kSupportRingZpos = 8.0;
Float_t kSupportRingLength = 0.6;
Float_t kSupportRingRmax = 3.1;
Float_t kAluminumFirstConeLength =
(kAluminum2ndSectionOuterRadius - kAluminum1stSectionOuterRadius) / TMath::Tan(kAluminumConesAngle);
Float_t kAluminumSecondConeLength =
(kAluminum3rdSectionOuterRadius - kAluminum2ndSectionOuterRadius) / TMath::Tan(kAluminumConesAngle);
Float_t kZ26 = kAluminum1stSectionZmin;
Float_t kZ27 = kZ26 + kAluminum1stSectionLength;
Float_t kZ28 = kZ27 + kAluminumFirstConeLength;
Float_t kZ30 = kBeamPipeSupportZpos;
Float_t kZ29 = kZ30 - (kBeamPipeSupportThickness - kAluminumSectionThickness);
Float_t kZ32 = kZ29 + kBeamPipeSupportLength;
Float_t kZ31 = kZ32 - (kBeamPipeSupportThickness - kAluminumSectionThickness);
Float_t kZ36 = kZ27 + kAluminum2ndSectionTotalLength - kFlangeASteelSectionLength;
Float_t kZ35 = kZ36 - (kFlangeATotalLength - kFlangeASteelSectionLength);
Float_t kZ34 = kZ35 - (kZToAluminiumSecondCone - kFlangeATotalLength);
Float_t kZ33 = kZ34 - kAluminumSecondConeLength;
Float_t rMin, rMax;
Float_t zPos;
// The Aluminum Section till Flange
TGeoPcon* aluSideA = new TGeoPcon(0., 360., 14);
rMax = kAluminum1stSectionOuterRadius;
rMin = rMax - kAluminumSectionThickness;
aluSideA->DefineSection(0, kZ26, rMin, rMax);
aluSideA->DefineSection(1, kZ27, rMin, rMax);
rMax = kAluminum2ndSectionOuterRadius;
rMin = rMax - kAluminumSectionThickness;
aluSideA->DefineSection(2, kZ28, rMin, rMax);
aluSideA->DefineSection(3, kZ29, rMin, rMax);
rMax = rMin + kBeamPipeSupportThickness;
aluSideA->DefineSection(4, kZ30, rMin, rMax);
aluSideA->DefineSection(5, kZ31, rMin, rMax);
aluSideA->DefineSection(6, kZ32, aluSideA->GetRmin(2), aluSideA->GetRmax(2));
aluSideA->DefineSection(7, kZ33, aluSideA->GetRmin(2), aluSideA->GetRmax(2));
rMax = kAluminum3rdSectionOuterRadius;
rMin = rMax - kAluminumSectionThickness;
aluSideA->DefineSection(8, kZ34, rMin, rMax);
aluSideA->DefineSection(9, kZ35, rMin, rMax);
rMax = kFlangeAExternalRadius;
aluSideA->DefineSection(10, kZ35, rMin, rMax);
aluSideA->DefineSection(11, kZ35 + kAluminumSectionThickness, rMin, rMax);
rMin = rMax - kAluminumSectionThickness;
aluSideA->DefineSection(12, kZ35 + kAluminumSectionThickness, rMin, rMax);
aluSideA->DefineSection(13, kZ36, rMin, rMax);
TGeoVolume* voaluSideA = new TGeoVolume("aluSideA", aluSideA, kMedAlu2219);
voaluSideA->SetLineColor(kBlue);
barrel->AddNode(voaluSideA, 1, new TGeoTranslation(0., 30., 0.));
// The Stainless Steel Flange Ring
rMax = kFlangeAExternalRadius;
rMin = rMax - kAluminumSectionThickness;
TGeoTube* flangeASteelRing = new TGeoTube(rMin, rMax, kFlangeASteelSectionLength / 2.);
TGeoVolume* voflangeASteelRing = new TGeoVolume("steelFlangeSideA", flangeASteelRing, kMedSteel);
voflangeASteelRing->SetLineColor(kRed);
zPos = aluSideA->GetZ(13) + flangeASteelRing->GetDz();
barrel->AddNode(voflangeASteelRing, 1, new TGeoTranslation(0., 30., zPos));
// The vacuum inside aluSideA and flangeASteelRing
TGeoPcon* aluSideAVac = new TGeoPcon(0., 360., 8);
aluSideAVac->DefineSection(0, aluSideA->GetZ(0), 0., aluSideA->GetRmin(0));
aluSideAVac->DefineSection(1, aluSideA->GetZ(1), 0., aluSideA->GetRmin(1));
aluSideAVac->DefineSection(2, aluSideA->GetZ(2), 0., aluSideA->GetRmin(2));
aluSideAVac->DefineSection(3, aluSideA->GetZ(7), 0., aluSideA->GetRmin(7));
aluSideAVac->DefineSection(4, aluSideA->GetZ(8), 0., aluSideA->GetRmin(8));
aluSideAVac->DefineSection(5, aluSideA->GetZ(11), 0., aluSideA->GetRmin(11));
aluSideAVac->DefineSection(6, aluSideA->GetZ(12), 0., aluSideA->GetRmin(12));
aluSideAVac->DefineSection(7, aluSideA->GetZ(13), 0., aluSideA->GetRmin(13));
TGeoVolume* voaluSideAVac = new TGeoVolume("aluSideAVac", aluSideAVac, kMedVac);
voaluSideAVac->SetLineColor(kGreen);
voaluSideAVac->SetVisibility(1);
voaluSideA->AddNode(voaluSideAVac, 1, gGeoIdentity);
// The support ring on A Side
TGeoTube* sideASuppRing = new TGeoTube(kAluminum2ndSectionOuterRadius, kSupportRingRmax, kSupportRingLength / 2.);
TGeoVolume* vosideASuppRing = new TGeoVolume("sideASuppRing", sideASuppRing, kMedAlu2219);
vosideASuppRing->SetLineColor(kBlue);
zPos = aluSideA->GetZ(13) + 2 * flangeASteelRing->GetDz() - kSupportRingZpos - sideASuppRing->GetDz();
barrel->AddNode(vosideASuppRing, 1, new TGeoTranslation(0., 30., zPos));
//-------------------------------------------------
////////////////////////////////////////////////////////////////////////////////
// //
// RB24/1 //
// //
////////////////////////////////////////////////////////////////////////////////
//
//
// Drawing LHCVC2U_0001
// Copper Tube RB24/1 393.5 cm
// Warm module VMACA 18.0 cm
// Annular Ion Pump 35.0 cm
// Valve 7.5 cm
// Warm module VMABC 28.0 cm
// ================================
// 462.0 cm
//
// Copper Tube RB24/1
const Float_t kRB24CuTubeL = 381.5;
const Float_t kRB24cCuTubeL = 155.775 - 150.;
const Float_t kRB24bCuTubeL = kRB24CuTubeL - kRB24cCuTubeL;
const Float_t kRB24CuTubeRi = 8.0 / 2.;
const Float_t kRB24CuTubeRo = 8.4 / 2.;
const Float_t kRB24CuTubeFRo = 7.6;
const Float_t kRB24CuTubeFL = 1.86;
const Float_t kRB24CL = 2. * 597.9 - 150.;
//
// introduce cut at end of barrel 714.6m
//
// barrel part
TGeoVolume* voRB24CuTubeM =
new TGeoVolume("voRB24CuTubeM", new TGeoTube(0., kRB24CuTubeRo, kRB24bCuTubeL / 2.), kMedVac);
voRB24CuTubeM->SetVisibility(0);
TGeoVolume* voRB24CuTube =
new TGeoVolume("voRB24CuTube", new TGeoTube(kRB24CuTubeRi, kRB24CuTubeRo, kRB24bCuTubeL / 2.), kMedCu);
voRB24CuTubeM->AddNode(voRB24CuTube, 1, gGeoIdentity);
// outside barrel
TGeoVolume* voRB24cCuTubeM =
new TGeoVolume("voRB24cCuTubeM", new TGeoTube(0., kRB24CuTubeRo, kRB24cCuTubeL / 2.), kMedVacNFHC);
voRB24CuTubeM->SetVisibility(0);
TGeoVolume* voRB24cCuTube =
new TGeoVolume("voRB24cCuTube", new TGeoTube(kRB24CuTubeRi, kRB24CuTubeRo, kRB24cCuTubeL / 2.), kMedCuNFHC);
voRB24cCuTubeM->AddNode(voRB24cCuTube, 1, gGeoIdentity);
// Air outside tube with higher transport cuts
TGeoVolume* voRB24CuTubeA = new TGeoVolume("voRB24CuTubeA", new TGeoTube(79., 80., kRB24bCuTubeL / 2.), kMedAirHigh);
voRB24CuTubeA->SetVisibility(0);
// Simplified DN 100 Flange
TGeoVolume* voRB24CuTubeF =
new TGeoVolume("voRB24CuTubeF", new TGeoTube(kRB24CuTubeRo, kRB24CuTubeFRo, kRB24CuTubeFL / 2.), kMedSteelNF);
// Warm Module Type VMACA
// LHCVMACA_0002
//
// Pos 1 Warm Bellows DN100 LHCVBU__0012
// Pos 2 RF Contact D80 LHCVSR__0005
// Pos 3 Trans. Tube Flange LHCVSR__0065
// [Pos 4 Hex. Countersunk Screw Bossard BN4719]
// [Pos 5 Tension spring LHCVSR__0011]
//
//
//
// Pos1 Warm Bellows DN100
// Pos1.1 Bellows LHCVBU__0006
//
//
// Connection Tubes
// Connection tube inner r
const Float_t kRB24B1ConTubeRin = 10.0 / 2.;
// Connection tube outer r
const Float_t kRB24B1ConTubeRou = 10.3 / 2.;
// Connection tube length
const Float_t kRB24B1ConTubeL = 2.5;
//
const Float_t kRB24B1CompL = 16.375; // Length of the compensator
const Float_t kRB24B1BellowRi = 10.25 / 2.; // Bellow inner radius
const Float_t kRB24B1BellowRo = 11.40 / 2.; // Bellow outer radius
const Int_t kRB24B1NumberOfPlies = 27; // Number of plies
const Float_t kRB24B1BellowUndL = 11.00; // Length of undulated region
const Float_t kRB24B1PlieThickness = 0.015; // Plie thickness
const Float_t kRB24B1PlieRadius =
(kRB24B1BellowUndL + (2. * kRB24B1NumberOfPlies - 2.) * kRB24B1PlieThickness) / (4. * kRB24B1NumberOfPlies);
const Float_t kRB24B1ProtTubeThickness = 0.02; // Thickness of the protection tube
const Float_t kRB24B1ProtTubeLength = 4.2; // Length of the protection tube
const Float_t kRB24B1RFlangeL = 1.86; // Length of the flanges
const Float_t kRB24B1RFlangeLO = 0.26; // Flange overlap
const Float_t kRB24B1RFlangeRO = 11.18 / 2; // Inner radius at Flange overlap
const Float_t kRB24B1RFlangeRou = 15.20 / 2.; // Outer radius of flange
const Float_t kRB24B1RFlangeRecess = 0.98; // Flange recess
const Float_t kRB24B1L = kRB24B1CompL + 2. * (kRB24B1RFlangeL - kRB24B1RFlangeRecess);
///
//
// Bellow Section
TGeoVolume* voRB24B1Bellow = MakeBellow("RB24B1", kRB24B1NumberOfPlies, kRB24B1BellowRi, kRB24B1BellowRo,
kRB24B1BellowUndL, kRB24B1PlieRadius, kRB24B1PlieThickness);
voRB24B1Bellow->SetVisibility(0);
Float_t newRB24B1BellowUndL = 2 * (static_cast<TGeoTube*>(voRB24B1Bellow->GetShape()))->GetDz();
//
// Bellow mother volume
TGeoPcon* shRB24B1BellowM = new TGeoPcon(0., 360., 12);
// Connection Tube and Flange
z = 0.;
shRB24B1BellowM->DefineSection(0, z, 0., kRB24B1RFlangeRou);
z += kRB24B1RFlangeLO;
shRB24B1BellowM->DefineSection(1, z, 0., kRB24B1RFlangeRou);
z = kRB24B1RFlangeL;
shRB24B1BellowM->DefineSection(2, z, 0., kRB24B1RFlangeRou);
shRB24B1BellowM->DefineSection(3, z, 0., kRB24B1ConTubeRou);
z = kRB24B1ConTubeL + kRB24B1RFlangeL - kRB24B1RFlangeRecess;
shRB24B1BellowM->DefineSection(4, z, 0., kRB24B1ConTubeRou);
// Plie
shRB24B1BellowM->DefineSection(5, z, 0., kRB24B1BellowRo + kRB24B1ProtTubeThickness);
z += newRB24B1BellowUndL;
shRB24B1BellowM->DefineSection(6, z, 0., kRB24B1BellowRo + kRB24B1ProtTubeThickness);
shRB24B1BellowM->DefineSection(7, z, 0., kRB24B1ConTubeRou);
// Connection Tube and Flange
z = kRB24B1L - shRB24B1BellowM->GetZ(3);
shRB24B1BellowM->DefineSection(8, z, 0., kRB24B1ConTubeRou);
shRB24B1BellowM->DefineSection(9, z, 0., kRB24B1RFlangeRou);
z = kRB24B1L - shRB24B1BellowM->GetZ(1);
shRB24B1BellowM->DefineSection(10, z, 0., kRB24B1RFlangeRou);
z = kRB24B1L - shRB24B1BellowM->GetZ(0);
shRB24B1BellowM->DefineSection(11, z, 0., kRB24B1RFlangeRou);
TGeoVolume* voRB24B1BellowM = new TGeoVolume("RB24B1BellowM", shRB24B1BellowM, kMedVacNF);
voRB24B1BellowM->SetVisibility(0);
//
// End Parts (connection tube)
TGeoVolume* voRB24B1CT =
new TGeoVolume("RB24B1CT", new TGeoTube(kRB24B1ConTubeRin, kRB24B1ConTubeRou, kRB24B1ConTubeL / 2.), kMedSteelNF);
//
// Protection Tube
TGeoVolume* voRB24B1PT = new TGeoVolume(
"RB24B1PT", new TGeoTube(kRB24B1BellowRo, kRB24B1BellowRo + kRB24B1ProtTubeThickness, kRB24B1ProtTubeLength / 2.),
kMedSteelNF);
z = kRB24B1ConTubeL / 2. + (kRB24B1RFlangeL - kRB24B1RFlangeRecess);
voRB24B1BellowM->AddNode(voRB24B1CT, 1, new TGeoTranslation(0., 0., z));
z += (kRB24B1ConTubeL / 2. + newRB24B1BellowUndL / 2.);
voRB24B1BellowM->AddNode(voRB24B1Bellow, 1, new TGeoTranslation(0., 0., z));
z += (newRB24B1BellowUndL / 2. + kRB24B1ConTubeL / 2);
voRB24B1BellowM->AddNode(voRB24B1CT, 2, new TGeoTranslation(0., 0., z));
z = kRB24B1ConTubeL + kRB24B1ProtTubeLength / 2. + 1. + kRB24B1RFlangeLO;
voRB24B1BellowM->AddNode(voRB24B1PT, 1, new TGeoTranslation(0., 0., z));
z += kRB24B1ProtTubeLength + 0.6;
voRB24B1BellowM->AddNode(voRB24B1PT, 2, new TGeoTranslation(0., 0., z));
// Pos 1/2 Rotatable Flange LHCVBU__0013
// Pos 1/3 Flange DN100/103 LHCVBU__0018
// The two flanges can be represented by the same volume
// Outer Radius (including the outer movable ring).
// The inner ring has a diameter of 12.04 cm
TGeoPcon* shRB24B1RFlange = new TGeoPcon(0., 360., 10);
z = 0.;
shRB24B1RFlange->DefineSection(0, z, 10.30 / 2., kRB24B1RFlangeRou);
z += 0.55; // 5.5 mm added for outer ring
z += 0.43;
shRB24B1RFlange->DefineSection(1, z, 10.30 / 2., kRB24B1RFlangeRou);
shRB24B1RFlange->DefineSection(2, z, 10.06 / 2., kRB24B1RFlangeRou);
z += 0.15;
shRB24B1RFlange->DefineSection(3, z, 10.06 / 2., kRB24B1RFlangeRou);
// In reality this part is rounded
shRB24B1RFlange->DefineSection(4, z, 10.91 / 2., kRB24B1RFlangeRou);
z += 0.15;
shRB24B1RFlange->DefineSection(5, z, 10.91 / 2., kRB24B1RFlangeRou);
shRB24B1RFlange->DefineSection(6, z, 10.06 / 2., kRB24B1RFlangeRou);
z += 0.32;
shRB24B1RFlange->DefineSection(7, z, 10.06 / 2., kRB24B1RFlangeRou);
shRB24B1RFlange->DefineSection(8, z, kRB24B1RFlangeRO, kRB24B1RFlangeRou);
z += kRB24B1RFlangeLO;
shRB24B1RFlange->DefineSection(9, z, kRB24B1RFlangeRO, kRB24B1RFlangeRou);
TGeoVolume* voRB24B1RFlange = new TGeoVolume("RB24B1RFlange", shRB24B1RFlange, kMedSteelNF);
z = kRB24B1L - kRB24B1RFlangeL;
voRB24B1BellowM->AddNode(voRB24B1RFlange, 1, new TGeoTranslation(0., 0., z));
z = kRB24B1RFlangeL;
voRB24B1BellowM->AddNode(voRB24B1RFlange, 2, new TGeoCombiTrans(0., 0., z, rot180));
//
// Pos 2 RF Contact D80 LHCVSR__0005
//
// Pos 2.1 RF Contact Flange LHCVSR__0003
//
TGeoPcon* shRB24B1RCTFlange = new TGeoPcon(0., 360., 6);
const Float_t kRB24B1RCTFlangeRin = 8.06 / 2. + 0.05; // Inner radius
const Float_t kRB24B1RCTFlangeL = 1.45; // Length
z = 0.;
shRB24B1RCTFlange->DefineSection(0, z, kRB24B1RCTFlangeRin, 8.20 / 2.);
z += 0.15;
shRB24B1RCTFlange->DefineSection(1, z, kRB24B1RCTFlangeRin, 8.20 / 2.);
shRB24B1RCTFlange->DefineSection(2, z, kRB24B1RCTFlangeRin, 8.60 / 2.);
z += 1.05;
shRB24B1RCTFlange->DefineSection(3, z, kRB24B1RCTFlangeRin, 8.60 / 2.);
shRB24B1RCTFlange->DefineSection(4, z, kRB24B1RCTFlangeRin, 11.16 / 2.);
z += 0.25;
shRB24B1RCTFlange->DefineSection(5, z, kRB24B1RCTFlangeRin, 11.16 / 2.);
TGeoVolume* voRB24B1RCTFlange = new TGeoVolume("RB24B1RCTFlange", shRB24B1RCTFlange, kMedCuNF);
z = kRB24B1L - kRB24B1RCTFlangeL;
voRB24B1BellowM->AddNode(voRB24B1RCTFlange, 1, new TGeoTranslation(0., 0., z));
//
// Pos 2.2 RF-Contact LHCVSR__0004
//
TGeoPcon* shRB24B1RCT = new TGeoPcon(0., 360., 3);
const Float_t kRB24B1RCTRin = 8.00 / 2.; // Inner radius
const Float_t kRB24B1RCTCRin = 8.99 / 2.; // Max. inner radius conical section
const Float_t kRB24B1RCTL = 11.78; // Length
const Float_t kRB24B1RCTSL = 10.48; // Length of straight section
const Float_t kRB24B1RCTd = 0.03; // Thickness
z = 0;
shRB24B1RCT->DefineSection(0, z, kRB24B1RCTCRin, kRB24B1RCTCRin + kRB24B1RCTd);
z = kRB24B1RCTL - kRB24B1RCTSL;
// In the (VSR0004) this section is straight in (LHCVC2U_0001) it is conical ????
shRB24B1RCT->DefineSection(1, z, kRB24B1RCTRin + 0.35, kRB24B1RCTRin + 0.35 + kRB24B1RCTd);
z = kRB24B1RCTL - 0.03;
shRB24B1RCT->DefineSection(2, z, kRB24B1RCTRin, kRB24B1RCTRin + kRB24B1RCTd);
TGeoVolume* voRB24B1RCT = new TGeoVolume("RB24B1RCT", shRB24B1RCT, kMedCuNF);
z = kRB24B1L - kRB24B1RCTL - 0.45;
voRB24B1BellowM->AddNode(voRB24B1RCT, 1, new TGeoTranslation(0., 0., z));