1 /**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
7 * Permission to use, copy, modify and distribute this software and its *
8 * documentation strictly for non-commercial purposes is hereby granted *
9 * without fee, provided that the above copyright notice appears in all *
10 * copies and that both the copyright notice and this permission notice *
11 * appear in the supporting documentation. The authors make no claims *
12 * about the suitability of this software for any purpose. It is *
13 * provided "as is" without express or implied warranty. *
14 **************************************************************************/
18 //-------------------------------------------------------------------------
19 // The Front Absorber FA
22 // andreas.morsch@cern.ch
23 //-------------------------------------------------------------------------
25 #include <TVirtualMC.h>
27 #include <TGeoVolume.h>
29 #include <TGeoManager.h>
30 #include <TGeoMatrix.h>
31 #include <TGeoCompositeShape.h>
34 #include <TGeoTorus.h>
38 #include "AliABSOv3.h"
44 //_____________________________________________________________________________
45 AliABSOv3::AliABSOv3()
48 // Default constructor for muon shield
52 //_____________________________________________________________________________
53 AliABSOv3::AliABSOv3(const char *name, const char *title)
56 // Standard constructor for muon shield
60 //_____________________________________________________________________________
61 void AliABSOv3::CreateGeometry()
64 // Build muon shield geometry
72 TGeoVolume* top = gGeoManager->GetVolume("ALIC");
77 TGeoMedium* kMedNiW = gGeoManager->GetMedium("ABSO_Ni/W0");
78 TGeoMedium* kMedNiWsh = gGeoManager->GetMedium("ABSO_Ni/W3");
80 TGeoMedium* kMedSteel = gGeoManager->GetMedium("ABSO_ST_C0");
81 TGeoMedium* kMedSteelSh = gGeoManager->GetMedium("ABSO_ST_C3");
83 TGeoMedium* kMedAir = gGeoManager->GetMedium("ABSO_AIR_C0");
85 TGeoMedium* kMedPb = gGeoManager->GetMedium("ABSO_PB_C0");
86 TGeoMedium* kMedPbSh = gGeoManager->GetMedium("ABSO_PB_C2");
88 TGeoMedium* kMedConcSh = gGeoManager->GetMedium("ABSO_CC_C2");
90 TGeoMedium* kMedCH2Sh = gGeoManager->GetMedium("ABSO_CH2_C2");
92 TGeoMedium* kMedC = gGeoManager->GetMedium("ABSO_C_C0");
93 TGeoMedium* kMedCsh = gGeoManager->GetMedium("ABSO_C_C2");
95 TGeoMedium* kMedAlu = gGeoManager->GetMedium("ABSO_ALU_C0");
97 TGeoMedium* kMedMg = gGeoManager->GetMedium("ABSO_MG_C0");
99 const Float_t kDegRad = TMath::Pi() / 180.;
102 TGeoRotation* rotxz = new TGeoRotation("rotxz", 90., 0., 90., 90., 180., 0.);
103 ///////////////////////////////////
106 // Drawing ALIP2A__0106 //
109 ///////////////////////////////////
111 // Pos 1 Steel Envelope
113 // Pos 3 Flange (wrong arrow in the drawing)
116 // Pos 6 Tungsten Tube Part 1
117 // Pos 7 Tungsten Tube Part 2
118 // Pos 8 Tungsten Tube Part 3
119 // Pos 9 Tungsten Tube Part 4
120 // Pos 10 Tungsten Tail
121 // Pos 11 Graphite Cone
123 // Pos 13 Concrete Cone
124 // Pos 14 Polyethylene Parts
125 // Pos 15 Steel Plate 25 cm
126 // Pos 16 Steel Plate 31 cm
127 // Pos 17 Magnesium Ring
128 // Pos 18 Composite Ring
131 // Mimimum angle of the tracking region
132 const Float_t angle02 = TMath::Tan( 2. * kDegRad);
133 // Maximum angle of the tracking region
134 const Float_t angle10 = TMath::Tan(10. * kDegRad);
135 // Opening angle of W rear plug
136 const Float_t angle03 = TMath::Tan( 3. * kDegRad);
138 const Float_t angle05 = TMath::Tan( 5. * kDegRad);
139 // Opening angle of the FA snout
140 const Float_t angle24 = TMath::Tan(24. * kDegRad);
141 // Opneing angle of the inner cone
142 const Float_t angle71 = TMath::Tan(0.697 * kDegRad);
143 // Starting position in z
144 const Float_t zFa = 90.0;
147 ///////////////////////////////////
148 // FA Steel Envelope //
149 // Drawing ALIP2A__0036 //
150 ///////////////////////////////////
151 // Thickness of the envelope
152 Float_t dSteelEnvelope = 1.5;
156 Float_t dzSteelEnvelopeFC = 4.00;
158 Float_t rInSteelEnvelopeFC1 = 35.90/2.;
159 Float_t rInSteelEnvelopeFC2 = rInSteelEnvelopeFC1 + dzSteelEnvelopeFC * angle10;
161 Float_t rOuSteelEnvelopeFC1 = 88.97/2.;
162 Float_t rOuSteelEnvelopeFC2 = rOuSteelEnvelopeFC1 + dzSteelEnvelopeFC * angle05;
165 Float_t dzSteelEnvelopeC5 = 168.9;
166 Float_t rInSteelEnvelopeC5 = rOuSteelEnvelopeFC2 - dSteelEnvelope/TMath::Cos(5 * kDegRad);
167 Float_t rOuSteelEnvelopeC5 = rOuSteelEnvelopeFC2;
169 Float_t dzSteelEnvelopeC10 = 227.1 - 4.;
170 Float_t rInSteelEnvelopeC10 = 116.22/2.;
171 Float_t rOuSteelEnvelopeC10 = rInSteelEnvelopeC10 + dSteelEnvelope/TMath::Cos(10 * kDegRad);
173 Float_t dzSteelEnvelopeR = 4.;
174 Float_t rInSteelEnvelopeR2 = 196.3/2.;
175 Float_t rOuSteelEnvelopeR2 = 212.0/2.;
176 Float_t rInSteelEnvelopeR1 = rInSteelEnvelopeR2 - dzSteelEnvelopeR * angle10;
177 Float_t rOuSteelEnvelopeR1 = rInSteelEnvelopeR1 + dSteelEnvelope/TMath::Cos(10 * kDegRad);
179 Float_t dzSteelEnvelopeFI = 1.;
180 Float_t rInSteelEnvelopeFI = 42.0/2.;
181 Float_t rOuSteelEnvelopeFI = 85.0/2.;
183 TGeoPcon* shFaSteelEnvelopeC = new TGeoPcon(0., 360., 7);
186 shFaSteelEnvelopeC->DefineSection( 0, z, rInSteelEnvelopeFC1, rOuSteelEnvelopeFC1);
187 z += dzSteelEnvelopeFC;
188 shFaSteelEnvelopeC->DefineSection( 1, z, rInSteelEnvelopeFC2, rOuSteelEnvelopeFC2);
190 shFaSteelEnvelopeC->DefineSection( 2, z, rInSteelEnvelopeC5, rOuSteelEnvelopeC5);
191 z += dzSteelEnvelopeC5;
192 shFaSteelEnvelopeC->DefineSection( 3, z, rInSteelEnvelopeC10, rOuSteelEnvelopeC10);
194 z += dzSteelEnvelopeC10;
195 shFaSteelEnvelopeC->DefineSection( 4, z, rInSteelEnvelopeR1, rOuSteelEnvelopeR1);
197 shFaSteelEnvelopeC->DefineSection( 5, z, rInSteelEnvelopeR1, rOuSteelEnvelopeR2);
198 z += dzSteelEnvelopeR;
199 shFaSteelEnvelopeC->DefineSection( 6, z, rInSteelEnvelopeR2, rOuSteelEnvelopeR2);
202 shFaSteelEnvelopeC->SetName("steelEnvC");
203 TGeoTube* shFaSteelEnvelopeT = new TGeoTube(rInSteelEnvelopeFI, rOuSteelEnvelopeFI, dzSteelEnvelopeFI);
204 shFaSteelEnvelopeT->SetName("steelEnvT");
205 TGeoCompositeShape* shFaSteelEnvelope = new TGeoCompositeShape("shFaSteelEnvelope", "steelEnvC-steelEnvT");
207 TGeoVolume* voFaSteelEnvelope = new TGeoVolume("AFaSteelEnvelope", shFaSteelEnvelope, kMedSteel);
210 ///////////////////////////////////
212 // Drawing ALIP2A__0037 //
213 ///////////////////////////////////
217 // Outer dimensions dx, dy, dz
218 Float_t dxEndPlate = 220.0;
219 Float_t dyEndPlate = 220.0;
220 Float_t dzEndPlate = 6.0;
222 Float_t rInEndPlate = 52.5/2.;
224 Float_t rInEndPlateI = 175.3/2.;
225 Float_t rOuEndPlateI = 212.2/2.;
226 Float_t dzEndPlateI = 2.0;
229 TGeoBBox* endPlate1 = new TGeoBBox(dxEndPlate/2., dyEndPlate/2., dzEndPlate/2.);
230 endPlate1->SetName("endPlate1");
232 TGeoTube* endPlate2 = new TGeoTube(0., rInEndPlate , (dzEndPlate + 0.1) / 2.) ;
233 endPlate2->SetName("endPlate2");
234 TGeoTube* endPlate3 = new TGeoTube(rInEndPlateI, rOuEndPlateI, (dzEndPlateI + 0.1)/2.);
235 endPlate3->SetName("endPlate3");
237 TGeoTranslation* tPlate = new TGeoTranslation("tPlate", 0., 0., -dzEndPlateI - 0.05);
238 tPlate->RegisterYourself();
240 TGeoCompositeShape* shFaEndPlate = new TGeoCompositeShape("shFaEndPlate", "endPlate1-(endPlate2+endPlate3:tPlate)");
241 TGeoVolume* voFaEndPlate = new TGeoVolume("AFaEndPlate", shFaEndPlate, kMedSteel);
244 ///////////////////////////////////
246 // Drawing ALIP2A__0038 //
247 ///////////////////////////////////
248 // Width of the Flange
249 Float_t dzFaFlange = 2.;
251 Float_t rOuFaFlange = 41.0/2.;
253 Float_t dzFaFlange1 = 0.8;
254 Float_t rInFaFlange1 = 33.4/2.;
256 Float_t dzFaFlange2 = 1.2;
257 Float_t rInFaFlange2 = 36.4/2.;
259 TGeoPcon* shFaFlange = new TGeoPcon(0., 360., 4);
261 shFaFlange->DefineSection(0, z, rInFaFlange1, rOuFaFlange);
263 shFaFlange->DefineSection(1, z, rInFaFlange1, rOuFaFlange);
264 shFaFlange->DefineSection(2, z, rInFaFlange2, rOuFaFlange);
266 shFaFlange->DefineSection(3, z, rInFaFlange2, rOuFaFlange);
268 TGeoVolume* voFaFlange = new TGeoVolume("AFaFlange", shFaFlange, kMedSteel);
271 ///////////////////////////////////
273 // Drawing ALIP2A__0043 //
274 ///////////////////////////////////
276 Float_t dzFaWPlateF = 2.00;
277 Float_t rInFaQPlateF = 20.50;
278 Float_t rOuFaQPlateF = 40.05;
279 // 1st Central Part 24 deg
280 Float_t dzFaWPlateC1 = 7.95;
281 Float_t rInFaQPlateC1 = 16.35;
282 Float_t rOuFaQPlateC1 = rOuFaQPlateF + dzFaWPlateF * angle24;
283 // 2nd Central Part 5 deg
284 Float_t dzFaWPlateC2 = 1.05;
285 Float_t rInFaQPlateC2 = rInFaQPlateC1 + dzFaWPlateC1 * angle10;
286 Float_t rOuFaQPlateC2 = rOuFaQPlateC1 + dzFaWPlateC1 * angle24;
287 Float_t rInFaQPlateC3 = 17.94;
288 Float_t rOuFaQPlateC3 = 44.49;
290 Float_t dzFaWPlateR = 1.00;
291 Float_t rInFaQPlateR = 21.00;
292 Float_t rOuFaQPlateR = 42.55;
293 // Lenth of Plate - Rear Flange
294 Float_t dzFaWPlate = dzFaWPlateF + dzFaWPlateC1 + dzFaWPlateC2;
296 TGeoPcon* shFaWPlateA = new TGeoPcon(0., 360., 7);
299 shFaWPlateA->DefineSection(0, z, rInFaQPlateF, rOuFaQPlateF);
301 shFaWPlateA->DefineSection(1, z, rInFaQPlateF, rOuFaQPlateC1);
303 shFaWPlateA->DefineSection(2, z, rInFaQPlateC1, rOuFaQPlateC1);
305 shFaWPlateA->DefineSection(3, z, rInFaQPlateC2, rOuFaQPlateC2);
308 shFaWPlateA->DefineSection(4, z, rInFaQPlateC3, rOuFaQPlateC3);
310 shFaWPlateA->DefineSection(5, z, rInFaQPlateR, rOuFaQPlateR);
312 shFaWPlateA->DefineSection(6, z, rInFaQPlateR, rOuFaQPlateR);
314 TGeoVolume* voFaWPlateA = new TGeoVolume("AFaWPlateA", shFaWPlateA, kMedNiW);
315 // Inner region with higher transport cuts
316 TGeoPcon* shFaWPlateAI = new TGeoPcon(0., 360., 5);
318 shFaWPlateAI->DefineSection(0, z, rInFaQPlateF + z * angle10, rOuFaQPlateC1 + (z - dzFaWPlateF) * angle24);
319 for (Int_t i = 1; i < 5; i++) {
320 Float_t rmin = shFaWPlateA->GetRmin(i+2);
321 Float_t rmax = shFaWPlateA->GetRmax(i+2) - 3.;
322 Float_t zpos = shFaWPlateA->GetZ(i+2);
323 shFaWPlateAI->DefineSection(i, zpos, rmin, rmax);
325 TGeoVolume* voFaWPlateAI = new TGeoVolume("AFaWPlateAI", shFaWPlateAI, kMedNiWsh);
326 voFaWPlateA->AddNode(voFaWPlateAI, 1, gGeoIdentity);
329 // Inner Tungsten Shield
334 // ====================
335 // 299.3 cm - 0.6 overlap between Part 1 and Part 2
337 // Starting position 499.0 - 298.7 = 200.3
338 // Within C cone: 200.3 - 92.0 = 108.3 = end of straight section of the Graphite Cone
342 ///////////////////////////////////
343 // FA Tungsten Tube Part 1 //
344 // Drawing ALIP2A__0045 //
345 ///////////////////////////////////
348 Float_t rInFaWTube1C1 = 9.1/2.;
350 Float_t dzFaWTube1C = 98.8;
351 Float_t rOuFaWTube1C1 = 13.8/2.;
352 Float_t rOuFaWTube1C2 = 20.7/2.;
354 Float_t dzFaWTube1R = 1.0;
355 Float_t rOuFaWTube1R = 15.0/2.;
357 Float_t dzFaWTube1 = dzFaWTube1C + dzFaWTube1R;
359 TGeoPcon* shFaWTube1 = new TGeoPcon(0., 360., 4);
362 shFaWTube1->DefineSection(0, z, rInFaWTube1C1, rOuFaWTube1C1);
364 shFaWTube1->DefineSection(1, z, rInFaWTube1C1, rOuFaWTube1C2);
366 shFaWTube1->DefineSection(2, z, rInFaWTube1C1, rOuFaWTube1R);
368 shFaWTube1->DefineSection(3, z, rInFaWTube1C1, rOuFaWTube1R);
370 TGeoVolume* voFaWTube1 = new TGeoVolume("AFaWTube1", shFaWTube1, kMedNiWsh);
373 ///////////////////////////////////
374 // FA Tungsten Tube Part 2 //
375 // Drawing ALIP2A__0046 //
376 ///////////////////////////////////
380 Float_t dzFaWTube2C = 142.9;
381 Float_t rInFaWTube2C1 = 9.10/2.;
382 Float_t rInFaWTube2C2 = 12.58/2.;
383 Float_t rOuFaWTube2C1 = 20.70/2.;
384 Float_t rOuFaWTube2C2 = 30.72/2.;
386 Float_t dzFaWTube2F = 0.6;
387 Float_t rInFaWTube2F = 15.4/2.;
389 Float_t dzFaWTube2 = dzFaWTube2C + dzFaWTube2F;
391 TGeoPcon* shFaWTube2 = new TGeoPcon(0., 360., 4);
394 shFaWTube2->DefineSection(0, z, rInFaWTube2F, rOuFaWTube2C1);
396 shFaWTube2->DefineSection(1, z, rInFaWTube2F, rOuFaWTube2C1);
398 shFaWTube2->DefineSection(2, z, rInFaWTube2C1, rOuFaWTube2C1);
400 shFaWTube2->DefineSection(3, z, rInFaWTube2C2, rOuFaWTube2C2);
402 TGeoVolume* voFaWTube2 = new TGeoVolume("AFaWTube2", shFaWTube2, kMedNiWsh);
405 ///////////////////////////////////
406 // FA Tungsten Tube Part 3 //
407 // Drawing ALIP2A__0047 //
408 ///////////////////////////////////
409 Float_t dzFaWTube3 = 25.0;
410 Float_t rInFaWTube3C1 = 12.59/2.;
411 Float_t rInFaWTube3C2 = 13.23/2.;
412 Float_t rOuFaWTube3C1 = 30.60/2.;
413 Float_t rOuFaWTube3C2 = 32.35/2.;
414 TGeoVolume* voFaWTube3 = new TGeoVolume("AFaWTube3",
415 new TGeoCone(dzFaWTube3/2., rInFaWTube3C1, rOuFaWTube3C1, rInFaWTube3C2, rOuFaWTube3C2),
419 ///////////////////////////////////
420 // FA Tungsten Tube Part 4 //
421 // Drawing ALIP2A__0048 //
422 ///////////////////////////////////
423 Float_t dzFaWTube4 = 31.0;
424 Float_t rInFaWTube4C1 = 13.23/2.;
425 Float_t rInFaWTube4C2 = 13.98/2.;
426 Float_t rOuFaWTube4C1 = 48.80/2.;
427 Float_t rOuFaWTube4C2 = 52.05/2.;
428 TGeoVolume* voFaWTube4 = new TGeoVolume("AFaWTube4",
429 new TGeoCone(dzFaWTube4/2., rInFaWTube4C1, rOuFaWTube4C1, rInFaWTube4C2, rOuFaWTube4C2),
434 // This section has been moved to AliSHILv3
438 ///////////////////////////////////
439 // FA Graphite Cone //
440 // Drawing ALIP2_0002 //
441 ///////////////////////////////////
444 Float_t dzFaGraphiteCone = 225.0;
445 // Straight section = start of the 2deg inner cone
446 Float_t dzFaGraphiteConeS = 108.3;
447 // Inner radius at the front
448 Float_t rInFaGraphiteCone1 = 4.5;
449 // Outer radius at the front
450 Float_t rOuFaGraphiteCone1 = (zFa + dzFaFlange) * angle10;
451 // Inner radius at start of inner opening cone
452 Float_t rInFaGraphiteCone2 = 7.0;
453 // Outer radius at start of inner opening cone
454 Float_t rOuFaGraphiteCone2 = (zFa + dzFaFlange + dzFaGraphiteConeS) * angle10;
455 // Inner radius the rear
456 Float_t rInFaGraphiteCone3 = 11.0;
457 // Ouer radius at the rear
458 Float_t rOuFaGraphiteCone3 = (zFa + dzFaFlange + dzFaGraphiteCone) * angle10;
460 TGeoPcon* shFaGraphiteCone = new TGeoPcon(0., 360., 4);
464 shFaGraphiteCone->DefineSection(0, z, rInFaGraphiteCone1, rOuFaGraphiteCone1);
465 z += dzFaGraphiteConeS;
466 shFaGraphiteCone->DefineSection(1, z, rInFaGraphiteCone1, rOuFaGraphiteCone2);
467 // 2 deg opening cone
468 shFaGraphiteCone->DefineSection(2, z, rInFaGraphiteCone2, rOuFaGraphiteCone2);
469 z = dzFaGraphiteCone;
470 shFaGraphiteCone->DefineSection(3, z, rInFaGraphiteCone3, rOuFaGraphiteCone3);
472 TGeoVolume* voFaGraphiteCone = new TGeoVolume("AFaGraphiteCone", shFaGraphiteCone, kMedCsh);
474 // Outer region with lower transport cuts
476 TGeoCone* shFaGraphiteConeO = new TGeoCone(dz/2.,
477 rInFaGraphiteCone1, rOuFaGraphiteCone1,
478 rInFaGraphiteCone1, rOuFaGraphiteCone1 + dz * angle10);
480 TGeoVolume* voFaGraphiteConeO = new TGeoVolume("AFaGraphiteConeO", shFaGraphiteConeO, kMedC);
481 voFaGraphiteCone->AddNode(voFaGraphiteConeO, 1, new TGeoTranslation(0., 0., dz/2.));
484 ///////////////////////////////////
486 // Drawing ALIP2A__0077 //
487 ///////////////////////////////////
489 Float_t dzFaPbCone5 = 168.9;
490 Float_t rInFaPbCone5 = 37.35/2.;
491 Float_t rOuFaPbCone5 = 85.66/2.;
493 Float_t dzFaPbCone10 = 25.9;
494 Float_t rInFaPbCone10 = rInFaPbCone5 + dzFaPbCone5 * angle10;
495 Float_t rOuFaPbCone10 = 115.2/2.;
497 Float_t rInFaPbConeE = 106.05/2.;
498 Float_t rOuFaPbConeE = 124.35/2.;
500 Float_t dzFaPbCone = dzFaPbCone5 + dzFaPbCone10;
502 TGeoPcon* shFaPbCone = new TGeoPcon(0., 360., 3);
505 shFaPbCone->DefineSection(0, z, rInFaPbCone5, rOuFaPbCone5);
508 shFaPbCone->DefineSection(1, z, rInFaPbCone10, rOuFaPbCone10);
510 shFaPbCone->DefineSection(2, z, rInFaPbConeE, rOuFaPbConeE);
512 TGeoVolume* voFaPbCone = new TGeoVolume("AFaPbCone", shFaPbCone, kMedPb);
514 // Inner region with higher transport cuts
515 TGeoPcon* shFaPbConeI = MakeShapeFromTemplate(shFaPbCone, 0., -3.);
516 TGeoVolume* voFaPbConeI = new TGeoVolume("AFaPbConeI", shFaPbConeI, kMedPbSh);
517 voFaPbCone->AddNode(voFaPbConeI, 1, gGeoIdentity);
521 ///////////////////////////////////
522 // FA Concrete Cone //
523 // Drawing ALIP2A__00xx //
524 ///////////////////////////////////
525 Float_t dzFaConcreteCone = 126.;
526 Float_t rOuFaConcreteCone1 = rOuFaGraphiteCone3;
527 Float_t rInFaConcreteCone1 = 11.;
528 Float_t rOuFaConcreteCone2 = rOuFaConcreteCone1 + dzFaConcreteCone * angle10;
529 Float_t rInFaConcreteCone2 = rInFaConcreteCone1 + dzFaConcreteCone * angle02;
531 TGeoVolume* voFaConcreteCone = new TGeoVolume("AFaConcreteCone",
532 new TGeoCone(dzFaConcreteCone/2.,
533 rInFaConcreteCone1, rOuFaConcreteCone1,
534 rInFaConcreteCone2, rOuFaConcreteCone2),
538 ///////////////////////////////////
539 // FA Polyethylene Parts //
540 // Drawing ALIP2A__0034 //
541 ///////////////////////////////////
542 Float_t dzFaCH2Cone = 201.;
543 Float_t rInFaCH2Cone1 = 106.0/2.;
544 Float_t rInFaCH2Cone2 = 176.9/2.;
545 Float_t dFaCH2Cone = 7.5 / TMath::Cos(10. * kDegRad);
547 TGeoVolume* voFaCH2Cone = new TGeoVolume("AFaCH2Cone",
548 new TGeoCone(dzFaCH2Cone/2.,
549 rInFaCH2Cone1, rInFaCH2Cone1 + dFaCH2Cone,
550 rInFaCH2Cone2, rInFaCH2Cone2 + dFaCH2Cone),
555 ///////////////////////////////////
556 // FA Steel Plate 250 mm //
557 // Drawing ALIP2A__00xx //
558 ///////////////////////////////////
559 Float_t dzFaSteelCone25 = 25.;
560 Float_t rInFaSteelCone25A = rInFaConcreteCone2;
561 Float_t rOuFaSteelCone25A = rOuFaConcreteCone2;
562 Float_t rInFaSteelCone25B = rInFaSteelCone25A + dzFaSteelCone25 * angle02;
563 Float_t rOuFaSteelCone25B = rOuFaSteelCone25A + dzFaSteelCone25 * angle10;
565 TGeoVolume* voFaSteelCone25 = new TGeoVolume("AFaSteelCone25",
566 new TGeoCone(dzFaSteelCone25/2.,
567 rInFaSteelCone25A, rOuFaSteelCone25A,
568 rInFaSteelCone25B, rOuFaSteelCone25B),
572 ///////////////////////////////////
573 // FA Steel Plate 310 mm //
574 // Drawing ALIP2A__00xx //
575 ///////////////////////////////////
576 Float_t dzFaSteelCone31 = 31.;
577 Float_t rInFaSteelCone31A = rOuFaWTube4C1;;
578 Float_t rOuFaSteelCone31A = rOuFaSteelCone25B;
579 Float_t rInFaSteelCone31B = rOuFaWTube4C2;
580 Float_t rOuFaSteelCone31B = rOuFaSteelCone31A + dzFaSteelCone31 * angle10;
582 TGeoVolume* voFaSteelCone31 = new TGeoVolume("AFaSteelCone31",
583 new TGeoCone(dzFaSteelCone31/2.,
584 rInFaSteelCone31A, rOuFaSteelCone31A,
585 rInFaSteelCone31B, rOuFaSteelCone31B),
587 // Outer Rregion with higher transport cuts
589 TGeoVolume* voFaSteelCone31I = new TGeoVolume("AFaSteelCone31I",
591 rInFaSteelCone31B - dz * angle03,
592 rOuFaSteelCone31B - dz * angle10,
593 rInFaSteelCone31B, rOuFaSteelCone31B),
596 voFaSteelCone31->AddNode(voFaSteelCone31I, 1, new TGeoTranslation(0., 0., dzFaSteelCone31/2. - dz/2.));
599 ///////////////////////////////////
600 // FA Composite Ring //
601 // Drawing ALIP2A__0126 //
602 ///////////////////////////////////
604 Float_t dzFaCompRing1 = 0.8;
605 Float_t rInFaCompRing1 = 11.0/2.;
606 Float_t rOuFaCompRing1 = 32.4/2.;
608 Float_t dzFaCompRing2 = 1.2;
609 Float_t rInFaCompRing2 = 14.0/2.;
610 Float_t rOuFaCompRing2 = 35.3/2.;
612 TGeoPcon* shFaCompRing = new TGeoPcon(0., 360., 4);
615 shFaCompRing->DefineSection(0, z, rInFaCompRing1, rOuFaCompRing1);
617 shFaCompRing->DefineSection(1, z, rInFaCompRing1, rOuFaCompRing1);
619 shFaCompRing->DefineSection(2, z, rInFaCompRing2, rOuFaCompRing2);;
621 shFaCompRing->DefineSection(3, z, rInFaCompRing2, rOuFaCompRing2);
623 TGeoVolume* voFaCompRing = new TGeoVolume("AFaCompRing", shFaCompRing, kMedC);
625 ///////////////////////////////////
626 // FA Magnesium Ring //
627 // Drawing ALIP2A__0127 //
628 ///////////////////////////////////
632 Float_t dzFaMgRingO = 0.7;
633 Float_t rInFaMgRingO = 3.0;
635 Float_t dzFaMgRingI = 0.6;
636 Float_t rInFaMgRingI = 3.5;
638 TGeoPcon* shFaMgRing = new TGeoPcon(0., 360., 8);
641 shFaMgRing->DefineSection(0, z, rInFaMgRingO, rInFaCompRing1);
643 shFaMgRing->DefineSection(1, z, rInFaMgRingO, rInFaCompRing1);
645 shFaMgRing->DefineSection(2, z, rInFaMgRingI, rInFaCompRing1);
647 shFaMgRing->DefineSection(3, z, rInFaMgRingI, rInFaCompRing1);
649 shFaMgRing->DefineSection(4, z, rInFaMgRingI, rInFaCompRing2);
651 shFaMgRing->DefineSection(5, z, rInFaMgRingI, rInFaCompRing2);
653 shFaMgRing->DefineSection(6, z, rInFaMgRingO, rInFaCompRing2);
655 shFaMgRing->DefineSection(7, z, rInFaMgRingO, rInFaCompRing2);
656 TGeoVolume* voFaMgRing = new TGeoVolume("AFaMgRing", shFaMgRing, kMedMg);
660 // Absorber mother volume
663 // Length of the absorber without endplate
664 Float_t dzFa = dzFaFlange + dzFaGraphiteCone + dzFaConcreteCone + dzFaSteelCone25 + dzFaSteelCone31;
665 TGeoPcon* shFaM = new TGeoPcon(0., 360., 16);
666 // Front -> Flange (Mg Ring details)
668 shFaM->DefineSection( 0, z, rInFaMgRingO, rOuFaQPlateF);
671 shFaM->DefineSection( 1, z, rInFaMgRingO, rOuFaQPlateF + dz * angle24);
672 shFaM->DefineSection( 2, z, rInFaMgRingI, rOuFaQPlateF + dz * angle24);
675 shFaM->DefineSection( 3, z, rInFaMgRingI, rOuFaQPlateF + dz * angle24);
676 shFaM->DefineSection( 4, z, rInFaMgRingO, rOuFaQPlateF + dz * angle24);
679 shFaM->DefineSection( 5, z, rInFaMgRingO, rOuFaQPlateF + dz * angle24);
680 shFaM->DefineSection( 6, z, rInFaGraphiteCone1, rOuFaQPlateF + dz * angle24);
681 // Flange -> W-Plate B
683 shFaM->DefineSection( 7, z, rInFaGraphiteCone1, rOuFaQPlateC2);
685 Float_t zFaSteelEnvelope = z;
686 shFaM->DefineSection( 8, z, rInFaGraphiteCone1, rOuFaQPlateC3);
687 // 5 deg cone -> 10 deg cone
688 z = zFaSteelEnvelope + dzSteelEnvelopeFC + dzSteelEnvelopeC5;
689 shFaM->DefineSection( 9, z, rInFaGraphiteCone1, rOuSteelEnvelopeC10);
690 // 10 deg cone up to end of straight section
692 z = dzFaFlange + dzFaGraphiteConeS + dzFaWTube1C;
694 shFaM->DefineSection(10, z, rInFaGraphiteCone1, rOuSteelEnvelopeC10 + dz * angle10);
695 // 0.7 deg inner opening cone up to outer rear ring
697 z = dzFa - dzSteelEnvelopeR/2.;
699 shFaM->DefineSection(11, z, rInFaGraphiteCone1 +dz * angle71, rOuSteelEnvelopeR1);
700 shFaM->DefineSection(12, z, rInFaGraphiteCone1 +dz * angle71, rOuSteelEnvelopeR2);
701 z += dzSteelEnvelopeR/2.;
702 shFaM->DefineSection(13, z, rInFaWTube4C2, rOuSteelEnvelopeR2);
703 // Recess for end plate
704 dz = dzSteelEnvelopeR/2;
705 shFaM->DefineSection(14, z, rInFaCH2Cone2 - dz * angle10, rOuSteelEnvelopeR2);
706 z += dzSteelEnvelopeR/2.;
707 shFaM->DefineSection(15, z, rInFaCH2Cone2, rOuSteelEnvelopeR2);
709 TGeoVolume* voFaM = new TGeoVolume("AFaM", shFaM, kMedAir);
710 voFaM->SetVisibility(0);
714 // Assemble volumes inside acceptance
715 TGeoPcon* shFaAccM = new TGeoPcon(0., 360., 7);
716 for (Int_t i = 0; i < 4; i++) {
717 Float_t zpos = shFaGraphiteCone->GetZ(i);
718 Float_t rmin = shFaGraphiteCone->GetRmin(i);
719 Float_t rmax = shFaGraphiteCone->GetRmax(i);
720 shFaAccM->DefineSection(i, zpos, rmin, rmax);
722 z = dzFaGraphiteCone + dzFaConcreteCone + dzFaSteelCone25;
723 z0 = z + zFa + dzFaFlange;
724 shFaAccM->DefineSection(4, z, rOuFaWTube3C2, z0 * angle10);
725 shFaAccM->DefineSection(5, z, rOuFaWTube4C1, z0 * angle10);
726 z += dzFaSteelCone31;
727 z0 += dzFaSteelCone31;
728 shFaAccM->DefineSection(6, z, rOuFaWTube4C2, z0 * angle10);
729 TGeoVolume* voFaAccM = new TGeoVolume("AFaAcc", shFaAccM, kMedAir);
732 voFaAccM->AddNode(voFaGraphiteCone, 1, gGeoIdentity);
733 z += dzFaGraphiteCone;
734 voFaAccM->AddNode(voFaConcreteCone, 1, new TGeoTranslation(0., 0., z + dzFaConcreteCone / 2.));
735 z += dzFaConcreteCone;
736 voFaAccM->AddNode(voFaSteelCone25, 1, new TGeoTranslation(0., 0., z + dzFaSteelCone25 / 2. + 0.001));
737 z += dzFaSteelCone25;
738 voFaAccM->AddNode(voFaSteelCone31, 1, new TGeoTranslation(0., 0., z + dzFaSteelCone31 / 2. + 0.001));
742 TGeoVolumeAssembly* voFaInnerShield = new TGeoVolumeAssembly("AFaInnerShield");
743 voFaInnerShield->AddNode(voFaWTube1, 1, gGeoIdentity);
744 z = dzFaWTube1 - 0.6;
745 voFaInnerShield->AddNode(voFaWTube2, 1, new TGeoTranslation(0., 0., z) );
747 voFaInnerShield->AddNode(voFaWTube3, 1, new TGeoTranslation(0., 0., z + dzFaWTube3 / 2.) );
749 voFaInnerShield->AddNode(voFaWTube4, 1, new TGeoTranslation(0., 0., z + dzFaWTube4 / 2.) );
750 z = dzFaGraphiteConeS + dzFaFlange;
751 voFaM->AddNode(voFaInnerShield, 1, new TGeoTranslation(0., 0., z));
755 // Adding volumes to mother volume
758 voFaM->AddNode(voFaWPlateA, 1, gGeoIdentity);
760 voFaM->AddNode(voFaSteelEnvelope, 1, new TGeoTranslation(0., 0., z));
761 z += dzSteelEnvelopeFC;
762 voFaM->AddNode(voFaPbCone, 1, new TGeoTranslation(0., 0., z));
763 z += (dzFaPbCone + dzFaCH2Cone / 2.);
764 voFaM->AddNode(voFaCH2Cone, 1, new TGeoTranslation(0., 0., z));
765 voFaM->AddNode(voFaFlange, 1, gGeoIdentity);
766 voFaM->AddNode(voFaMgRing, 1, gGeoIdentity);
767 voFaM->AddNode(voFaCompRing, 1, gGeoIdentity);
768 voFaM->AddNode(voFaAccM, 1, new TGeoTranslation(0., 0., dzFaFlange));
770 ////////////////////////////////////////////////////
772 // Front Absorber Support Structure FASS //
774 // Drawing ALIP2A__0035 //
775 // Drawing ALIP2A__0089 //
776 // Drawing ALIP2A__0090 //
777 // Drawing ALIP2A__0109 //
778 ////////////////////////////////////////////////////
779 TGeoVolumeAssembly* voFass = new TGeoVolumeAssembly("AFass");
780 const Float_t kFassUBFlangeH = 380.;
781 const Float_t kFassUBFlangeW = 77.;
783 const Float_t kFassUMFlangeH = 380.;
784 const Float_t kFassUMFlangeB = 246.;
785 const Float_t kFassUMFlangeT = 10.;
786 const Float_t kFassUMFalpha = - TMath::ATan((kFassUMFlangeB-kFassUMFlangeT)/ kFassUMFlangeH / 2.) / kDegRad;
790 TGeoVolume* voFassUBFlange = new TGeoVolume("AFassUBFlange", new TGeoBBox(kFassUBFlangeW/2.,
791 kFassUBFlangeH/2., 3./2.), kMedSteel);
792 voFass->AddNode(voFassUBFlange, 1, new TGeoTranslation(+1.5 + kFassUBFlangeW/2.,
793 180. + kFassUBFlangeH/2.,
794 kFassUMFlangeB - 1.5));
795 voFass->AddNode(voFassUBFlange, 2, new TGeoTranslation(-1.5 - kFassUBFlangeW/2.,
796 180. + kFassUBFlangeH/2.,
797 kFassUMFlangeB - 1.5));
801 // Upper median flange
802 // Drawing ALIP2A__0090 //
803 // Drawing ALIP2A__0089 //
806 TGeoVolume* voFassUMFlange = new TGeoVolume("AFassUMFlange",
807 new TGeoTrap(kFassUMFlangeH/2., kFassUMFalpha,
809 kFassUMFlangeB/2., kFassUMFlangeB/2.,
811 kFassUMFlangeT/2., kFassUMFlangeT/2.,
814 TGeoRotation* rotFass1 = new TGeoRotation("rotFass1", 180., 0., 90., 0., 90., 90.);
815 voFass->AddNode(voFassUMFlange,1 ,
816 new TGeoCombiTrans(0., 180. + kFassUMFlangeH/2., -(kFassUMFlangeB+kFassUMFlangeT)/4. + kFassUMFlangeB,
820 // Lower median flange
821 // Drawing ALIP2A__0090 //
822 // Drawing ALIP2A__0089 //
824 const Float_t kFassLMFlangeH = 242.;
825 const Float_t kFassLMFlangeB = 246.;
826 const Float_t kFassLMFlangeT = 43.;
827 const Float_t kFassLMFalpha = - TMath::ATan((kFassLMFlangeB-kFassLMFlangeT)/ kFassLMFlangeH / 2.) / kDegRad;
828 TGeoVolume* voFassLMFlange = new TGeoVolume("AFassLMFlange",
829 new TGeoTrap(kFassLMFlangeH/2., kFassLMFalpha,
831 kFassLMFlangeB/2., kFassLMFlangeB/2.,
833 kFassLMFlangeT/2., kFassLMFlangeT/2.,
835 TGeoRotation* rotFass2 = new TGeoRotation("rotFass2", 180., 0., 90., 0., 90., 270.);
836 voFass->AddNode(voFassLMFlange, 1,
837 new TGeoCombiTrans(0., -180. - kFassLMFlangeH/2., -(kFassLMFlangeB+kFassLMFlangeT)/4. + kFassLMFlangeB,
844 TGeoPgon* shFassCone = new TGeoPgon(22.5, 360., 8, 4);
845 shFassCone->DefineSection(0, 0., 0., 180.);
846 shFassCone->DefineSection(1, 3., 0., 180.);
847 shFassCone->DefineSection(2, 3., 177., 180.);
848 shFassCone->DefineSection(3, 246., 177., 180.);
849 shFassCone->SetName("FassCone");
851 TGeoBBox* shFassWindow = new TGeoBBox( 190., 53., 28.);
852 shFassWindow->SetName("FassWindow");
853 TGeoTranslation* tFassWindow = new TGeoTranslation("tFassWindow", 0., 0., 78.);
854 tFassWindow->RegisterYourself();
856 TGeoTube* shFassApperture = new TGeoTube(0., 104., 3.);
857 shFassApperture->SetName("FassApperture");
859 TGeoCompositeShape* shFassCentral =
860 new TGeoCompositeShape("shFassCentral", "FassCone-(FassWindow:tFassWindow+FassApperture)");
862 TGeoVolume* voFassCentral = new TGeoVolume("AFassCentral", shFassCentral, kMedSteel);
863 voFass->AddNode(voFassCentral, 1, gGeoIdentity);
868 TGeoVolume* voFassAlRing = new TGeoVolume("AFassAlRing", new TGeoTube(104., 180., 10.), kMedAlu);
874 // Inside muon spectrometer acceptance
880 // ===================
888 // Absorber and Support
889 TGeoVolumeAssembly* voFA = new TGeoVolumeAssembly("AFA");
890 voFA->AddNode(voFaM, 1, gGeoIdentity);
891 voFA->AddNode(voFaEndPlate, 1, new TGeoTranslation(0., 0., dzFa + dzEndPlate/2.));
892 voFA->AddNode(voFass, 1, new TGeoTranslation(0., 0., 388.45));
893 voFA->AddNode(voFassAlRing, 1, new TGeoTranslation(0., 0., 382. - 3.5));
894 top->AddNode(voFA, 1, new TGeoCombiTrans(0., 0., -90., rotxz));
898 TGeoPcon* AliABSOv3::MakeShapeFromTemplate(TGeoPcon* pcon, Float_t drMin, Float_t drMax)
901 // Returns new shape based on a template changing
902 // the inner radii by drMin and the outer radii by drMax.
904 Int_t nz = pcon->GetNz();
905 TGeoPcon* cpcon = new TGeoPcon(0., 360., nz);
906 for (Int_t i = 0; i < nz; i++)
907 cpcon->DefineSection(i, pcon->GetZ(i), pcon->GetRmin(i) + drMin, pcon->GetRmax(i) + drMax);