3mm overlap corrected
[u/mrichter/AliRoot.git] / STRUCT / AliPIPEv4.cxx
CommitLineData
820b4d9e 1
2/**************************************************************************
3 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * *
5 * Author: The ALICE Off-line Project. *
6 * Contributors are mentioned in the code where appropriate. *
7 * *
8 * Permission to use, copy, modify and distribute this software and its *
9 * documentation strictly for non-commercial purposes is hereby granted *
10 * without fee, provided that the above copyright notice appears in all *
11 * copies and that both the copyright notice and this permission notice *
12 * appear in the supporting documentation. The authors make no claims *
13 * about the suitability of this software for any purpose. It is *
14 * provided "as is" without express or implied warranty. *
15 **************************************************************************/
16
820b4d9e 17
18//-------------------------------------------------------------------------
af5f3976 19// Beam pipe class for ALICE MFT upgrade
820b4d9e 20// This version uses TGeo
af5f3976 21// Authors:
22// F. Manso
23// A. Morsch
820b4d9e 24//-------------------------------------------------------------------------
25
26
27#include <Riostream.h>
28
29#include <TSystem.h>
30#include <TVirtualMC.h>
31#include <TGeoManager.h>
32#include <TGeoMatrix.h>
33#include <TGeoVolume.h>
34#include <TGeoTorus.h>
35#include <TGeoTube.h>
36#include <TGeoCone.h>
37#include <TGeoPcon.h>
38#include <TGeoBBox.h>
39#include <TGeoXtru.h>
40#include <TGeoCompositeShape.h>
41#include <TGeoGlobalMagField.h>
42
43#include "AliConst.h"
44#include "AliMagF.h"
45#include "AliPIPEv4.h"
46#include "AliRun.h"
47#include "AliLog.h"
af5f3976 48
820b4d9e 49ClassImp(AliPIPEv4)
af5f3976 50
820b4d9e 51//_____________________________________________________________________________
52AliPIPEv4::AliPIPEv4():
af5f3976 53 fRmax(1.98), // outer radius of Be beam pipe
54 fBe(0.08), // width of Be beam pipe
55 fZ1(50.), // beginning of beam pipe z location (A side)
fb4b4c5e 56 fZ2(-57.25), // end of Be beam pipe z location (C side)
af5f3976 57 fZ3(-82.) // end of beam pipe z location (C side)
820b4d9e 58{
59 // Constructor
60}
61
62//_____________________________________________________________________________
63AliPIPEv4::AliPIPEv4(const char *name, const char *title)
64 : AliPIPE(name,title),
af5f3976 65 fRmax(1.98), // outer radius of Be beam pipe
66 fBe(0.08), // width of Be beam pipe
67 fZ1(50.), // beginning of beam pipe z location (A side)
fb4b4c5e 68 fZ2(-57.25), // end of Be beam pipe z location (C side)
af5f3976 69 fZ3(-82.) // end of Steel beam pipe z location (C side)
820b4d9e 70{
71 // Constructor
72}
73
74
75//_____________________________________________________________________________
af5f3976 76AliPIPEv4::AliPIPEv4(const char *name, const char *title, const Float_t rmax, const Float_t width)
820b4d9e 77 : AliPIPE(name,title),
af5f3976 78 fRmax(rmax), // outer radius of Be beam pipe
79 fBe(width), // width of Be beam pipe
80 fZ1(50.), // beginning of beam pipe z location (A side)
fb4b4c5e 81 fZ2(-57.25), // end of Be beam pipe z location (C side)
af5f3976 82 fZ3(-82.) // end of Steel beam pipe z location (C side)
820b4d9e 83{
84 // Constructor
af5f3976 85}
820b4d9e 86
af5f3976 87//_____________________________________________________________________________
88AliPIPEv4::AliPIPEv4(const char *name, const char *title, const Float_t rmax, const Float_t width, const Float_t z2)
89 : AliPIPE(name,title),
90 fRmax(rmax), // outer radius of Be beam pipe
91 fBe(width), // width of Be beam pipe
92 fZ1(50.), // beginning of beam pipe z location (A side)
93 fZ2(z2), // end of Be beam pipe z location (C side)
94 fZ3(-82.) // end of Steel beam pipe z location (C side)
95{
96 // Constructor
820b4d9e 97}
98
99
100//___________________________________________
101void AliPIPEv4::CreateGeometry()
102{
103 AliDebug(1,"Create PIPEv4 geometry");
104 //
105 // Class describing the beam pipe geometry
106 //
af5f3976 107 Float_t z, zsh, z0;
820b4d9e 108 //
109 // Rotation Matrices
110 //
111 const Float_t kDegRad = TMath::Pi() / 180.;
112 // Rotation by 180 deg
113 TGeoRotation* rot180 = new TGeoRotation("rot180", 90., 180., 90., 90., 180., 0.);
114 TGeoRotation* rotyz = new TGeoRotation("rotyz", 90., 180., 0., 180., 90., 90.);
115 TGeoRotation* rotxz = new TGeoRotation("rotxz", 0., 0., 90., 90., 90., 180.);
af5f3976 116 //TGeoRotation* rot045 = new TGeoRotation("rot045", 90., 45., 90., 135., 0., 0.);
117 //TGeoRotation* rot135 = new TGeoRotation("rot135", 90. ,135., 90., 225., 0., 0.);
118 //TGeoRotation* rot225 = new TGeoRotation("rot225", 90. ,225., 90., 315., 0., 0.);
119 //TGeoRotation* rot315 = new TGeoRotation("rot315", 90. ,315., 90., 45., 0., 0.);
820b4d9e 120 //
121 // Media
af5f3976 122 //const TGeoMedium* kMedSi = gGeoManager->GetMedium("PIPE_SILICON"); //FM
820b4d9e 123 const TGeoMedium* kMedAir = gGeoManager->GetMedium("PIPE_AIR");
124 const TGeoMedium* kMedAirHigh = gGeoManager->GetMedium("PIPE_AIR_HIGH");
125 const TGeoMedium* kMedVac = gGeoManager->GetMedium("PIPE_VACUUM");
126 const TGeoMedium* kMedInsu = gGeoManager->GetMedium("PIPE_INS_C0");
127 const TGeoMedium* kMedSteel = gGeoManager->GetMedium("PIPE_INOX");
128 const TGeoMedium* kMedBe = gGeoManager->GetMedium("PIPE_BE");
129 const TGeoMedium* kMedCu = gGeoManager->GetMedium("PIPE_CU");
130 //const TGeoMedium* kMedKapton = gGeoManager->GetMedium("PIPE_KAPTON");
af5f3976 131 //const TGeoMedium* kMedAco = gGeoManager->GetMedium("PIPE_ANTICORODAL");
820b4d9e 132 //const TGeoMedium* kMedNEG = gGeoManager->GetMedium("PIPE_NEG COATING");
af5f3976 133 //const TGeoMedium* kMedAlu = gGeoManager->GetMedium("PIPE_ALU"); //FM
134 //const TGeoMedium* kMedAlu5083 = gGeoManager->GetMedium("PIPE_AA5083"); //FM
135 const TGeoMedium* kMedAlu2219 = gGeoManager->GetMedium("PIPE_AA2219"); //FM
820b4d9e 136
137 // Top volume
138 TGeoVolume* top = gGeoManager->GetVolume("ALIC");
139 //
140 //
141 ////////////////////////////////////////////////////////////////////////////////
142 // //
143 // The Central Vacuum system //
144 // //
145 ////////////////////////////////////////////////////////////////////////////////
146 //
147 //
148 // The ALICE central beam-pipe according to drawing LHCVC2C_0001
149 // Drawings of sub-elements:
150 //
151 // Pos 7 - Minimised Flange: LHCVFX_P0025
152 // Pos 6 - Standard Flange: STDVFUHV0009
153 // Pos 8 - Bellow: LHCVBX__0001
154 //
155 // Absolute z-coordinates -82.0 - 400.0 cm
156 // Total length: 482.0 cm
157 // It consists of 3 main parts:
158 // CP/2 The flange on the non-absorber side: 36.5 cm
159 // CP/1 The central Be pipe: 405.0 cm
160 // CP/3 The double-bellow and flange on the absorber side: 40.5 cm
820b4d9e 161
162 //
af5f3976 163 /*
820b4d9e 164 // Starting position in z
165 const Float_t kCPz0 = -400.0;
166 // Length of the CP/1 section
167 const Float_t kCP1Length = 405.0;
168 // Length of the CP/2 section
169 const Float_t kCP2Length = 36.5;
170 // Length of the CP/3 section
171 const Float_t kCP3Length = 40.5;
172 // Position of the CP/2 section
173 // const Float_t kCP2pos = kCPz0 + kCP2Length / 2.;
174 // Position of the CP/3 section
175 const Float_t kCP3pos = kCPz0 + kCP2Length + kCP1Length + kCP3Length/2.;
af5f3976 176 */
820b4d9e 177
178
179
af5f3976 180 //////////////////// NEW BEAM PIPE GEOMETRY FOR MuonForwardTracker , Author: F. Manso /////////////////////////
181
182 /*
183 //-------------------------------- New ITS L0 layer --------------------------------//
184 // Silicon L0
185 TGeoPcon* itsL0si = new TGeoPcon(0., 360., 2);
186
187 // 50 microns silicium
188 Float_t wSilicium=0.005;
189 // Internal radius
190 Float_t radiusL0=2.20;
191
192 itsL0si->DefineSection(0, 21./2., radiusL0, radiusL0 + wSilicium);
193 itsL0si->DefineSection(1,-21./2., radiusL0, radiusL0 + wSilicium);
194 TGeoVolume* voitsL0si = new TGeoVolume("voitsL0si",itsL0si,kMedSi);
195
196 // 36 microns of Copper
197 TGeoPcon* itsL0cu = new TGeoPcon(0., 360., 2);
198 itsL0cu->DefineSection(0, 21./2., radiusL0 + wSilicium, radiusL0 + wSilicium + 0.0036);
199 itsL0cu->DefineSection(1,-21./2., radiusL0 + wSilicium, radiusL0 + wSilicium + 0.0036);
200 TGeoVolume* voitsL0cu = new TGeoVolume("voitsL0cu",itsL0cu,kMedCu);
201
202 top->AddNode(voitsL0si,1,new TGeoTranslation(0., 0., 0.));
203 top->AddNode(voitsL0cu,1,new TGeoTranslation(0., 0., 0.));
204 //----------------------------------------------------------------------------------//
205 */
206
207
820b4d9e 208 //--------------- Cylindrical beam pipe -------------
820b4d9e 209
af5f3976 210 TGeoPcon* tube0 = new TGeoPcon(0., 360., 2);
211 tube0->DefineSection(0,fZ1,fRmax-fBe,fRmax);
212 tube0->DefineSection(1,fZ2,fRmax-fBe,fRmax);
213 TGeoVolume* votube0 = new TGeoVolume("votube0",tube0,kMedBe);
214 votube0->SetLineColor(kRed);
215 top->AddNode(votube0,1,new TGeoTranslation(0., 0., 0.));
216
217 // -------------- Vaccum ----------------
218 TGeoPcon* tube0vide = new TGeoPcon(0., 360., 2);
219 tube0vide->DefineSection(0,fZ1, 0.,fRmax-fBe);
220 tube0vide->DefineSection(1,fZ2, 0.,fRmax-fBe);
221 TGeoVolume* votube0vide = new TGeoVolume("votube0vide",tube0vide,kMedVac);
222 votube0vide->SetVisibility(0);
223 top->AddNode(votube0vide,1,new TGeoTranslation(0., 0., 0.));
224
225 TGeoPcon* tube12vide = new TGeoPcon(0., 360., 2);
226 tube12vide->DefineSection(0,fZ2, 0.,fRmax-fBe);
227 tube12vide->DefineSection(1,fZ3+9.0, 0.,fRmax-fBe);
228 TGeoVolume* votube12vide = new TGeoVolume("votube12vide",tube12vide,kMedVac);
229 votube12vide->SetVisibility(0);
230 top->AddNode(votube12vide,1,new TGeoTranslation(0., 0., 0.));
231
232 TGeoPcon* adaptatorVide = new TGeoPcon(0., 360., 3);
233 adaptatorVide->DefineSection(0,fZ3+9.0, 0., fRmax-fBe);
234 adaptatorVide->DefineSection(1,fZ3+1.4, 0., 3.0-fBe);
235 adaptatorVide->DefineSection(2,fZ3 , 0., 3.0-fBe);
236 TGeoVolume* voadaptatorVide = new TGeoVolume("voadaptatorVide",adaptatorVide,kMedVac);
237 voadaptatorVide->SetVisibility(0);
238 top->AddNode(voadaptatorVide,1,new TGeoTranslation(0., 0., 0.));
fb4b4c5e 239
af5f3976 240 // -------------- End Vaccum ------------
241
242 // -------------- Bellows --------------
243 Float_t plieradius = (3.8 + (2. * 7 - 2.) * 0.03) / (4. * 7); // radius of bellows "plis"
244 Float_t dzbellow1=2.0; // distance between the start of the aluminium beam pipe and the first bellows
fb4b4c5e 245 Float_t dzbellow2=4.0; // distance between the 2 bellows
af5f3976 246 //--------------------------------------
247
248 //---------------- First Al tube ------------------
249 TGeoPcon* tube1 = new TGeoPcon(0., 360., 2);
250 tube1->DefineSection(0,fZ2, fRmax-fBe,fRmax);
251 tube1->DefineSection(1,fZ2-dzbellow1+1.5*plieradius, fRmax-fBe,fRmax);
252 TGeoVolume* votube1 = new TGeoVolume("votube1",tube1,kMedAlu2219);
253 votube1->SetLineColor(kBlue);
254 top->AddNode(votube1,1,new TGeoTranslation(0., 0., 0.));
fb4b4c5e 255
af5f3976 256 //-------------------------------------------------
257
258 // ------------------ Bellows 1 -----------------------
259 TGeoVolume* vobellows1 = MakeBellow("bellows1", 7, 2.0, 2.665, 3.8, plieradius ,0.03);
260 top->AddNode(vobellows1, 1, new TGeoTranslation(0., 0., fZ2-dzbellow1-(3.8)/2.));
fb4b4c5e 261
af5f3976 262 //------------------------------------------------------
263
264 //------------- Second Al tube --------------
265 TGeoPcon* tube2 = new TGeoPcon(0., 360., 2);
266 tube2->DefineSection(0,fZ2-dzbellow1-3.8, fRmax-fBe,fRmax);
267 tube2->DefineSection(1,fZ2-dzbellow1-3.8-dzbellow2+1.5*plieradius, fRmax-fBe,fRmax);
268 TGeoVolume* votube2 = new TGeoVolume("votube2",tube2,kMedAlu2219);
269 votube2->SetLineColor(kBlue);
270 top->AddNode(votube2,1,new TGeoTranslation(0., 0., 0.));
fb4b4c5e 271
af5f3976 272 //-------------------------------------------
273
274 // ------------------ Bellows 2 -----------------------
275 TGeoVolume* vobellows2 = MakeBellow("bellows2", 7, 2.0, 2.665, 3.8, plieradius ,0.03);
276 top->AddNode(vobellows2, 1, new TGeoTranslation(0., 0., fZ2-dzbellow1-3.8-dzbellow2-3.8/2.));
fb4b4c5e 277
af5f3976 278 //-----------------------------------------------------
279
280 //------------- Conical adaptator -------------
281 TGeoPcon* adaptator = new TGeoPcon(0., 360., 6);
282 adaptator->DefineSection(0,fZ2-dzbellow1-3.8-dzbellow2-3.8, fRmax-fBe,fRmax);
283 adaptator->DefineSection(1,fZ3+9.0, fRmax-fBe ,fRmax);
284 adaptator->DefineSection(2,fZ3+9.0, fRmax-fBe, fRmax);
285 adaptator->DefineSection(3,fZ3+1.4, 3.0-fBe ,3.0);
286 adaptator->DefineSection(4,fZ3+1.4, 3.0-fBe ,3.0);
287 adaptator->DefineSection(5,fZ3, 3.0-fBe ,3.0);
288 TGeoVolume* voadaptator = new TGeoVolume("voadaptator",adaptator,kMedAlu2219);
289 voadaptator->SetLineColor(kBlue);
290 top->AddNode(voadaptator,1,new TGeoTranslation(0., 0., 0.));
fb4b4c5e 291
af5f3976 292 //---------------------------------------------
293
294 TGeoPcon* flange = new TGeoPcon(0., 360., 2);
295 flange->DefineSection(0,fZ3+1.4, 3.0, 4.3);
296 flange->DefineSection(1,fZ3+0.3, 3.0, 4.3);
297 TGeoVolume* voflange = new TGeoVolume("voflange",flange,kMedAlu2219);
298 voflange->SetLineColor(kBlue+3);
299 top->AddNode(voflange,1,new TGeoTranslation(0., 0., 0.));
300
301 // ------------- Inox ring --------------------
302 TGeoPcon* ring = new TGeoPcon(0., 360., 2);
303 ring->DefineSection(0,fZ3+0.3,3.0, 4.3);
304 ring->DefineSection(1,fZ3, 3.0, 4.3);
305 TGeoVolume* voring = new TGeoVolume("voring",ring,kMedSteel);
306 voring->SetLineColor(kYellow);
307 top->AddNode(voring,1,new TGeoTranslation(0., 0., 0.));
308 //---------------------------------------------
309
310
311 /////////////////////////// END NEW BEAM PIPE GEOMETRY /////////////////////////////
312
313
314
315 /*
820b4d9e 316
317 //
318 ///////////////////
319 // CP/2 //
320 ///////////////////
321 //
322 // Fixed Point tube [Pos 5]
323 //
324 // Inner and outer radii of the Stainless Steel pipe
af5f3976 325 const Float_t kCP2StRi = 2.90;
326 const Float_t kCP2StRo = 2.98;
820b4d9e 327 //
328 // Transition to central Be-pipe (Bulge)
329 // Length
330 const Float_t kCP2BulgeLength = 0.80;
331 //
332 // Bulge outer radius
af5f3976 333 const Float_t kCP2BulgeRo = 3.05;
820b4d9e 334 //
335 // Fixed Point at z = 391.7 (IP)
336 //
337 // Position of fixed point
338 const Float_t kCP2FixedPointZ = 8.30;
339 //
340 // Outer radius of fixed point
af5f3976 341 const Float_t kCP2FixedPointRo = 3.50;
820b4d9e 342 //
343 // Length of fixed point
344 const Float_t kCP2FixedPointLength = 0.60;
345 //
346 // Fixed Flange [Pos 6]
347 //
348 // Fixed flange outer radius
349 const Float_t kCP2FixedFlangeRo = 7.60;
350 //
351 // Fixed flange inner radius
352 const Float_t kCP2FixedFlangeRi = 3.00;
353 // Fixed flange inner radius bulge
354 const Float_t kCP2FixedFlangeBulgeRi = 2.90;
355 // Fixed flange lengths of sections at inner radius
356 const Float_t kCP2FixedFlangeRecessLengths[3] ={1., 0.08, 0.9};
357 // Fixed flange length
358 const Float_t kCP2FixedFlangeLength = 1.98;
359 //
360 // Fixed flange bulge
361 // Outer radius
af5f3976 362 const Float_t kCP2FixedFlangeBulgeRo = 3.00;
820b4d9e 363 //
364 // Length
365 const Float_t kCP2FixedFlangeBulgeLength = 2.00;
366
367 //
368 // CP/2 Mother Volume
369 //
370 TGeoPcon* shCp2Mo = new TGeoPcon(0., 360., 14);
371 // Flange
372 z = - kCP2Length / 2.;
373 shCp2Mo->DefineSection( 0, z, kCP2FixedFlangeRi, kCP2FixedFlangeRo);
374 z += kCP2FixedFlangeRecessLengths[0];
375 shCp2Mo->DefineSection( 1, z, kCP2FixedFlangeRi, kCP2FixedFlangeRo);
376 shCp2Mo->DefineSection( 2, z, 0., kCP2FixedFlangeRo);
377 z += (kCP2FixedFlangeRecessLengths[1] + kCP2FixedFlangeRecessLengths[2]) ;
378 shCp2Mo->DefineSection( 3, z, 0., kCP2FixedFlangeRo);
379 // Straight section between Flange and Fixed Point
380 shCp2Mo->DefineSection( 4, z, 0., kCP2FixedFlangeBulgeRo);
381 z += kCP2FixedFlangeBulgeLength;
382 shCp2Mo->DefineSection( 5, z, 0., kCP2FixedFlangeBulgeRo);
383 shCp2Mo->DefineSection( 6, z, 0., kCP2StRo);
384 z = - kCP2Length / 2 + kCP2FixedPointZ - kCP2FixedPointLength / 2.;
385 shCp2Mo->DefineSection( 7, z, 0., kCP2StRo);
386 // Fixed Point
387 shCp2Mo->DefineSection( 8, z, 0., kCP2FixedPointRo);
388 z += kCP2FixedPointLength;
389 shCp2Mo->DefineSection( 9, z, 0., kCP2FixedPointRo);
390 // Straight section between Fixed Point and transition bulge
391 shCp2Mo->DefineSection(10, z, 0., kCP2StRo);
392 z = kCP2Length / 2. - kCP2BulgeLength;
393 shCp2Mo->DefineSection(11, z, 0., kCP2StRo);
394 shCp2Mo->DefineSection(12, z, 0., kCP2BulgeRo);
395 z = kCP2Length / 2.;
396 shCp2Mo->DefineSection(13, z, 0., kCP2BulgeRo);
397
398 TGeoVolume* voCp2Mo = new TGeoVolume("CP2MO", shCp2Mo, kMedAir);
af5f3976 399 //FM voCp2Mo->SetVisibility(0);
820b4d9e 400 //
401 // CP/1 Vacuum
402 TGeoTube* shCp2Va = new TGeoTube(0., kCP2StRi, (kCP2Length - kCP2FixedFlangeRecessLengths[0])/2.);
403 TGeoVolume* voCp2Va = new TGeoVolume("CP2VA", shCp2Va, kMedVac);
404
af5f3976 405 //FM voCp2Mo->AddNode(voCp2Va, 1, new TGeoTranslation(0., 0., kCP2FixedFlangeRecessLengths[0]/2.));
820b4d9e 406
407 /////////////////////////////////////////////
408 // CP/2 Fixed Flange [Pos 6] //
409 /////////////////////////////////////////////
410
411 TGeoPcon* shCp2Fl = new TGeoPcon(0., 360., 6);
412 z = - kCP2FixedFlangeLength / 2.;
413 shCp2Fl->DefineSection(0, z, kCP2FixedFlangeRi, kCP2FixedFlangeRo);
414 z += kCP2FixedFlangeRecessLengths[0];
415 shCp2Fl->DefineSection(1, z, kCP2FixedFlangeRi, kCP2FixedFlangeRo);
416 shCp2Fl->DefineSection(2, z, kCP2FixedFlangeBulgeRi, kCP2FixedFlangeRo);
417 z += kCP2FixedFlangeRecessLengths[1];
418 shCp2Fl->DefineSection(3, z, kCP2FixedFlangeBulgeRi, kCP2FixedFlangeRo);
419 shCp2Fl->DefineSection(4, z, kCP2FixedFlangeRi, kCP2FixedFlangeRo);
420 z = kCP2FixedFlangeLength / 2.;
421 shCp2Fl->DefineSection(5, z, kCP2FixedFlangeRi, kCP2FixedFlangeRo);
422 TGeoVolume* voCp2Fl = new TGeoVolume("CP2FL", shCp2Fl, kMedSteel);
423 //
424 dz = - kCP2Length / 2. + kCP2FixedFlangeLength / 2.;
af5f3976 425 //FM voCp2Mo->AddNode(voCp2Fl, 1, new TGeoTranslation(0., 0., dz));
820b4d9e 426
427
428 /////////////////////////////////////////////////////////////
429 // CP/2 Beam pipe with fixed point and transition bulges //
430 /////////////////////////////////////////////////////////////
431 TGeoPcon* shCp2Pi = new TGeoPcon(0., 360., 10);
432 // Bulge at transition to flange
433 z = - (kCP2Length - kCP2FixedFlangeRecessLengths[0] - kCP2FixedFlangeRecessLengths[1]) / 2.;
434 z0 = z;
435 shCp2Pi->DefineSection(0, z, kCP2StRi, kCP2FixedFlangeBulgeRo);
436 z += kCP2FixedFlangeBulgeLength;
437 shCp2Pi->DefineSection(1, z, kCP2StRi, kCP2FixedFlangeBulgeRo);
438 // Straight section between Bulge and Fixed Point
439 shCp2Pi->DefineSection(2, z, kCP2StRi, kCP2StRo);
440 z += (kCP2FixedPointZ - kCP2FixedPointLength / 2. - kCP2FixedFlangeRecessLengths[0]
441 - kCP2FixedFlangeRecessLengths[1] -
442 kCP2FixedFlangeBulgeLength);
443 shCp2Pi->DefineSection(3, z, kCP2StRi, kCP2StRo);
444 // Fixed Point
445 shCp2Pi->DefineSection(4, z, kCP2StRi, kCP2FixedPointRo);
446 z += kCP2FixedPointLength;
447 shCp2Pi->DefineSection(5, z, kCP2StRi, kCP2FixedPointRo);
448 // Straight section between Fixed Point and transition bulge
449 shCp2Pi->DefineSection(6, z, kCP2StRi, kCP2StRo);
450 z = - shCp2Pi->GetZ(0) - kCP2BulgeLength;
451 shCp2Pi->DefineSection(7, z, kCP2StRi, kCP2StRo);
452 // Bulge at transition to Be pipe
453 shCp2Pi->DefineSection(8, z, kCP2StRi, kCP2BulgeRo);
454 z = - shCp2Pi->GetZ(0);
455 shCp2Pi->DefineSection(9, z, kCP2StRi, kCP2BulgeRo);
456
457 TGeoVolume* voCp2Pi = new TGeoVolume("CP2PI", shCp2Pi, kMedSteel);
458 dz = (kCP2FixedFlangeRecessLengths[0] + kCP2FixedFlangeRecessLengths[1]) / 2.;
af5f3976 459 //FM voCp2Mo->AddNode(voCp2Pi, 1, new TGeoTranslation(0., 0., dz));
820b4d9e 460
461 //
462 // Central beam pipe support collars
463 // LHCVC2C_0019
464 // Position at z = -46., 40., 150.
af5f3976 465 TGeoVolume* voCpSupC = new TGeoVolume("CpSupC", new TGeoTube(3.051, 4.00, 0.35), kMedAco);
820b4d9e 466 //voCp1->AddNode(voCpSupC, 1, new TGeoTranslation(0., 0., kCP1Length / 2. - 98.2));
467 //voCp1->AddNode(voCpSupC, 2, new TGeoTranslation(0., 0., kCP1Length / 2.- 191.5));
468
820b4d9e 469 // Beam Pipe Protection Tube
470 //
471 // ALIFWDA_0025
472 //
473 // Plaque de Centrage ALIFWDA_0019
474 const Float_t kFwdaBPPTXL = 3.;
475 TGeoXtru* shFwdaBPPTX = new TGeoXtru(2);
476 Double_t xBPPTX[8] = {12.5, 7.5, -7.5, -12.5, -12.5, -7.5, 7.5, 12.5};
477 Double_t yBPPTX[8] = { 7.0, 12.0, 12.0, 7.0, -7.0, -12.0, -12.0, -7.0};
478 shFwdaBPPTX->DefinePolygon(8, xBPPTX, yBPPTX);
479 shFwdaBPPTX->DefineSection(0, 0., 0., 0., 1.);
480 shFwdaBPPTX->DefineSection(1, kFwdaBPPTXL, 0., 0., 1.);
481 shFwdaBPPTX->SetName("FwdaBPPTX");
482 TGeoTube* shFwdaBPPTY = new TGeoTube(0., 8.5, 3.2);
483 shFwdaBPPTY->SetName("FwdaBPPTY");
484 TGeoCompositeShape* shFwdaBPPTPC = new TGeoCompositeShape("shFwdaBPPTPC", "FwdaBPPTX-FwdaBPPTY");
485 TGeoVolume* voFwdaBPPTPC = new TGeoVolume("FwdaBPPTPC", shFwdaBPPTPC, kMedAco);
486 //
487 // Tube ALIFWDA_0020
488 // const Float_t kFwdaBPPTTL = 48.;
489 const Float_t kFwdaBPPTTL = 35.;
490 TGeoVolume* voFwdaBPPTT = new TGeoVolume("FwdaBPPTT", new TGeoTube(8.85, 9.0, kFwdaBPPTTL/2.), kMedAco);
491 TGeoVolumeAssembly* voFwdaBPPT = new TGeoVolumeAssembly("FwdaBPPT");
492 voFwdaBPPT->AddNode(voFwdaBPPTPC, 1, gGeoIdentity);
493 voFwdaBPPT->AddNode(voFwdaBPPTT, 1, new TGeoTranslation(0., 0., kFwdaBPPTTL/2. + kFwdaBPPTXL));
494
495
496 // BeamPipe and T0A Support
497 //
498 // ALIFWDA_0033
499 //
500 // Support Plate ALIFWDA_0026
501 const Float_t kFwdaBPSPL = 4.0;
502 TGeoXtru* shFwdaBPSPX = new TGeoXtru(2);
503 Double_t xBPSPX[8] = {10.0, 6.0 , -6.0, -10.0, -10.0, -6.0, 6.0, 10.0};
504 Double_t yBPSPX[8] = { 6.0, 10.0, 10.0, 6.0, - 6.0, -10.0, -10.0, -6.0};
505 shFwdaBPSPX->DefinePolygon(8, xBPSPX, yBPSPX);
506 shFwdaBPSPX->DefineSection(0, 0., 0., 0., 1.);
507 shFwdaBPSPX->DefineSection(1, kFwdaBPSPL, 0., 0., 1.);
508 shFwdaBPSPX->SetName("FwdaBPSPX");
509 TGeoPcon* shFwdaBPSPY = new TGeoPcon(0., 360., 6);
510 shFwdaBPSPY->DefineSection(0, -1.00, 0., 5.5);
511 shFwdaBPSPY->DefineSection(1, 3.50, 0., 5.5);
512 shFwdaBPSPY->DefineSection(2, 3.50, 0., 5.0);
513 shFwdaBPSPY->DefineSection(3, 3.86, 0., 5.0);
514 shFwdaBPSPY->DefineSection(4, 3.86, 0., 5.5);
515 shFwdaBPSPY->DefineSection(5, 5.00, 0., 5.5);
516 shFwdaBPSPY->SetName("FwdaBPSPY");
517 TGeoCompositeShape* shFwdaBPSP = new TGeoCompositeShape("shFwdaBPSP", "FwdaBPSPX-FwdaBPSPY");
518 TGeoVolume* voFwdaBPSP = new TGeoVolume("FwdaBPSP", shFwdaBPSP, kMedAco);
519 //
520 // Flasque ALIFWDA_00027
521
522
523 const Float_t kFwdaBPSTTRi = 7.6/2.;
524 const Float_t kFwdaBPSTTRo1 = 13.9/2.;
525 const Float_t kFwdaBPSTTRo2 = 8.2/2.;
526 const Float_t kFwdaBPSTTRo3 = 9.4/2.;
527
528 TGeoPcon* shFwdaBPSFL = new TGeoPcon(0., 360., 8);
529 z = 0.,
530 shFwdaBPSFL->DefineSection(0, z, kFwdaBPSTTRi, kFwdaBPSTTRo1);
531 z += 0.64;
532 shFwdaBPSFL->DefineSection(1, z, kFwdaBPSTTRi, kFwdaBPSTTRo1);
533 shFwdaBPSFL->DefineSection(2, z, kFwdaBPSTTRi, kFwdaBPSTTRo2);
534 z += 2.55;
535 shFwdaBPSFL->DefineSection(3, z, kFwdaBPSTTRi, kFwdaBPSTTRo2);
536 shFwdaBPSFL->DefineSection(4, z, kFwdaBPSTTRi, kFwdaBPSTTRo3);
537 z += 0.4;
538 shFwdaBPSFL->DefineSection(5, z, kFwdaBPSTTRi, kFwdaBPSTTRo3);
539 shFwdaBPSFL->DefineSection(6, z, kFwdaBPSTTRi, kFwdaBPSTTRo2);
540 z += 1.2;
541 shFwdaBPSFL->DefineSection(7, z, kFwdaBPSTTRi, kFwdaBPSTTRo2);
542
543 TGeoVolume* voFwdaBPSFL = new TGeoVolume("FwdaBPSFL", shFwdaBPSFL, kMedAco);
544
545
546 //
547 // Cable support
548 TGeoBBox* shFwdaBPSCSa = new TGeoBBox(3.0, 8.75, 0.5);
549 shFwdaBPSCSa->SetName("FwdaBPSCSa");
550 TGeoBBox* shFwdaBPSCSb = new TGeoBBox(1.25, 4.00, 1.0);
551 shFwdaBPSCSb->SetName("FwdaBPSCSb");
552 TGeoTranslation* tFwdaBPSCSb = new TGeoTranslation(0., 5.25 - 8.75, 0.);
553 tFwdaBPSCSb->SetName("tFwdaBPSCSb");
554 tFwdaBPSCSb->RegisterYourself();
555 TGeoBBox* shFwdaBPSCSc = new TGeoBBox(3.0, 0.50, 0.70);
556 shFwdaBPSCSc->SetName("FwdaBPSCSc");
557 TGeoTranslation* tFwdaBPSCSc = new TGeoTranslation(0., 0.5 - 8.75, 1.2);
558 tFwdaBPSCSc->SetName("tFwdaBPSCSc");
559 tFwdaBPSCSc->RegisterYourself();
560 TGeoCompositeShape* shFwdaBPSCS = new TGeoCompositeShape("shFwdaBPSCS", "(FwdaBPSCSa-FwdaBPSCSb:tFwdaBPSCSb)+FwdaBPSCSc:tFwdaBPSCSc");
561 TGeoVolume* voFwdaBPSCS = new TGeoVolume("FwdaBPSCS", shFwdaBPSCS, kMedAco);
562
563
564 // Assembling the beam pipe support
565 TGeoVolumeAssembly* voFwdaBPS = new TGeoVolumeAssembly("FwdaBPS");
566 voFwdaBPS->AddNode(voFwdaBPSP, 1, new TGeoCombiTrans(0., 0., 0., rot045));
567 voFwdaBPS->AddNode(voFwdaBPSFL, 1, new TGeoTranslation(0., 0., kFwdaBPSPL));
568 const Float_t kFwdaBPSCSdy = 18.75/TMath::Sqrt(2.);
569
570 voFwdaBPS->AddNode(voFwdaBPSCS, 1, new TGeoCombiTrans(- kFwdaBPSCSdy, kFwdaBPSCSdy, 2., rot045));
571 voFwdaBPS->AddNode(voFwdaBPSCS, 2, new TGeoCombiTrans(- kFwdaBPSCSdy, - kFwdaBPSCSdy, 2., rot135));
572 voFwdaBPS->AddNode(voFwdaBPSCS, 3, new TGeoCombiTrans( kFwdaBPSCSdy, - kFwdaBPSCSdy, 2., rot225));
573 voFwdaBPS->AddNode(voFwdaBPSCS, 4, new TGeoCombiTrans( kFwdaBPSCSdy, kFwdaBPSCSdy, 2., rot315));
574
575 TGeoVolumeAssembly* voCp2 = new TGeoVolumeAssembly("CP2");
af5f3976 576 //FM voCp2->AddNode(voCp2Mo, 1, gGeoIdentity);
577 //FM voCp2->AddNode(voFwdaBPPT, 1, new TGeoTranslation(0., 0., -kCP2Length / 2. + 13.8));
578 //FM voCp2->AddNode(voFwdaBPS, 1, new TGeoTranslation(0., 0., -kCP2Length / 2. + 5.1));
579
580 */
581
582 /*
820b4d9e 583
584 //
585 ///////////////////
586 // CP/3 //
587 ///////////////////
588 //
589 // Adaptor tube [Pos 4]
590 //
591 // Adaptor tube length
592 const Float_t kCP3AdaptorTubeLength = 5.50;
593 //
594 // Inner and outer radii
af5f3976 595 const Float_t kCP3AdaptorTubeRi = 2.92;
596 const Float_t kCP3AdaptorTubeRo = 3.00;
820b4d9e 597 //
598 // Bulge at transition point
599 // Inner and outer radii
af5f3976 600 const Float_t kCP3AdaptorTubeBulgeRi = 2.90;
601 const Float_t kCP3AdaptorTubeBulgeRo = 3.05;
820b4d9e 602 //
603 // Length of bulge
604 const Float_t kCP3AdaptorTubeBulgeLength = 0.80;
605 //
606 // Bellow [Pos 8]
607 //
608 // Total length
609 const Float_t kCP3BellowLength = 13.00;
610 // Outer Radius
af5f3976 611 const Float_t kCP3BellowRo = 3.6;
820b4d9e 612 // Inner Radius
af5f3976 613 const Float_t kCP3BellowRi = 2.8;
820b4d9e 614 // Number of plies
615 const Int_t kCP3NumberOfPlies = 18;
616 // Length of undulated region
617 const Float_t kCP3BellowUndulatedLength = 8.30;
618 // Plie thickness
619 const Float_t kCP3PlieThickness = 0.02;
620 // Connection Plie radies (at transition been undulated region and beam pipe)
621 const Float_t kCP3ConnectionPlieR = 0.21;
622 // Plie radius
623 // const Float_t kCP3PlieR = 0.118286;
624 const Float_t kCP3PlieR =
625 (kCP3BellowUndulatedLength - 4. * kCP3ConnectionPlieR + 2. * kCP3PlieThickness +
626 (2. * kCP3NumberOfPlies - 2.) * kCP3PlieThickness) / (4. * kCP3NumberOfPlies - 2.);
627 // Length of connection pipe
628 const Float_t kCP3BellowConnectionLength = 2.35;
629 //
630 // Tube between bellows [Pos 3]
631 //
632 // Length of tube
633 const Float_t kCP3TubeLength = 4.00;
634 //
635 // Minimised fixed flange [Pos 7]
636 //
637 // Length of flange connection tube
638 const Float_t kCP3FlangeConnectorLength = 5.0 - 1.4;
639 // Length of Flange
640 const Float_t kCP3FlangeLength = 1.40;
641 // Outer radius
af5f3976 642 const Float_t kCP3FlangeRo = 4.30-1.; // -1 ?? FM
820b4d9e 643
644 //
645 // CP/3 Mother volume
646 //
647 TGeoPcon* shCp3Mo = new TGeoPcon(0., 360., 12);
648 // From transition to first bellow
649 z = - kCP3Length / 2.;
650 shCp3Mo->DefineSection( 0, z, 0., kCP3AdaptorTubeBulgeRo);
651 z += kCP3BellowConnectionLength + kCP3AdaptorTubeLength;
652 shCp3Mo->DefineSection( 1, z, 0., kCP3AdaptorTubeBulgeRo);
653 // First Bellow
654 shCp3Mo->DefineSection( 2, z, 0., kCP3BellowRo);
655 z += kCP3BellowUndulatedLength;
656 shCp3Mo->DefineSection( 3, z, 0., kCP3BellowRo);
657 // Connection between the two bellows
658 shCp3Mo->DefineSection( 4, z, 0., kCP3AdaptorTubeBulgeRo);
659 z += 2. * kCP3BellowConnectionLength + kCP3TubeLength;
660 shCp3Mo->DefineSection( 5, z, 0., kCP3AdaptorTubeBulgeRo);
661 // Second bellow
662 shCp3Mo->DefineSection( 6, z, 0., kCP3BellowRo);
663 z += kCP3BellowUndulatedLength;
664 shCp3Mo->DefineSection( 7, z, 0., kCP3BellowRo);
665 // Pipe between second Bellow and Flange
666 shCp3Mo->DefineSection( 8, z, 0., kCP3AdaptorTubeBulgeRo);
667 z += kCP3BellowConnectionLength + kCP3FlangeConnectorLength;
668 shCp3Mo->DefineSection( 9, z, 0., kCP3AdaptorTubeBulgeRo);
669 // Flange
670 shCp3Mo->DefineSection(10, z, 0., kCP3FlangeRo);
671 z = -shCp3Mo->GetZ(0);
672 shCp3Mo->DefineSection(11, z, 0., kCP3FlangeRo);
673 //
674 TGeoVolume* voCp3Mo = new TGeoVolume("CP3MO", shCp3Mo, kMedAir);
675 voCp3Mo->SetVisibility(0);
676 TGeoVolumeAssembly* voCp3 = new TGeoVolumeAssembly("Cp3");
677 voCp3->AddNode(voCp3Mo, 1, gGeoIdentity);
af5f3976 678 voCp3->AddNode(voCpSupC, 3, new TGeoTranslation(0., 0., - kCP3Length / 2. + 4.6));
820b4d9e 679 dz = kCP3pos;
680
681 //////////////////////////////////////////////
682 // CP/3 Adaptor tube //
683 //////////////////////////////////////////////
684 TGeoPcon* shCp3AtV = new TGeoPcon(0., 360., 4);
685 // Bulge at transition
686 z = - kCP3AdaptorTubeLength / 2.;
687 shCp3AtV->DefineSection(0, z, 0., kCP3AdaptorTubeBulgeRo);
688 z += kCP3AdaptorTubeBulgeLength;
689 shCp3AtV->DefineSection(1, z, 0., kCP3AdaptorTubeBulgeRo);
690 // Tube
691 shCp3AtV->DefineSection(2, z, 0., kCP3AdaptorTubeRo);
692 z = + kCP3AdaptorTubeLength / 2.;
693 shCp3AtV->DefineSection(3, z, 0., kCP3AdaptorTubeRo);
694
695 TGeoVolume* voCp3AtV = new TGeoVolume("CP3ATV", shCp3AtV, kMedVac);
696
697 TGeoPcon* shCp3AtS = new TGeoPcon(0., 360., 4);
698 // Bulge at transition
699 shCp3AtS->DefineSection(0, shCp3AtV->GetZ(0), kCP3AdaptorTubeBulgeRi, kCP3AdaptorTubeBulgeRo);
700 shCp3AtS->DefineSection(1, shCp3AtV->GetZ(1), kCP3AdaptorTubeBulgeRi, kCP3AdaptorTubeBulgeRo);
701 // Tube
702 shCp3AtS->DefineSection(2, shCp3AtV->GetZ(2), kCP3AdaptorTubeRi, kCP3AdaptorTubeRo);
703 shCp3AtS->DefineSection(3, shCp3AtV->GetZ(3), kCP3AdaptorTubeRi , kCP3AdaptorTubeRo);
704 TGeoVolume* voCp3AtS = new TGeoVolume("CP3ATS", shCp3AtS, kMedSteel);
705
706 voCp3AtV->AddNode(voCp3AtS, 1, gGeoIdentity);
707 dz = - kCP3Length / 2. + kCP3AdaptorTubeLength / 2.;
af5f3976 708 //FM voCp3Mo->AddNode(voCp3AtV, 1, new TGeoTranslation(0., 0., dz));
820b4d9e 709
710 /////////////////////////////////
711 // CP/3 Bellow section //
712 /////////////////////////////////
713
714 //
715 // Upper part of the undulation
716 TGeoTorus* plieTorusUO = new TGeoTorus(kCP3BellowRo - kCP3PlieR, 0. , kCP3PlieR);
717 plieTorusUO->SetName("TorusUO");
718 TGeoTorus* plieTorusUI = new TGeoTorus(kCP3BellowRo - kCP3PlieR, kCP3PlieR - kCP3PlieThickness, kCP3PlieR);
719 plieTorusUI->SetName("TorusUI");
720 TGeoTube* plieTubeU = new TGeoTube (kCP3BellowRo - kCP3PlieR, kCP3BellowRo, kCP3PlieR);
721 plieTubeU->SetName("TubeU");
722
723 TGeoCompositeShape* shUpperPlieO = new TGeoCompositeShape("upperPlieO", "TorusUO*TubeU");
724 TGeoCompositeShape* shUpperPlieI = new TGeoCompositeShape("upperPlieI", "TorusUI*TubeU");
725
726 TGeoVolume* voWiggleUO = new TGeoVolume("CP3WUO", shUpperPlieO, kMedVac);
727 TGeoVolume* voWiggleUI = new TGeoVolume("CP3WUI", shUpperPlieI, kMedSteel);
728 voWiggleUO->AddNode(voWiggleUI, 1, gGeoIdentity);
729 //
730 // Lower part of the undulation
731 TGeoTorus* plieTorusLO = new TGeoTorus(kCP3BellowRi + kCP3PlieR, 0. , kCP3PlieR);
732 plieTorusLO->SetName("TorusLO");
733 TGeoTorus* plieTorusLI = new TGeoTorus(kCP3BellowRi + kCP3PlieR, kCP3PlieR - kCP3PlieThickness, kCP3PlieR);
734 plieTorusLI->SetName("TorusLI");
735 TGeoTube* plieTubeL = new TGeoTube (kCP3BellowRi, kCP3BellowRi + kCP3PlieR, kCP3PlieR);
736 plieTubeL->SetName("TubeL");
737
738 TGeoCompositeShape* shLowerPlieO = new TGeoCompositeShape("lowerPlieO", "TorusLO*TubeL");
739 TGeoCompositeShape* shLowerPlieI = new TGeoCompositeShape("lowerPlieI", "TorusLI*TubeL");
740
741 TGeoVolume* voWiggleLO = new TGeoVolume("CP3WLO", shLowerPlieO, kMedVac);
742 TGeoVolume* voWiggleLI = new TGeoVolume("CP3WLI", shLowerPlieI, kMedSteel);
743 voWiggleLO->AddNode(voWiggleLI, 1, gGeoIdentity);
744
745 //
746 // Connection between upper and lower part of undulation
747 TGeoVolume* voWiggleC1 = new TGeoVolume("Q3WCO1",
748 new TGeoTube(kCP3BellowRi + kCP3PlieR, kCP3BellowRo - kCP3PlieR, kCP3PlieThickness / 2.),
749 kMedSteel);
750 TGeoVolume* voWiggleC2 = new TGeoVolume("Q3WCO2",
751 new TGeoTube(kCP3BellowRi + kCP3ConnectionPlieR, kCP3BellowRo - kCP3PlieR, kCP3PlieThickness / 2.),
752 kMedSteel);
753 //
754 // Conncetion between undulated section and beam pipe
755 TGeoTorus* plieTorusCO = new TGeoTorus(kCP3BellowRi + kCP3ConnectionPlieR, 0. , kCP3ConnectionPlieR);
756 plieTorusCO->SetName("TorusCO");
757 TGeoTorus* plieTorusCI = new TGeoTorus(kCP3BellowRi + kCP3ConnectionPlieR, kCP3ConnectionPlieR - kCP3PlieThickness, kCP3ConnectionPlieR);
758 plieTorusCI->SetName("TorusCI");
759 TGeoTube* plieTubeC = new TGeoTube (kCP3BellowRi, kCP3BellowRi + kCP3ConnectionPlieR, kCP3ConnectionPlieR);
760 plieTubeC->SetName("TubeC");
761
762 TGeoCompositeShape* shConnectionPlieO = new TGeoCompositeShape("connectionPlieO", "TorusCO*TubeC");
763 TGeoCompositeShape* shConnectionPlieI = new TGeoCompositeShape("connectionPlieI", "TorusCI*TubeC");
764
765 TGeoVolume* voConnectionPO = new TGeoVolume("CP3CPO", shConnectionPlieO, kMedVac);
766 TGeoVolume* voConnectionPI = new TGeoVolume("CP3CPI", shConnectionPlieI, kMedSteel);
767 voConnectionPO->AddNode(voConnectionPI, 1, gGeoIdentity);
768 //
769 // Connecting pipes
770 TGeoVolume* voConnectionPipeO = new TGeoVolume("CP3BECO",
771 new TGeoTube(0., kCP3AdaptorTubeRo, kCP3BellowConnectionLength / 2.),
772 kMedVac);
773 TGeoVolume* voConnectionPipeI = new TGeoVolume("CP3BECI",
774 new TGeoTube(kCP3AdaptorTubeRi, kCP3AdaptorTubeRo, kCP3BellowConnectionLength / 2.),
775 kMedSteel);
776
777 voConnectionPipeO->AddNode(voConnectionPipeI, 1, gGeoIdentity);
778
779 //
780 // Bellow mother
781 TGeoPcon* shBellowMotherPC = new TGeoPcon(0., 360., 6);
782 dz = - kCP3BellowLength / 2;
783 shBellowMotherPC->DefineSection(0, dz, 0., kCP3AdaptorTubeRo);
784 dz += kCP3BellowConnectionLength;
785 shBellowMotherPC->DefineSection(1, dz, 0., kCP3AdaptorTubeRo);
786 shBellowMotherPC->DefineSection(2, dz, 0., kCP3BellowRo);
787 dz = kCP3BellowLength /2. - kCP3BellowConnectionLength;;
788 shBellowMotherPC->DefineSection(3, dz, 0., kCP3BellowRo);
789 shBellowMotherPC->DefineSection(4, dz, 0., kCP3AdaptorTubeRo);
790 dz += kCP3BellowConnectionLength;
791 shBellowMotherPC->DefineSection(5, dz, 0., kCP3AdaptorTubeRo);
792
793 TGeoVolume* voBellowMother = new TGeoVolume("CP3BeMO", shBellowMotherPC, kMedVac);
794 voBellowMother->SetVisibility(0);
795
796 //
797 // Add undulations
798 z0 = - kCP3BellowLength / 2. + kCP3BellowConnectionLength + 2. * kCP3ConnectionPlieR - kCP3PlieThickness;
799 zsh = 4. * kCP3PlieR - 2. * kCP3PlieThickness;
800 for (Int_t iw = 0; iw < 18; iw++) {
801 Float_t zpos = z0 + iw * zsh;
802 if (iw > 0)
803 voBellowMother->AddNode(voWiggleC1, iw + 1 , new TGeoTranslation(0., 0., zpos + kCP3PlieThickness / 2.));
804 else
805 voBellowMother->AddNode(voWiggleC2, iw + 1 , new TGeoTranslation(0., 0., zpos + kCP3PlieThickness / 2.));
806
807 zpos += kCP3PlieR;
808 voBellowMother->AddNode(voWiggleUO, iw + 1, new TGeoTranslation(0., 0., zpos));
809
810 zpos += kCP3PlieR;
811 if (iw < 17)
812 voBellowMother->AddNode(voWiggleC1, iw + 19, new TGeoTranslation(0., 0., zpos - kCP3PlieThickness / 2.));
813 else
814 voBellowMother->AddNode(voWiggleC2, iw + 19, new TGeoTranslation(0., 0., zpos - kCP3PlieThickness / 2.));
815
816 if (iw < 17) {
817 zpos += kCP3PlieR;
818 voBellowMother->AddNode(voWiggleLO, iw + 1, new TGeoTranslation(0., 0., zpos - kCP3PlieThickness));
819 }
820 }
821 //
822 // Add connecting undulation between bellow and connecting pipe
823 dz = - kCP3BellowUndulatedLength / 2. + kCP3ConnectionPlieR;
824 voBellowMother->AddNode(voConnectionPO, 1, new TGeoTranslation(0., 0., dz));
825 voBellowMother->AddNode(voConnectionPO, 2, new TGeoTranslation(0., 0., -dz));
826 //
827 // Add connecting pipe
828 dz = - kCP3BellowLength / 2. + kCP3BellowConnectionLength / 2.;
829 voBellowMother->AddNode(voConnectionPipeO, 1, new TGeoTranslation(0., 0., dz));
830 voBellowMother->AddNode(voConnectionPipeO, 2, new TGeoTranslation(0., 0., -dz));
831 //
832 // Add bellow to CP/3 mother
833 dz = - kCP3Length / 2. + kCP3AdaptorTubeLength + kCP3BellowLength / 2.;
af5f3976 834 //FM voCp3Mo->AddNode(voBellowMother, 1, new TGeoTranslation(0., 0., dz));
820b4d9e 835 dz += (kCP3BellowLength + kCP3TubeLength);
af5f3976 836 //FM voCp3Mo->AddNode(voBellowMother, 2, new TGeoTranslation(0., 0., dz));
820b4d9e 837
838
839 ///////////////////////////////////////////
840 // Beam pipe section between bellows //
841 ///////////////////////////////////////////
842
843 TGeoVolume* voCp3Bco = new TGeoVolume("CP3BCO",
844 new TGeoTube(0., kCP3AdaptorTubeRo, kCP3TubeLength / 2.),
845 kMedVac);
846
847 TGeoVolume* voCp3Bci = new TGeoVolume("CP3BCI",
848 new TGeoTube(kCP3AdaptorTubeRi, kCP3AdaptorTubeRo, kCP3TubeLength / 2.),
849 kMedSteel);
850
851 voCp3Bco->AddNode(voCp3Bci, 1, gGeoIdentity);
852 dz = - kCP3Length / 2. + kCP3AdaptorTubeLength + kCP3BellowLength + kCP3TubeLength / 2.;
af5f3976 853 //FM voCp3Mo->AddNode(voCp3Bco, 1, new TGeoTranslation(0., 0., dz));
820b4d9e 854
855
856 ///////////////////////////////////////////
857 // CP3 Minimised Flange //
858 ///////////////////////////////////////////
859
860 TGeoPcon* shCp3mfo = new TGeoPcon(0., 360., 4);
861 z = - (kCP3FlangeConnectorLength + kCP3FlangeLength) / 2.;
862 // Connection Tube
863 shCp3mfo->DefineSection(0, z, 0., kCP3AdaptorTubeRo);
864 z += kCP3FlangeConnectorLength;
865 shCp3mfo->DefineSection(1, z, 0., kCP3AdaptorTubeRo);
866 // Flange
867 shCp3mfo->DefineSection(2, z, 0., kCP3FlangeRo);
868 z = - shCp3mfo->GetZ(0);
869 shCp3mfo->DefineSection(3, z, 0., kCP3FlangeRo);
870
871 TGeoVolume* voCp3mfo = new TGeoVolume("CP3MFO", shCp3mfo, kMedVac);
872
873
874 TGeoPcon* shCp3mfi = new TGeoPcon(0., 360., 4);
875 // Connection Tube
876 shCp3mfi->DefineSection(0, shCp3mfo->GetZ(0), kCP3AdaptorTubeRi, kCP3AdaptorTubeRo);
877 shCp3mfi->DefineSection(1, shCp3mfo->GetZ(1), kCP3AdaptorTubeRi, kCP3AdaptorTubeRo);
878 // Flange
879 shCp3mfi->DefineSection(2, shCp3mfo->GetZ(2), kCP3AdaptorTubeRi, kCP3FlangeRo);
880 shCp3mfi->DefineSection(3, shCp3mfo->GetZ(3), kCP3AdaptorTubeRi, kCP3FlangeRo);
881
882 TGeoVolume* voCp3mfi = new TGeoVolume("CP3MFI", shCp3mfi, kMedSteel);
883
884 voCp3mfo->AddNode(voCp3mfi, 1, gGeoIdentity);
885 dz = kCP3Length / 2. - (kCP3FlangeConnectorLength + kCP3FlangeLength) / 2.;
af5f3976 886 //FM voCp3Mo->AddNode(voCp3mfo, 1, new TGeoTranslation(0., 0., dz));
887
888 */
820b4d9e 889
890
891 /*
892 //
893 // Assemble the central beam pipe
894 //
895 TGeoVolumeAssembly* asCP = new TGeoVolumeAssembly("CP");
896 z = 0.;
897 // asCP->AddNode(voCp2, 1, gGeoIdentity);
898 z += kCP2Length / 2. + kCP1Length / 2.;
899 //asCP->AddNode(voCp1, 1, new TGeoTranslation(0., 0., z));
900
901 asCP->AddNode(voCp1, 1, new TGeoTranslation(0., 0., 0.));
902
903 z += kCP1Length / 2. + kCP3Length / 2.;
904 // asCP->AddNode(voCp3, 1, new TGeoTranslation(0., 0., z));
905 top->AddNode(asCP, 1, new TGeoCombiTrans(0., 0., 400. - kCP2Length / 2, rot180));
906
907 */
908
909
910 ////////////////////////////////////////////////////////////////////////////////
911 // //
912 // RB24/1 //
913 // //
914 ////////////////////////////////////////////////////////////////////////////////
915 //
916 //
917 // Drawing LHCVC2U_0001
918 // Copper Tube RB24/1 393.5 cm
919 // Warm module VMACA 18.0 cm
920 // Annular Ion Pump 35.0 cm
921 // Valve 7.5 cm
922 // Warm module VMABC 28.0 cm
923 // ================================
924 // 462.0 cm
925 //
926
927
928 // Copper Tube RB24/1
929 const Float_t kRB24CuTubeL = 393.5;
930 const Float_t kRB24CuTubeRi = 8.0/2.;
931 const Float_t kRB24CuTubeRo = 8.4/2.;
932 const Float_t kRB24CuTubeFRo = 7.6;
933 const Float_t kRB24CuTubeFL = 1.86;
934
935 TGeoVolume* voRB24CuTubeM = new TGeoVolume("voRB24CuTubeM",
936 new TGeoTube(0., kRB24CuTubeRo, kRB24CuTubeL/2.), kMedVac);
937 voRB24CuTubeM->SetVisibility(0);
938 TGeoVolume* voRB24CuTube = new TGeoVolume("voRB24CuTube",
939 new TGeoTube(kRB24CuTubeRi, kRB24CuTubeRo, kRB24CuTubeL/2.), kMedCu);
940 voRB24CuTubeM->AddNode(voRB24CuTube, 1, gGeoIdentity);
941 // Air outside tube with higher transport cuts
942 TGeoVolume* voRB24CuTubeA = new TGeoVolume("voRB24CuTubeA",
943 new TGeoTube(25., 100., kRB24CuTubeL/2.), kMedAirHigh);
944 voRB24CuTubeA->SetVisibility(0);
945 // Simplified DN 100 Flange
946 TGeoVolume* voRB24CuTubeF = new TGeoVolume("voRB24CuTubeF",
947 new TGeoTube(kRB24CuTubeRo, kRB24CuTubeFRo, kRB24CuTubeFL/2.), kMedSteel);
948
949 // Warm Module Type VMACA
950 // LHCVMACA_0002
951 //
952 // Pos 1 Warm Bellows DN100 LHCVBU__0012
953 // Pos 2 RF Contact D80 LHCVSR__0005
954 // Pos 3 Trans. Tube Flange LHCVSR__0065
955 // [Pos 4 Hex. Countersunk Screw Bossard BN4719]
956 // [Pos 5 Tension spring LHCVSR__0011]
957 //
958 //
959 //
960 // Pos1 Warm Bellows DN100
961 // Pos1.1 Bellows LHCVBU__0006
962 //
963 //
964 // Connection Tubes
965 // Connection tube inner r
966 const Float_t kRB24B1ConTubeRin = 10.0/2.;
967 // Connection tube outer r
968 const Float_t kRB24B1ConTubeRou = 10.3/2.;
969 // Connection tube length
970 const Float_t kRB24B1ConTubeL = 2.5;
971 //
972 const Float_t kRB24B1CompL = 16.00; // Length of the compensator
973 const Float_t kRB24B1BellowRi = 10.25/2.; // Bellow inner radius
974 const Float_t kRB24B1BellowRo = 11.40/2.; // Bellow outer radius
975 const Int_t kRB24B1NumberOfPlies = 27; // Number of plies
976 const Float_t kRB24B1BellowUndL = 11.00; // Length of undulated region
977 const Float_t kRB24B1PlieThickness = 0.015; // Plie thickness
978
979 const Float_t kRB24B1PlieRadius =
980 (kRB24B1BellowUndL + (2. * kRB24B1NumberOfPlies - 2.) * kRB24B1PlieThickness) / (4. * kRB24B1NumberOfPlies);
af5f3976 981
820b4d9e 982 const Float_t kRB24B1ProtTubeThickness = 0.02; // Thickness of the protection tube
983 const Float_t kRB24B1ProtTubeLength = 4.2; // Length of the protection tube
984
985 const Float_t kRB24B1RFlangeL = 1.86; // Length of the flanges
986 const Float_t kRB24B1RFlangeLO = 0.26; // Flange overlap
987 const Float_t kRB24B1RFlangeRO = 11.18/2; // Inner radius at Flange overlap
988 const Float_t kRB24B1RFlangeRou = 15.20/2.; // Outer radius of flange
989 const Float_t kRB24B1RFlangeRecess = 0.98; // Flange recess
990 const Float_t kRB24B1L = kRB24B1CompL + 2. * (kRB24B1RFlangeL - kRB24B1RFlangeRecess);
991
992 ///
993 //
994 // Bellow mother volume
995 TGeoPcon* shRB24B1BellowM = new TGeoPcon(0., 360., 14);
996 // Connection Tube and Flange
997 z = 0.;
998 shRB24B1BellowM->DefineSection( 0, z, 0., kRB24B1RFlangeRou);
999 z += kRB24B1RFlangeLO;
1000 shRB24B1BellowM->DefineSection( 1, z, 0., kRB24B1RFlangeRou);
1001 shRB24B1BellowM->DefineSection( 2, z, 0., kRB24B1RFlangeRou);
1002 z = kRB24B1RFlangeL;
1003 shRB24B1BellowM->DefineSection( 3, z, 0., kRB24B1RFlangeRou);
1004 shRB24B1BellowM->DefineSection( 4, z, 0., kRB24B1ConTubeRou);
1005 z = kRB24B1ConTubeL + kRB24B1RFlangeL - kRB24B1RFlangeRecess;
1006 shRB24B1BellowM->DefineSection( 5, z, 0., kRB24B1ConTubeRou);
1007 // Plie
1008 shRB24B1BellowM->DefineSection( 6, z, 0., kRB24B1BellowRo + kRB24B1ProtTubeThickness);
1009 z += kRB24B1BellowUndL;
1010 shRB24B1BellowM->DefineSection( 7, z, 0., kRB24B1BellowRo + kRB24B1ProtTubeThickness);
1011 shRB24B1BellowM->DefineSection( 8, z, 0., kRB24B1ConTubeRou);
1012 // Connection Tube and Flange
1013 z = kRB24B1L - shRB24B1BellowM->GetZ(3);
1014 shRB24B1BellowM->DefineSection( 9, z, 0., kRB24B1ConTubeRou);
1015 shRB24B1BellowM->DefineSection(10, z, 0., kRB24B1RFlangeRou);
1016 z = kRB24B1L - shRB24B1BellowM->GetZ(1);
1017 shRB24B1BellowM->DefineSection(11, z, 0., kRB24B1RFlangeRou);
1018 shRB24B1BellowM->DefineSection(12, z, 0., kRB24B1RFlangeRou);
1019 z = kRB24B1L - shRB24B1BellowM->GetZ(0);
1020 shRB24B1BellowM->DefineSection(13, z, 0., kRB24B1RFlangeRou);
1021
1022 TGeoVolume* voRB24B1BellowM = new TGeoVolume("RB24B1BellowM", shRB24B1BellowM, kMedVac);
1023 voRB24B1BellowM->SetVisibility(0);
1024 //
1025 // Bellow Section
1026 TGeoVolume* voRB24B1Bellow
1027 = MakeBellow("RB24B1", kRB24B1NumberOfPlies, kRB24B1BellowRi, kRB24B1BellowRo,
1028 kRB24B1BellowUndL, kRB24B1PlieRadius ,kRB24B1PlieThickness);
1029 voRB24B1Bellow->SetVisibility(0);
1030
1031 //
1032 // End Parts (connection tube)
1033 TGeoVolume* voRB24B1CT = new TGeoVolume("RB24B1CT", new TGeoTube(kRB24B1ConTubeRin, kRB24B1ConTubeRou, kRB24B1ConTubeL/2.), kMedSteel);
1034 //
1035 // Protection Tube
1036 TGeoVolume* voRB24B1PT = new TGeoVolume("RB24B1PT", new TGeoTube(kRB24B1BellowRo, kRB24B1BellowRo + kRB24B1ProtTubeThickness,
1037 kRB24B1ProtTubeLength / 2.), kMedSteel);
1038
1039 z = kRB24B1ConTubeL/2. + (kRB24B1RFlangeL - kRB24B1RFlangeRecess);
1040
1041 voRB24B1BellowM->AddNode(voRB24B1CT, 1, new TGeoTranslation(0., 0., z));
1042 z += (kRB24B1ConTubeL/2.+ kRB24B1BellowUndL/2.);
1043 voRB24B1BellowM->AddNode(voRB24B1Bellow, 1, new TGeoTranslation(0., 0., z));
1044 z += (kRB24B1BellowUndL/2. + kRB24B1ConTubeL/2);
1045 voRB24B1BellowM->AddNode(voRB24B1CT, 2, new TGeoTranslation(0., 0., z));
1046 z = kRB24B1ConTubeL + kRB24B1ProtTubeLength / 2. + 1. + kRB24B1RFlangeLO;
1047 voRB24B1BellowM->AddNode(voRB24B1PT, 1, new TGeoTranslation(0., 0., z));
1048 z += kRB24B1ProtTubeLength + 0.6;
1049 voRB24B1BellowM->AddNode(voRB24B1PT, 2, new TGeoTranslation(0., 0., z));
1050
1051
1052
1053 // Pos 1/2 Rotatable Flange LHCVBU__0013
1054 // Pos 1/3 Flange DN100/103 LHCVBU__0018
1055 // The two flanges can be represented by the same volume
1056 // Outer Radius (including the outer movable ring).
1057 // The inner ring has a diameter of 12.04 cm
1058
1059
1060 TGeoPcon* shRB24B1RFlange = new TGeoPcon(0., 360., 10);
1061 z = 0.;
1062 shRB24B1RFlange->DefineSection(0, z, 10.30/2., kRB24B1RFlangeRou);
1063 z += 0.55; // 5.5 mm added for outer ring
1064 z += 0.43;
1065 shRB24B1RFlange->DefineSection(1, z, 10.30/2., kRB24B1RFlangeRou);
1066 shRB24B1RFlange->DefineSection(2, z, 10.06/2., kRB24B1RFlangeRou);
1067 z += 0.15;
1068 shRB24B1RFlange->DefineSection(3, z, 10.06/2., kRB24B1RFlangeRou);
1069 // In reality this part is rounded
1070 shRB24B1RFlange->DefineSection(4, z, 10.91/2., kRB24B1RFlangeRou);
1071 z += 0.15;
1072 shRB24B1RFlange->DefineSection(5, z, 10.91/2., kRB24B1RFlangeRou);
1073 shRB24B1RFlange->DefineSection(6, z, 10.06/2., kRB24B1RFlangeRou);
1074 z += 0.32;
1075 shRB24B1RFlange->DefineSection(7, z, 10.06/2., kRB24B1RFlangeRou);
1076 shRB24B1RFlange->DefineSection(8, z, kRB24B1RFlangeRO, kRB24B1RFlangeRou);
1077 z += kRB24B1RFlangeLO;
1078 shRB24B1RFlange->DefineSection(9, z, kRB24B1RFlangeRO, kRB24B1RFlangeRou);
1079
1080 TGeoVolume* voRB24B1RFlange = new TGeoVolume("RB24B1RFlange", shRB24B1RFlange, kMedSteel);
1081
1082
1083 z = kRB24B1L - kRB24B1RFlangeL;
1084 voRB24B1BellowM->AddNode(voRB24B1RFlange, 1, new TGeoTranslation(0., 0., z));
1085 z = kRB24B1RFlangeL;
1086 voRB24B1BellowM->AddNode(voRB24B1RFlange, 2, new TGeoCombiTrans(0., 0., z, rot180));
1087 //
1088 // Pos 2 RF Contact D80 LHCVSR__0005
1089 //
1090 // Pos 2.1 RF Contact Flange LHCVSR__0003
1091 //
1092 TGeoPcon* shRB24B1RCTFlange = new TGeoPcon(0., 360., 6);
1093 const Float_t kRB24B1RCTFlangeRin = 8.06/2. + 0.05; // Inner radius
1094 const Float_t kRB24B1RCTFlangeL = 1.45; // Length
1095
1096 z = 0.;
1097 shRB24B1RCTFlange->DefineSection(0, z, kRB24B1RCTFlangeRin, 8.20/2.);
1098 z += 0.15;
1099 shRB24B1RCTFlange->DefineSection(1, z, kRB24B1RCTFlangeRin, 8.20/2.);
1100 shRB24B1RCTFlange->DefineSection(2, z, kRB24B1RCTFlangeRin, 8.60/2.);
1101 z += 1.05;
1102 shRB24B1RCTFlange->DefineSection(3, z, kRB24B1RCTFlangeRin, 8.60/2.);
1103 shRB24B1RCTFlange->DefineSection(4, z, kRB24B1RCTFlangeRin, 11.16/2.);
1104 z += 0.25;
1105 shRB24B1RCTFlange->DefineSection(5, z, kRB24B1RCTFlangeRin, 11.16/2.);
1106 TGeoVolume* voRB24B1RCTFlange = new TGeoVolume("RB24B1RCTFlange", shRB24B1RCTFlange, kMedCu);
1107 z = kRB24B1L - kRB24B1RCTFlangeL;
1108
1109 voRB24B1BellowM->AddNode(voRB24B1RCTFlange, 1, new TGeoTranslation(0., 0., z));
1110 //
1111 // Pos 2.2 RF-Contact LHCVSR__0004
1112 //
1113 TGeoPcon* shRB24B1RCT = new TGeoPcon(0., 360., 3);
1114 const Float_t kRB24B1RCTRin = 8.00/2.; // Inner radius
1115 const Float_t kRB24B1RCTCRin = 8.99/2.; // Max. inner radius conical section
1116 const Float_t kRB24B1RCTL = 11.78; // Length
1117 const Float_t kRB24B1RCTSL = 10.48; // Length of straight section
1118 const Float_t kRB24B1RCTd = 0.03; // Thickness
1119
1120 z = 0;
1121 shRB24B1RCT->DefineSection(0, z, kRB24B1RCTCRin, kRB24B1RCTCRin + kRB24B1RCTd);
1122 z = kRB24B1RCTL - kRB24B1RCTSL;
1123 // In the (VSR0004) this section is straight in (LHCVC2U_0001) it is conical ????
1124 shRB24B1RCT->DefineSection(1, z, kRB24B1RCTRin + 0.35, kRB24B1RCTRin + 0.35 + kRB24B1RCTd);
1125 z = kRB24B1RCTL - 0.03;
1126 shRB24B1RCT->DefineSection(2, z, kRB24B1RCTRin, kRB24B1RCTRin + kRB24B1RCTd);
1127
1128 TGeoVolume* voRB24B1RCT = new TGeoVolume("RB24B1RCT", shRB24B1RCT, kMedCu);
1129 z = kRB24B1L - kRB24B1RCTL - 0.45;
1130 voRB24B1BellowM->AddNode(voRB24B1RCT, 1, new TGeoTranslation(0., 0., z));
1131
1132 //
1133 // Pos 3 Trans. Tube Flange LHCVSR__0065
1134 //
1135 // Pos 3.1 Transition Tube D53 LHCVSR__0064
1136 // Pos 3.2 Transition Flange LHCVSR__0060
1137 // Pos 3.3 Transition Tube LHCVSR__0058
1138 TGeoPcon* shRB24B1TTF = new TGeoPcon(0., 360., 7);
1139 // Flange
1140 z = 0.;
1141 shRB24B1TTF->DefineSection(0, z, 6.30/2., 11.16/2.);
1142 z += 0.25;
1143 shRB24B1TTF->DefineSection(1, z, 6.30/2., 11.16/2.);
1144 shRB24B1TTF->DefineSection(2, z, 6.30/2., 9.3/2.);
1145 z += 0.55;
1146 shRB24B1TTF->DefineSection(3, z, 6.30/2., 9.3/2.);
1147 // Tube
1148 shRB24B1TTF->DefineSection(4, z, 6.30/2., 6.7/2.);
1149 z += 5.80;
1150 shRB24B1TTF->DefineSection(5, z, 6.30/2., 6.7/2.);
1151 // Transition Tube
1152 z += 3.75;
1153 shRB24B1TTF->DefineSection(6, z, 8.05/2., 8.45/2.);
1154 TGeoVolume* voRB24B1TTF = new TGeoVolume("RB24B1TTF", shRB24B1TTF, kMedSteel);
1155 z = 0.;
1156 voRB24B1BellowM->AddNode(voRB24B1TTF, 1, new TGeoTranslation(0., 0., z));
1157
1158 // Annular Ion Pump
1159 // LHCVC2U_0003
1160 //
1161 // Pos 1 Rotable Flange LHCVFX__0031
1162 // Pos 2 RF Screen Tube LHCVC2U_0005
1163 // Pos 3 Shell LHCVC2U_0007
1164 // Pos 4 Extruded Shell LHCVC2U_0006
1165 // Pos 5 Feedthrough Tube LHCVC2U_0004
1166 // Pos 6 Tubulated Flange STDVFUHV0021
1167 // Pos 7 Fixed Flange LHCVFX__0032
1168 // Pos 8 Pumping Elements
1169
1170 //
1171 // Pos 1 Rotable Flange LHCVFX__0031
1172 // pos 7 Fixed Flange LHCVFX__0032
1173 //
1174 // Mother volume
1175 const Float_t kRB24AIpML = 35.;
1176
1177 TGeoVolume* voRB24AIpM = new TGeoVolume("voRB24AIpM", new TGeoTube(0., 10., kRB24AIpML/2.), kMedAir);
1178 voRB24AIpM->SetVisibility(0);
1179
1180 //
1181 // Length 35 cm
1182 // Flange 2 x 1.98 = 3.96
1183 // Tube = 32.84
1184 //==========================
1185 // 36.80
1186 // Overlap 2 * 0.90 = 1.80
1187
1188 const Float_t kRB24IpRFD1 = 0.68; // Length of section 1
1189 const Float_t kRB24IpRFD2 = 0.30; // Length of section 2
1190 const Float_t kRB24IpRFD3 = 0.10; // Length of section 3
1191 const Float_t kRB24IpRFD4 = 0.35; // Length of section 4
1192 const Float_t kRB24IpRFD5 = 0.55; // Length of section 5
1193
1194 const Float_t kRB24IpRFRo = 15.20/2.; // Flange outer radius
1195 const Float_t kRB24IpRFRi1 = 6.30/2.; // Flange inner radius section 1
1196 const Float_t kRB24IpRFRi2 = 6.00/2.; // Flange inner radius section 2
1197 const Float_t kRB24IpRFRi3 = 5.84/2.; // Flange inner radius section 3
1198 const Float_t kRB24IpRFRi4 = 6.00/2.; // Flange inner radius section 1
1199 const Float_t kRB24IpRFRi5 = 10.50/2.; // Flange inner radius section 2
1200
1201 TGeoPcon* shRB24IpRF = new TGeoPcon(0., 360., 9);
1202 z0 = 0.;
1203 shRB24IpRF->DefineSection(0, z0, kRB24IpRFRi1, kRB24IpRFRo);
1204 z0 += kRB24IpRFD1;
1205 shRB24IpRF->DefineSection(1, z0, kRB24IpRFRi2, kRB24IpRFRo);
1206 z0 += kRB24IpRFD2;
1207 shRB24IpRF->DefineSection(2, z0, kRB24IpRFRi2, kRB24IpRFRo);
1208 shRB24IpRF->DefineSection(3, z0, kRB24IpRFRi3, kRB24IpRFRo);
1209 z0 += kRB24IpRFD3;
1210 shRB24IpRF->DefineSection(4, z0, kRB24IpRFRi3, kRB24IpRFRo);
1211 shRB24IpRF->DefineSection(5, z0, kRB24IpRFRi4, kRB24IpRFRo);
1212 z0 += kRB24IpRFD4;
1213 shRB24IpRF->DefineSection(6, z0, kRB24IpRFRi4, kRB24IpRFRo);
1214 shRB24IpRF->DefineSection(7, z0, kRB24IpRFRi5, kRB24IpRFRo);
1215 z0 += kRB24IpRFD5;
1216 shRB24IpRF->DefineSection(8, z0, kRB24IpRFRi5, kRB24IpRFRo);
1217
1218 TGeoVolume* voRB24IpRF = new TGeoVolume("RB24IpRF", shRB24IpRF, kMedSteel);
1219
1220 //
1221 // Pos 2 RF Screen Tube LHCVC2U_0005
1222 //
1223
1224 //
1225 // Tube
1226 Float_t kRB24IpSTTL = 32.84; // Total length of the tube
1227 Float_t kRB24IpSTTRi = 5.80/2.; // Inner Radius
1228 Float_t kRB24IpSTTRo = 6.00/2.; // Outer Radius
1229 TGeoVolume* voRB24IpSTT = new TGeoVolume("RB24IpSTT", new TGeoTube(kRB24IpSTTRi, kRB24IpSTTRo, kRB24IpSTTL/2.), kMedSteel);
1230 // Screen
1231 Float_t kRB24IpSTCL = 0.4; // Lenth of the crochet detail
1232 // Length of the screen
1233 Float_t kRB24IpSTSL = 9.00 - 2. * kRB24IpSTCL;
1234 // Rel. position of the screen
1235 Float_t kRB24IpSTSZ = 7.00 + kRB24IpSTCL;
1236 TGeoVolume* voRB24IpSTS = new TGeoVolume("RB24IpSTS", new TGeoTube(kRB24IpSTTRi, kRB24IpSTTRo, kRB24IpSTSL/2.), kMedSteel);
1237 // Vacuum
1238 TGeoVolume* voRB24IpSTV = new TGeoVolume("RB24IpSTV", new TGeoTube(0., kRB24IpSTTRi, kRB24AIpML/2.), kMedVac);
1239 //
1240 voRB24IpSTT->AddNode(voRB24IpSTS, 1, new TGeoTranslation(0., 0., kRB24IpSTSZ - kRB24IpSTTL/2. + kRB24IpSTSL/2.));
1241
1242 // Crochets
1243 // Inner radius
1244 Float_t kRB24IpSTCRi = kRB24IpSTTRo + 0.25;
1245 // Outer radius
1246 Float_t kRB24IpSTCRo = kRB24IpSTTRo + 0.35;
1247 // Length of 1stsection
1248 Float_t kRB24IpSTCL1 = 0.15;
1249 // Length of 2nd section
1250 Float_t kRB24IpSTCL2 = 0.15;
1251 // Length of 3rd section
1252 Float_t kRB24IpSTCL3 = 0.10;
1253 // Rel. position of 1st Crochet
1254
1255
1256 TGeoPcon* shRB24IpSTC = new TGeoPcon(0., 360., 5);
1257 z0 = 0;
1258 shRB24IpSTC->DefineSection(0, z0, kRB24IpSTCRi, kRB24IpSTCRo);
1259 z0 += kRB24IpSTCL1;
1260 shRB24IpSTC->DefineSection(1, z0, kRB24IpSTCRi, kRB24IpSTCRo);
1261 shRB24IpSTC->DefineSection(2, z0, kRB24IpSTTRo, kRB24IpSTCRo);
1262 z0 += kRB24IpSTCL2;
1263 shRB24IpSTC->DefineSection(3, z0, kRB24IpSTTRo, kRB24IpSTCRo);
1264 z0 += kRB24IpSTCL3;
1265 shRB24IpSTC->DefineSection(4, z0, kRB24IpSTTRo, kRB24IpSTTRo + 0.001);
1266 TGeoVolume* voRB24IpSTC = new TGeoVolume("RB24IpSTC", shRB24IpSTC, kMedSteel);
1267
1268 // Pos 3 Shell LHCVC2U_0007
1269 // Pos 4 Extruded Shell LHCVC2U_0006
1270 Float_t kRB24IpShellL = 4.45; // Length of the Shell
1271 Float_t kRB24IpShellD = 0.10; // Wall thickness of the shell
1272 Float_t kRB24IpShellCTRi = 6.70/2.; // Inner radius of the connection tube
1273 Float_t kRB24IpShellCTL = 1.56; // Length of the connection tube
1274 Float_t kRB24IpShellCARi = 17.80/2.; // Inner radius of the cavity
1275 Float_t kRB24IpShellCCRo = 18.20/2.; // Inner radius at the centre
1276
1277 TGeoPcon* shRB24IpShell = new TGeoPcon(0., 360., 7);
1278 z0 = 0;
1279 shRB24IpShell->DefineSection(0, z0, kRB24IpShellCTRi, kRB24IpShellCTRi + kRB24IpShellD);
1280 z0 += kRB24IpShellCTL;
1281 shRB24IpShell->DefineSection(1, z0, kRB24IpShellCTRi, kRB24IpShellCTRi + kRB24IpShellD);
1282 shRB24IpShell->DefineSection(2, z0, kRB24IpShellCTRi, kRB24IpShellCARi + kRB24IpShellD);
1283 z0 += kRB24IpShellD;
1284 shRB24IpShell->DefineSection(3, z0, kRB24IpShellCARi, kRB24IpShellCARi + kRB24IpShellD);
1285 z0 = kRB24IpShellL - kRB24IpShellD;
1286 shRB24IpShell->DefineSection(4, z0, kRB24IpShellCARi, kRB24IpShellCARi + kRB24IpShellD);
1287 shRB24IpShell->DefineSection(5, z0, kRB24IpShellCARi, kRB24IpShellCCRo);
1288 z0 = kRB24IpShellL;
1289 shRB24IpShell->DefineSection(6, z0, kRB24IpShellCARi, kRB24IpShellCCRo);
1290 TGeoVolume* voRB24IpShell = new TGeoVolume("RB24IpShell", shRB24IpShell, kMedSteel);
1291
1292 TGeoPcon* shRB24IpShellM = MakeMotherFromTemplate(shRB24IpShell, 0, 6, kRB24IpShellCTRi , 13);
1293
1294
1295 for (Int_t i = 0; i < 6; i++) {
1296 z = 2. * kRB24IpShellL - shRB24IpShellM->GetZ(5-i);
1297 Float_t rmin = shRB24IpShellM->GetRmin(5-i);
1298 Float_t rmax = shRB24IpShellM->GetRmax(5-i);
1299 shRB24IpShellM->DefineSection(7+i, z, rmin, rmax);
1300 }
1301
1302 TGeoVolume* voRB24IpShellM = new TGeoVolume("RB24IpShellM", shRB24IpShellM, kMedVac);
1303 voRB24IpShellM->SetVisibility(0);
1304 voRB24IpShellM->AddNode(voRB24IpShell, 1, gGeoIdentity);
1305 voRB24IpShellM->AddNode(voRB24IpShell, 2, new TGeoCombiTrans(0., 0., 2. * kRB24IpShellL, rot180));
1306 //
1307 // Pos 8 Pumping Elements
1308 //
1309 // Anode array
1310 TGeoVolume* voRB24IpPE = new TGeoVolume("voRB24IpPE", new TGeoTube(0.9, 1., 2.54/2.), kMedSteel);
1311 Float_t kRB24IpPEAR = 5.5;
1312
1313 for (Int_t i = 0; i < 15; i++) {
1314 Float_t phi = Float_t(i) * 24.;
1315 Float_t x = kRB24IpPEAR * TMath::Cos(kDegRad * phi);
1316 Float_t y = kRB24IpPEAR * TMath::Sin(kDegRad * phi);
1317 voRB24IpShellM->AddNode(voRB24IpPE, i+1, new TGeoTranslation(x, y, kRB24IpShellL));
1318 }
1319
1320
1321 //
1322 // Cathodes
1323 //
1324 // Here we could add some Ti strips
1325
1326 // Postioning of elements
1327 voRB24AIpM->AddNode(voRB24IpRF, 1, new TGeoTranslation(0., 0., -kRB24AIpML/2.));
1328 voRB24AIpM->AddNode(voRB24IpRF, 2, new TGeoCombiTrans (0., 0., +kRB24AIpML/2., rot180));
1329 voRB24AIpM->AddNode(voRB24IpSTT, 1, new TGeoTranslation(0., 0., 0.));
1330 voRB24AIpM->AddNode(voRB24IpSTV, 1, new TGeoTranslation(0., 0., 0.));
1331 voRB24AIpM->AddNode(voRB24IpShellM, 1, new TGeoTranslation(0., 0., -kRB24AIpML/2. + 8.13));
1332 voRB24AIpM->AddNode(voRB24IpSTC, 1, new TGeoTranslation(0., 0., 8.13 - kRB24AIpML/2.));
1333 voRB24AIpM->AddNode(voRB24IpSTC, 2, new TGeoCombiTrans (0., 0., 8.14 + 8.9 - kRB24AIpML/2., rot180));
1334
1335 //
1336 // Valve
1337 // VAC Series 47 DN 63 with manual actuator
1338 //
1339 const Float_t kRB24ValveWz = 7.5;
1340 const Float_t kRB24ValveDN = 10.0/2.;
1341 //
1342 // Body containing the valve plate
1343 //
1344 const Float_t kRB24ValveBoWx = 15.6;
1345 const Float_t kRB24ValveBoWy = (21.5 + 23.1 - 5.);
1346 const Float_t kRB24ValveBoWz = 4.6;
1347 const Float_t kRB24ValveBoD = 0.5;
1348
1349 TGeoVolume* voRB24ValveBoM =
1350 new TGeoVolume("RB24ValveBoM",
1351 new TGeoBBox( kRB24ValveBoWx/2., kRB24ValveBoWy/2., kRB24ValveBoWz/2.), kMedAir);
1352 voRB24ValveBoM->SetVisibility(0);
1353 TGeoVolume* voRB24ValveBo =
1354 new TGeoVolume("RB24ValveBo",
1355 new TGeoBBox( kRB24ValveBoWx/2., kRB24ValveBoWy/2., kRB24ValveBoWz/2.), kMedSteel);
1356 voRB24ValveBoM->AddNode(voRB24ValveBo, 1, gGeoIdentity);
1357 //
1358 // Inner volume
1359 //
1360 TGeoVolume* voRB24ValveBoI = new TGeoVolume("RB24ValveBoI",
1361 new TGeoBBox( kRB24ValveBoWx/2. - kRB24ValveBoD,
1362 kRB24ValveBoWy/2. - kRB24ValveBoD/2.,
1363 kRB24ValveBoWz/2. - kRB24ValveBoD),
1364 kMedVac);
1365 voRB24ValveBo->AddNode(voRB24ValveBoI, 1, new TGeoTranslation(0., kRB24ValveBoD/2., 0.));
1366 //
1367 // Opening and Flanges
1368 const Float_t kRB24ValveFlRo = 18./2.;
1369 const Float_t kRB24ValveFlD = 1.45;
1370 TGeoVolume* voRB24ValveBoA = new TGeoVolume("RB24ValveBoA",
1371 new TGeoTube(0., kRB24ValveDN/2., kRB24ValveBoD/2.), kMedVac);
1372 voRB24ValveBo->AddNode(voRB24ValveBoA, 1, new TGeoTranslation(0., - kRB24ValveBoWy/2. + 21.5, -kRB24ValveBoWz/2. + kRB24ValveBoD/2.));
1373 voRB24ValveBo->AddNode(voRB24ValveBoA, 2, new TGeoTranslation(0., - kRB24ValveBoWy/2. + 21.5, +kRB24ValveBoWz/2. - kRB24ValveBoD/2.));
1374
1375 TGeoVolume* voRB24ValveFl = new TGeoVolume("RB24ValveFl", new TGeoTube(kRB24ValveDN/2., kRB24ValveFlRo, kRB24ValveFlD/2.), kMedSteel);
1376 TGeoVolume* voRB24ValveFlI = new TGeoVolume("RB24ValveFlI", new TGeoTube(0., kRB24ValveFlRo, kRB24ValveFlD/2.), kMedVac);
1377 voRB24ValveFlI->AddNode(voRB24ValveFl, 1, gGeoIdentity);
1378
1379 //
1380 // Actuator Flange
1381 const Float_t kRB24ValveAFlWx = 18.9;
1382 const Float_t kRB24ValveAFlWy = 5.0;
1383 const Float_t kRB24ValveAFlWz = 7.7;
1384 TGeoVolume* voRB24ValveAFl = new TGeoVolume("RB24ValveAFl", new TGeoBBox(kRB24ValveAFlWx/2., kRB24ValveAFlWy/2., kRB24ValveAFlWz/2.), kMedSteel);
1385 //
1386 // Actuator Tube
1387 const Float_t kRB24ValveATRo = 9.7/2.;
1388 const Float_t kRB24ValveATH = 16.6;
1389 TGeoVolume* voRB24ValveAT = new TGeoVolume("RB24ValveAT", new TGeoTube(kRB24ValveATRo - 2. * kRB24ValveBoD,kRB24ValveATRo, kRB24ValveATH/2.),
1390 kMedSteel);
1391 //
1392 // Manual Actuator (my best guess)
1393 TGeoVolume* voRB24ValveMA1 = new TGeoVolume("RB24ValveMA1", new TGeoCone(2.5/2., 0., 0.5, 4.5, 5.), kMedSteel);
1394 TGeoVolume* voRB24ValveMA2 = new TGeoVolume("RB24ValveMA2", new TGeoTorus(5., 0., 1.25), kMedSteel);
1395 TGeoVolume* voRB24ValveMA3 = new TGeoVolume("RB24ValveMA3", new TGeoTube (0., 1.25, 2.5), kMedSteel);
1396
1397
1398 //
1399 // Position all volumes
1400 Float_t y0;
1401 TGeoVolumeAssembly* voRB24ValveMo = new TGeoVolumeAssembly("RB24ValveMo");
1402 voRB24ValveMo->AddNode(voRB24ValveFl, 1, new TGeoTranslation(0., 0., - 7.5/2. + kRB24ValveFlD/2.));
1403 voRB24ValveMo->AddNode(voRB24ValveFl, 2, new TGeoTranslation(0., 0., + 7.5/2. - kRB24ValveFlD/2.));
1404 y0 = -21.5;
1405 voRB24ValveMo->AddNode(voRB24ValveBoM, 1, new TGeoTranslation(0., y0 + kRB24ValveBoWy/2., 0.));
1406 y0 += kRB24ValveBoWy;
1407 voRB24ValveMo->AddNode(voRB24ValveAFl, 1, new TGeoTranslation(0., y0 + kRB24ValveAFlWy/2., 0.));
1408 y0 += kRB24ValveAFlWy;
1409 voRB24ValveMo->AddNode(voRB24ValveAT, 1, new TGeoCombiTrans(0., y0 + kRB24ValveATH/2., 0., rotyz));
1410 y0 += kRB24ValveATH;
1411 voRB24ValveMo->AddNode(voRB24ValveMA1, 1, new TGeoCombiTrans(0., y0 + 2.5/2., 0., rotyz));
1412 y0 += 2.5;
1413 voRB24ValveMo->AddNode(voRB24ValveMA2, 1, new TGeoCombiTrans(0., y0 + 2.5/2., 0., rotyz));
1414 y0 += 2.5;
1415 voRB24ValveMo->AddNode(voRB24ValveMA3, 1, new TGeoCombiTrans(5./TMath::Sqrt(2.), y0 + 5.0/2., 5./TMath::Sqrt(2.), rotyz));
1416 //
1417 // Warm Module Type VMABC
1418 // LHCVMABC_0002
1419 //
1420 //
1421 //
1422 // Flange 1.00
1423 // Central Piece 11.50
1424 // Bellow 14.50
1425 // End Flange 1.00
1426 //===================================
1427 // Total 28.00
1428 //
1429 // Pos 1 Warm Bellows DN100 LHCVBU__0016
1430 // Pos 2 Trans. Tube Flange LHCVSR__0062
1431 // Pos 3 RF Contact D63 LHCVSR__0057
1432 // [Pos 4 Hex. Countersunk Screw Bossard BN4719]
1433 // [Pos 5 Tension spring LHCVSR__00239]
1434 //
1435
1436 // Pos 1 Warm Bellows DN100 LHCVBU__0016
1437 // Pos 1.1 Right Body 2 Ports with Support LHCVBU__0014
1438 //
1439 // Tube 1
1440 const Float_t kRB24VMABCRBT1Ri = 10.0/2.;
1441 const Float_t kRB24VMABCRBT1Ro = 10.3/2.;
1442 const Float_t kRB24VMABCRBT1L = 11.5;
1443 const Float_t kRB24VMABCRBT1L2 = 8.;
1444 const Float_t kRB24VMABCL = 28.;
1445
1446 TGeoTube* shRB24VMABCRBT1 = new TGeoTube(kRB24VMABCRBT1Ri, kRB24VMABCRBT1Ro, kRB24VMABCRBT1L/2.);
1447 shRB24VMABCRBT1->SetName("RB24VMABCRBT1");
1448 TGeoTube* shRB24VMABCRBT1o = new TGeoTube(0., kRB24VMABCRBT1Ro, kRB24VMABCRBT1L/2.);
1449 shRB24VMABCRBT1o->SetName("RB24VMABCRBT1o");
1450 TGeoTube* shRB24VMABCRBT1o2 = new TGeoTube(0., kRB24VMABCRBT1Ro + 0.3, kRB24VMABCRBT1L/2.);
1451 shRB24VMABCRBT1o2->SetName("RB24VMABCRBT1o2");
1452 // Lower inforcement
1453 TGeoVolume* voRB24VMABCRBT12 = new TGeoVolume("RB24VMABCRBT12",
1454 new TGeoTubeSeg(kRB24VMABCRBT1Ro, kRB24VMABCRBT1Ro + 0.3, kRB24VMABCRBT1L2/2., 220., 320.)
1455 , kMedSteel);
1456 //
1457 // Tube 2
1458 const Float_t kRB24VMABCRBT2Ri = 6.0/2.;
1459 const Float_t kRB24VMABCRBT2Ro = 6.3/2.;
1460 const Float_t kRB24VMABCRBF2Ro = 11.4/2.;
1461 const Float_t kRB24VMABCRBT2L = 5.95 + 2.; // 2. cm added for welding
1462 const Float_t kRB24VMABCRBF2L = 1.75;
1463 TGeoTube* shRB24VMABCRBT2 = new TGeoTube(kRB24VMABCRBT2Ri, kRB24VMABCRBT2Ro, kRB24VMABCRBT2L/2.);
1464 shRB24VMABCRBT2->SetName("RB24VMABCRBT2");
1465 TGeoTube* shRB24VMABCRBT2i = new TGeoTube(0., kRB24VMABCRBT2Ri, kRB24VMABCRBT2L/2. + 2.);
1466 shRB24VMABCRBT2i->SetName("RB24VMABCRBT2i");
1467 TGeoCombiTrans* tRBT2 = new TGeoCombiTrans(-11.5 + kRB24VMABCRBT2L/2., 0., 7.2 - kRB24VMABCRBT1L/2. , rotxz);
1468 tRBT2->SetName("tRBT2");
1469 tRBT2->RegisterYourself();
1470 TGeoCompositeShape* shRB24VMABCRBT2c = new TGeoCompositeShape("shRB24VMABCRBT2c","RB24VMABCRBT2:tRBT2-RB24VMABCRBT1o");
1471 TGeoVolume* voRB24VMABCRBT2 = new TGeoVolume("shRB24VMABCRBT2", shRB24VMABCRBT2c, kMedSteel);
1472 // Flange
1473 // Pos 1.4 Flange DN63 LHCVBU__0008
1474 TGeoVolume* voRB24VMABCRBF2 = new TGeoVolume("RB24VMABCRBF2",
1475 new TGeoTube(kRB24VMABCRBT2Ro, kRB24VMABCRBF2Ro, kRB24VMABCRBF2L/2.), kMedSteel);
1476 // DN63 Blank Flange (my best guess)
1477 TGeoVolume* voRB24VMABCRBF2B = new TGeoVolume("RB24VMABCRBF2B",
1478 new TGeoTube(0., kRB24VMABCRBF2Ro, kRB24VMABCRBF2L/2.), kMedSteel);
1479 //
1480 // Tube 3
1481 const Float_t kRB24VMABCRBT3Ri = 3.5/2.;
1482 const Float_t kRB24VMABCRBT3Ro = 3.8/2.;
1483 const Float_t kRB24VMABCRBF3Ro = 7.0/2.;
1484 const Float_t kRB24VMABCRBT3L = 4.95 + 2.; // 2. cm added for welding
1485 const Float_t kRB24VMABCRBF3L = 1.27;
1486 TGeoTube* shRB24VMABCRBT3 = new TGeoTube(kRB24VMABCRBT3Ri, kRB24VMABCRBT3Ro, kRB24VMABCRBT3L/2);
1487 shRB24VMABCRBT3->SetName("RB24VMABCRBT3");
1488 TGeoTube* shRB24VMABCRBT3i = new TGeoTube(0., kRB24VMABCRBT3Ri, kRB24VMABCRBT3L/2. + 2.);
1489 shRB24VMABCRBT3i->SetName("RB24VMABCRBT3i");
1490 TGeoCombiTrans* tRBT3 = new TGeoCombiTrans(0., 10.5 - kRB24VMABCRBT3L/2., 7.2 - kRB24VMABCRBT1L/2. , rotyz);
1491 tRBT3->SetName("tRBT3");
1492 tRBT3->RegisterYourself();
1493 TGeoCompositeShape* shRB24VMABCRBT3c = new TGeoCompositeShape("shRB24VMABCRBT3c","RB24VMABCRBT3:tRBT3-RB24VMABCRBT1o");
1494 TGeoVolume* voRB24VMABCRBT3 = new TGeoVolume("shRB24VMABCRBT3", shRB24VMABCRBT3c, kMedSteel);
1495 // Flange
1496 // Pos 1.4 Flange DN35 LHCVBU__0007
1497 TGeoVolume* voRB24VMABCRBF3 = new TGeoVolume("RB24VMABCRBF3",
1498 new TGeoTube(kRB24VMABCRBT3Ro, kRB24VMABCRBF3Ro, kRB24VMABCRBF3L/2.), kMedSteel);
1499 //
1500 // Tube 4
1501 const Float_t kRB24VMABCRBT4Ri = 6.0/2.;
1502 const Float_t kRB24VMABCRBT4Ro = 6.4/2.;
1503 const Float_t kRB24VMABCRBT4L = 6.6;
1504 TGeoTube* shRB24VMABCRBT4 = new TGeoTube(kRB24VMABCRBT4Ri, kRB24VMABCRBT4Ro, kRB24VMABCRBT4L/2.);
1505 shRB24VMABCRBT4->SetName("RB24VMABCRBT4");
1506 TGeoCombiTrans* tRBT4 = new TGeoCombiTrans(0.,-11.+kRB24VMABCRBT4L/2., 7.2 - kRB24VMABCRBT1L/2. , rotyz);
1507 tRBT4->SetName("tRBT4");
1508 tRBT4->RegisterYourself();
1509 TGeoCompositeShape* shRB24VMABCRBT4c = new TGeoCompositeShape("shRB24VMABCRBT4c","RB24VMABCRBT4:tRBT4-RB24VMABCRBT1o2");
1510 TGeoVolume* voRB24VMABCRBT4 = new TGeoVolume("shRB24VMABCRBT4", shRB24VMABCRBT4c, kMedSteel);
1511 TGeoCompositeShape* shRB24VMABCRB = new TGeoCompositeShape("shRB24VMABCRB", "RB24VMABCRBT1-(RB24VMABCRBT2i:tRBT2+RB24VMABCRBT3i:tRBT3)");
1512 TGeoVolume* voRB24VMABCRBI = new TGeoVolume("RB24VMABCRBI", shRB24VMABCRB, kMedSteel);
1513 //
1514 // Plate
1515 const Float_t kRB24VMABCRBBx = 16.0;
1516 const Float_t kRB24VMABCRBBy = 1.5;
1517 const Float_t kRB24VMABCRBBz = 15.0;
1518
1519 // Relative position of tubes
1520 const Float_t kRB24VMABCTz = 7.2;
1521 // Relative position of plate
1522 const Float_t kRB24VMABCPz = 3.6;
1523 const Float_t kRB24VMABCPy = -12.5;
1524
1525 TGeoVolume* voRB24VMABCRBP = new TGeoVolume("RB24VMABCRBP", new TGeoBBox(kRB24VMABCRBBx/2., kRB24VMABCRBBy/2., kRB24VMABCRBBz/2.), kMedSteel);
1526 //
1527 // Pirani Gauge (my best guess)
1528 //
1529 TGeoPcon* shRB24VMABCPirani = new TGeoPcon(0., 360., 15);
1530 // DN35/16 Coupling
1531 z = 0;
1532 shRB24VMABCPirani->DefineSection( 0, z, 0.8 , kRB24VMABCRBF3Ro);
1533 z += kRB24VMABCRBF3L; // 1.3
1534 shRB24VMABCPirani->DefineSection( 1, z, 0.8 , kRB24VMABCRBF3Ro);
1535 shRB24VMABCPirani->DefineSection( 2, z, 0.8 , 1.0);
1536 // Pipe
1537 z += 2.8;
1538 shRB24VMABCPirani->DefineSection( 3, z, 0.8 , 1.0);
1539 // Flange
1540 shRB24VMABCPirani->DefineSection( 4, z, 0.8 , 1.75);
1541 z += 1.6;
1542 shRB24VMABCPirani->DefineSection( 5, z, 0.8 , 1.75);
1543 shRB24VMABCPirani->DefineSection( 6, z, 0.8 , 1.0);
1544 z += 5.2;
1545 shRB24VMABCPirani->DefineSection( 7, z, 0.8 , 1.0);
1546 shRB24VMABCPirani->DefineSection( 8, z, 0.8 , 2.5);
1547 z += 2.0;
1548 shRB24VMABCPirani->DefineSection( 9, z, 0.80, 2.50);
1549 shRB24VMABCPirani->DefineSection(10, z, 1.55, 1.75);
1550 z += 5.7;
1551 shRB24VMABCPirani->DefineSection(11, z, 1.55, 1.75);
1552 shRB24VMABCPirani->DefineSection(11, z, 0.00, 1.75);
1553 z += 0.2;
1554 shRB24VMABCPirani->DefineSection(12, z, 0.00, 1.75);
1555 shRB24VMABCPirani->DefineSection(13, z, 0.00, 0.75);
1556 z += 0.5;
1557 shRB24VMABCPirani->DefineSection(14, z, 0.00, 0.75);
1558 TGeoVolume* voRB24VMABCPirani = new TGeoVolume("RB24VMABCPirani", shRB24VMABCPirani, kMedSteel);
1559 //
1560 //
1561 //
1562
1563
1564 //
1565 // Positioning of elements
1566 TGeoVolumeAssembly* voRB24VMABCRB = new TGeoVolumeAssembly("RB24VMABCRB");
1567 //
1568 voRB24VMABCRB->AddNode(voRB24VMABCRBI, 1, gGeoIdentity);
1569 // Plate
1570 voRB24VMABCRB->AddNode(voRB24VMABCRBP, 1, new TGeoTranslation(0., kRB24VMABCPy + kRB24VMABCRBBy /2.,
1571 kRB24VMABCRBBz/2. - kRB24VMABCRBT1L/2. + kRB24VMABCPz));
1572 // Tube 2
1573 voRB24VMABCRB->AddNode(voRB24VMABCRBT2, 1, gGeoIdentity);
1574 // Flange Tube 2
1575 voRB24VMABCRB->AddNode(voRB24VMABCRBF2, 1, new TGeoCombiTrans(kRB24VMABCPy + kRB24VMABCRBF2L/2., 0., kRB24VMABCTz - kRB24VMABCRBT1L/2., rotxz));
1576 // Blank Flange Tube 2
1577 voRB24VMABCRB->AddNode(voRB24VMABCRBF2B, 1, new TGeoCombiTrans(kRB24VMABCPy- kRB24VMABCRBF2L/2., 0., kRB24VMABCTz - kRB24VMABCRBT1L/2., rotxz));
1578 // Tube 3
1579 voRB24VMABCRB->AddNode(voRB24VMABCRBT3, 1, gGeoIdentity);
1580 // Flange Tube 3
1581 voRB24VMABCRB->AddNode(voRB24VMABCRBF3, 1, new TGeoCombiTrans(0., 11.2 - kRB24VMABCRBF3L/2., kRB24VMABCTz - kRB24VMABCRBT1L/2., rotyz));
1582 // Pirani Gauge
1583 voRB24VMABCRB->AddNode(voRB24VMABCPirani, 1, new TGeoCombiTrans(0., 11.2, kRB24VMABCTz - kRB24VMABCRBT1L/2., rotyz));
1584 // Tube 4
1585 voRB24VMABCRB->AddNode(voRB24VMABCRBT4, 1, gGeoIdentity);
1586 // Inforcement
1587 voRB24VMABCRB->AddNode(voRB24VMABCRBT12, 1, new TGeoTranslation(0., 0., kRB24VMABCRBT1L2/2. - kRB24VMABCRBT1L/2. + 2.8));
1588
1589
1590 // Pos 1.3 Bellows with end part LHCVBU__0002
1591 //
1592 // Connection Tube
1593 // Connection tube inner r
1594 const Float_t kRB24VMABBEConTubeRin = 10.0/2.;
1595 // Connection tube outer r
1596 const Float_t kRB24VMABBEConTubeRou = 10.3/2.;
1597 // Connection tube length
1598 const Float_t kRB24VMABBEConTubeL1 = 0.9;
1599 const Float_t kRB24VMABBEConTubeL2 = 2.6;
1600 // const Float_t RB24VMABBEBellowL = kRB24VMABBEConTubeL1 + kRB24VMABBEConTubeL2 + kRB24B1BellowUndL;
1601
1602 // Mother volume
1603 TGeoPcon* shRB24VMABBEBellowM = new TGeoPcon(0., 360., 6);
1604 // Connection Tube and Flange
1605 z = 0.;
1606 shRB24VMABBEBellowM->DefineSection( 0, z, kRB24VMABBEConTubeRin, kRB24VMABBEConTubeRou);
1607 z += kRB24VMABBEConTubeL1;
1608 shRB24VMABBEBellowM->DefineSection( 1, z, kRB24VMABBEConTubeRin, kRB24VMABBEConTubeRou);
1609 shRB24VMABBEBellowM->DefineSection( 2, z, kRB24B1BellowRi, kRB24B1BellowRo + kRB24B1ProtTubeThickness);
1610 z += kRB24B1BellowUndL;
1611 shRB24VMABBEBellowM->DefineSection( 3, z, kRB24B1BellowRi, kRB24B1BellowRo + kRB24B1ProtTubeThickness);
1612 shRB24VMABBEBellowM->DefineSection( 4, z, kRB24VMABBEConTubeRin, kRB24VMABBEConTubeRou);
1613 z += kRB24VMABBEConTubeL2;
1614 shRB24VMABBEBellowM->DefineSection( 5, z, kRB24VMABBEConTubeRin, kRB24VMABBEConTubeRou);
1615 TGeoVolume* voRB24VMABBEBellowM = new TGeoVolume("RB24VMABBEBellowM", shRB24VMABBEBellowM, kMedVac);
1616 voRB24VMABBEBellowM->SetVisibility(0);
1617
1618 // Connection tube left
1619 TGeoVolume* voRB24VMABBECT1 = new TGeoVolume("RB24VMABBECT1",
1620 new TGeoTube(kRB24VMABBEConTubeRin, kRB24VMABBEConTubeRou,kRB24VMABBEConTubeL1/2.),
1621 kMedSteel);
1622 // Connection tube right
1623 TGeoVolume* voRB24VMABBECT2 = new TGeoVolume("RB24VMABBECT2",
1624 new TGeoTube(kRB24VMABBEConTubeRin, kRB24VMABBEConTubeRou,kRB24VMABBEConTubeL2/2.),
1625 kMedSteel);
1626 z = kRB24VMABBEConTubeL1/2.;
1627 voRB24VMABBEBellowM->AddNode(voRB24VMABBECT1, 1, new TGeoTranslation(0., 0., z));
1628 z += kRB24VMABBEConTubeL1/2.;
1629 z += kRB24B1BellowUndL/2.;
1630 voRB24VMABBEBellowM->AddNode(voRB24B1Bellow, 2, new TGeoTranslation(0., 0., z));
1631 z += kRB24B1BellowUndL/2.;
1632 z += kRB24VMABBEConTubeL2/2.;
1633 voRB24VMABBEBellowM->AddNode(voRB24VMABBECT2, 1, new TGeoTranslation(0., 0., z));
1634 z += kRB24VMABBEConTubeL2/2.;
1635
1636 voRB24VMABCRB->AddNode(voRB24VMABBEBellowM, 1, new TGeoTranslation(0., 0., kRB24VMABCRBT1L/2.));
1637
1638 // Pos 1.2 Rotable flange LHCVBU__0013[*]
1639 // Front
1640 voRB24VMABCRB->AddNode(voRB24B1RFlange, 3, new TGeoCombiTrans(0., 0., - kRB24VMABCRBT1L/2. + 0.86, rot180));
1641 // End
1642 z = kRB24VMABCRBT1L/2. + kRB24B1BellowUndL +kRB24VMABBEConTubeL1 + kRB24VMABBEConTubeL2;
1643 voRB24VMABCRB->AddNode(voRB24B1RFlange, 4, new TGeoTranslation(0., 0., z - 0.86));
1644
1645
1646 // Pos 2 Trans. Tube Flange LHCVSR__0062
1647 // Pos 2.1 Transition Tube LHCVSR__0063
1648 // Pos 2.2 Transition Flange LHCVSR__0060
1649 //
1650 // Transition Tube with Flange
1651 TGeoPcon* shRB24VMABCTT = new TGeoPcon(0., 360., 7);
1652 z = 0.;
1653 shRB24VMABCTT->DefineSection(0, z, 6.3/2., 11.16/2.);
1654 z += 0.25;
1655 shRB24VMABCTT->DefineSection(1, z, 6.3/2., 11.16/2.);
1656 shRB24VMABCTT->DefineSection(2, z, 6.3/2., 9.30/2.);
1657 z += 0.25;
1658 shRB24VMABCTT->DefineSection(3, z, 6.3/2., 9.30/2.);
1659 shRB24VMABCTT->DefineSection(4, z, 6.3/2., 6.70/2.);
1660 z += (20.35 - 0.63);
1661 shRB24VMABCTT->DefineSection(5, z, 6.3/2., 6.7/2.);
1662 z += 0.63;
1663 shRB24VMABCTT->DefineSection(6, z, 6.3/2., 6.7/2.);
1664 TGeoVolume* voRB24VMABCTT = new TGeoVolume("RB24VMABCTT", shRB24VMABCTT, kMedSteel);
1665 voRB24VMABCRB->AddNode(voRB24VMABCTT, 1, new TGeoTranslation(0., 0., - kRB24VMABCRBT1L/2.-1.));
1666
1667 // Pos 3 RF Contact D63 LHCVSR__0057
1668 // Pos 3.1 RF Contact Flange LHCVSR__0017
1669 //
1670 TGeoPcon* shRB24VMABCCTFlange = new TGeoPcon(0., 360., 6);
1671 const Float_t kRB24VMABCCTFlangeRin = 6.36/2.; // Inner radius
1672 const Float_t kRB24VMABCCTFlangeL = 1.30; // Length
1673
1674 z = 0.;
1675 shRB24VMABCCTFlange->DefineSection(0, z, kRB24VMABCCTFlangeRin, 6.5/2.);
1676 z += 0.15;
1677 shRB24VMABCCTFlange->DefineSection(1, z, kRB24VMABCCTFlangeRin, 6.5/2.);
1678 shRB24VMABCCTFlange->DefineSection(2, z, kRB24VMABCCTFlangeRin, 6.9/2.);
1679 z += 0.9;
1680 shRB24VMABCCTFlange->DefineSection(3, z, kRB24VMABCCTFlangeRin, 6.9/2.);
1681 shRB24VMABCCTFlange->DefineSection(4, z, kRB24VMABCCTFlangeRin, 11.16/2.);
1682 z += 0.25;
1683 shRB24VMABCCTFlange->DefineSection(5, z, kRB24VMABCCTFlangeRin, 11.16/2.);
1684 TGeoVolume* voRB24VMABCCTFlange = new TGeoVolume("RB24VMABCCTFlange", shRB24VMABCCTFlange, kMedCu);
1685 //
1686 // Pos 3.2 RF-Contact LHCVSR__0056
1687 //
1688 TGeoPcon* shRB24VMABCCT = new TGeoPcon(0., 360., 4);
1689 const Float_t kRB24VMABCCTRin = 6.30/2.; // Inner radius
1690 const Float_t kRB24VMABCCTCRin = 7.29/2.; // Max. inner radius conical section
1691 const Float_t kRB24VMABCCTL = 11.88; // Length
1692 const Float_t kRB24VMABCCTSL = 10.48; // Length of straight section
1693 const Float_t kRB24VMABCCTd = 0.03; // Thickness
1694 z = 0;
1695 shRB24VMABCCT->DefineSection(0, z, kRB24VMABCCTCRin, kRB24VMABCCTCRin + kRB24VMABCCTd);
1696 z = kRB24VMABCCTL - kRB24VMABCCTSL;
1697 shRB24VMABCCT->DefineSection(1, z, kRB24VMABCCTRin + 0.35, kRB24VMABCCTRin + 0.35 + kRB24VMABCCTd);
1698 z = kRB24VMABCCTL - kRB24VMABCCTFlangeL;
1699 shRB24VMABCCT->DefineSection(2, z, kRB24VMABCCTRin, kRB24VMABCCTRin + kRB24VMABCCTd);
1700 z = kRB24VMABCCTL;
1701 shRB24VMABCCT->DefineSection(3, z, kRB24VMABCCTRin, kRB24VMABCCTRin + kRB24VMABCCTd);
1702
1703 TGeoVolume* voRB24VMABCCT = new TGeoVolume("RB24VMABCCT", shRB24VMABCCT, kMedCu);
1704
1705 TGeoVolumeAssembly* voRB24VMABRFCT = new TGeoVolumeAssembly("RB24VMABRFCT");
1706 voRB24VMABRFCT->AddNode(voRB24VMABCCT, 1, gGeoIdentity);
1707 voRB24VMABRFCT->AddNode( voRB24VMABCCTFlange, 1, new TGeoTranslation(0., 0., kRB24VMABCCTL - kRB24VMABCCTFlangeL));
1708
1709 z = kRB24VMABCRBT1L/2. + kRB24B1BellowUndL + kRB24VMABBEConTubeL1 + kRB24VMABBEConTubeL2 - kRB24VMABCCTL + 1.;
1710 voRB24VMABCRB->AddNode(voRB24VMABRFCT, 1, new TGeoTranslation(0., 0., z));
1711
1712
1713 //
1714 // Assembling RB24/1
1715 //
1716 TGeoVolumeAssembly* voRB24 = new TGeoVolumeAssembly("RB24");
1717 // Cu Tube with two simplified flanges
1718 voRB24->AddNode(voRB24CuTubeM, 1, gGeoIdentity);
1719 voRB24->AddNode(voRB24CuTubeA, 1, gGeoIdentity);
1720 z = - kRB24CuTubeL/2 + kRB24CuTubeFL/2.;
1721 voRB24->AddNode(voRB24CuTubeF, 1, new TGeoTranslation(0., 0., z));
1722 z = + kRB24CuTubeL/2 - kRB24CuTubeFL/2.;
1723 voRB24->AddNode(voRB24CuTubeF, 2, new TGeoTranslation(0., 0., z));
1724 // VMABC close to compensator magnet
1725 z = - kRB24CuTubeL/2. - (kRB24VMABCL - kRB24VMABCRBT1L/2) + 1.;
1726
1727 voRB24->AddNode(voRB24VMABCRB, 2, new TGeoTranslation(0., 0., z));
1728 // Bellow
1729 z = kRB24CuTubeL/2;
1730 voRB24->AddNode(voRB24B1BellowM, 1, new TGeoTranslation(0., 0., z));
1731 z += (kRB24B1L + kRB24AIpML/2.);
1732 // Annular ion pump
1733 voRB24->AddNode(voRB24AIpM, 1, new TGeoTranslation(0., 0., z));
1734 z += (kRB24AIpML/2. + kRB24ValveWz/2.);
1735 // Valve
1736 voRB24->AddNode(voRB24ValveMo, 1, new TGeoTranslation(0., 0., z));
1737 z += (kRB24ValveWz/2.+ kRB24VMABCRBT1L/2. + 1.);
1738 // VMABC close to forward detectors
1739 voRB24->AddNode(voRB24VMABCRB, 3, new TGeoTranslation(0., 0., z));
1740 //
1741 // RB24/2
1742 //
1743 // Copper Tube RB24/2
1744 const Float_t kRB242CuTubeL = 330.0;
1745
1746 TGeoVolume* voRB242CuTubeM = new TGeoVolume("voRB242CuTubeM",
1747 new TGeoTube(0., kRB24CuTubeRo, kRB242CuTubeL/2.), kMedVac);
1748 voRB24CuTubeM->SetVisibility(0);
1749 TGeoVolume* voRB242CuTube = new TGeoVolume("voRB242CuTube",
1750 new TGeoTube(kRB24CuTubeRi, kRB24CuTubeRo, kRB242CuTubeL/2.), kMedCu);
1751 voRB242CuTubeM->AddNode(voRB242CuTube, 1, gGeoIdentity);
1752
1753
1754 TGeoVolumeAssembly* voRB242 = new TGeoVolumeAssembly("RB242");
1755 voRB242->AddNode(voRB242CuTube, 1, gGeoIdentity);
1756 z = - kRB242CuTubeL/2 + kRB24CuTubeFL/2.;
1757 voRB242->AddNode(voRB24CuTubeF, 3, new TGeoTranslation(0., 0., z));
1758 z = + kRB242CuTubeL/2 - kRB24CuTubeFL/2.;
1759 voRB242->AddNode(voRB24CuTubeF, 4, new TGeoTranslation(0., 0., z));
1760 z = - kRB24CuTubeL/2 - kRB24VMABCL - kRB242CuTubeL/2.;
1761 voRB24->AddNode(voRB242, 1, new TGeoTranslation(0., 0., z));
1762 //
1763 // RB24/3
1764 //
1765 // Copper Tube RB24/3
1766 const Float_t kRB243CuTubeL = 303.35;
1767
1768 TGeoVolume* voRB243CuTubeM = new TGeoVolume("voRB243CuTubeM",
1769 new TGeoTube(0., kRB24CuTubeRo, kRB243CuTubeL/2.), kMedVac);
1770 voRB24CuTubeM->SetVisibility(0);
1771 TGeoVolume* voRB243CuTube = new TGeoVolume("voRB243CuTube",
1772 new TGeoTube(kRB24CuTubeRi, kRB24CuTubeRo, kRB243CuTubeL/2.), kMedCu);
1773 voRB243CuTubeM->AddNode(voRB243CuTube, 1, gGeoIdentity);
1774
1775
1776 TGeoVolumeAssembly* voRB243 = new TGeoVolumeAssembly("RB243");
1777 TGeoVolumeAssembly* voRB243A = new TGeoVolumeAssembly("RB243A");
1778
1779 voRB243A->AddNode(voRB243CuTube, 1, gGeoIdentity);
1780 z = - kRB243CuTubeL/2 + kRB24CuTubeFL/2.;
1781 voRB243A->AddNode(voRB24CuTubeF, 5, new TGeoTranslation(0., 0., z));
1782 z = + kRB243CuTubeL/2 - kRB24CuTubeFL/2.;
1783 voRB243A->AddNode(voRB24CuTubeF, 6, new TGeoTranslation(0., 0., z));
1784 z = + kRB243CuTubeL/2;
1785 voRB243A->AddNode(voRB24B1BellowM, 2, new TGeoTranslation(0., 0., z));
1786
1787 z = - kRB243CuTubeL/2. - kRB24B1L;
1788 voRB243->AddNode(voRB243A, 1, new TGeoTranslation(0., 0., z));
1789 z = - (1.5 * kRB243CuTubeL + 2. * kRB24B1L);
1790 voRB243->AddNode(voRB243A, 2, new TGeoTranslation(0., 0., z));
1791
1792 z = - 2. * (kRB243CuTubeL + kRB24B1L) - (kRB24VMABCL - kRB24VMABCRBT1L/2) + 1.;
1793 voRB243->AddNode(voRB24VMABCRB, 3, new TGeoTranslation(0., 0., z));
1794
1795 z = - kRB24CuTubeL/2 - kRB24VMABCL - kRB242CuTubeL;
1796 voRB24->AddNode(voRB243, 1, new TGeoTranslation(0., 0., z));
1797
1798
1799 //
1800 //
1801 top->AddNode(voRB24, 1, new TGeoCombiTrans(0., 0., kRB24CuTubeL/2 + 88.5 + 400., rot180));
1802
1803
1804 //
1805 ////////////////////////////////////////////////////////////////////////////////
1806 // //
1807 // The Absorber Vacuum system //
1808 // //
1809 ////////////////////////////////////////////////////////////////////////////////
1810 //
1811 // Rotable Flange starts at: 82.00 cm from IP
1812 // Length of rotable flange section: 10.68 cm
1813 // Weld 0.08 cm
1814 // Length of straight section 207.21 cm
1815 // =======================================================================
1816 // 299.97 cm [0.03 cm missing ?]
1817 // Length of opening cone 252.09 cm
1818 // Weld 0.15 cm
1819 // Length of compensator 30.54 cm
1820 // Weld 0.15 cm
1821 // Length of fixed flange 2.13 - 0.97 1.16 cm
1822 // =======================================================================
1823 // 584.06 cm [584.80 installed] [0.74 cm missing]
1824 // RB26/3
1825 // Length of split flange 2.13 - 1.2 0.93 cm
1826 // Weld 0.15 cm
1827 // Length of fixed point section 16.07 cm
1828 // Weld 0.15 cm
1829 // Length of opening cone 629.20 cm
1830 // Weld 0.30 cm
1831 // Kength of the compensator 41.70 cm
1832 // Weld 0.30 cm
1833 // Length of fixed flange 2.99 - 1.72 1.27 cm
1834 // =================================================
1835 // Length of RB26/3 690.07 cm [689.20 installed] [0.87 cm too much]
1836 //
1837 // RB26/4-5
1838 // Length of split flange 2.13 - 1.2 0.93 cm
1839 // Weld 0.15 cm
1840 // Length of fixed point section 16.07 cm
1841 // Weld 0.15 cm
1842 // Length of opening cone 629.20 cm
1843 // Weld 0.30 cm
1844 // Length of closing cone
1845 // Weld
1846 // Lenth of straight section
1847 // Kength of the compensator 41.70 cm
1848 // Weld 0.30 cm
1849 // Length of fixed flange 2.99 - 1.72 1.27 cm
1850 // =================================================
1851 // Length of RB26/3 690.07 cm [689.20 installed] [0.87 cm too much]
1852
1853 ///////////////////////////////////////////
1854 // //
1855 // RB26/1-2 //
1856 // Drawing LHCV2a_0050 [as installed] //
1857 // Drawing LHCV2a_0008 //
1858 // Drawing LHCV2a_0001 //
1859 ///////////////////////////////////////////
1860 // Pos1 Vacuum Tubes LHCVC2A__0010
1861 // Pos2 Compensator LHCVC2A__0064
1862 // Pos3 Rotable Flange LHCVFX___0016
1863 // Pos4 Fixed Flange LHCVFX___0006
1864 // Pos5 Bellow Tooling LHCVFX___0003
1865 //
1866 //
1867 //
1868 ///////////////////////////////////
1869 // RB26/1-2 Vacuum Tubes //
1870 // Drawing LHCVC2a_0010 //
1871 ///////////////////////////////////
1872 const Float_t kRB26s12TubeL = 459.45; // 0.15 cm added for welding
1873 //
1874 // Add 1 cm on outer diameter for insulation
1875 //
1876 TGeoPcon* shRB26s12Tube = new TGeoPcon(0., 360., 5);
1877 // Section 1: straight section
1878 shRB26s12Tube->DefineSection(0, 0.00, 5.84/2., 6.00/2.);
1879 shRB26s12Tube->DefineSection(1, 207.21, 5.84/2., 6.00/2.);
1880 // Section 2: 0.72 deg opening cone
1881 shRB26s12Tube->DefineSection(2, 207.21, 5.84/2., 6.14/2.);
1882 shRB26s12Tube->DefineSection(3, 452.30, 12.00/2., 12.30/2.);
1883 shRB26s12Tube->DefineSection(4, kRB26s12TubeL, 12.00/2., 12.30/2.);
1884 TGeoVolume* voRB26s12Tube = new TGeoVolume("RB26s12Tube", shRB26s12Tube, kMedSteel);
1885 // Add the insulation layer
1886 TGeoVolume* voRB26s12TubeIns = new TGeoVolume("RB26s12TubeIns", MakeInsulationFromTemplate(shRB26s12Tube), kMedInsu);
1887 voRB26s12Tube->AddNode(voRB26s12TubeIns, 1, gGeoIdentity);
1888
1889
1890 TGeoVolume* voRB26s12TubeM = new TGeoVolume("RB26s12TubeM", MakeMotherFromTemplate(shRB26s12Tube), kMedVac);
1891 voRB26s12TubeM->AddNode(voRB26s12Tube, 1, gGeoIdentity);
1892
1893
1894
1895 ///////////////////////////////////
1896 // RB26/2 Axial Compensator //
1897 // Drawing LHCVC2a_0064 //
1898 ///////////////////////////////////
1899 const Float_t kRB26s2CompL = 30.65; // Length of the compensator
1900 const Float_t kRB26s2BellowRo = 14.38/2.; // Bellow outer radius [Pos 1]
1901 const Float_t kRB26s2BellowRi = 12.12/2.; // Bellow inner radius [Pos 1]
1902 const Int_t kRB26s2NumberOfPlies = 14; // Number of plies [Pos 1]
1903 const Float_t kRB26s2BellowUndL = 10.00; // Length of undulated region [Pos 1] [+10 mm installed including pretension ?]
1904 const Float_t kRB26s2PlieThickness = 0.025; // Plie thickness [Pos 1]
1905 const Float_t kRB26s2ConnectionPlieR = 0.21; // Connection plie radius [Pos 1]
1906 // Plie radius
1907 const Float_t kRB26s2PlieR =
1908 (kRB26s2BellowUndL - 4. * kRB26s2ConnectionPlieR + 2. * kRB26s2PlieThickness +
1909 (2. * kRB26s2NumberOfPlies - 2.) * kRB26s2PlieThickness) / (4. * kRB26s2NumberOfPlies - 2.);
1910 const Float_t kRB26s2CompTubeInnerR = 12.00/2.; // Connection tubes inner radius [Pos 2 + 3]
1911 const Float_t kRB26s2CompTubeOuterR = 12.30/2.; // Connection tubes outer radius [Pos 2 + 3]
1912 const Float_t kRB26s2WeldingTubeLeftL = 9.00/2.; // Left connection tube half length [Pos 2]
1913 const Float_t kRB26s2WeldingTubeRightL = 11.65/2.; // Right connection tube half length [Pos 3] [+ 0.15 cm for welding]
1914 const Float_t kRB26s2RingOuterR = 18.10/2.; // Ring inner radius [Pos 4]
1915 const Float_t kRB26s2RingL = 0.40/2.; // Ring half length [Pos 4]
1916 const Float_t kRB26s2RingZ = 6.50 ; // Ring z-position [Pos 4]
1917 const Float_t kRB26s2ProtOuterR = 18.20/2.; // Protection tube outer radius [Pos 5]
1918 const Float_t kRB26s2ProtL = 15.00/2.; // Protection tube half length [Pos 5]
1919 const Float_t kRB26s2ProtZ = 6.70 ; // Protection tube z-position [Pos 5]
1920
1921
1922 // Mother volume
1923 //
1924 TGeoPcon* shRB26s2Compensator = new TGeoPcon(0., 360., 6);
1925 shRB26s2Compensator->DefineSection( 0, 0.0, 0., kRB26s2CompTubeOuterR);
1926 shRB26s2Compensator->DefineSection( 1, kRB26s2RingZ, 0., kRB26s2CompTubeOuterR);
1927 shRB26s2Compensator->DefineSection( 2, kRB26s2RingZ, 0., kRB26s2ProtOuterR);
1928 shRB26s2Compensator->DefineSection( 3, kRB26s2ProtZ + 2. * kRB26s2ProtL, 0., kRB26s2ProtOuterR);
1929 shRB26s2Compensator->DefineSection( 4, kRB26s2ProtZ + 2. * kRB26s2ProtL, 0., kRB26s2CompTubeOuterR);
1930 shRB26s2Compensator->DefineSection( 5, kRB26s2CompL , 0., kRB26s2CompTubeOuterR);
1931 TGeoVolume* voRB26s2Compensator = new TGeoVolume("RB26s2Compensator", shRB26s2Compensator, kMedVac);
1932
1933 //
1934 // [Pos 1] Bellow
1935 //
1936 //
1937 TGeoVolume* voRB26s2Bellow = new TGeoVolume("RB26s2Bellow", new TGeoTube(kRB26s2BellowRi, kRB26s2BellowRo, kRB26s2BellowUndL/2.), kMedVac);
1938 //
1939 // Upper part of the undulation
1940 //
1941 TGeoTorus* shRB26s2PlieTorusU = new TGeoTorus(kRB26s2BellowRo - kRB26s2PlieR, kRB26s2PlieR - kRB26s2PlieThickness, kRB26s2PlieR);
1942 shRB26s2PlieTorusU->SetName("RB26s2TorusU");
1943 TGeoTube* shRB26s2PlieTubeU = new TGeoTube (kRB26s2BellowRo - kRB26s2PlieR, kRB26s2BellowRo, kRB26s2PlieR);
1944 shRB26s2PlieTubeU->SetName("RB26s2TubeU");
1945 TGeoCompositeShape* shRB26s2UpperPlie = new TGeoCompositeShape("RB26s2UpperPlie", "RB26s2TorusU*RB26s2TubeU");
1946
1947 TGeoVolume* voRB26s2WiggleU = new TGeoVolume("RB26s2UpperPlie", shRB26s2UpperPlie, kMedSteel);
1948 //
1949 // Lower part of the undulation
1950 TGeoTorus* shRB26s2PlieTorusL = new TGeoTorus(kRB26s2BellowRi + kRB26s2PlieR, kRB26s2PlieR - kRB26s2PlieThickness, kRB26s2PlieR);
1951 shRB26s2PlieTorusL->SetName("RB26s2TorusL");
1952 TGeoTube* shRB26s2PlieTubeL = new TGeoTube (kRB26s2BellowRi, kRB26s2BellowRi + kRB26s2PlieR, kRB26s2PlieR);
1953 shRB26s2PlieTubeL->SetName("RB26s2TubeL");
1954 TGeoCompositeShape* shRB26s2LowerPlie = new TGeoCompositeShape("RB26s2LowerPlie", "RB26s2TorusL*RB26s2TubeL");
1955
1956 TGeoVolume* voRB26s2WiggleL = new TGeoVolume("RB26s2LowerPlie", shRB26s2LowerPlie, kMedSteel);
1957
1958 //
1959 // Connection between upper and lower part of undulation
1960 TGeoVolume* voRB26s2WiggleC1 = new TGeoVolume("RB26s2PlieConn1",
1961 new TGeoTube(kRB26s2BellowRi + kRB26s2PlieR,
1962 kRB26s2BellowRo - kRB26s2PlieR, kRB26s2PlieThickness / 2.), kMedSteel);
1963 //
1964 // One wiggle
1965 TGeoVolumeAssembly* voRB26s2Wiggle = new TGeoVolumeAssembly("RB26s2Wiggle");
1966 z0 = - kRB26s2PlieThickness / 2.;
1967 voRB26s2Wiggle->AddNode(voRB26s2WiggleC1, 1 , new TGeoTranslation(0., 0., z0));
1968 z0 += kRB26s2PlieR - kRB26s2PlieThickness / 2.;
1969 voRB26s2Wiggle->AddNode(voRB26s2WiggleU, 1 , new TGeoTranslation(0., 0., z0));
1970 z0 += kRB26s2PlieR - kRB26s2PlieThickness / 2.;
1971 voRB26s2Wiggle->AddNode(voRB26s2WiggleC1, 2 , new TGeoTranslation(0., 0., z0));
1972 z0 += kRB26s2PlieR - kRB26s2PlieThickness;
1973 voRB26s2Wiggle->AddNode(voRB26s2WiggleL , 1 , new TGeoTranslation(0., 0., z0));
1974 // Positioning of the volumes
1975 z0 = - kRB26s2BellowUndL/2.+ kRB26s2ConnectionPlieR;
1976 voRB26s2Bellow->AddNode(voRB26s2WiggleL, 1, new TGeoTranslation(0., 0., z0));
1977 z0 += kRB26s2ConnectionPlieR;
1978 zsh = 4. * kRB26s2PlieR - 2. * kRB26s2PlieThickness;
1979 for (Int_t iw = 0; iw < kRB26s2NumberOfPlies; iw++) {
1980 Float_t zpos = z0 + iw * zsh;
1981 voRB26s2Bellow->AddNode(voRB26s2Wiggle, iw + 1, new TGeoTranslation(0., 0., zpos - kRB26s2PlieThickness));
1982 }
1983
1984 voRB26s2Compensator->AddNode(voRB26s2Bellow, 1, new TGeoTranslation(0., 0., 2. * kRB26s2WeldingTubeLeftL + kRB26s2BellowUndL/2.));
1985
1986 //
1987 // [Pos 2] Left Welding Tube
1988 //
1989 TGeoTube* shRB26s2CompLeftTube = new TGeoTube(kRB26s2CompTubeInnerR, kRB26s2CompTubeOuterR, kRB26s2WeldingTubeLeftL);
1990 TGeoVolume* voRB26s2CompLeftTube = new TGeoVolume("RB26s2CompLeftTube", shRB26s2CompLeftTube, kMedSteel);
1991 voRB26s2Compensator->AddNode(voRB26s2CompLeftTube, 1, new TGeoTranslation(0., 0., kRB26s2WeldingTubeLeftL));
1992 //
1993 // [Pos 3] Right Welding Tube
1994 //
1995 TGeoTube* shRB26s2CompRightTube = new TGeoTube(kRB26s2CompTubeInnerR, kRB26s2CompTubeOuterR, kRB26s2WeldingTubeRightL);
1996 TGeoVolume* voRB26s2CompRightTube = new TGeoVolume("RB26s2CompRightTube", shRB26s2CompRightTube, kMedSteel);
1997 voRB26s2Compensator->AddNode(voRB26s2CompRightTube, 1, new TGeoTranslation(0., 0., kRB26s2CompL - kRB26s2WeldingTubeRightL));
1998 //
1999 // [Pos 4] Ring
2000 //
2001 TGeoTube* shRB26s2CompRing = new TGeoTube(kRB26s2CompTubeOuterR, kRB26s2RingOuterR, kRB26s2RingL);
2002 TGeoVolume* voRB26s2CompRing = new TGeoVolume("RB26s2CompRing", shRB26s2CompRing, kMedSteel);
2003 voRB26s2Compensator->AddNode(voRB26s2CompRing, 1, new TGeoTranslation(0., 0., kRB26s2RingZ + kRB26s2RingL));
2004
2005 //
2006 // [Pos 5] Outer Protecting Tube
2007 //
2008 TGeoTube* shRB26s2CompProtTube = new TGeoTube(kRB26s2RingOuterR, kRB26s2ProtOuterR, kRB26s2ProtL);
2009 TGeoVolume* voRB26s2CompProtTube = new TGeoVolume("RB26s2CompProtTube", shRB26s2CompProtTube, kMedSteel);
2010 voRB26s2Compensator->AddNode(voRB26s2CompProtTube, 1, new TGeoTranslation(0., 0., kRB26s2ProtZ + kRB26s2ProtL));
2011
2012 ///////////////////////////////////
2013 // Rotable Flange //
2014 // Drawing LHCVFX_0016 //
2015 ///////////////////////////////////
af5f3976 2016 const Float_t kRB26s1RFlangeTubeRi = 5.84/2.; // Tube inner radius
2017 const Float_t kRB26s1RFlangeTubeRo = 6.00/2.; // Tube outer radius
820b4d9e 2018
2019 // Pos 1 Clamp Ring LHCVFX__0015
2020 const Float_t kRB26s1RFlangeCrL = 1.40 ; // Lenth of the clamp ring
af5f3976 2021 const Float_t kRB26s1RFlangeCrRi1 = 6.72/2.; // Ring inner radius section 1
2022 const Float_t kRB26s1RFlangeCrRi2 = 6.06/2.; // Ring inner radius section 2
2023 const Float_t kRB26s1RFlangeCrRo = 8.60/2.;// Ring outer radius
820b4d9e 2024 const Float_t kRB26s1RFlangeCrD = 0.800 ; // Width section 1
2025
2026 TGeoPcon* shRB26s1RFlangeCr = new TGeoPcon(0., 360., 4);
2027 z0 = 0.;
2028 shRB26s1RFlangeCr->DefineSection(0, z0, kRB26s1RFlangeCrRi1, kRB26s1RFlangeCrRo);
2029 z0 += kRB26s1RFlangeCrD;
2030 shRB26s1RFlangeCr->DefineSection(1, z0, kRB26s1RFlangeCrRi1, kRB26s1RFlangeCrRo);
2031 shRB26s1RFlangeCr->DefineSection(2, z0, kRB26s1RFlangeCrRi2, kRB26s1RFlangeCrRo);
2032 z0 = kRB26s1RFlangeCrL;
2033 shRB26s1RFlangeCr->DefineSection(3, z0, kRB26s1RFlangeCrRi2, kRB26s1RFlangeCrRo);
2034 TGeoVolume* voRB26s1RFlangeCr =
2035 new TGeoVolume("RB26s1RFlangeCr", shRB26s1RFlangeCr, kMedSteel);
2036
2037 // Pos 2 Insert LHCVFX__0015
2038 const Float_t kRB26s1RFlangeIsL = 4.88 ; // Lenth of the insert
af5f3976 2039 const Float_t kRB26s1RFlangeIsR = 6.70/2. ; // Ring radius
820b4d9e 2040 const Float_t kRB26s1RFlangeIsD = 0.80 ; // Ring Width
2041
2042 TGeoPcon* shRB26s1RFlangeIs = new TGeoPcon(0., 360., 4);
2043 z0 = 0.;
2044 shRB26s1RFlangeIs->DefineSection(0, z0, kRB26s1RFlangeTubeRi, kRB26s1RFlangeIsR);
2045 z0 += kRB26s1RFlangeIsD;
2046 shRB26s1RFlangeIs->DefineSection(1, z0, kRB26s1RFlangeTubeRi, kRB26s1RFlangeIsR);
2047 shRB26s1RFlangeIs->DefineSection(2, z0, kRB26s1RFlangeTubeRi, kRB26s1RFlangeTubeRo);
2048 z0 = kRB26s1RFlangeIsL;
2049 shRB26s1RFlangeIs->DefineSection(3, z0, kRB26s1RFlangeTubeRi, kRB26s1RFlangeTubeRo);
2050 TGeoVolume* voRB26s1RFlangeIs =
2051 new TGeoVolume("RB26s1RFlangeIs", shRB26s1RFlangeIs, kMedSteel);
2052 // 4.88 + 3.7 = 8.58 (8.7 to avoid overlap)
2053 // Pos 3 Fixed Point Section LHCVC2A_0021
2054 const Float_t kRB26s1RFlangeFpL = 5.88 ; // Length of the fixed point section (0.08 cm added for welding)
2055 const Float_t kRB26s1RFlangeFpZ = 3.82 ; // Position of the ring
2056 const Float_t kRB26s1RFlangeFpD = 0.59 ; // Width of the ring
af5f3976 2057 const Float_t kRB26s1RFlangeFpR = 7.00/2. ; // Radius of the ring
820b4d9e 2058
2059 TGeoPcon* shRB26s1RFlangeFp = new TGeoPcon(0., 360., 6);
2060 z0 = 0.;
2061 shRB26s1RFlangeFp->DefineSection(0, z0, kRB26s1RFlangeTubeRi, kRB26s1RFlangeTubeRo);
2062 z0 += kRB26s1RFlangeFpZ;
2063 shRB26s1RFlangeFp->DefineSection(1, z0, kRB26s1RFlangeTubeRi, kRB26s1RFlangeTubeRo);
2064 shRB26s1RFlangeFp->DefineSection(2, z0, kRB26s1RFlangeTubeRi, kRB26s1RFlangeFpR);
2065 z0 += kRB26s1RFlangeFpD;
2066 shRB26s1RFlangeFp->DefineSection(3, z0, kRB26s1RFlangeTubeRi, kRB26s1RFlangeFpR);
2067 shRB26s1RFlangeFp->DefineSection(4, z0, kRB26s1RFlangeTubeRi, kRB26s1RFlangeTubeRo);
2068 z0 = kRB26s1RFlangeFpL;
2069 shRB26s1RFlangeFp->DefineSection(5, z0, kRB26s1RFlangeTubeRi, kRB26s1RFlangeTubeRo);
2070 TGeoVolume* voRB26s1RFlangeFp = new TGeoVolume("RB26s1RFlangeFp", shRB26s1RFlangeFp, kMedSteel);
2071
2072 // Put everything in a mother volume
2073 TGeoPcon* shRB26s1RFlange = new TGeoPcon(0., 360., 8);
2074 z0 = 0.;
2075 shRB26s1RFlange->DefineSection(0, z0, 0., kRB26s1RFlangeCrRo);
2076 z0 += kRB26s1RFlangeCrL;
2077 shRB26s1RFlange->DefineSection(1, z0, 0., kRB26s1RFlangeCrRo);
2078 shRB26s1RFlange->DefineSection(2, z0, 0., kRB26s1RFlangeTubeRo);
2079 z0 = kRB26s1RFlangeIsL + kRB26s1RFlangeFpZ;
2080 shRB26s1RFlange->DefineSection(3, z0, 0., kRB26s1RFlangeTubeRo);
2081 shRB26s1RFlange->DefineSection(4, z0, 0., kRB26s1RFlangeFpR);
2082 z0 += kRB26s1RFlangeFpD;
2083 shRB26s1RFlange->DefineSection(5, z0, 0., kRB26s1RFlangeFpR);
2084 shRB26s1RFlange->DefineSection(6, z0, 0., kRB26s1RFlangeTubeRo);
2085 z0 = kRB26s1RFlangeIsL + kRB26s1RFlangeFpL;
2086 shRB26s1RFlange->DefineSection(7, z0, 0., kRB26s1RFlangeTubeRo);
2087 TGeoVolume* voRB26s1RFlange = new TGeoVolume("RB26s1RFlange", shRB26s1RFlange, kMedVac);
2088
2089 voRB26s1RFlange->AddNode(voRB26s1RFlangeIs, 1, gGeoIdentity);
2090 voRB26s1RFlange->AddNode(voRB26s1RFlangeCr, 1, gGeoIdentity);
2091 voRB26s1RFlange->AddNode(voRB26s1RFlangeFp, 1, new TGeoTranslation(0., 0., kRB26s1RFlangeIsL));
2092
2093 ///////////////////////////////////
2094 // Fixed Flange //
2095 // Drawing LHCVFX_0006 //
2096 ///////////////////////////////////
2097 const Float_t kRB26s2FFlangeL = 2.13; // Length of the flange
2098 const Float_t kRB26s2FFlangeD1 = 0.97; // Length of section 1
2099 const Float_t kRB26s2FFlangeD2 = 0.29; // Length of section 2
2100 const Float_t kRB26s2FFlangeD3 = 0.87; // Length of section 3
2101 const Float_t kRB26s2FFlangeRo = 17.15/2.; // Flange outer radius
2102 const Float_t kRB26s2FFlangeRi1 = 12.30/2.; // Flange inner radius section 1
2103 const Float_t kRB26s2FFlangeRi2 = 12.00/2.; // Flange inner radius section 2
2104 const Float_t kRB26s2FFlangeRi3 = 12.30/2.; // Flange inner radius section 3
2105 z0 = 0;
2106 TGeoPcon* shRB26s2FFlange = new TGeoPcon(0., 360., 6);
2107 z0 = 0.;
2108 shRB26s2FFlange->DefineSection(0, z0, kRB26s2FFlangeRi1, kRB26s2FFlangeRo);
2109 z0 += kRB26s2FFlangeD1;
2110 shRB26s2FFlange->DefineSection(1, z0, kRB26s2FFlangeRi1, kRB26s2FFlangeRo);
2111 shRB26s2FFlange->DefineSection(2, z0, kRB26s2FFlangeRi2, kRB26s2FFlangeRo);
2112 z0 += kRB26s2FFlangeD2;
2113 shRB26s2FFlange->DefineSection(3, z0, kRB26s2FFlangeRi2, kRB26s2FFlangeRo);
2114 shRB26s2FFlange->DefineSection(4, z0, kRB26s2FFlangeRi3, kRB26s2FFlangeRo);
2115 z0 += kRB26s2FFlangeD3;
2116 shRB26s2FFlange->DefineSection(5, z0, kRB26s2FFlangeRi3, kRB26s2FFlangeRo);
2117 TGeoVolume* voRB26s2FFlange = new TGeoVolume("RB26s2FFlange", shRB26s2FFlange, kMedSteel);
2118
2119 TGeoVolume* voRB26s2FFlangeM = new TGeoVolume("RB26s2FFlangeM", MakeMotherFromTemplate(shRB26s2FFlange, 2, 5), kMedVac);
2120 voRB26s2FFlangeM->AddNode(voRB26s2FFlange, 1, gGeoIdentity);
2121
2122
2123
2124 ////////////////////////////////////////
2125 // //
2126 // RB26/3 //
2127 // Drawing LHCV2a_0048 //
2128 // Drawing LHCV2a_0002 //
2129 ////////////////////////////////////////
2130 //
2131 // Pos 1 Vacuum Tubes LHCVC2A__0003
2132 // Pos 2 Fixed Point LHCVFX___0005
2133 // Pos 3 Split Flange LHCVFX___0007
2134 // Pos 4 Fixed Flange LHCVFX___0004
2135 // Pos 5 Axial Compensator LHCVC2A__0065
2136 //
2137 //
2138 //
2139 //
2140 ///////////////////////////////////
2141 // Vacuum Tube //
2142 // Drawing LHCVC2A_0003 //
2143 ///////////////////////////////////
2144 const Float_t kRB26s3TubeL = 629.35 + 0.3; // 0.3 cm added for welding
2145 const Float_t kRB26s3TubeR1 = 12./2.;
2146 const Float_t kRB26s3TubeR2 = kRB26s3TubeR1 + 215.8 * TMath::Tan(0.829 / 180. * TMath::Pi());
2147
2148
2149 TGeoPcon* shRB26s3Tube = new TGeoPcon(0., 360., 7);
2150 // Section 1: straight section
2151 shRB26s3Tube->DefineSection(0, 0.00, kRB26s3TubeR1, kRB26s3TubeR1 + 0.15);
2152 shRB26s3Tube->DefineSection(1, 2.00, kRB26s3TubeR1, kRB26s3TubeR1 + 0.15);
2153 // Section 2: 0.829 deg opening cone
2154 shRB26s3Tube->DefineSection(2, 2.00, kRB26s3TubeR1, kRB26s3TubeR1 + 0.20);
2155
2156 shRB26s3Tube->DefineSection(3, 217.80, kRB26s3TubeR2, kRB26s3TubeR2 + 0.20);
2157 shRB26s3Tube->DefineSection(4, 217.80, kRB26s3TubeR2, kRB26s3TubeR2 + 0.30);
2158
2159 shRB26s3Tube->DefineSection(5, 622.20, 30.00/2., 30.60/2.);
2160 shRB26s3Tube->DefineSection(6, kRB26s3TubeL, 30.00/2., 30.60/2.);
2161
2162 TGeoVolume* voRB26s3Tube = new TGeoVolume("RB26s3Tube", shRB26s3Tube, kMedSteel);
2163 // Add the insulation layer
2164 TGeoVolume* voRB26s3TubeIns = new TGeoVolume("RB26s3TubeIns", MakeInsulationFromTemplate(shRB26s3Tube), kMedInsu);
2165 voRB26s3Tube->AddNode(voRB26s3TubeIns, 1, gGeoIdentity);
2166
2167 TGeoVolume* voRB26s3TubeM = new TGeoVolume("RB26s3TubeM", MakeMotherFromTemplate(shRB26s3Tube), kMedVac);
2168 voRB26s3TubeM->AddNode(voRB26s3Tube, 1, gGeoIdentity);
2169
2170
2171
2172 ///////////////////////////////////
2173 // Fixed Point //
2174 // Drawing LHCVFX_0005 //
2175 ///////////////////////////////////
2176 const Float_t kRB26s3FixedPointL = 16.37 ; // Length of the fixed point section (0.3 cm added for welding)
2177 const Float_t kRB26s3FixedPointZ = 9.72 ; // Position of the ring (0.15 cm added for welding)
2178 const Float_t kRB26s3FixedPointD = 0.595 ; // Width of the ring
2179 const Float_t kRB26s3FixedPointR = 13.30/2. ; // Radius of the ring
2180 const Float_t kRB26s3FixedPointRi = 12.00/2. ; // Inner radius of the tube
2181 const Float_t kRB26s3FixedPointRo1 = 12.30/2. ; // Outer radius of the tube (in)
2182 const Float_t kRB26s3FixedPointRo2 = 12.40/2. ; // Outer radius of the tube (out)
2183 const Float_t kRB26s3FixedPointDs = 1.5 ; // Width of straight section behind ring
2184 const Float_t kRB26s3FixedPointDc = 3.15 ; // Width of conical section behind ring (0.15 cm added for welding)
2185
2186 TGeoPcon* shRB26s3FixedPoint = new TGeoPcon(0., 360., 8);
2187 z0 = 0.;
2188 shRB26s3FixedPoint->DefineSection(0, z0, kRB26s3FixedPointRi, kRB26s3FixedPointRo1);
2189 z0 += kRB26s3FixedPointZ;
2190 shRB26s3FixedPoint->DefineSection(1, z0, kRB26s3FixedPointRi, kRB26s3FixedPointRo1);
2191 shRB26s3FixedPoint->DefineSection(2, z0, kRB26s3FixedPointRi, kRB26s3FixedPointR);
2192 z0 += kRB26s3FixedPointD;
2193 shRB26s3FixedPoint->DefineSection(3, z0, kRB26s3FixedPointRi, kRB26s3FixedPointR);
2194 shRB26s3FixedPoint->DefineSection(4, z0, kRB26s3FixedPointRi, kRB26s3FixedPointRo1);
2195 z0 += kRB26s3FixedPointDs;
2196 shRB26s3FixedPoint->DefineSection(5, z0, kRB26s3FixedPointRi, kRB26s3FixedPointRo1);
2197 z0 += kRB26s3FixedPointDc;
2198 shRB26s3FixedPoint->DefineSection(6, z0, kRB26s3FixedPointRi, kRB26s3FixedPointRo2);
2199 z0 = kRB26s3FixedPointL;
2200 shRB26s3FixedPoint->DefineSection(7, z0, kRB26s3FixedPointRi, kRB26s3FixedPointRo2);
2201 TGeoVolume* voRB26s3FixedPoint = new TGeoVolume("RB26s3FixedPoint", shRB26s3FixedPoint, kMedSteel);
2202
2203 TGeoVolume* voRB26s3FixedPointM = new TGeoVolume("RB26s3FixedPointM", MakeMotherFromTemplate(shRB26s3FixedPoint), kMedVac);
2204 voRB26s3FixedPointM->AddNode(voRB26s3FixedPoint, 1, gGeoIdentity);
2205
2206 ///////////////////////////////////
2207 // Split Flange //
2208 // Drawing LHCVFX_0005 //
2209 ///////////////////////////////////
2210 const Float_t kRB26s3SFlangeL = 2.13; // Length of the flange
2211 const Float_t kRB26s3SFlangeD1 = 0.57; // Length of section 1
2212 const Float_t kRB26s3SFlangeD2 = 0.36; // Length of section 2
2213 const Float_t kRB26s3SFlangeD3 = 0.50 + 0.70; // Length of section 3
2214 const Float_t kRB26s3SFlangeRo = 17.15/2.; // Flange outer radius
2215 const Float_t kRB26s3SFlangeRi1 = 12.30/2.; // Flange inner radius section 1
2216 const Float_t kRB26s3SFlangeRi2 = 12.00/2.; // Flange inner radius section 2
2217 const Float_t kRB26s3SFlangeRi3 = 12.30/2.; // Flange inner radius section 3
2218 z0 = 0;
2219 TGeoPcon* shRB26s3SFlange = new TGeoPcon(0., 360., 6);
2220 z0 = 0.;
2221 shRB26s3SFlange->DefineSection(0, z0, kRB26s3SFlangeRi1, kRB26s3SFlangeRo);
2222 z0 += kRB26s3SFlangeD1;
2223 shRB26s3SFlange->DefineSection(1, z0, kRB26s3SFlangeRi1, kRB26s3SFlangeRo);
2224 shRB26s3SFlange->DefineSection(2, z0, kRB26s3SFlangeRi2, kRB26s3SFlangeRo);
2225 z0 += kRB26s3SFlangeD2;
2226 shRB26s3SFlange->DefineSection(3, z0, kRB26s3SFlangeRi2, kRB26s3SFlangeRo);
2227 shRB26s3SFlange->DefineSection(4, z0, kRB26s3SFlangeRi3, kRB26s3SFlangeRo);
2228 z0 += kRB26s3SFlangeD3;
2229 shRB26s3SFlange->DefineSection(5, z0, kRB26s3SFlangeRi3, kRB26s3SFlangeRo);
2230 TGeoVolume* voRB26s3SFlange = new TGeoVolume("RB26s3SFlange", shRB26s3SFlange, kMedSteel);
2231
2232 TGeoVolume* voRB26s3SFlangeM = new TGeoVolume("RB26s3SFlangeM", MakeMotherFromTemplate(shRB26s3SFlange, 0, 3), kMedVac);
2233 voRB26s3SFlangeM->AddNode(voRB26s3SFlange, 1, gGeoIdentity);
2234
2235 ///////////////////////////////////
2236 // RB26/3 Fixed Flange //
2237 // Drawing LHCVFX___0004 //
2238 ///////////////////////////////////
2239 const Float_t kRB26s3FFlangeL = 2.99; // Length of the flange
2240 const Float_t kRB26s3FFlangeD1 = 1.72; // Length of section 1
2241 const Float_t kRB26s3FFlangeD2 = 0.30; // Length of section 2
2242 const Float_t kRB26s3FFlangeD3 = 0.97; // Length of section 3
2243 const Float_t kRB26s3FFlangeRo = 36.20/2.; // Flange outer radius
2244 const Float_t kRB26s3FFlangeRi1 = 30.60/2.; // Flange inner radius section 1
2245 const Float_t kRB26s3FFlangeRi2 = 30.00/2.; // Flange inner radius section 2
2246 const Float_t kRB26s3FFlangeRi3 = 30.60/2.; // Flange inner radius section 3
2247 z0 = 0;
2248 TGeoPcon* shRB26s3FFlange = new TGeoPcon(0., 360., 6);
2249 z0 = 0.;
2250 shRB26s3FFlange->DefineSection(0, z0, kRB26s3FFlangeRi1, kRB26s3FFlangeRo);
2251 z0 += kRB26s3FFlangeD1;
2252 shRB26s3FFlange->DefineSection(1, z0, kRB26s3FFlangeRi1, kRB26s3FFlangeRo);
2253 shRB26s3FFlange->DefineSection(2, z0, kRB26s3FFlangeRi2, kRB26s3FFlangeRo);
2254 z0 += kRB26s3FFlangeD2;
2255 shRB26s3FFlange->DefineSection(3, z0, kRB26s3FFlangeRi2, kRB26s3FFlangeRo);
2256 shRB26s3FFlange->DefineSection(4, z0, kRB26s3FFlangeRi3, kRB26s3FFlangeRo);
2257 z0 += kRB26s3FFlangeD3;
2258 shRB26s3FFlange->DefineSection(5, z0, kRB26s3FFlangeRi3, kRB26s3FFlangeRo);
2259 TGeoVolume* voRB26s3FFlange = new TGeoVolume("RB26s3FFlange", shRB26s3FFlange, kMedSteel);
2260
2261 TGeoVolume* voRB26s3FFlangeM = new TGeoVolume("RB26s3FFlangeM", MakeMotherFromTemplate(shRB26s3FFlange, 2, 5), kMedVac);
2262 voRB26s3FFlangeM->AddNode(voRB26s3FFlange, 1, gGeoIdentity);
2263
2264
2265
2266 ///////////////////////////////////
2267 // RB26/3 Axial Compensator //
2268 // Drawing LHCVC2a_0065 //
2269 ///////////////////////////////////
2270 const Float_t kRB26s3CompL = 42.0; // Length of the compensator (0.3 cm added for welding)
2271 const Float_t kRB26s3BellowRo = 34.00/2.; // Bellow outer radius [Pos 1]
2272 const Float_t kRB26s3BellowRi = 30.10/2.; // Bellow inner radius [Pos 1]
2273 const Int_t kRB26s3NumberOfPlies = 13; // Number of plies [Pos 1]
2274 const Float_t kRB26s3BellowUndL = 17.70; // Length of undulated region [Pos 1]
2275 const Float_t kRB26s3PlieThickness = 0.06; // Plie thickness [Pos 1]
2276 const Float_t kRB26s3ConnectionPlieR = 0.21; // Connection plie radius [Pos 1]
2277 // Plie radius
2278 const Float_t kRB26s3PlieR =
2279 (kRB26s3BellowUndL - 4. * kRB26s3ConnectionPlieR + 2. * kRB26s3PlieThickness +
2280 (2. * kRB26s3NumberOfPlies - 2.) * kRB26s3PlieThickness) / (4. * kRB26s3NumberOfPlies - 2.);
2281
2282 //
2283 // The welding tubes have 3 sections with different radii and 2 transition regions.
2284 // Section 1: connection to the outside
2285 // Section 2: commection to the bellow
2286 // Section 3: between 1 and 2
2287 const Float_t kRB26s3CompTubeInnerR1 = 30.0/2.; // Outer Connection tubes inner radius [Pos 4 + 3]
2288 const Float_t kRB26s3CompTubeOuterR1 = 30.6/2.; // Outer Connection tubes outer radius [Pos 4 + 3]
2289 const Float_t kRB26s3CompTubeInnerR2 = 29.4/2.; // Connection tubes inner radius [Pos 4 + 3]
2290 const Float_t kRB26s3CompTubeOuterR2 = 30.0/2.; // Connection tubes outer radius [Pos 4 + 3]
2291 const Float_t kRB26s3CompTubeInnerR3 = 30.6/2.; // Connection tubes inner radius at bellow [Pos 4 + 3]
2292 const Float_t kRB26s3CompTubeOuterR3 = 32.2/2.; // Connection tubes outer radius at bellow [Pos 4 + 3]
2293
2294 const Float_t kRB26s3WeldingTubeLeftL1 = 2.0; // Left connection tube length [Pos 4]
2295 const Float_t kRB26s3WeldingTubeLeftL2 = 3.4; // Left connection tube length [Pos 4]
2296 const Float_t kRB26s3WeldingTubeLeftL = 7.0; // Left connection tube total length [Pos 4]
2297 const Float_t kRB26s3WeldingTubeRightL1 = 2.3; // Right connection tube length [Pos 3] (0.3 cm added for welding)
2298 const Float_t kRB26s3WeldingTubeRightL2 = 13.4; // Right connection tube length [Pos 3]
2299
2300 const Float_t kRB26s3WeldingTubeT1 = 0.6; // Length of first r-transition [Pos 4 + 3]
2301 const Float_t kRB26s3WeldingTubeT2 = 1.0; // Length of 2nd r-transition [Pos 4 + 3]
2302
2303
2304
2305 const Float_t kRB26s3RingOuterR = 36.1/2.; // Ring inner radius [Pos 4]
2306 const Float_t kRB26s3RingL = 0.8/2.; // Ring half length [Pos 4]
2307 const Float_t kRB26s3RingZ = 3.7 ; // Ring z-position [Pos 4]
2308 const Float_t kRB26s3ProtOuterR = 36.2/2.; // Protection tube outer radius [Pos 2]
2309 const Float_t kRB26s3ProtL = 27.0/2.; // Protection tube half length [Pos 2]
2310 const Float_t kRB26s3ProtZ = 4.0 ; // Protection tube z-position [Pos 2]
2311
2312
2313 // Mother volume
2314 //
2315 TGeoPcon* shRB26s3Compensator = new TGeoPcon(0., 360., 6);
2316 shRB26s3Compensator->DefineSection( 0, 0.0, 0., kRB26s3CompTubeOuterR1);
2317 shRB26s3Compensator->DefineSection( 1, kRB26s3RingZ, 0., kRB26s3CompTubeOuterR1);
2318 shRB26s3Compensator->DefineSection( 2, kRB26s3RingZ, 0., kRB26s3ProtOuterR);
2319 shRB26s3Compensator->DefineSection( 3, kRB26s3ProtZ + 2. * kRB26s3ProtL, 0., kRB26s3ProtOuterR);
2320 shRB26s3Compensator->DefineSection( 4, kRB26s3ProtZ + 2. * kRB26s3ProtL, 0., kRB26s3CompTubeOuterR1);
2321 shRB26s3Compensator->DefineSection( 5, kRB26s3CompL , 0., kRB26s3CompTubeOuterR1);
2322 TGeoVolume* voRB26s3Compensator =
2323 new TGeoVolume("RB26s3Compensator", shRB26s3Compensator, kMedVac);
2324
2325 //
2326 // [Pos 1] Bellow
2327 //
2328 //
2329 TGeoVolume* voRB26s3Bellow = new TGeoVolume("RB26s3Bellow",
2330 new TGeoTube(kRB26s3BellowRi, kRB26s3BellowRo, kRB26s3BellowUndL/2.), kMedVac);
2331 //
2332 // Upper part of the undulation
2333 //
2334 TGeoTorus* shRB26s3PlieTorusU = new TGeoTorus(kRB26s3BellowRo - kRB26s3PlieR, kRB26s3PlieR - kRB26s3PlieThickness, kRB26s3PlieR);
2335 shRB26s3PlieTorusU->SetName("RB26s3TorusU");
2336 TGeoTube* shRB26s3PlieTubeU = new TGeoTube (kRB26s3BellowRo - kRB26s3PlieR, kRB26s3BellowRo, kRB26s3PlieR);
2337 shRB26s3PlieTubeU->SetName("RB26s3TubeU");
2338 TGeoCompositeShape* shRB26s3UpperPlie = new TGeoCompositeShape("RB26s3UpperPlie", "RB26s3TorusU*RB26s3TubeU");
2339
2340 TGeoVolume* voRB26s3WiggleU = new TGeoVolume("RB26s3UpperPlie", shRB26s3UpperPlie, kMedSteel);
2341 //
2342 // Lower part of the undulation
2343 TGeoTorus* shRB26s3PlieTorusL = new TGeoTorus(kRB26s3BellowRi + kRB26s3PlieR, kRB26s3PlieR - kRB26s3PlieThickness, kRB26s3PlieR);
2344 shRB26s3PlieTorusL->SetName("RB26s3TorusL");
2345 TGeoTube* shRB26s3PlieTubeL = new TGeoTube (kRB26s3BellowRi, kRB26s3BellowRi + kRB26s3PlieR, kRB26s3PlieR);
2346 shRB26s3PlieTubeL->SetName("RB26s3TubeL");
2347 TGeoCompositeShape* shRB26s3LowerPlie = new TGeoCompositeShape("RB26s3LowerPlie", "RB26s3TorusL*RB26s3TubeL");
2348
2349 TGeoVolume* voRB26s3WiggleL = new TGeoVolume("RB26s3LowerPlie", shRB26s3LowerPlie, kMedSteel);
2350
2351 //
2352 // Connection between upper and lower part of undulation
2353 TGeoVolume* voRB26s3WiggleC1 = new TGeoVolume("RB26s3PlieConn1",
2354 new TGeoTube(kRB26s3BellowRi + kRB26s3PlieR,
2355 kRB26s3BellowRo - kRB26s3PlieR, kRB26s3PlieThickness / 2.), kMedSteel);
2356 //
2357 // One wiggle
2358 TGeoVolumeAssembly* voRB26s3Wiggle = new TGeoVolumeAssembly("RB26s3Wiggle");
2359 z0 = - kRB26s3PlieThickness / 2.;
2360 voRB26s3Wiggle->AddNode(voRB26s3WiggleC1, 1 , new TGeoTranslation(0., 0., z0));
2361 z0 += kRB26s3PlieR - kRB26s3PlieThickness / 2.;
2362 voRB26s3Wiggle->AddNode(voRB26s3WiggleU, 1 , new TGeoTranslation(0., 0., z0));
2363 z0 += kRB26s3PlieR - kRB26s3PlieThickness / 2.;
2364 voRB26s3Wiggle->AddNode(voRB26s3WiggleC1, 2 , new TGeoTranslation(0., 0., z0));
2365 z0 += kRB26s3PlieR - kRB26s3PlieThickness;
2366 voRB26s3Wiggle->AddNode(voRB26s3WiggleL, 1 , new TGeoTranslation(0., 0., z0));
2367 // Positioning of the volumes
2368 z0 = - kRB26s3BellowUndL/2.+ kRB26s3ConnectionPlieR;
2369 voRB26s3Bellow->AddNode(voRB26s3WiggleL, 1, new TGeoTranslation(0., 0., z0));
2370 z0 += kRB26s3ConnectionPlieR;
2371 zsh = 4. * kRB26s3PlieR - 2. * kRB26s3PlieThickness;
2372 for (Int_t iw = 0; iw < kRB26s3NumberOfPlies; iw++) {
2373 Float_t zpos = z0 + iw * zsh;
2374 voRB26s3Bellow->AddNode(voRB26s3Wiggle, iw + 1, new TGeoTranslation(0., 0., zpos - kRB26s3PlieThickness));
2375 }
2376
2377 voRB26s3Compensator->AddNode(voRB26s3Bellow, 1, new TGeoTranslation(0., 0., kRB26s3WeldingTubeLeftL + kRB26s3BellowUndL/2.));
2378
2379
2380 //
2381 // [Pos 2] Outer Protecting Tube
2382 //
2383 TGeoTube* shRB26s3CompProtTube = new TGeoTube(kRB26s3RingOuterR, kRB26s3ProtOuterR, kRB26s3ProtL);
2384 TGeoVolume* voRB26s3CompProtTube =
2385 new TGeoVolume("RB26s3CompProtTube", shRB26s3CompProtTube, kMedSteel);
2386 voRB26s3Compensator->AddNode(voRB26s3CompProtTube, 1, new TGeoTranslation(0., 0., kRB26s3ProtZ + kRB26s3ProtL));
2387
2388
2389 //
2390 // [Pos 3] Right Welding Tube
2391 //
2392 TGeoPcon* shRB26s3CompRightTube = new TGeoPcon(0., 360., 5);
2393 z0 = 0.;
2394 shRB26s3CompRightTube->DefineSection(0, z0, kRB26s3CompTubeInnerR3, kRB26s3CompTubeOuterR3);
2395 z0 += kRB26s3WeldingTubeT2;
2396 shRB26s3CompRightTube->DefineSection(1, z0, kRB26s3CompTubeInnerR2, kRB26s3CompTubeOuterR2);
2397 z0 += kRB26s3WeldingTubeRightL2;
2398 shRB26s3CompRightTube->DefineSection(2, z0, kRB26s3CompTubeInnerR2, kRB26s3CompTubeOuterR2);
2399 z0 += kRB26s3WeldingTubeT1;
2400 shRB26s3CompRightTube->DefineSection(3, z0, kRB26s3CompTubeInnerR1, kRB26s3CompTubeOuterR1);
2401 z0 += kRB26s3WeldingTubeRightL1;
2402 shRB26s3CompRightTube->DefineSection(4, z0, kRB26s3CompTubeInnerR1, kRB26s3CompTubeOuterR1);
2403
2404 TGeoVolume* voRB26s3CompRightTube =
2405 new TGeoVolume("RB26s3CompRightTube", shRB26s3CompRightTube, kMedSteel);
2406 voRB26s3Compensator->AddNode(voRB26s3CompRightTube, 1, new TGeoTranslation(0., 0., kRB26s3CompL - z0));
2407
2408 //
2409 // [Pos 4] Left Welding Tube
2410 //
2411 TGeoPcon* shRB26s3CompLeftTube = new TGeoPcon(0., 360., 5);
2412 z0 = 0.;
2413 shRB26s3CompLeftTube->DefineSection(0, z0, kRB26s3CompTubeInnerR1, kRB26s3CompTubeOuterR1);
2414 z0 += kRB26s3WeldingTubeLeftL1;
2415 shRB26s3CompLeftTube->DefineSection(1, z0, kRB26s3CompTubeInnerR1, kRB26s3CompTubeOuterR1);
2416 z0 += kRB26s3WeldingTubeT1;
2417 shRB26s3CompLeftTube->DefineSection(2, z0, kRB26s3CompTubeInnerR2, kRB26s3CompTubeOuterR2);
2418 z0 += kRB26s3WeldingTubeLeftL2;
2419 shRB26s3CompLeftTube->DefineSection(3, z0, kRB26s3CompTubeInnerR2, kRB26s3CompTubeOuterR2);
2420 z0 += kRB26s3WeldingTubeT2;
2421 shRB26s3CompLeftTube->DefineSection(4, z0, kRB26s3CompTubeInnerR3, kRB26s3CompTubeOuterR3);
2422
2423 TGeoVolume* voRB26s3CompLeftTube =
2424 new TGeoVolume("RB26s3CompLeftTube", shRB26s3CompLeftTube, kMedSteel);
2425 voRB26s3Compensator->AddNode(voRB26s3CompLeftTube, 1, gGeoIdentity);
2426 //
2427 // [Pos 5] Ring
2428 //
2429 TGeoTube* shRB26s3CompRing = new TGeoTube(kRB26s3CompTubeOuterR2, kRB26s3RingOuterR, kRB26s3RingL);
2430 TGeoVolume* voRB26s3CompRing =
2431 new TGeoVolume("RB26s3CompRing", shRB26s3CompRing, kMedSteel);
2432 voRB26s3Compensator->AddNode(voRB26s3CompRing, 1, new TGeoTranslation(0., 0., kRB26s3RingZ + kRB26s3RingL));
2433
2434
2435
2436 ///////////////////////////////////////////
2437 // //
2438 // RB26/4-5 //
2439 // Drawing LHCV2a_0012 [as installed] //
2440 ////////////////////////////////////////////
2441 // Pos1 Vacuum Tubes LHCVC2A__0014
2442 // Pos2 Compensator LHCVC2A__0066
2443 // Pos3 Fixed Point Section LHCVC2A__0016
2444 // Pos4 Split Flange LHCVFX___0005
2445 // Pos5 RotableFlange LHCVFX___0009
2446 ////////////////////////////////////////////
2447
2448 ///////////////////////////////////
2449 // RB26/4-5 Vacuum Tubes //
2450 // Drawing LHCVC2a_0014 //
2451 ///////////////////////////////////
2452 const Float_t kRB26s45TubeL = 593.12 + 0.3; // 0.3 cm added for welding
2453
2454 TGeoPcon* shRB26s45Tube = new TGeoPcon(0., 360., 11);
2455 // Section 1: straight section
2456 shRB26s45Tube->DefineSection( 0, 0.00, 30.00/2., 30.60/2.);
2457 shRB26s45Tube->DefineSection( 1, 1.20, 30.00/2., 30.60/2.);
2458 shRB26s45Tube->DefineSection( 2, 1.20, 30.00/2., 30.80/2.);
2459 shRB26s45Tube->DefineSection( 3, 25.10, 30.00/2., 30.80/2.);
2460 // Section 2: 0.932 deg opening cone
2461 shRB26s45Tube->DefineSection( 4, 486.10, 45.00/2., 45.80/2.);
2462 // Section 3: straight section 4 mm
2463 shRB26s45Tube->DefineSection( 5, 512.10, 45.00/2., 45.80/2.);
2464 // Section 4: straight section 3 mm
2465 shRB26s45Tube->DefineSection( 6, 512.10, 45.00/2., 45.60/2.);
2466 shRB26s45Tube->DefineSection( 7, 527.70, 45.00/2., 45.60/2.);
2467 // Section 4: closing cone
2468 shRB26s45Tube->DefineSection( 8, 591.30, 10.00/2., 10.60/2.);
2469 shRB26s45Tube->DefineSection( 9, 591.89, 10.00/2., 10.30/2.);
2470
2471 shRB26s45Tube->DefineSection(10, kRB26s45TubeL, 10.00/2., 10.30/2.);
2472 TGeoVolume* voRB26s45Tube =
2473 new TGeoVolume("RB26s45Tube", shRB26s45Tube, kMedSteel);
2474
2475 TGeoVolume* voRB26s45TubeM = new TGeoVolume("RB26s45TubeM", MakeMotherFromTemplate(shRB26s45Tube), kMedVac);
2476 voRB26s45TubeM->AddNode(voRB26s45Tube, 1, gGeoIdentity);
2477
2478
2479
2480 ///////////////////////////////////
2481 // RB26/5 Axial Compensator //
2482 // Drawing LHCVC2a_0066 //
2483 ///////////////////////////////////
2484 const Float_t kRB26s5CompL = 27.60; // Length of the compensator (0.30 cm added for welding)
2485 const Float_t kRB26s5BellowRo = 12.48/2.; // Bellow outer radius [Pos 1]
2486 const Float_t kRB26s5BellowRi = 10.32/2.; // Bellow inner radius [Pos 1]
2487 const Int_t kRB26s5NumberOfPlies = 15; // Number of plies [Pos 1]
2488 const Float_t kRB26s5BellowUndL = 10.50; // Length of undulated region [Pos 1]
2489 const Float_t kRB26s5PlieThickness = 0.025; // Plie thickness [Pos 1]
2490 const Float_t kRB26s5ConnectionPlieR = 0.21; // Connection plie radius [Pos 1]
2491 const Float_t kRB26s5ConnectionR = 11.2/2.; // Bellow connection radius [Pos 1]
2492 // Plie radius
2493 const Float_t kRB26s5PlieR =
2494 (kRB26s5BellowUndL - 4. * kRB26s5ConnectionPlieR + 2. * kRB26s5PlieThickness +
2495 (2. * kRB26s5NumberOfPlies - 2.) * kRB26s5PlieThickness) / (4. * kRB26s5NumberOfPlies - 2.);
2496 const Float_t kRB26s5CompTubeInnerR = 10.00/2.; // Connection tubes inner radius [Pos 2 + 3]
2497 const Float_t kRB26s5CompTubeOuterR = 10.30/2.; // Connection tubes outer radius [Pos 2 + 3]
2498 const Float_t kRB26s5WeldingTubeLeftL = 3.70/2.; // Left connection tube half length [Pos 2]
2499 const Float_t kRB26s5WeldingTubeRightL = 13.40/2.; // Right connection tube half length [Pos 3] (0.3 cm added for welding)
2500 const Float_t kRB26s5RingInnerR = 11.2/2.; // Ring inner radius [Pos 4]
2501 const Float_t kRB26s5RingOuterR = 16.0/2.; // Ring inner radius [Pos 4]
2502 const Float_t kRB26s5RingL = 0.4/2.; // Ring half length [Pos 4]
2503 const Float_t kRB26s5RingZ = 14.97; // Ring z-position [Pos 4]
2504 const Float_t kRB26s5ProtOuterR = 16.2/2.; // Protection tube outer radius [Pos 5]
2505 const Float_t kRB26s5ProtL = 13.0/2.; // Protection tube half length [Pos 5]
2506 const Float_t kRB26s5ProtZ = 2.17; // Protection tube z-position [Pos 5]
2507 const Float_t kRB26s5DetailZR = 11.3/2.; // Detail Z max radius
2508
2509
2510 // Mother volume
2511 //
2512 TGeoPcon* shRB26s5Compensator = new TGeoPcon(0., 360., 8);
2513 shRB26s5Compensator->DefineSection( 0, 0.0, 0., kRB26s5CompTubeOuterR);
2514 shRB26s5Compensator->DefineSection( 1, kRB26s5ProtZ, 0., kRB26s5CompTubeOuterR);
2515 shRB26s5Compensator->DefineSection( 2, kRB26s5ProtZ, 0., kRB26s5ProtOuterR);
2516 shRB26s5Compensator->DefineSection( 3, kRB26s5ProtZ + 2. * kRB26s5ProtL + 2. * kRB26s5RingL, 0., kRB26s5ProtOuterR);
2517 shRB26s5Compensator->DefineSection( 4, kRB26s5ProtZ + 2. * kRB26s5ProtL + 2. * kRB26s5RingL, 0., kRB26s5DetailZR);
2518 shRB26s5Compensator->DefineSection( 5, kRB26s5CompL - 8., 0., kRB26s5DetailZR);
2519 shRB26s5Compensator->DefineSection( 6, kRB26s5CompL - 8., 0., kRB26s5CompTubeOuterR);
2520 shRB26s5Compensator->DefineSection( 7, kRB26s5CompL, 0., kRB26s5CompTubeOuterR);
2521 TGeoVolume* voRB26s5Compensator = new TGeoVolume("RB26s5Compensator", shRB26s5Compensator, kMedVac);
2522
2523 //
2524 // [Pos 1] Bellow
2525 //
2526 //
2527 TGeoVolume* voRB26s5Bellow = new TGeoVolume("RB26s5Bellow",
2528 new TGeoTube(kRB26s5BellowRi, kRB26s5BellowRo, kRB26s5BellowUndL/2.), kMedVac);
2529 //
2530 // Upper part of the undulation
2531 //
2532 TGeoTorus* shRB26s5PlieTorusU = new TGeoTorus(kRB26s5BellowRo - kRB26s5PlieR, kRB26s5PlieR - kRB26s5PlieThickness, kRB26s5PlieR);
2533 shRB26s5PlieTorusU->SetName("RB26s5TorusU");
2534 TGeoTube* shRB26s5PlieTubeU = new TGeoTube (kRB26s5BellowRo - kRB26s5PlieR, kRB26s5BellowRo, kRB26s5PlieR);
2535 shRB26s5PlieTubeU->SetName("RB26s5TubeU");
2536 TGeoCompositeShape* shRB26s5UpperPlie = new TGeoCompositeShape("RB26s5UpperPlie", "RB26s5TorusU*RB26s5TubeU");
2537
2538 TGeoVolume* voRB26s5WiggleU = new TGeoVolume("RB26s5UpperPlie", shRB26s5UpperPlie, kMedSteel);
2539 //
2540 // Lower part of the undulation
2541 TGeoTorus* shRB26s5PlieTorusL = new TGeoTorus(kRB26s5BellowRi + kRB26s5PlieR, kRB26s5PlieR - kRB26s5PlieThickness, kRB26s5PlieR);
2542 shRB26s5PlieTorusL->SetName("RB26s5TorusL");
2543 TGeoTube* shRB26s5PlieTubeL = new TGeoTube (kRB26s5BellowRi, kRB26s5BellowRi + kRB26s5PlieR, kRB26s5PlieR);
2544 shRB26s5PlieTubeL->SetName("RB26s5TubeL");
2545 TGeoCompositeShape* shRB26s5LowerPlie = new TGeoCompositeShape("RB26s5LowerPlie", "RB26s5TorusL*RB26s5TubeL");
2546
2547 TGeoVolume* voRB26s5WiggleL = new TGeoVolume("RB26s5LowerPlie", shRB26s5LowerPlie, kMedSteel);
2548
2549 //
2550 // Connection between upper and lower part of undulation
2551 TGeoVolume* voRB26s5WiggleC1 = new TGeoVolume("RB26s5PlieConn1",
2552 new TGeoTube(kRB26s5BellowRi + kRB26s5PlieR,
2553 kRB26s5BellowRo - kRB26s5PlieR, kRB26s5PlieThickness / 2.), kMedSteel);
2554 //
2555 // One wiggle
2556 TGeoVolumeAssembly* voRB26s5Wiggle = new TGeoVolumeAssembly("RB26s5Wiggle");
2557 z0 = - kRB26s5PlieThickness / 2.;
2558 voRB26s5Wiggle->AddNode(voRB26s5WiggleC1, 1 , new TGeoTranslation(0., 0., z0));
2559 z0 += kRB26s5PlieR - kRB26s5PlieThickness / 2.;
2560 voRB26s5Wiggle->AddNode(voRB26s5WiggleU, 1 , new TGeoTranslation(0., 0., z0));
2561 z0 += kRB26s5PlieR - kRB26s5PlieThickness / 2.;
2562 voRB26s5Wiggle->AddNode(voRB26s5WiggleC1, 2 , new TGeoTranslation(0., 0., z0));
2563 z0 += kRB26s5PlieR - kRB26s5PlieThickness;
2564 voRB26s5Wiggle->AddNode(voRB26s5WiggleL , 1 , new TGeoTranslation(0., 0., z0));
2565 // Positioning of the volumes
2566 z0 = - kRB26s5BellowUndL/2.+ kRB26s5ConnectionPlieR;
2567 voRB26s5Bellow->AddNode(voRB26s5WiggleL, 1, new TGeoTranslation(0., 0., z0));
2568 z0 += kRB26s5ConnectionPlieR;
2569 zsh = 4. * kRB26s5PlieR - 2. * kRB26s5PlieThickness;
2570 for (Int_t iw = 0; iw < kRB26s5NumberOfPlies; iw++) {
2571 Float_t zpos = z0 + iw * zsh;
2572 voRB26s5Bellow->AddNode(voRB26s5Wiggle, iw + 1, new TGeoTranslation(0., 0., zpos - kRB26s5PlieThickness));
2573 }
2574
2575 voRB26s5Compensator->AddNode(voRB26s5Bellow, 1, new TGeoTranslation(0., 0., 2. * kRB26s5WeldingTubeLeftL + kRB26s5BellowUndL/2.));
2576
2577 //
2578 // [Pos 2] Left Welding Tube
2579 //
2580 TGeoPcon* shRB26s5CompLeftTube = new TGeoPcon(0., 360., 3);
2581 z0 = 0;
2582 shRB26s5CompLeftTube->DefineSection(0, z0, kRB26s5CompTubeInnerR, kRB26s5CompTubeOuterR);
2583 z0 += 2 * kRB26s5WeldingTubeLeftL - ( kRB26s5ConnectionR - kRB26s5CompTubeOuterR);
2584 shRB26s5CompLeftTube->DefineSection(1, z0, kRB26s5CompTubeInnerR, kRB26s5CompTubeOuterR);
2585 z0 += ( kRB26s5ConnectionR - kRB26s5CompTubeOuterR);
2586 shRB26s5CompLeftTube->DefineSection(2, z0, kRB26s5ConnectionR - 0.15, kRB26s5ConnectionR);
2587 TGeoVolume* voRB26s5CompLeftTube = new TGeoVolume("RB26s5CompLeftTube", shRB26s5CompLeftTube, kMedSteel);
2588 voRB26s5Compensator->AddNode(voRB26s5CompLeftTube, 1, gGeoIdentity);
2589 //
2590 // [Pos 3] Right Welding Tube
2591 //
2592 TGeoPcon* shRB26s5CompRightTube = new TGeoPcon(0., 360., 11);
2593 // Detail Z
2594 shRB26s5CompRightTube->DefineSection( 0, 0. , kRB26s5CompTubeInnerR + 0.22, 11.2/2.);
2595 shRB26s5CompRightTube->DefineSection( 1, 0.05, kRB26s5CompTubeInnerR + 0.18, 11.2/2.);
2596 shRB26s5CompRightTube->DefineSection( 2, 0.22, kRB26s5CompTubeInnerR , 11.2/2. - 0.22);
2597 shRB26s5CompRightTube->DefineSection( 3, 0.44, kRB26s5CompTubeInnerR , 11.2/2.);
2598 shRB26s5CompRightTube->DefineSection( 4, 1.70, kRB26s5CompTubeInnerR , 11.2/2.);
2599 shRB26s5CompRightTube->DefineSection( 5, 2.10, kRB26s5CompTubeInnerR , kRB26s5CompTubeOuterR);
2600 shRB26s5CompRightTube->DefineSection( 6, 2.80, kRB26s5CompTubeInnerR , kRB26s5CompTubeOuterR);
2601 shRB26s5CompRightTube->DefineSection( 7, 2.80, kRB26s5CompTubeInnerR , 11.3/2.);
2602 shRB26s5CompRightTube->DefineSection( 8, 3.40, kRB26s5CompTubeInnerR , 11.3/2.);
2603 // Normal pipe
2604 shRB26s5CompRightTube->DefineSection( 9, 3.50, kRB26s5CompTubeInnerR , kRB26s5CompTubeOuterR);
2605 shRB26s5CompRightTube->DefineSection(10, 2. * kRB26s5WeldingTubeRightL, kRB26s5CompTubeInnerR, kRB26s5CompTubeOuterR);
2606
2607 TGeoVolume* voRB26s5CompRightTube =
2608 new TGeoVolume("RB26s5CompRightTube", shRB26s5CompRightTube, kMedSteel);
2609 voRB26s5Compensator->AddNode(voRB26s5CompRightTube, 1,
2610 new TGeoTranslation(0., 0., kRB26s5CompL - 2. * kRB26s5WeldingTubeRightL));
2611 //
2612 // [Pos 4] Ring
2613 //
2614 TGeoTube* shRB26s5CompRing = new TGeoTube(kRB26s5RingInnerR, kRB26s5RingOuterR, kRB26s5RingL);
2615 TGeoVolume* voRB26s5CompRing =
2616 new TGeoVolume("RB26s5CompRing", shRB26s5CompRing, kMedSteel);
2617 voRB26s5Compensator->AddNode(voRB26s5CompRing, 1, new TGeoTranslation(0., 0., kRB26s5RingZ + kRB26s5RingL));
2618
2619 //
2620 // [Pos 5] Outer Protecting Tube
2621 //
2622 TGeoTube* shRB26s5CompProtTube = new TGeoTube(kRB26s5RingOuterR, kRB26s5ProtOuterR, kRB26s5ProtL);
2623 TGeoVolume* voRB26s5CompProtTube =
2624 new TGeoVolume("RB26s5CompProtTube", shRB26s5CompProtTube, kMedSteel);
2625 voRB26s5Compensator->AddNode(voRB26s5CompProtTube, 1, new TGeoTranslation(0., 0., kRB26s5ProtZ + kRB26s5ProtL));
2626
2627 ///////////////////////////////////////
2628 // RB26/4 Fixed Point Section //
2629 // Drawing LHCVC2a_0016 //
2630 ///////////////////////////////////////
2631 const Float_t kRB26s4TubeRi = 30.30/2. ; // Tube inner radius (0.3 cm added for welding)
2632 const Float_t kRB26s4TubeRo = 30.60/2. ; // Tube outer radius
2633 const Float_t kRB26s4FixedPointL = 12.63 ; // Length of the fixed point section
2634 const Float_t kRB26s4FixedPointZ = 10.53 ; // Position of the ring (0.15 added for welding)
2635 const Float_t kRB26s4FixedPointD = 0.595 ; // Width of the ring
2636 const Float_t kRB26s4FixedPointR = 31.60/2. ; // Radius of the ring
2637
2638 TGeoPcon* shRB26s4FixedPoint = new TGeoPcon(0., 360., 6);
2639 z0 = 0.;
2640 shRB26s4FixedPoint->DefineSection(0, z0, kRB26s4TubeRi, kRB26s4TubeRo);
2641 z0 += kRB26s4FixedPointZ;
2642 shRB26s4FixedPoint->DefineSection(1, z0, kRB26s4TubeRi, kRB26s4TubeRo);
2643 shRB26s4FixedPoint->DefineSection(2, z0, kRB26s4TubeRi, kRB26s4FixedPointR);
2644 z0 += kRB26s4FixedPointD;
2645 shRB26s4FixedPoint->DefineSection(3, z0, kRB26s4TubeRi, kRB26s4FixedPointR);
2646 shRB26s4FixedPoint->DefineSection(4, z0, kRB26s4TubeRi, kRB26s4TubeRo);
2647 z0 = kRB26s4FixedPointL;
2648 shRB26s4FixedPoint->DefineSection(5, z0, kRB26s4TubeRi, kRB26s4TubeRo);
2649 TGeoVolume* voRB26s4FixedPoint = new TGeoVolume("RB26s4FixedPoint", shRB26s4FixedPoint, kMedSteel);
2650
2651 TGeoVolume* voRB26s4FixedPointM = new TGeoVolume("RB26s4FixedPointM", MakeMotherFromTemplate(shRB26s4FixedPoint), kMedVac);
2652 voRB26s4FixedPointM->AddNode(voRB26s4FixedPoint, 1, gGeoIdentity);
2653
2654
2655 ///////////////////////////////////////
2656 // RB26/4 Split Flange //
2657 // Drawing LHCVFX__0005 //
2658 ///////////////////////////////////////
2659 const Float_t kRB26s4SFlangeL = 2.99; // Length of the flange
2660 const Float_t kRB26s4SFlangeD1 = 0.85; // Length of section 1
2661 const Float_t kRB26s4SFlangeD2 = 0.36; // Length of section 2
2662 const Float_t kRB26s4SFlangeD3 = 0.73 + 1.05; // Length of section 3
2663 const Float_t kRB26s4SFlangeRo = 36.20/2.; // Flange outer radius
2664 const Float_t kRB26s4SFlangeRi1 = 30.60/2.; // Flange inner radius section 1
2665 const Float_t kRB26s4SFlangeRi2 = 30.00/2.; // Flange inner radius section 2
2666 const Float_t kRB26s4SFlangeRi3 = 30.60/2.; // Flange inner radius section 3
2667 z0 = 0;
2668 TGeoPcon* shRB26s4SFlange = new TGeoPcon(0., 360., 6);
2669 z0 = 0.;
2670 shRB26s4SFlange->DefineSection(0, z0, kRB26s4SFlangeRi1, kRB26s4SFlangeRo);
2671 z0 += kRB26s4SFlangeD1;
2672 shRB26s4SFlange->DefineSection(1, z0, kRB26s4SFlangeRi1, kRB26s4SFlangeRo);
2673 shRB26s4SFlange->DefineSection(2, z0, kRB26s4SFlangeRi2, kRB26s4SFlangeRo);
2674 z0 += kRB26s4SFlangeD2;
2675 shRB26s4SFlange->DefineSection(3, z0, kRB26s4SFlangeRi2, kRB26s4SFlangeRo);
2676 shRB26s4SFlange->DefineSection(4, z0, kRB26s4SFlangeRi3, kRB26s4SFlangeRo);
2677 z0 += kRB26s4SFlangeD3;
2678 shRB26s4SFlange->DefineSection(5, z0, kRB26s4SFlangeRi3, kRB26s4SFlangeRo);
2679 TGeoVolume* voRB26s4SFlange = new TGeoVolume("RB26s4SFlange", shRB26s4SFlange, kMedSteel);
2680
2681 TGeoVolume* voRB26s4SFlangeM = new TGeoVolume("RB26s4SFlangeM", MakeMotherFromTemplate(shRB26s4SFlange, 0, 3), kMedVac);
2682 voRB26s4SFlangeM->AddNode(voRB26s4SFlange, 1, gGeoIdentity);
2683
2684 ///////////////////////////////////////
2685 // RB26/5 Rotable Flange //
2686 // Drawing LHCVFX__0009 //
2687 ///////////////////////////////////////
2688 const Float_t kRB26s5RFlangeL = 1.86; // Length of the flange
2689 const Float_t kRB26s5RFlangeD1 = 0.61; // Length of section 1
2690 const Float_t kRB26s5RFlangeD2 = 0.15; // Length of section 2
2691 const Float_t kRB26s5RFlangeD3 = 0.60; // Length of section 3
2692 const Float_t kRB26s5RFlangeD4 = 0.50; // Length of section 4
2693 const Float_t kRB26s5RFlangeRo = 15.20/2.; // Flange outer radius
2694 const Float_t kRB26s5RFlangeRi1 = 10.30/2.; // Flange inner radius section 1
2695 const Float_t kRB26s5RFlangeRi2 = 10.00/2.; // Flange inner radius section 2
2696 const Float_t kRB26s5RFlangeRi3 = 10.30/2.; // Flange inner radius section 3
2697 const Float_t kRB26s5RFlangeRi4 = 10.50/2.; // Flange inner radius section 4
2698
2699 z0 = 0;
2700 TGeoPcon* shRB26s5RFlange = new TGeoPcon(0., 360., 8);
2701 z0 = 0.;
2702 shRB26s5RFlange->DefineSection(0, z0, kRB26s5RFlangeRi4, kRB26s5RFlangeRo);
2703 z0 += kRB26s5RFlangeD4;
2704 shRB26s5RFlange->DefineSection(1, z0, kRB26s5RFlangeRi4, kRB26s5RFlangeRo);
2705 shRB26s5RFlange->DefineSection(2, z0, kRB26s5RFlangeRi3, kRB26s5RFlangeRo);
2706 z0 += kRB26s5RFlangeD3;
2707 shRB26s5RFlange->DefineSection(3, z0, kRB26s5RFlangeRi3, kRB26s5RFlangeRo);
2708 shRB26s5RFlange->DefineSection(4, z0, kRB26s5RFlangeRi2, kRB26s5RFlangeRo);
2709 z0 += kRB26s5RFlangeD2;
2710 shRB26s5RFlange->DefineSection(5, z0, kRB26s5RFlangeRi2, kRB26s5RFlangeRo);
2711 shRB26s5RFlange->DefineSection(6, z0, kRB26s5RFlangeRi1, kRB26s5RFlangeRo);
2712 z0 += kRB26s5RFlangeD1;
2713 shRB26s5RFlange->DefineSection(7, z0, kRB26s5RFlangeRi1, kRB26s5RFlangeRo);
2714 TGeoVolume* voRB26s5RFlange = new TGeoVolume("RB26s5RFlange", shRB26s5RFlange, kMedSteel);
2715
2716 TGeoVolume* voRB26s5RFlangeM = new TGeoVolume("RB26s5RFlangeM", MakeMotherFromTemplate(shRB26s5RFlange, 4, 7), kMedVac);
2717 voRB26s5RFlangeM->AddNode(voRB26s5RFlange, 1, gGeoIdentity);
2718
2719 //
2720 // Assemble RB26/1-2
2721 //
2722 TGeoVolumeAssembly* asRB26s12 = new TGeoVolumeAssembly("RB26s12");
2723 z0 = 0.;
2724 asRB26s12->AddNode(voRB26s1RFlange, 1, gGeoIdentity);
2725 z0 += kRB26s1RFlangeIsL + kRB26s1RFlangeFpL;
2726 asRB26s12->AddNode(voRB26s12TubeM, 1, new TGeoTranslation(0., 0., z0));
2727 z0 += kRB26s12TubeL;
2728 asRB26s12->AddNode(voRB26s2Compensator, 1, new TGeoTranslation(0., 0., z0));
2729 z0 += kRB26s2CompL;
2730 z0 -= kRB26s2FFlangeD1;
2731 asRB26s12->AddNode(voRB26s2FFlangeM, 1, new TGeoTranslation(0., 0., z0));
2732 z0 += kRB26s2FFlangeL;
2733 const Float_t kRB26s12L = z0;
2734
2735 //
2736 // Assemble RB26/3
2737 //
2738 TGeoVolumeAssembly* asRB26s3 = new TGeoVolumeAssembly("RB26s3");
2739 z0 = 0.;
2740 asRB26s3->AddNode(voRB26s3SFlangeM, 1, gGeoIdentity);
2741 z0 += kRB26s3SFlangeL;
2742 z0 -= kRB26s3SFlangeD3;
2743 asRB26s3->AddNode(voRB26s3FixedPointM, 1, new TGeoTranslation(0., 0., z0));
2744 z0 += kRB26s3FixedPointL;
2745 asRB26s3->AddNode(voRB26s3TubeM, 1, new TGeoTranslation(0., 0., z0));
2746 z0 += kRB26s3TubeL;
2747 asRB26s3->AddNode(voRB26s3Compensator, 1, new TGeoTranslation(0., 0., z0));
2748 z0 += kRB26s3CompL;
2749 z0 -= kRB26s3FFlangeD1;
2750 asRB26s3->AddNode(voRB26s3FFlangeM, 1, new TGeoTranslation(0., 0., z0));
2751 z0 += kRB26s3FFlangeL;
2752 const Float_t kRB26s3L = z0;
2753
2754
2755 //
2756 // Assemble RB26/4-5
2757 //
2758 TGeoVolumeAssembly* asRB26s45 = new TGeoVolumeAssembly("RB26s45");
2759 z0 = 0.;
2760 asRB26s45->AddNode(voRB26s4SFlangeM, 1, gGeoIdentity);
2761 z0 += kRB26s4SFlangeL;
2762 z0 -= kRB26s4SFlangeD3;
2763 asRB26s45->AddNode(voRB26s4FixedPointM, 1, new TGeoTranslation(0., 0., z0));
2764 z0 += kRB26s4FixedPointL;
2765 asRB26s45->AddNode(voRB26s45TubeM, 1, new TGeoTranslation(0., 0., z0));
2766 z0 += kRB26s45TubeL;
2767 asRB26s45->AddNode(voRB26s5Compensator, 1, new TGeoTranslation(0., 0., z0));
2768 z0 += kRB26s5CompL;
2769 z0 -= kRB26s5RFlangeD3;
2770 z0 -= kRB26s5RFlangeD4;
2771 asRB26s45->AddNode(voRB26s5RFlangeM, 1, new TGeoTranslation(0., 0., z0));
2772 z0 += kRB26s5RFlangeL;
2773 const Float_t kRB26s45L = z0;
2774
2775 //
2776 // Assemble RB26
2777 //
2778 TGeoVolumeAssembly* asRB26Pipe = new TGeoVolumeAssembly("RB26Pipe");
2779 z0 = 0.;
2780 asRB26Pipe->AddNode(asRB26s12, 1, new TGeoTranslation(0., 0., z0));
2781 z0 += kRB26s12L;
2782 asRB26Pipe->AddNode(asRB26s3, 1, new TGeoTranslation(0., 0., z0));
2783 z0 += kRB26s3L;
2784 asRB26Pipe->AddNode(asRB26s45, 1, new TGeoTranslation(0., 0., z0));
2785 z0 += kRB26s45L;
2786 top->AddNode(asRB26Pipe, 1, new TGeoCombiTrans(0., 0., -82., rot180));
2787}
2788
2789
2790
2791//___________________________________________
2792void AliPIPEv4::CreateMaterials()
2793{
2794 //
2795 // Define materials for beam pipe
2796 //
2797
2798 AliDebugClass(1,"Create PIPEv4 materials");
2799 Int_t isxfld = ((AliMagF*)TGeoGlobalMagField::Instance()->GetField())->Integ();
2800 Float_t sxmgmx = ((AliMagF*)TGeoGlobalMagField::Instance()->GetField())->Max();
2801 // Steel (Inox)
2802 Float_t asteel[4] = { 55.847,51.9961,58.6934,28.0855 };
2803 Float_t zsteel[4] = { 26.,24.,28.,14. };
2804 Float_t wsteel[4] = { .715,.18,.1,.005 };
2805 // AlBe - alloy
af5f3976 2806 Float_t aAlBe[2] = { 26.98, 9.01}; // al=2.702 be=1.8477
820b4d9e 2807 Float_t zAlBe[2] = { 13.00, 4.00};
2808 Float_t wAlBe[2] = { 0.4, 0.6};
2809 //
2810 // Polyamid
2811 Float_t aPA[4] = {16., 14., 12., 1.};
2812 Float_t zPA[4] = { 8., 7., 6., 1.};
2813 Float_t wPA[4] = { 1., 1., 6., 11.};
2814 //
2815 // Air
2816 //
2817 Float_t aAir[4]={12.0107,14.0067,15.9994,39.948};
2818 Float_t zAir[4]={6.,7.,8.,18.};
2819 Float_t wAir[4]={0.000124,0.755267,0.231781,0.012827};
2820 Float_t dAir = 1.20479E-3;
2821 Float_t dAir1 = 1.20479E-10;
2822 //
2823 // Insulation powder
2824 // Si O Ti Al
2825 Float_t ains[4] ={28.0855, 15.9994, 47.867, 26.982};
2826 Float_t zins[4] ={14., 8. , 22. , 13. };
2827 Float_t wins[4] ={ 0.3019, 0.4887, 0.1914, 0.018};
2828 //
2829 //
2830 // Anticorodal
2831 //
2832 // Al Si7 Mg 0.6
2833 //
2834 Float_t aaco[3] ={26.982, 28.0855, 24.035};
2835 Float_t zaco[3] ={13., 14. , 12. };
2836 Float_t waco[3] ={ 0.924, 0.07, 0.006};
2837 // Kapton
2838 //
2839 Float_t aKapton[4]={1.00794,12.0107, 14.010,15.9994};
2840 Float_t zKapton[4]={1.,6.,7.,8.};
2841 Float_t wKapton[4]={0.026362,0.69113,0.07327,0.209235};
2842 Float_t dKapton = 1.42;
2843 // NEG coating
2844 // Ti V Zr
2845 Float_t aNEG[4] = {47.87, 50.94, 91.24};
2846 Float_t zNEG[4] = {22.00, 23.00, 40.00};
2847 Float_t wNEG[4] = {1./3., 1./3., 1./3.};
2848 Float_t dNEG = 5.6; // ?
2849
af5f3976 2850 //---------------------------------
2851 // Aluminium AA 5083 for MFT: Al Manganese(Mn) Magnesium(Mg) Chrome(Cr)
2852 Float_t aALU5083[4]={26.982, 54.938, 24.305, 51.996}; // Mg pas meme a que la ligne Anticorodal!
2853 Float_t zALU5083[4] ={13., 25., 12., 24.};
2854 Float_t wALU5083[4] ={0.947, 0.007, 0.044, 0.0015};
2855 // Aluminium AA 2219 for MFT: Al Cu Mn Ti V Zr
2856 Float_t aALU2219[6]={26.982, 63.546, 54.938, 47.867, 50.941, 91.224};
2857 Float_t zALU2219[6] ={13., 29., 25., 22., 23., 40.};
2858 Float_t wALU2219[6] ={0.93, 0.063, 0.003, 0.0006, 0.001, 0.0018};
2859 //---------------------------------
2860
820b4d9e 2861 //
af5f3976 2862 // Silicon for ITS UPGRADE
2863 AliMaterial(2, "SILICON$",28.09 , 14.00 , 2.33 , 9.36 , 45.);
2864
820b4d9e 2865 //
2866 // Berillium
2867 AliMaterial(5, "BERILLIUM$", 9.01, 4., 1.848, 35.3, 36.7);
2868 //
2869 // Carbon
2870 AliMaterial(6, "CARBON$ ", 12.01, 6., 2.265, 18.8, 49.9);
2871 //
2872 // Aluminum
2873 AliMaterial(9, "ALUMINIUM$", 26.98, 13., 2.7, 8.9, 37.2);
2874 //
2875 // Copper
2876 AliMaterial(10, "COPPER", 63.55, 29, 8.96, 1.43, 85.6/8.96);
2877 //
2878 // Air
2879 AliMixture(15, "AIR$ ", aAir, zAir, dAir, 4, wAir);
2880 AliMixture(35, "AIR_HIGH$ ", aAir, zAir, dAir, 4, wAir);
2881 //
2882 // Vacuum
2883 AliMixture(16, "VACUUM$ ", aAir, zAir, dAir1, 4, wAir);
2884 //
2885 // stainless Steel
2886 AliMixture(19, "STAINLESS STEEL$", asteel, zsteel, 7.88, 4, wsteel);
2887 //
2888 // reduced density steel to approximate pump getter material
2889 AliMixture(20, "GETTER$", asteel, zsteel, 1.00, 4, wsteel);
2890 // Al-Be alloy
2891 //
af5f3976 2892 AliMixture(21, "AlBe$", aAlBe, zAlBe, 2.07, 2, wAlBe);
820b4d9e 2893 // Polyamid
2894 //
2895 AliMixture(22, "PA$", aPA, zPA, 1.14, -4, wPA);
2896 //
2897 // Kapton
2898 AliMixture(23, "KAPTON", aKapton, zKapton, dKapton, 4, wKapton);
2899 // Anticorodal
2900 AliMixture(24, "ANTICORODAL", aaco, zaco, 2.66, 3, waco);
2901
2902 //
2903 // Insulation powder
2904 AliMixture(14, "INSULATION0$", ains, zins, 0.41, 4, wins);
2905 AliMixture(34, "INSULATION1$", ains, zins, 0.41, 4, wins);
2906 AliMixture(54, "INSULATION2$", ains, zins, 0.41, 4, wins);
2907
2908 // NEG
2909 AliMixture(25, "NEG COATING", aNEG, zNEG, dNEG, -3, wNEG);
af5f3976 2910
2911 //---------------------------------
2912 // Aluminium AA5083 for MFT
2913 AliMixture(63, "ALUMINIUM5083$",aALU5083,zALU5083, 2.66 ,4,wALU5083); // from aubertduval.fr
2914 // Aluminium AA2219 for MFT
2915 AliMixture(64, "ALUMINIUM2219$",aALU2219,zALU2219, 2.84 ,6,wALU2219); // from aubertduval.fr
2916 //---------------------------------
820b4d9e 2917
2918 // ****************
2919 // Defines tracking media parameters.
2920 //
2921 Float_t epsil = .001; // Tracking precision,
2922 Float_t stemax = -0.01; // Maximum displacement for multiple scat
2923 Float_t tmaxfd = -20.; // Maximum angle due to field deflection
2924 Float_t deemax = -.3; // Maximum fractional energy loss, DLS
2925 Float_t stmin = -.8;
2926 // ***************
2927 //
af5f3976 2928 // Silicon for ITS UPGRADE
2929 AliMedium(2, "SILICON", 2, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
2930
2931
820b4d9e 2932 // Beryllium
2933
2934 AliMedium(5, "BE", 5, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
2935
2936 // Carbon
2937 AliMedium(6, "C", 6, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
2938 //
2939 // Aluminum
2940 AliMedium(9, "ALU", 9, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
2941 // Copper
2942 AliMedium(10, "CU", 10, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
2943 //
2944 // Air
2945 AliMedium(15, "AIR", 15, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
2946 AliMedium(35, "AIR_HIGH",35, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
2947 //
2948 // Vacuum
2949 AliMedium(16, "VACUUM", 16, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
2950 //
2951 // Steel
2952 AliMedium(19, "INOX", 19, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
2953 //
2954 // Getter
2955 AliMedium(20, "GETTER", 20, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
2956 //
2957 // AlBe - Aloy
2958 AliMedium(21, "AlBe" , 21, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
2959 //
2960 // Polyamid
2961 AliMedium(22, "PA" , 22, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
2962 // Antocorodal
2963 AliMedium(24, "ANTICORODAL", 24, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
2964 // Insulation Powder
2965 AliMedium(14, "INS_C0 ", 14, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
2966 AliMedium(34, "INS_C1 ", 34, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
2967 AliMedium(54, "INS_C2 ", 54, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
2968 //
2969 // KAPTON
2970 AliMedium(23, "KAPTON", 23, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
2971
2972 //
2973 // NEG
2974 AliMedium(25, "NEG COATING", 25, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
af5f3976 2975
2976 //----------------- for the MFT ----------------------
2977 AliMedium(63,"AA5083", 63, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
2978 AliMedium(64,"AA2219", 64, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
2979 //----------------------------------------------------
2980
2981
820b4d9e 2982}
2983
2984
2985TGeoPcon* AliPIPEv4::MakeMotherFromTemplate(TGeoPcon* shape, Int_t imin, Int_t imax, Float_t r0, Int_t nz)
2986{
2987 //
2988 // Create a mother shape from a template setting some min radii to 0
2989 //
2990 Int_t nz0 = shape->GetNz();
2991 // if nz > -1 the number of planes is given by nz
2992 if (nz != -1) nz0 = nz;
2993 TGeoPcon* mother = new TGeoPcon(0., 360., nz0);
2994
2995 if (imin == -1 || imax == -1) {
2996 imin = 0;
2997 imax = shape->GetNz();
2998 } else if (imax >= nz0) {
2999 imax = nz0 - 1;
3000 printf("Warning: imax reset to nz-1 %5d %5d %5d %5d\n", imin, imax, nz, nz0);
3001 }
3002
3003
3004
3005 for (Int_t i = 0; i < shape->GetNz(); i++) {
3006 Double_t rmin = shape->GetRmin(i);
3007 if ((i >= imin) && (i <= imax) ) rmin = r0;
3008 Double_t rmax = shape->GetRmax(i);
3009 Double_t z = shape->GetZ(i);
3010 mother->DefineSection(i, z, rmin, rmax);
3011 }
3012 return mother;
3013
3014}
3015
3016TGeoPcon* AliPIPEv4::MakeInsulationFromTemplate(TGeoPcon* shape)
3017{
3018 //
3019 // Create an beam pipe insulation layer shape from a template
3020 //
3021 Int_t nz = shape->GetNz();
3022 TGeoPcon* insu = new TGeoPcon(0., 360., nz);
3023
3024 for (Int_t i = 0; i < nz; i++) {
3025 Double_t z = shape->GetZ(i);
3026 Double_t rmin = shape->GetRmin(i);
3027 Double_t rmax = shape->GetRmax(i);
3028 rmax += 0.5;
3029 shape->DefineSection(i, z, rmin, rmax);
3030 rmin = rmax - 0.5;
3031 insu->DefineSection(i, z, rmin, rmax);
3032 }
3033 return insu;
3034
3035}
3036
3037
3038TGeoVolume* AliPIPEv4::MakeBellow(const char* ext, Int_t nc, Float_t rMin, Float_t rMax, Float_t dU, Float_t rPlie, Float_t dPlie)
3039{
3040 // nc Number of convolution
3041 // rMin Inner radius of the bellow
3042 // rMax Outer radius of the bellow
3043 // dU Undulation length
3044 // rPlie Plie radius
3045 // dPlie Plie thickness
3046 const TGeoMedium* kMedVac = gGeoManager->GetMedium("PIPE_VACUUM");
af5f3976 3047 //const TGeoMedium* kMedSteel = gGeoManager->GetMedium("PIPE_INOX");
3048 const TGeoMedium* kMedAlu5083 = gGeoManager->GetMedium("PIPE_AA5083"); //FM
820b4d9e 3049
3050 char name[64], nameA[64], nameB[64], bools[64];
267ba80c 3051 snprintf(name, 64, "%sBellowUS", ext);
820b4d9e 3052 TGeoVolume* voBellow = new TGeoVolume(name, new TGeoTube(rMin, rMax, dU/2.), kMedVac);
3053 //
3054 // Upper part of the undulation
3055 //
3056 TGeoTorus* shPlieTorusU = new TGeoTorus(rMax - rPlie, rPlie - dPlie, rPlie);
267ba80c 3057 snprintf(nameA, 64, "%sTorusU", ext);
820b4d9e 3058 shPlieTorusU->SetName(nameA);
3059 TGeoTube* shPlieTubeU = new TGeoTube (rMax - rPlie, rMax, rPlie);
267ba80c 3060 snprintf(nameB, 64, "%sTubeU", ext);
820b4d9e 3061 shPlieTubeU->SetName(nameB);
267ba80c 3062 snprintf(name, 64, "%sUpperPlie", ext);
3063 snprintf(bools, 64, "%s*%s", nameA, nameB);
820b4d9e 3064 TGeoCompositeShape* shUpperPlie = new TGeoCompositeShape(name, bools);
3065
af5f3976 3066 TGeoVolume* voWiggleU = new TGeoVolume(name, shUpperPlie, kMedAlu5083);
3067 voWiggleU->SetLineColor(kOrange+3); //FM
820b4d9e 3068 //
3069 // Lower part of the undulation
3070 TGeoTorus* shPlieTorusL = new TGeoTorus(rMin + rPlie, rPlie - dPlie, rPlie);
267ba80c 3071 snprintf(nameA, 64, "%sTorusL", ext);
820b4d9e 3072 shPlieTorusL->SetName(nameA);
3073 TGeoTube* shPlieTubeL = new TGeoTube (rMin, rMin + rPlie, rPlie);
267ba80c 3074 snprintf(nameB, 64, "%sTubeL", ext);
820b4d9e 3075 shPlieTubeL->SetName(nameB);
267ba80c 3076 snprintf(name, 64, "%sLowerPlie", ext);
3077 snprintf(bools, 64, "%s*%s", nameA, nameB);
820b4d9e 3078 TGeoCompositeShape* shLowerPlie = new TGeoCompositeShape(name, bools);
3079
af5f3976 3080 TGeoVolume* voWiggleL = new TGeoVolume(name, shLowerPlie, kMedAlu5083);
3081 voWiggleL->SetLineColor(kOrange+3); //FM
820b4d9e 3082 //
3083 // Connection between upper and lower part of undulation
267ba80c 3084 snprintf(name, 64, "%sPlieConn1", ext);
af5f3976 3085 TGeoVolume* voWiggleC1 = new TGeoVolume(name, new TGeoTube(rMin + rPlie, rMax - rPlie, dPlie/2.), kMedAlu5083);
3086 voWiggleC1->SetLineColor(kOrange+3); //FM
820b4d9e 3087 //
3088 // One wiggle
3089 Float_t dz = rPlie - dPlie / 2.;
3090 Float_t z0 = - dPlie / 2.;
267ba80c 3091 snprintf(name, 64, "%sWiggle", ext);
820b4d9e 3092 TGeoVolumeAssembly* asWiggle = new TGeoVolumeAssembly(name);
af5f3976 3093
820b4d9e 3094 asWiggle->AddNode(voWiggleC1, 1 , new TGeoTranslation(0., 0., z0));
3095 z0 += dz;
3096 asWiggle->AddNode(voWiggleU, 1 , new TGeoTranslation(0., 0., z0));
3097 z0 += dz;
3098 asWiggle->AddNode(voWiggleC1, 2 , new TGeoTranslation(0., 0., z0));
3099 z0 += dz;
3100 asWiggle->AddNode(voWiggleL , 1 , new TGeoTranslation(0., 0., z0));
3101 // Positioning of the volumes
3102 z0 = - dU / 2.+ rPlie;
3103 voBellow->AddNode(voWiggleL, 2, new TGeoTranslation(0., 0., z0));
3104 z0 += rPlie;
3105 Float_t zsh = 4. * rPlie - 2. * dPlie;
3106 for (Int_t iw = 0; iw < nc; iw++) {
3107 Float_t zpos = z0 + iw * zsh;
af5f3976 3108 voBellow->AddNode(asWiggle, iw + 1, new TGeoTranslation(0., 0., zpos - dPlie));
3109
820b4d9e 3110 }
3111 return voBellow;
3112}
3113
3114