-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPipeFocal.cxx
3244 lines (2893 loc) · 148 KB
/
PipeFocal.cxx
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 CERN and copyright holders of ALICE O2. This software is
// distributed under the terms of the GNU General Public License v3 (GPL
// Version 3), copied verbatim in the file "COPYING".
//
// See http://alice-o2.web.cern.ch/license for full licensing information.
//
// 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/PipeFocal.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 <TVirtualMC.h>
#include "TGeoManager.h" // for TGeoManager, gGeoManager
#include "TGeoMaterial.h" // for TGeoMaterial
#include "TGeoMedium.h" // for TGeoMedium
#include "TGeoVolume.h" // for TGeoVolume
// force availability of assert
#ifdef NDEBUG
#undef NDEBUG
#endif
#include <cassert>
//-------------------------------------------------------------------------
// Beam pipe class for ALICE FOCAL upgrade
// Imported from AliRoot AliPIPEFOCAL
//-------------------------------------------------------------------------
using namespace o2::passive;
PipeFocal::~PipeFocal() = default;
PipeFocal::PipeFocal() : FairModule() {}
PipeFocal::PipeFocal(const char* name, const char* title, float rho, float thick)
: FairModule(name, title), mBePipeRmax(rho), mBePipeThick(thick)
{
}
PipeFocal::PipeFocal(const PipeFocal& rhs) = default;
PipeFocal& PipeFocal::operator=(const PipeFocal& rhs)
{
// self assignment
if (this == &rhs)
return *this;
// base class assignment
FairModule::operator=(rhs);
return *this;
}
//_____________________________________________________________________________
/*PipeFocal::PipeFocal():
fRmax(1.8), // outer radius of Be beam pipe
fR2(2.4), // outer radius of Be beam pipe (large R part)
fBe(0.08), // width of Be beam pipe
fZc(330.0), // end of conical section (A side)
fZ1(240.0), // beginning of conical section (A side)
fZ2(-44.4), // end of Be beam pipe z location (C side)
fZflange(480) // location of flange (change to R = 4cm or so)
{
// Constructor
}
*/
//___________________________________________
void PipeFocal::ConstructGeometry()
{
createMaterials();
//
// Class describing the beam pipe geometry
//
LOG(INFO) << "Create PIPEFOCAL 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.);
//TGeoRotation* rot045 = new TGeoRotation("rot045", 90., 45., 90., 135., 0., 0.);
//TGeoRotation* rot135 = new TGeoRotation("rot135", 90. ,135., 90., 225., 0., 0.);
//TGeoRotation* rot225 = new TGeoRotation("rot225", 90. ,225., 90., 315., 0., 0.);
//TGeoRotation* rot315 = new TGeoRotation("rot315", 90. ,315., 90., 45., 0., 0.);
//
// Media
auto& matmgr = o2::base::MaterialManager::Instance();
const TGeoMedium* kMedAir = matmgr.getTGeoMedium("PIPEFOCAL_AIR");
const TGeoMedium* kMedAirHigh = matmgr.getTGeoMedium("PIPEFOCAL_AIR_HIGH");
const TGeoMedium* kMedVac = matmgr.getTGeoMedium("PIPEFOCAL_VACUUM");
const TGeoMedium* kMedInsu = matmgr.getTGeoMedium("PIPEFOCAL_INS_C0");
const TGeoMedium* kMedSteel = matmgr.getTGeoMedium("PIPEFOCAL_INOX");
const TGeoMedium* kMedBe = matmgr.getTGeoMedium("PIPEFOCAL_BE");
const TGeoMedium* kMedCu = matmgr.getTGeoMedium("PIPEFOCAL_CU");
//const TGeoMedium* kMedKapton = matmgr.getTGeoMedium("PIPEFOCAL_KAPTON");
//const TGeoMedium* kMedAco = matmgr.getTGeoMedium("PIPEFOCAL_ANTICORODAL");
//const TGeoMedium* kMedNEG = matmgr.getTGeoMedium("PIPEFOCAL_NEG COATING");
//const TGeoMedium* kMedAlu = matmgr.getTGeoMedium("PIPEFOCAL_ALU"); // fm
const TGeoMedium* kMedAlu2219 = matmgr.getTGeoMedium("PIPEFOCAL_AA2219"); // fm
const TGeoMedium* kMedAlu5083 = matmgr.getTGeoMedium("PIPEFOCAL_AA5083"); // fm
const TGeoMedium* kMedPolyamid = matmgr.getTGeoMedium("PIPEFOCAL_PA");//!!!
// Top volume
//TGeoVolume* top = gGeoManager->GetVolume("ALIC");
TGeoVolume* top = gGeoManager->GetVolume("cave");
//
//
////////////////////////////////////////////////////////////////////////////////
// //
// 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 , Author: F. Manso /////////////////////////
// from https://twiki.cern.ch/twiki/pub/ALICE/MinutesMecanicsIntegration/Minutes_MFT_meeting_BeamPipe_2013_05_13.pdf
//------------------------------------------------ Pipe version 4.6 june 2013 -------------------------------------
const Float_t fRmax(1.8); // outer radius of Be beam pipe
const Float_t fR2(2.4); // outer radius of Be beam pipe (large R part)
const Float_t fBe(0.08); // width of Be beam pipe
const Float_t fZc(330.0); // end of conical section (A side)
const Float_t fZ1(240.0); // beginning of conical section (A side)
const Float_t fZ2(-44.4); // end of Be beam pipe z location (C side)
const Float_t fZflange(480); // location of flange (change to R = 4cm or so)
const Float_t fztube1 = fZ2;
const Float_t fztube2 = fZ2 + (-15.53 - 2.0);
const Float_t fztube3 = fztube2 + (-1.3);
const Float_t fztube4 = fztube3 + (-1.3 - 3.8);
const Float_t fztube5 = fztube4 + (-4.0 - 3.8);
const Float_t fzadapt = fztube5 + (-1.3);
const Double_t dFlange = 1.5;
// Flange
TGeoTube* flange = new TGeoTube(fR2, 4., dFlange); // 2 cm thick, OD = 8
TGeoVolume *volflange = new TGeoVolume("voFlangeA1", flange, kMedSteel);
//top->AddNode(volflange, 1, new TGeoTranslation(0, 0, fZflange + dFlange/2)); // MvL: removed 20190427; covers eta > 5.5
//---------------- Be pipe around the IP ----------
TGeoPcon* tube0 = new TGeoPcon(0., 360., 4);
tube0->DefineSection(0, fZflange, fR2 - fBe, fR2);
tube0->DefineSection(1, fZc, fR2 - fBe, fR2);
tube0->DefineSection(2, fZ1, fRmax - fBe, fRmax);
tube0->DefineSection(3, fZ2, fRmax - fBe, fRmax);
TGeoVolume* votube0 = new TGeoVolume("votube0", tube0, kMedBe);
votube0->SetLineColor(kRed);
top->AddNode(votube0, 1, new TGeoTranslation(0., 0., 0.));
TGeoPcon* tube0vide = new TGeoPcon(0., 360., 4);
tube0vide->DefineSection(0, fZflange, 0., fR2 - fBe);
tube0vide->DefineSection(1, fZc, 0., fR2 - fBe);
tube0vide->DefineSection(2, fZ1, 0., fRmax - fBe);
tube0vide->DefineSection(3, fZ2, 0., fRmax - fBe);
TGeoVolume* votube0vide = new TGeoVolume("votube0vide", tube0vide, kMedVac);
votube0vide->SetVisibility(0);
votube0vide->SetLineColor(kGreen);
top->AddNode(votube0vide, 1, new TGeoTranslation(0., 0., 0.));
//-------------------------------------------------
// MFT side
//---------------- First Al tube ------------------
TGeoPcon* tube1 = new TGeoPcon(0., 360., 2);
tube1->DefineSection(0, fztube1, fRmax - fBe, fRmax);
tube1->DefineSection(1, fztube1 + (-15.53 - 2.0), fRmax - fBe, fRmax);
TGeoVolume* votube1 = new TGeoVolume("votube1", tube1, kMedAlu2219);
votube1->SetLineColor(kBlue);
top->AddNode(votube1, 1, new TGeoTranslation(0., 0., 0.));
TGeoPcon* tube1vide = new TGeoPcon(0., 360., 2);
tube1vide->DefineSection(0,fZ2, 0., fRmax - fBe);
tube1vide->DefineSection(1,fZ2 + (-15.53 - 2.0), 0., fRmax - fBe);
TGeoVolume* votube1vide = new TGeoVolume("votube1vide", tube1vide, kMedVac);
votube1vide->SetVisibility(0);
votube1vide->SetLineColor(kGreen);
top->AddNode(votube1vide,1,new TGeoTranslation(0., 0., 0.));
//-------------------------------------------------
//----------- Conical Al tube before bellows ----------
TGeoPcon* tube2 = new TGeoPcon(0., 360., 2);
tube2->DefineSection(0, fztube2, fRmax - fBe, fRmax);
tube2->DefineSection(1, fztube2+ (-1.3), 2.15 - fBe, 2.15);
TGeoVolume* votube2 = new TGeoVolume("votube2", tube2, kMedAlu2219);
votube2->SetLineColor(kBlue);
top->AddNode(votube2, 1, new TGeoTranslation(0., 0., 0.));
TGeoPcon* tube2vide = new TGeoPcon(0., 360., 2);
tube2vide->DefineSection(0, fztube2, 0., fRmax-fBe);
tube2vide->DefineSection(1, fztube2 + (-1.3), 0., 2.15 - fBe);
TGeoVolume* votube2vide = new TGeoVolume("votube2vide", tube2vide, kMedVac);
votube2vide->SetVisibility(0);
votube2vide->SetLineColor(kGreen);
top->AddNode(votube2vide, 1, new TGeoTranslation(0., 0., 0.));
//-------------------------------------------------
//---------- Al tube before first bellow ----------
TGeoPcon* tube3 = new TGeoPcon(0., 360., 2);
tube3->DefineSection(0, fztube3, 2.15 - fBe, 2.15);
tube3->DefineSection(1, fztube3 + (-1.3), 2.15 - fBe, 2.15);
TGeoVolume* votube3 = new TGeoVolume("votube3", tube3, kMedAlu2219);
votube3->SetLineColor(kBlue);
top->AddNode(votube3, 1, new TGeoTranslation(0., 0., 0.));
//-------------------------------------------------
//---------- Al tube between the bellows ----------
TGeoPcon* tube4 = new TGeoPcon(0., 360., 2);
tube4->DefineSection(0, fztube4, 2.15 - fBe, 2.15);
tube4->DefineSection(1, fztube4 + (-4.0), 2.15 - fBe, 2.15);
TGeoVolume* votube4 = new TGeoVolume("votube4", tube4, kMedAlu2219);
votube4->SetLineColor(kBlue);
top->AddNode(votube4, 1, new TGeoTranslation(0., 0., 0.));
//-------------------------------------------------
//-------- Al tube after the second bellow --------
TGeoPcon* tube5 = new TGeoPcon(0., 360., 2);
tube5->DefineSection(0, fztube5, 2.15 - fBe, 2.15);
tube5->DefineSection(1, fztube5+ (-1.3), 2.15 - fBe, 2.15);
TGeoVolume* votube5 = new TGeoVolume("votube5", tube5, kMedAlu2219);
votube5->SetLineColor(kBlue);
top->AddNode(votube5, 1, new TGeoTranslation(0., 0., 0.));
//-------------------------------------------------
//---- One empty tube inside tube3, tube4, tube5 and bellows -----
TGeoPcon* tube345vide = new TGeoPcon(0., 360., 2);
tube345vide->DefineSection(0, fztube3, 0., 2.15-fBe);
tube345vide->DefineSection(1, fztube5 + (-1.3), 0., 2.15-fBe);
TGeoVolume* votube345vide = new TGeoVolume("votube345vide", tube345vide, kMedVac);
votube345vide->SetVisibility(0);
votube345vide->SetLineColor(kGreen);
top->AddNode(votube345vide, 1, new TGeoTranslation(0., 0., 0.));
//----------------------------------------------------------------
//----------- 15?? Conical adaptator + flange ----------
TGeoPcon* adaptator = new TGeoPcon(0., 360., 4);
adaptator->DefineSection(0, fzadapt, 2.15 - fBe, 2.15);
adaptator->DefineSection(1, fzadapt + (-3.17), 3.0 - fBe, 3.0);
adaptator->DefineSection(2, fzadapt + (-3.17), 3.0 - fBe, 4.3);
adaptator->DefineSection(3, fzadapt + (-3.17 - 1.4), 3.0 - fBe ,4.3);
TGeoVolume* voadaptator = new TGeoVolume("voadaptator", adaptator, kMedAlu2219);
voadaptator->SetLineColor(kBlue);
top->AddNode(voadaptator, 1, new TGeoTranslation(0., 0., 0.));
TGeoPcon* adaptatorvide = new TGeoPcon(0., 360., 4);
adaptatorvide->DefineSection(0, fzadapt, 0., 2.15 - fBe);
adaptatorvide->DefineSection(1, fzadapt + (-3.17), 0., 3.0 - fBe);
adaptatorvide->DefineSection(2, fzadapt + (-3.17), 0., 3.0 - fBe);
adaptatorvide->DefineSection(3, fzadapt + (-3.17 - 1.4), 0., 3.0 - fBe);
TGeoVolume* voadaptatorvide = new TGeoVolume("voadaptatorvide",adaptatorvide,kMedVac);
voadaptatorvide->SetVisibility(0);voadaptatorvide->SetLineColor(kGreen);
top->AddNode(voadaptatorvide,1,new TGeoTranslation(0., 0., 0.));
//------------------------------------------------------
// ------------------------- Bellows ----------------------------
//Float_t plieradius = (3.72 + (2. * 7 - 2.) * 0.03) / (4. * 7); // radius of bellows "plis"
Float_t plieradius = 0.17; // radius of bellow plies
// ------------------ First Bellow --------------------
TGeoVolume* vobellows1 = MakeBellow("bellows1", 6, 2.15 - fBe, 3.0, 3.8, plieradius, 0.03);
top->AddNode(vobellows1, 1, new TGeoTranslation(0., 0., fztube3+(-1.3 - 3.8/2. - 0.31 + 0.08)));
// Comments: removing 1/2 plie (see MakeBellow): 0.31= 2*0.17-0.03 and 0.08: free space
// small tube of the bellow 1 to cover the 0.08cm remaining space
TGeoPcon* bellowtube1 = new TGeoPcon(0., 360., 2);
bellowtube1->DefineSection(0, fztube4 + (0.08), 2.15 - 0.03, 2.15);
bellowtube1->DefineSection(1, fztube4, 2.15 - 0.03, 2.15);
TGeoVolume* vobellowtube1 = new TGeoVolume("vobellowtube1", bellowtube1, kMedAlu5083);
vobellowtube1->SetLineColor(kGreen);
top->AddNode(vobellowtube1,1,new TGeoTranslation(0., 0., 0.));
//------------------------------------------------------
// ------------------ Second Bellow --------------------
TGeoVolume* vobellows2 = MakeBellow("bellows2", 6, 2.15 - fBe, 3.0, 3.8, plieradius , 0.03);
top->AddNode(vobellows2, 1, new TGeoTranslation(0., 0., fztube4 + (-4.0 - 3.8/2. - 0.31 + 0.08)));
// small tube of the bellow 1
TGeoPcon* bellowtube2 = new TGeoPcon(0., 360., 2);
bellowtube2->DefineSection(0, fztube5+(0.08), 2.15-0.03, 2.15);
bellowtube2->DefineSection(1, fztube5, 2.15-0.03, 2.15);
TGeoVolume* vobellowtube2 = new TGeoVolume("vobellowtube2",bellowtube2,kMedAlu5083);
vobellowtube2->SetLineColor(kGreen);
top->AddNode(vobellowtube2, 1, new TGeoTranslation(0., 0., 0.));
//-----------------------------------------------------
/////////////////////////// END NEW BEAM PIPE GEOMETRY fOR MFT /////////////////////////////
// MIRROR to A side
// This the baseline geometry for the new ITS; removed for FOCAL
/*
Float_t fztube1a=fZ1;
Float_t fztube2a=fZ1 + 20.43; // Al piece
Float_t fztube3a=fztube2a + 2.61; // Change of radius
Float_t fztube4a=fztube3a + 250; // Rest of pipe (39.298 according to drawing)
//---------------- First Al tube ------------------
TGeoPcon* tube1a = new TGeoPcon(0., 360., 2);
tube1a->DefineSection(0,fztube1a, fRmax-fBe,fRmax);
tube1a->DefineSection(1,fztube2a,fRmax-fBe,fRmax);
TGeoVolume* votube1a = new TGeoVolume("votube1a",tube1a,kMedAlu2219);
votube1a->SetLineColor(kBlue);
top->AddNode(votube1a,1,new TGeoTranslation(0., 0., 0.));
TGeoPcon* tube1avide = new TGeoPcon(0., 360., 2);
tube1avide->DefineSection(0,fztube1a, 0.,fRmax-fBe);
tube1avide->DefineSection(1,fztube2a, 0.,fRmax-fBe);
TGeoVolume* votube1avide = new TGeoVolume("votube11vide",tube1vide,kMedVac);
votube1avide->SetVisibility(0);votube1avide->SetLineColor(kGreen);
top->AddNode(votube1vide,1,new TGeoTranslation(0., 0., 0.));
//-------------------------------------------------
//----------- Conical Al tube before bellows ----------
TGeoPcon* tube2a = new TGeoPcon(0., 360., 2);
tube2a->DefineSection(0,fztube2a, fRmax-fBe,fRmax);
tube2a->DefineSection(1,fztube3a, 2.5-fBe,2.5);
TGeoVolume* votube2a = new TGeoVolume("votube2a",tube2a,kMedAlu2219);
votube2a->SetLineColor(kBlue);
top->AddNode(votube2a,1,new TGeoTranslation(0., 0., 0.));
TGeoPcon* tube2avide = new TGeoPcon(0., 360., 2);
tube2avide->DefineSection(0,fztube2a, 0., fRmax-fBe);
tube2avide->DefineSection(1,fztube3a, 0., 2.5-fBe);
TGeoVolume* votube2avide = new TGeoVolume("votube2avide",tube2avide,kMedVac);
votube2avide->SetVisibility(0);votube2avide->SetLineColor(kGreen);
top->AddNode(votube2avide,1,new TGeoTranslation(0., 0., 0.));
//-------------------------------------------------
//---------- Al tube before first bellow ----------
TGeoPcon* tube3a = new TGeoPcon(0., 360., 2);
tube3a->DefineSection(0,fztube3a, 2.5-fBe,2.5);
tube3a->DefineSection(1,fztube4a,2.5-fBe,2.5);
TGeoVolume* votube3a = new TGeoVolume("votube3a",tube3a,kMedAlu2219);
votube3a->SetLineColor(kBlue);
top->AddNode(votube3a,1,new TGeoTranslation(0., 0., 0.));
*/
/*
//
///////////////////
// CP/2 //
///////////////////
//
// Fixed Point tube [Pos 5]
//
// Inner and outer radii of the Stainless Steel pipe
const Float_t kCP2StRi = 2.90;
const Float_t kCP2StRo = 2.98;
//
// Transition to central Be-pipe (Bulge)
// Length
const Float_t kCP2BulgeLength = 0.80;
//
// Bulge outer radius
const Float_t kCP2BulgeRo = 3.05;
//
// Fixed Point at z = 391.7 (IP)
//
// Position of fixed point
const Float_t kCP2FixedPointZ = 8.30;
//
// Outer radius of fixed point
const Float_t kCP2FixedPointRo = 3.50;
//
// Length of fixed point
const Float_t kCP2FixedPointLength = 0.60;
//
// Fixed Flange [Pos 6]
//
// Fixed flange outer radius
const Float_t kCP2FixedFlangeRo = 7.60;
//
// Fixed flange inner radius
const Float_t kCP2FixedFlangeRi = 3.00;
// Fixed flange inner radius bulge
const Float_t kCP2FixedFlangeBulgeRi = 2.90;
// Fixed flange lengths of sections at inner radius
const Float_t kCP2FixedFlangeRecessLengths[3] ={1., 0.08, 0.9};
// Fixed flange length
const Float_t kCP2FixedFlangeLength = 1.98;
//
// Fixed flange bulge
// Outer radius
const Float_t kCP2FixedFlangeBulgeRo = 3.00;
//
// Length
const Float_t kCP2FixedFlangeBulgeLength = 2.00;
//
// CP/2 Mother Volume
//
TGeoPcon* shCp2Mo = new TGeoPcon(0., 360., 14);
// Flange
z = - kCP2Length / 2.;
shCp2Mo->DefineSection( 0, z, kCP2FixedFlangeRi, kCP2FixedFlangeRo);
z += kCP2FixedFlangeRecessLengths[0];
shCp2Mo->DefineSection( 1, z, kCP2FixedFlangeRi, kCP2FixedFlangeRo);
shCp2Mo->DefineSection( 2, z, 0., kCP2FixedFlangeRo);
z += (kCP2FixedFlangeRecessLengths[1] + kCP2FixedFlangeRecessLengths[2]) ;
shCp2Mo->DefineSection( 3, z, 0., kCP2FixedFlangeRo);
// Straight section between Flange and Fixed Point
shCp2Mo->DefineSection( 4, z, 0., kCP2FixedFlangeBulgeRo);
z += kCP2FixedFlangeBulgeLength;
shCp2Mo->DefineSection( 5, z, 0., kCP2FixedFlangeBulgeRo);
shCp2Mo->DefineSection( 6, z, 0., kCP2StRo);
z = - kCP2Length / 2 + kCP2FixedPointZ - kCP2FixedPointLength / 2.;
shCp2Mo->DefineSection( 7, z, 0., kCP2StRo);
// Fixed Point
shCp2Mo->DefineSection( 8, z, 0., kCP2FixedPointRo);
z += kCP2FixedPointLength;
shCp2Mo->DefineSection( 9, z, 0., kCP2FixedPointRo);
// Straight section between Fixed Point and transition bulge
shCp2Mo->DefineSection(10, z, 0., kCP2StRo);
z = kCP2Length / 2. - kCP2BulgeLength;
shCp2Mo->DefineSection(11, z, 0., kCP2StRo);
shCp2Mo->DefineSection(12, z, 0., kCP2BulgeRo);
z = kCP2Length / 2.;
shCp2Mo->DefineSection(13, z, 0., kCP2BulgeRo);
TGeoVolume* voCp2Mo = new TGeoVolume("CP2MO", shCp2Mo, kMedAir);
//FM voCp2Mo->SetVisibility(0);
//
// CP/1 Vacuum
TGeoTube* shCp2Va = new TGeoTube(0., kCP2StRi, (kCP2Length - kCP2FixedFlangeRecessLengths[0])/2.);
TGeoVolume* voCp2Va = new TGeoVolume("CP2VA", shCp2Va, kMedVac);
//FM voCp2Mo->AddNode(voCp2Va, 1, new TGeoTranslation(0., 0., kCP2FixedFlangeRecessLengths[0]/2.));
/////////////////////////////////////////////
// CP/2 Fixed Flange [Pos 6] //
/////////////////////////////////////////////
TGeoPcon* shCp2Fl = new TGeoPcon(0., 360., 6);
z = - kCP2FixedFlangeLength / 2.;
shCp2Fl->DefineSection(0, z, kCP2FixedFlangeRi, kCP2FixedFlangeRo);
z += kCP2FixedFlangeRecessLengths[0];
shCp2Fl->DefineSection(1, z, kCP2FixedFlangeRi, kCP2FixedFlangeRo);
shCp2Fl->DefineSection(2, z, kCP2FixedFlangeBulgeRi, kCP2FixedFlangeRo);
z += kCP2FixedFlangeRecessLengths[1];
shCp2Fl->DefineSection(3, z, kCP2FixedFlangeBulgeRi, kCP2FixedFlangeRo);
shCp2Fl->DefineSection(4, z, kCP2FixedFlangeRi, kCP2FixedFlangeRo);
z = kCP2FixedFlangeLength / 2.;
shCp2Fl->DefineSection(5, z, kCP2FixedFlangeRi, kCP2FixedFlangeRo);
TGeoVolume* voCp2Fl = new TGeoVolume("CP2FL", shCp2Fl, kMedSteel);
//
dz = - kCP2Length / 2. + kCP2FixedFlangeLength / 2.;
//FM voCp2Mo->AddNode(voCp2Fl, 1, new TGeoTranslation(0., 0., dz));
/////////////////////////////////////////////////////////////
// CP/2 Beam pipe with fixed point and transition bulges //
/////////////////////////////////////////////////////////////
TGeoPcon* shCp2Pi = new TGeoPcon(0., 360., 10);
// Bulge at transition to flange
z = - (kCP2Length - kCP2FixedFlangeRecessLengths[0] - kCP2FixedFlangeRecessLengths[1]) / 2.;
z0 = z;
shCp2Pi->DefineSection(0, z, kCP2StRi, kCP2FixedFlangeBulgeRo);
z += kCP2FixedFlangeBulgeLength;
shCp2Pi->DefineSection(1, z, kCP2StRi, kCP2FixedFlangeBulgeRo);
// Straight section between Bulge and Fixed Point
shCp2Pi->DefineSection(2, z, kCP2StRi, kCP2StRo);
z += (kCP2FixedPointZ - kCP2FixedPointLength / 2. - kCP2FixedFlangeRecessLengths[0]
- kCP2FixedFlangeRecessLengths[1] -
kCP2FixedFlangeBulgeLength);
shCp2Pi->DefineSection(3, z, kCP2StRi, kCP2StRo);
// Fixed Point
shCp2Pi->DefineSection(4, z, kCP2StRi, kCP2FixedPointRo);
z += kCP2FixedPointLength;
shCp2Pi->DefineSection(5, z, kCP2StRi, kCP2FixedPointRo);
// Straight section between Fixed Point and transition bulge
shCp2Pi->DefineSection(6, z, kCP2StRi, kCP2StRo);
z = - shCp2Pi->GetZ(0) - kCP2BulgeLength;
shCp2Pi->DefineSection(7, z, kCP2StRi, kCP2StRo);
// Bulge at transition to Be pipe
shCp2Pi->DefineSection(8, z, kCP2StRi, kCP2BulgeRo);
z = - shCp2Pi->GetZ(0);
shCp2Pi->DefineSection(9, z, kCP2StRi, kCP2BulgeRo);
TGeoVolume* voCp2Pi = new TGeoVolume("CP2PI", shCp2Pi, kMedSteel);
dz = (kCP2FixedFlangeRecessLengths[0] + kCP2FixedFlangeRecessLengths[1]) / 2.;
//FM voCp2Mo->AddNode(voCp2Pi, 1, new TGeoTranslation(0., 0., dz));
//
// Central beam pipe support collars
// LHCVC2C_0019
// Position at z = -46., 40., 150.
TGeoVolume* voCpSupC = new TGeoVolume("CpSupC", new TGeoTube(3.051, 4.00, 0.35), kMedAco);
//voCp1->AddNode(voCpSupC, 1, new TGeoTranslation(0., 0., kCP1Length / 2. - 98.2));
//voCp1->AddNode(voCpSupC, 2, new TGeoTranslation(0., 0., kCP1Length / 2.- 191.5));
// Beam Pipe Protection Tube
//
// ALIFWDA_0025
//
// Plaque de Centrage ALIFWDA_0019
const Float_t kFwdaBPPTXL = 3.;
TGeoXtru* shFwdaBPPTX = new TGeoXtru(2);
Double_t xBPPTX[8] = {12.5, 7.5, -7.5, -12.5, -12.5, -7.5, 7.5, 12.5};
Double_t yBPPTX[8] = { 7.0, 12.0, 12.0, 7.0, -7.0, -12.0, -12.0, -7.0};
shFwdaBPPTX->DefinePolygon(8, xBPPTX, yBPPTX);
shFwdaBPPTX->DefineSection(0, 0., 0., 0., 1.);
shFwdaBPPTX->DefineSection(1, kFwdaBPPTXL, 0., 0., 1.);
shFwdaBPPTX->SetName("FwdaBPPTX");
TGeoTube* shFwdaBPPTY = new TGeoTube(0., 8.5, 3.2);
shFwdaBPPTY->SetName("FwdaBPPTY");
TGeoCompositeShape* shFwdaBPPTPC = new TGeoCompositeShape("shFwdaBPPTPC", "FwdaBPPTX-FwdaBPPTY");
TGeoVolume* voFwdaBPPTPC = new TGeoVolume("FwdaBPPTPC", shFwdaBPPTPC, kMedAco);
//
// Tube ALIFWDA_0020
// const Float_t kFwdaBPPTTL = 48.;
const Float_t kFwdaBPPTTL = 35.;
TGeoVolume* voFwdaBPPTT = new TGeoVolume("FwdaBPPTT", new TGeoTube(8.85, 9.0, kFwdaBPPTTL/2.), kMedAco);
TGeoVolumeAssembly* voFwdaBPPT = new TGeoVolumeAssembly("FwdaBPPT");
voFwdaBPPT->AddNode(voFwdaBPPTPC, 1, gGeoIdentity);
voFwdaBPPT->AddNode(voFwdaBPPTT, 1, new TGeoTranslation(0., 0., kFwdaBPPTTL/2. + kFwdaBPPTXL));
// BeamPipe and T0A Support
//
// ALIFWDA_0033
//
// Support Plate ALIFWDA_0026
const Float_t kFwdaBPSPL = 4.0;
TGeoXtru* shFwdaBPSPX = new TGeoXtru(2);
Double_t xBPSPX[8] = {10.0, 6.0 , -6.0, -10.0, -10.0, -6.0, 6.0, 10.0};
Double_t yBPSPX[8] = { 6.0, 10.0, 10.0, 6.0, - 6.0, -10.0, -10.0, -6.0};
shFwdaBPSPX->DefinePolygon(8, xBPSPX, yBPSPX);
shFwdaBPSPX->DefineSection(0, 0., 0., 0., 1.);
shFwdaBPSPX->DefineSection(1, kFwdaBPSPL, 0., 0., 1.);
shFwdaBPSPX->SetName("FwdaBPSPX");
TGeoPcon* shFwdaBPSPY = new TGeoPcon(0., 360., 6);
shFwdaBPSPY->DefineSection(0, -1.00, 0., 5.5);
shFwdaBPSPY->DefineSection(1, 3.50, 0., 5.5);
shFwdaBPSPY->DefineSection(2, 3.50, 0., 5.0);
shFwdaBPSPY->DefineSection(3, 3.86, 0., 5.0);
shFwdaBPSPY->DefineSection(4, 3.86, 0., 5.5);
shFwdaBPSPY->DefineSection(5, 5.00, 0., 5.5);
shFwdaBPSPY->SetName("FwdaBPSPY");
TGeoCompositeShape* shFwdaBPSP = new TGeoCompositeShape("shFwdaBPSP", "FwdaBPSPX-FwdaBPSPY");
TGeoVolume* voFwdaBPSP = new TGeoVolume("FwdaBPSP", shFwdaBPSP, kMedAco);
//
// Flasque ALIFWDA_00027
const Float_t kFwdaBPSTTRi = 7.6/2.;
const Float_t kFwdaBPSTTRo1 = 13.9/2.;
const Float_t kFwdaBPSTTRo2 = 8.2/2.;
const Float_t kFwdaBPSTTRo3 = 9.4/2.;
TGeoPcon* shFwdaBPSFL = new TGeoPcon(0., 360., 8);
z = 0.,
shFwdaBPSFL->DefineSection(0, z, kFwdaBPSTTRi, kFwdaBPSTTRo1);
z += 0.64;
shFwdaBPSFL->DefineSection(1, z, kFwdaBPSTTRi, kFwdaBPSTTRo1);
shFwdaBPSFL->DefineSection(2, z, kFwdaBPSTTRi, kFwdaBPSTTRo2);
z += 2.55;
shFwdaBPSFL->DefineSection(3, z, kFwdaBPSTTRi, kFwdaBPSTTRo2);
shFwdaBPSFL->DefineSection(4, z, kFwdaBPSTTRi, kFwdaBPSTTRo3);
z += 0.4;
shFwdaBPSFL->DefineSection(5, z, kFwdaBPSTTRi, kFwdaBPSTTRo3);
shFwdaBPSFL->DefineSection(6, z, kFwdaBPSTTRi, kFwdaBPSTTRo2);
z += 1.2;
shFwdaBPSFL->DefineSection(7, z, kFwdaBPSTTRi, kFwdaBPSTTRo2);
TGeoVolume* voFwdaBPSFL = new TGeoVolume("FwdaBPSFL", shFwdaBPSFL, kMedAco);
//
// Cable support
TGeoBBox* shFwdaBPSCSa = new TGeoBBox(3.0, 8.75, 0.5);
shFwdaBPSCSa->SetName("FwdaBPSCSa");
TGeoBBox* shFwdaBPSCSb = new TGeoBBox(1.25, 4.00, 1.0);
shFwdaBPSCSb->SetName("FwdaBPSCSb");
TGeoTranslation* tFwdaBPSCSb = new TGeoTranslation(0., 5.25 - 8.75, 0.);
tFwdaBPSCSb->SetName("tFwdaBPSCSb");
tFwdaBPSCSb->RegisterYourself();
TGeoBBox* shFwdaBPSCSc = new TGeoBBox(3.0, 0.50, 0.70);
shFwdaBPSCSc->SetName("FwdaBPSCSc");
TGeoTranslation* tFwdaBPSCSc = new TGeoTranslation(0., 0.5 - 8.75, 1.2);
tFwdaBPSCSc->SetName("tFwdaBPSCSc");
tFwdaBPSCSc->RegisterYourself();
TGeoCompositeShape* shFwdaBPSCS = new TGeoCompositeShape("shFwdaBPSCS", "(FwdaBPSCSa-FwdaBPSCSb:tFwdaBPSCSb)+FwdaBPSCSc:tFwdaBPSCSc");
TGeoVolume* voFwdaBPSCS = new TGeoVolume("FwdaBPSCS", shFwdaBPSCS, kMedAco);
// Assembling the beam pipe support
TGeoVolumeAssembly* voFwdaBPS = new TGeoVolumeAssembly("FwdaBPS");
voFwdaBPS->AddNode(voFwdaBPSP, 1, new TGeoCombiTrans(0., 0., 0., rot045));
voFwdaBPS->AddNode(voFwdaBPSFL, 1, new TGeoTranslation(0., 0., kFwdaBPSPL));
const Float_t kFwdaBPSCSdy = 18.75/TMath::Sqrt(2.);
voFwdaBPS->AddNode(voFwdaBPSCS, 1, new TGeoCombiTrans(- kFwdaBPSCSdy, kFwdaBPSCSdy, 2., rot045));
voFwdaBPS->AddNode(voFwdaBPSCS, 2, new TGeoCombiTrans(- kFwdaBPSCSdy, - kFwdaBPSCSdy, 2., rot135));
voFwdaBPS->AddNode(voFwdaBPSCS, 3, new TGeoCombiTrans( kFwdaBPSCSdy, - kFwdaBPSCSdy, 2., rot225));
voFwdaBPS->AddNode(voFwdaBPSCS, 4, new TGeoCombiTrans( kFwdaBPSCSdy, kFwdaBPSCSdy, 2., rot315));
TGeoVolumeAssembly* voCp2 = new TGeoVolumeAssembly("CP2");
//FM voCp2->AddNode(voCp2Mo, 1, gGeoIdentity);
//FM voCp2->AddNode(voFwdaBPPT, 1, new TGeoTranslation(0., 0., -kCP2Length / 2. + 13.8));
//FM voCp2->AddNode(voFwdaBPS, 1, new TGeoTranslation(0., 0., -kCP2Length / 2. + 5.1));
*/
/*
//
///////////////////
// CP/3 //
///////////////////
//
// Adaptor tube [Pos 4]
//
// Adaptor tube length
const Float_t kCP3AdaptorTubeLength = 5.50;
//
// Inner and outer radii
const Float_t kCP3AdaptorTubeRi = 2.92;
const Float_t kCP3AdaptorTubeRo = 3.00;
//
// Bulge at transition point
// Inner and outer radii
const Float_t kCP3AdaptorTubeBulgeRi = 2.90;
const Float_t kCP3AdaptorTubeBulgeRo = 3.05;
//
// Length of bulge
const Float_t kCP3AdaptorTubeBulgeLength = 0.80;
//
// Bellow [Pos 8]
//
// Total length
const Float_t kCP3BellowLength = 13.00;
// Outer Radius
const Float_t kCP3BellowRo = 3.6;
// Inner Radius
const Float_t kCP3BellowRi = 2.8;
// Number of plies
const Int_t kCP3NumberOfPlies = 18;
// Length of undulated region
const Float_t kCP3BellowUndulatedLength = 8.30;
// Plie thickness
const Float_t kCP3PlieThickness = 0.02;
// Connection Plie radies (at transition been undulated region and beam pipe)
const Float_t kCP3ConnectionPlieR = 0.21;
// Plie radius
// const Float_t kCP3PlieR = 0.118286;
const Float_t kCP3PlieR =
(kCP3BellowUndulatedLength - 4. * kCP3ConnectionPlieR + 2. * kCP3PlieThickness +
(2. * kCP3NumberOfPlies - 2.) * kCP3PlieThickness) / (4. * kCP3NumberOfPlies - 2.);
// Length of connection pipe
const Float_t kCP3BellowConnectionLength = 2.35;
//
// Tube between bellows [Pos 3]
//
// Length of tube
const Float_t kCP3TubeLength = 4.00;
//
// Minimised fixed flange [Pos 7]
//
// Length of flange connection tube
const Float_t kCP3FlangeConnectorLength = 5.0 - 1.4;
// Length of Flange
const Float_t kCP3FlangeLength = 1.40;
// Outer radius
const Float_t kCP3FlangeRo = 4.30-1.; // -1 ?? FM
//
// CP/3 Mother volume
//
TGeoPcon* shCp3Mo = new TGeoPcon(0., 360., 12);
// From transition to first bellow
z = - kCP3Length / 2.;
shCp3Mo->DefineSection( 0, z, 0., kCP3AdaptorTubeBulgeRo);
z += kCP3BellowConnectionLength + kCP3AdaptorTubeLength;
shCp3Mo->DefineSection( 1, z, 0., kCP3AdaptorTubeBulgeRo);
// First Bellow
shCp3Mo->DefineSection( 2, z, 0., kCP3BellowRo);
z += kCP3BellowUndulatedLength;
shCp3Mo->DefineSection( 3, z, 0., kCP3BellowRo);
// Connection between the two bellows
shCp3Mo->DefineSection( 4, z, 0., kCP3AdaptorTubeBulgeRo);
z += 2. * kCP3BellowConnectionLength + kCP3TubeLength;
shCp3Mo->DefineSection( 5, z, 0., kCP3AdaptorTubeBulgeRo);
// Second bellow
shCp3Mo->DefineSection( 6, z, 0., kCP3BellowRo);
z += kCP3BellowUndulatedLength;
shCp3Mo->DefineSection( 7, z, 0., kCP3BellowRo);
// Pipe between second Bellow and Flange
shCp3Mo->DefineSection( 8, z, 0., kCP3AdaptorTubeBulgeRo);
z += kCP3BellowConnectionLength + kCP3FlangeConnectorLength;
shCp3Mo->DefineSection( 9, z, 0., kCP3AdaptorTubeBulgeRo);
// Flange
shCp3Mo->DefineSection(10, z, 0., kCP3FlangeRo);
z = -shCp3Mo->GetZ(0);
shCp3Mo->DefineSection(11, z, 0., kCP3FlangeRo);
//
TGeoVolume* voCp3Mo = new TGeoVolume("CP3MO", shCp3Mo, kMedAir);
voCp3Mo->SetVisibility(0);
TGeoVolumeAssembly* voCp3 = new TGeoVolumeAssembly("Cp3");
voCp3->AddNode(voCp3Mo, 1, gGeoIdentity);
voCp3->AddNode(voCpSupC, 3, new TGeoTranslation(0., 0., - kCP3Length / 2. + 4.6));
dz = kCP3pos;
//////////////////////////////////////////////
// CP/3 Adaptor tube //
//////////////////////////////////////////////
TGeoPcon* shCp3AtV = new TGeoPcon(0., 360., 4);
// Bulge at transition
z = - kCP3AdaptorTubeLength / 2.;
shCp3AtV->DefineSection(0, z, 0., kCP3AdaptorTubeBulgeRo);
z += kCP3AdaptorTubeBulgeLength;
shCp3AtV->DefineSection(1, z, 0., kCP3AdaptorTubeBulgeRo);
// Tube
shCp3AtV->DefineSection(2, z, 0., kCP3AdaptorTubeRo);
z = + kCP3AdaptorTubeLength / 2.;
shCp3AtV->DefineSection(3, z, 0., kCP3AdaptorTubeRo);
TGeoVolume* voCp3AtV = new TGeoVolume("CP3ATV", shCp3AtV, kMedVac);
TGeoPcon* shCp3AtS = new TGeoPcon(0., 360., 4);
// Bulge at transition
shCp3AtS->DefineSection(0, shCp3AtV->GetZ(0), kCP3AdaptorTubeBulgeRi, kCP3AdaptorTubeBulgeRo);
shCp3AtS->DefineSection(1, shCp3AtV->GetZ(1), kCP3AdaptorTubeBulgeRi, kCP3AdaptorTubeBulgeRo);
// Tube
shCp3AtS->DefineSection(2, shCp3AtV->GetZ(2), kCP3AdaptorTubeRi, kCP3AdaptorTubeRo);
shCp3AtS->DefineSection(3, shCp3AtV->GetZ(3), kCP3AdaptorTubeRi , kCP3AdaptorTubeRo);
TGeoVolume* voCp3AtS = new TGeoVolume("CP3ATS", shCp3AtS, kMedSteel);
voCp3AtV->AddNode(voCp3AtS, 1, gGeoIdentity);
dz = - kCP3Length / 2. + kCP3AdaptorTubeLength / 2.;
//FM voCp3Mo->AddNode(voCp3AtV, 1, new TGeoTranslation(0., 0., dz));
/////////////////////////////////
// CP/3 Bellow section //
/////////////////////////////////
//
// Upper part of the undulation
TGeoTorus* plieTorusUO = new TGeoTorus(kCP3BellowRo - kCP3PlieR, 0. , kCP3PlieR);
plieTorusUO->SetName("TorusUO");
TGeoTorus* plieTorusUI = new TGeoTorus(kCP3BellowRo - kCP3PlieR, kCP3PlieR - kCP3PlieThickness, kCP3PlieR);
plieTorusUI->SetName("TorusUI");
TGeoTube* plieTubeU = new TGeoTube (kCP3BellowRo - kCP3PlieR, kCP3BellowRo, kCP3PlieR);
plieTubeU->SetName("TubeU");
TGeoCompositeShape* shUpperPlieO = new TGeoCompositeShape("upperPlieO", "TorusUO*TubeU");
TGeoCompositeShape* shUpperPlieI = new TGeoCompositeShape("upperPlieI", "TorusUI*TubeU");
TGeoVolume* voWiggleUO = new TGeoVolume("CP3WUO", shUpperPlieO, kMedVac);
TGeoVolume* voWiggleUI = new TGeoVolume("CP3WUI", shUpperPlieI, kMedSteel);
voWiggleUO->AddNode(voWiggleUI, 1, gGeoIdentity);
//
// Lower part of the undulation
TGeoTorus* plieTorusLO = new TGeoTorus(kCP3BellowRi + kCP3PlieR, 0. , kCP3PlieR);
plieTorusLO->SetName("TorusLO");
TGeoTorus* plieTorusLI = new TGeoTorus(kCP3BellowRi + kCP3PlieR, kCP3PlieR - kCP3PlieThickness, kCP3PlieR);
plieTorusLI->SetName("TorusLI");
TGeoTube* plieTubeL = new TGeoTube (kCP3BellowRi, kCP3BellowRi + kCP3PlieR, kCP3PlieR);
plieTubeL->SetName("TubeL");
TGeoCompositeShape* shLowerPlieO = new TGeoCompositeShape("lowerPlieO", "TorusLO*TubeL");
TGeoCompositeShape* shLowerPlieI = new TGeoCompositeShape("lowerPlieI", "TorusLI*TubeL");
TGeoVolume* voWiggleLO = new TGeoVolume("CP3WLO", shLowerPlieO, kMedVac);
TGeoVolume* voWiggleLI = new TGeoVolume("CP3WLI", shLowerPlieI, kMedSteel);
voWiggleLO->AddNode(voWiggleLI, 1, gGeoIdentity);
//
// Connection between upper and lower part of undulation
TGeoVolume* voWiggleC1 = new TGeoVolume("Q3WCO1",
new TGeoTube(kCP3BellowRi + kCP3PlieR, kCP3BellowRo - kCP3PlieR, kCP3PlieThickness / 2.),
kMedSteel);
TGeoVolume* voWiggleC2 = new TGeoVolume("Q3WCO2",
new TGeoTube(kCP3BellowRi + kCP3ConnectionPlieR, kCP3BellowRo - kCP3PlieR, kCP3PlieThickness / 2.),
kMedSteel);
//
// Conncetion between undulated section and beam pipe
TGeoTorus* plieTorusCO = new TGeoTorus(kCP3BellowRi + kCP3ConnectionPlieR, 0. , kCP3ConnectionPlieR);
plieTorusCO->SetName("TorusCO");
TGeoTorus* plieTorusCI = new TGeoTorus(kCP3BellowRi + kCP3ConnectionPlieR, kCP3ConnectionPlieR - kCP3PlieThickness, kCP3ConnectionPlieR);
plieTorusCI->SetName("TorusCI");
TGeoTube* plieTubeC = new TGeoTube (kCP3BellowRi, kCP3BellowRi + kCP3ConnectionPlieR, kCP3ConnectionPlieR);
plieTubeC->SetName("TubeC");
TGeoCompositeShape* shConnectionPlieO = new TGeoCompositeShape("connectionPlieO", "TorusCO*TubeC");
TGeoCompositeShape* shConnectionPlieI = new TGeoCompositeShape("connectionPlieI", "TorusCI*TubeC");
TGeoVolume* voConnectionPO = new TGeoVolume("CP3CPO", shConnectionPlieO, kMedVac);
TGeoVolume* voConnectionPI = new TGeoVolume("CP3CPI", shConnectionPlieI, kMedSteel);
voConnectionPO->AddNode(voConnectionPI, 1, gGeoIdentity);
//
// Connecting pipes
TGeoVolume* voConnectionPipeO = new TGeoVolume("CP3BECO",
new TGeoTube(0., kCP3AdaptorTubeRo, kCP3BellowConnectionLength / 2.),
kMedVac);
TGeoVolume* voConnectionPipeI = new TGeoVolume("CP3BECI",
new TGeoTube(kCP3AdaptorTubeRi, kCP3AdaptorTubeRo, kCP3BellowConnectionLength / 2.),
kMedSteel);
voConnectionPipeO->AddNode(voConnectionPipeI, 1, gGeoIdentity);
//
// Bellow mother
TGeoPcon* shBellowMotherPC = new TGeoPcon(0., 360., 6);
dz = - kCP3BellowLength / 2;
shBellowMotherPC->DefineSection(0, dz, 0., kCP3AdaptorTubeRo);
dz += kCP3BellowConnectionLength;
shBellowMotherPC->DefineSection(1, dz, 0., kCP3AdaptorTubeRo);
shBellowMotherPC->DefineSection(2, dz, 0., kCP3BellowRo);
dz = kCP3BellowLength /2. - kCP3BellowConnectionLength;;
shBellowMotherPC->DefineSection(3, dz, 0., kCP3BellowRo);
shBellowMotherPC->DefineSection(4, dz, 0., kCP3AdaptorTubeRo);
dz += kCP3BellowConnectionLength;
shBellowMotherPC->DefineSection(5, dz, 0., kCP3AdaptorTubeRo);
TGeoVolume* voBellowMother = new TGeoVolume("CP3BeMO", shBellowMotherPC, kMedVac);
voBellowMother->SetVisibility(0);
//
// Add undulations
z0 = - kCP3BellowLength / 2. + kCP3BellowConnectionLength + 2. * kCP3ConnectionPlieR - kCP3PlieThickness;
zsh = 4. * kCP3PlieR - 2. * kCP3PlieThickness;
for (Int_t iw = 0; iw < 18; iw++) {
Float_t zpos = z0 + iw * zsh;
if (iw > 0)
voBellowMother->AddNode(voWiggleC1, iw + 1 , new TGeoTranslation(0., 0., zpos + kCP3PlieThickness / 2.));
else
voBellowMother->AddNode(voWiggleC2, iw + 1 , new TGeoTranslation(0., 0., zpos + kCP3PlieThickness / 2.));
zpos += kCP3PlieR;
voBellowMother->AddNode(voWiggleUO, iw + 1, new TGeoTranslation(0., 0., zpos));
zpos += kCP3PlieR;
if (iw < 17)
voBellowMother->AddNode(voWiggleC1, iw + 19, new TGeoTranslation(0., 0., zpos - kCP3PlieThickness / 2.));
else
voBellowMother->AddNode(voWiggleC2, iw + 19, new TGeoTranslation(0., 0., zpos - kCP3PlieThickness / 2.));
if (iw < 17) {
zpos += kCP3PlieR;
voBellowMother->AddNode(voWiggleLO, iw + 1, new TGeoTranslation(0., 0., zpos - kCP3PlieThickness));
}
}
//
// Add connecting undulation between bellow and connecting pipe
dz = - kCP3BellowUndulatedLength / 2. + kCP3ConnectionPlieR;
voBellowMother->AddNode(voConnectionPO, 1, new TGeoTranslation(0., 0., dz));
voBellowMother->AddNode(voConnectionPO, 2, new TGeoTranslation(0., 0., -dz));
//
// Add connecting pipe
dz = - kCP3BellowLength / 2. + kCP3BellowConnectionLength / 2.;
voBellowMother->AddNode(voConnectionPipeO, 1, new TGeoTranslation(0., 0., dz));
voBellowMother->AddNode(voConnectionPipeO, 2, new TGeoTranslation(0., 0., -dz));
//
// Add bellow to CP/3 mother
dz = - kCP3Length / 2. + kCP3AdaptorTubeLength + kCP3BellowLength / 2.;
//FM voCp3Mo->AddNode(voBellowMother, 1, new TGeoTranslation(0., 0., dz));
dz += (kCP3BellowLength + kCP3TubeLength);
//FM voCp3Mo->AddNode(voBellowMother, 2, new TGeoTranslation(0., 0., dz));
///////////////////////////////////////////
// Beam pipe section between bellows //
///////////////////////////////////////////
TGeoVolume* voCp3Bco = new TGeoVolume("CP3BCO",
new TGeoTube(0., kCP3AdaptorTubeRo, kCP3TubeLength / 2.),
kMedVac);
TGeoVolume* voCp3Bci = new TGeoVolume("CP3BCI",
new TGeoTube(kCP3AdaptorTubeRi, kCP3AdaptorTubeRo, kCP3TubeLength / 2.),
kMedSteel);
voCp3Bco->AddNode(voCp3Bci, 1, gGeoIdentity);
dz = - kCP3Length / 2. + kCP3AdaptorTubeLength + kCP3BellowLength + kCP3TubeLength / 2.;
//FM voCp3Mo->AddNode(voCp3Bco, 1, new TGeoTranslation(0., 0., dz));
///////////////////////////////////////////
// CP3 Minimised Flange //
///////////////////////////////////////////
TGeoPcon* shCp3mfo = new TGeoPcon(0., 360., 4);
z = - (kCP3FlangeConnectorLength + kCP3FlangeLength) / 2.;
// Connection Tube
shCp3mfo->DefineSection(0, z, 0., kCP3AdaptorTubeRo);
z += kCP3FlangeConnectorLength;
shCp3mfo->DefineSection(1, z, 0., kCP3AdaptorTubeRo);
// Flange
shCp3mfo->DefineSection(2, z, 0., kCP3FlangeRo);
z = - shCp3mfo->GetZ(0);
shCp3mfo->DefineSection(3, z, 0., kCP3FlangeRo);
TGeoVolume* voCp3mfo = new TGeoVolume("CP3MFO", shCp3mfo, kMedVac);
TGeoPcon* shCp3mfi = new TGeoPcon(0., 360., 4);
// Connection Tube
shCp3mfi->DefineSection(0, shCp3mfo->GetZ(0), kCP3AdaptorTubeRi, kCP3AdaptorTubeRo);
shCp3mfi->DefineSection(1, shCp3mfo->GetZ(1), kCP3AdaptorTubeRi, kCP3AdaptorTubeRo);
// Flange
shCp3mfi->DefineSection(2, shCp3mfo->GetZ(2), kCP3AdaptorTubeRi, kCP3FlangeRo);
shCp3mfi->DefineSection(3, shCp3mfo->GetZ(3), kCP3AdaptorTubeRi, kCP3FlangeRo);
TGeoVolume* voCp3mfi = new TGeoVolume("CP3MFI", shCp3mfi, kMedSteel);
voCp3mfo->AddNode(voCp3mfi, 1, gGeoIdentity);
dz = kCP3Length / 2. - (kCP3FlangeConnectorLength + kCP3FlangeLength) / 2.;
//FM voCp3Mo->AddNode(voCp3mfo, 1, new TGeoTranslation(0., 0., dz));
*/
/*
//
// Assemble the central beam pipe
//
TGeoVolumeAssembly* asCP = new TGeoVolumeAssembly("CP");
z = 0.;
// asCP->AddNode(voCp2, 1, gGeoIdentity);
z += kCP2Length / 2. + kCP1Length / 2.;
//asCP->AddNode(voCp1, 1, new TGeoTranslation(0., 0., z));
asCP->AddNode(voCp1, 1, new TGeoTranslation(0., 0., 0.));
z += kCP1Length / 2. + kCP3Length / 2.;
// asCP->AddNode(voCp3, 1, new TGeoTranslation(0., 0., z));
top->AddNode(asCP, 1, new TGeoCombiTrans(0., 0., 400. - kCP2Length / 2, rot180));
*/
////////////////////////////////////////////////////////////////////////////////
// //
// 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 = 393.5;
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;
TGeoVolume* voRB24CuTubeM = new TGeoVolume("voRB24CuTubeM",
new TGeoTube(0., kRB24CuTubeRo, kRB24CuTubeL / 2.), kMedVac);