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 // MUON shielding class
22 //-------------------------------------------------------------------------
24 #include <TVirtualMC.h>
26 #include <TGeoVolume.h>
28 #include <TGeoManager.h>
29 #include <TGeoMatrix.h>
30 #include <TGeoCompositeShape.h>
33 #include <TGeoTorus.h>
35 #include "AliSHILv2.h"
41 //_____________________________________________________________________________
42 AliSHILv2::AliSHILv2()
45 // Default constructor for muon shield
49 //_____________________________________________________________________________
50 AliSHILv2::AliSHILv2(const char *name, const char *title)
54 // Standard constructor for muon shield
59 // Pb cone not yet compatible with muon chamber inner radii
60 // Switched off by default
65 //_____________________________________________________________________________
66 void AliSHILv2::CreateGeometry()
69 // Build muon shield geometry
74 <img src="picts/AliSHILv2.gif">
79 <img src="picts/AliSHILv2Tree.gif">
83 Float_t cpar[5], cpar0[5], tpar[3], par1[100], pars1[100], par2[100], par3[100],
87 Int_t *idtmed = fIdtmed->GetArray()-1699;
91 #include "ABSOSHILConst.h"
92 #include "SHILConst2.h"
94 enum {kC=1705, kAl=1708, kFe=1709, kCu=1710, kW=1711, kPb=1712,
95 kNiCuW=1720, kVacuum=1715, kAir=1714, kConcrete=1716,
96 kPolyCH2=1717, kSteel=1709, kInsulation=1713};
100 // Material of the rear part of the shield
101 Int_t iHeavy = kNiCuW;
102 if (fPbCone) iHeavy=kPb;
106 Float_t dRear1=kDRear;
108 Float_t zstart=kZRear-dRear1;
114 Float_t dl=(kZvac12-zstart)/2.;
115 const Float_t kzLength = dl;
122 par0[5] = zstart * TMath::Tan(kAccMin);
124 par0[6] = -dl - zstart + kZch11;
132 par0[12] = -dl - zstart + kZch12;
140 par0[18] = -dz+kZch21;
142 par0[20] = kZch21 * TMath::Tan(kAccMin);
144 par0[21] = -dz+kZch21;
148 par0[24] = -dz+kZch22;
152 par0[27] = -dz+kZch22;
154 par0[29] = kZch22 * TMath::Tan(kAccMin);
156 par0[30] = -dz+kZvac6;
158 par0[32] = kZvac6 * TMath::Tan(kAccMin);
160 par0[33] = -dz+kZConeE;
164 par0[36] = -dz+kZch31;
168 par0[39] = -dz+kZch31;
172 par0[42] = -dz+kZch32;
175 // start of 1.6 deg cone
176 par0[45] = -dz+kZch32;
178 par0[47] = 30.+(kZch32-kZConeE)*TMath::Tan(kThetaOpenPbO);
180 par0[48] = -dz+kZch41;
182 par0[50] = 30.+(kZch41-kZConeE)*TMath::Tan(kThetaOpenPbO);
184 par0[51] = -dz+kZch41;
188 par0[54] = -dz+kZch42;
192 par0[57] = -dz+kZch42;
194 par0[59] = 30.+(kZch42-kZConeE)*TMath::Tan(kThetaOpenPbO);
198 par0[60] = -dz+kZch51;
200 par0[62] = 30.+(kZch51-kZConeE)*TMath::Tan(kThetaOpenPbO);
202 par0[63] = -dz+kZch51;
206 par0[66] = -dz+kZch52;
210 par0[69] = -dz+kZch52;
212 par0[71] = 30.+(kZch52+4.-kZConeE)*TMath::Tan(kThetaOpenPbO);
216 par0[72] = -dz+kZvac10;
220 par0[75] = -dz+kZvac10;
224 par0[78] = -dz+kZvac11;
228 par0[81] = -dz+kZvac11;
232 par0[84] = -dz+kZvac12;
236 gMC->Gsvolu("YMOT", "PCON", idtmed[kVacuum], par0, 87);
238 AliMatrix(idrotm[1705], 270., 0., 90., 90., 180., 0.);
243 // First section: bellows below and behind front absorber
249 dl=(kZvac4-zstart)/2.;
252 par1[ 4] = kRAbs+(zstart-kZOpen) * TMath::Tan(kThetaOpen1);
253 par1[ 5] = zstart * TMath::Tan(kAccMin);
255 par1[ 6] = -dl-zstart+kZch11;
256 par1[ 7] = par1[4] + (dRear1 + 19.) * TMath::Tan(kThetaOpen1);
263 par1[12] = -dl-zstart+kZch12;
264 par1[13] = par1[10] + 36. * TMath::Tan(kThetaOpen1);
267 par1[15] = -dl+dRear1 + 50.7;
271 par1[18] = -dl+kZvac1-zstart;
272 par1[19] = par1[16] + (par1[18] - par1[15]) * TMath::Tan(kThetaOpen1);
273 par1[20] = (par1[18] +dl +zstart) * TMath::Tan(kAccMin);
275 par1[21] = -dl+kZvac1-zstart;
276 par1[22] = kRAbs+ (kZvac1-kZOpen) * TMath::Tan(kThetaOpen1);
277 par1[23] = (par1[21] +dl +zstart) * TMath::Tan(kAccMin);
280 par1[24] = par1[21]+kDr11/10.;
281 par1[25] = par1[22]+kDr11;
282 par1[26] = (par1[24] +dl +zstart) * TMath::Tan(kAccMin);
284 par1[27] = -dl+(kZvac1+kDr11/10.+kDB1-zstart);
286 par1[29] = (par1[27] +dl +zstart) * TMath::Tan(kAccMin);
288 par1[30] = par1[27]+kDr12;
289 par1[31] = par1[28]+kDr12;
290 par1[32] = (par1[30] +dl +zstart) * TMath::Tan(kAccMin);
292 par1[33] = par1[30]+kDF1;
294 par1[35] = (par1[33] +dl +zstart) * TMath::Tan(kAccMin);
296 par1[36] = par1[33]+kDr12;
297 par1[37] = par1[34]-kDr12;
298 par1[38] = (par1[36] +dl +zstart) * TMath::Tan(kAccMin);
300 par1[39] = par1[36]+kDB1;
302 par1[41] = (par1[39] +dl +zstart) * TMath::Tan(kAccMin);
304 par1[42] = par1[39]+kDr13;
305 par1[43] = par1[40]-kDr13;
306 par1[44] = (par1[42] +dl +zstart) * TMath::Tan(kAccMin);
308 par1[45] = -dl+kZvac4-zstart;
310 par1[47] = (par1[45] +dl +zstart) * TMath::Tan(kAccMin);
312 Float_t r2 = par1[46];
313 Float_t rBox= par1[46]-0.1;
315 gMC->Gsvolu("YGO1", "PCON", idtmed[kNiCuW+40], par1, 48);
317 for (i=0; i<48; i++) pars1[i] = par1[i];
318 for (i=4; i<47; i+=3) pars1[i] = 0.;
320 gMC->Gsvolu("YMO1", "PCON", idtmed[kVacuum+40], pars1, 48);
321 gMC->Gspos("YGO1", 1, "YMO1", 0., 0., 0., 0, "ONLY");
323 gMC->Gspos("YMO1", 1, "YMOT", 0., 0., dZ, 0, "ONLY");
329 tpar[2]=(kZvac4-kZvac41)/2.;
330 gMC->Gsvolu("YSE1", "TUBE", idtmed[kSteel], tpar, 3);
332 gMC->Gspos("YSE1", 1, "YGO1", 0., 0., dz, 0, "ONLY");
337 tpar[2]=(kZvac41-zstart-dRear1)/2.;
338 gMC->Gsvolu("YSE2", "TUBE", idtmed[kSteel], tpar, 3);
339 dz=dl-tpar[2]-(kZvac4-kZvac41);
340 gMC->Gspos("YSE2", 1, "YGO1", 0., 0., dz, 0, "ONLY");
343 // 1st section: vacuum system
351 gMC->Gsvolu("YB11", "TUBE", idtmed[kSteel+40], tpar, 3);
354 tpar[0]=kRB1+kHB1-kEB1;
356 tpar[2]=(kLB1/2.-2.*kEB1)/2.;
357 gMC->Gsvolu("YB12", "TUBE", idtmed[kSteel+40], tpar, 3);
363 gMC->Gsvolu("YB13", "TUBE", idtmed[kSteel+40], tpar, 3);
370 gMC->Gsvolu("YBU1", "TUBE", idtmed[kVacuum+40], tpar, 3);
373 gMC->Gspos("YB13", 1, "YBU1", 0., 0., dz, 0, "ONLY");
376 gMC->Gspos("YB11", 1, "YBU1", 0., 0., dz, 0, "ONLY");
379 gMC->Gspos("YB12", 1, "YBU1", 0., 0., dz, 0, "ONLY");
382 gMC->Gspos("YB11", 2, "YBU1", 0., 0., dz, 0, "ONLY");
385 gMC->Gspos("YB13", 2, "YBU1", 0., 0., dz, 0, "ONLY");
389 tpar[1]=kRB1+kHB1+0.5;
391 gMC->Gsvolu("YBM1", "TUBE", idtmed[kVacuum+40], tpar, 3);
392 Float_t bsize = tpar[2];
394 gMC->Gsvolu("YBI1", "TUBE", idtmed[kInsulation+40], tpar, 3);
395 gMC->Gspos("YBI1", 2, "YBM1", 0., 0., 0., 0, "ONLY");
399 for (i=0; i<12; i++) {
400 gMC->Gspos("YBU1", i+1 , "YBM1", 0., 0., dz, 0, "ONLY");
404 dz=-dl+(kZvac1-zstart)+kDr11/10.+bsize;
405 gMC->Gspos("YBM1", 1, "YMO1", 0., 0., dz, 0, "ONLY");
415 gMC->Gsvolu("YFM1", "TUBE", idtmed[kVacuum+40], tpar, 3);
420 gMC->Gsvolu("YF11", "TUBE", idtmed[kSteel+40], tpar, 3);
425 gMC->Gsvolu("YF12", "TUBE", idtmed[kInsulation+40], tpar, 3);
428 gMC->Gspos("YF11", 1, "YFM1", 0., 0., 0., 0, "ONLY");
429 gMC->Gspos("YF12", 1, "YFM1", 0., 0., 0., 0, "ONLY");
430 dz=-dl+(kZvac3-zstart)-2.*kDr13-tpar[2];
431 gMC->Gspos("YFM1", 2, "YMO1", 0., 0., dz, 0, "ONLY");
434 // pipe between flange and bellows
437 tpar[0] = kRB1-dTubeS;
439 tpar[2] = (kZvac3-kZvac1-2.*kDr13-kDr11/10.-kDF1-2.*bsize)/2.;
440 gMC->Gsvolu("YPF1", "TUBE", idtmed[kSteel+40], tpar, 3);
444 gMC->Gsvolu("YPS1", "TUBE", idtmed[kInsulation+40], tpar, 3);
445 gMC->Gspos("YPS1", 1, "YPF1", 0., 0., 0., 0, "ONLY");
446 dz=-dl+(kZvac1-zstart)+kDr11/10.+2.*bsize+tpar[2];
447 gMC->Gspos("YPF1", 1, "YMO1", 0., 0., dz, 0, "ONLY");
450 // Pipe+Heating 1.5 mm
451 // Heating Jacket 5.0 mm
453 // ========================
455 // pipe and heating jackets outside bellows
458 cpar0[0]=(kZvac1+kDr11/10.-zstart)/2;
459 cpar0[1]=kRVacu-0.05 +(zstart-kZOpen)*TMath::Tan(kThetaOpen1);
460 cpar0[2]=kRVacu+0.7 +(zstart-kZOpen)*TMath::Tan(kThetaOpen1);
461 cpar0[3]=cpar0[1]+2.*cpar0[0]*TMath::Tan(kThetaOpen1);
462 cpar0[4]=cpar0[2]+2.*cpar0[0]*TMath::Tan(kThetaOpen1);
463 gMC->Gsvolu("YV11", "CONE", idtmed[kSteel+40], cpar0, 5);
468 cpar[1]=cpar0[1]+0.15;
469 cpar[2]=cpar0[1]+0.65;
470 cpar[3]=cpar0[3]+0.15;
471 cpar[4]=cpar0[3]+0.65;
472 gMC->Gsvolu("YI11", "CONE", idtmed[kInsulation+40], cpar, 5);
473 gMC->Gspos("YI11", 1, "YV11", 0., 0., 0., 0, "ONLY");
475 gMC->Gspos("YV11", 1, "YMO1", 0., 0., dz, 0, "ONLY");
481 cpar0[0] = (kZvac4-kZvac3+2.*kDr13)/2;
483 cpar0[2] = cpar0[1]+dVacuS;
484 cpar0[3] = cpar0[1]+2.*cpar0[0]*TMath::Tan(kThetaOpenB);
485 cpar0[4] = cpar0[2]+2.*cpar0[0]*TMath::Tan(kThetaOpenB);
486 gMC->Gsvolu("YV12", "CONE", idtmed[kSteel], cpar0, 5);
487 Float_t r2V=cpar0[3];
491 cpar[1] = cpar0[1]+dTubeS;
492 cpar[2] = cpar0[1]+dTubeS+kDInsuS;
493 cpar[3] = cpar0[3]+dTubeS;
494 cpar[4] = cpar0[3]+dTubeS+kDInsuS;
495 gMC->Gsvolu("YI12", "CONE", idtmed[kInsulation], cpar, 5);
496 gMC->Gspos("YI12", 1, "YV12", 0., 0., 0., 0, "ONLY");
499 gMC->Gspos("YV12", 1, "YMO1", 0., 0., dz, 0, "ONLY");
504 // Between first and second bellow section
510 dl=(kZvac7-kZvac4)/2.;
520 par2[9] = -dl+(kZvac6-kZvac4);
521 par2[10] = r2+(kZvac6-kZvac4-10.) * TMath::Tan(kThetaOpen2);
524 par2[12] = -dl+(kZvac6-kZvac4);
526 par2[14] = kZvac6*TMath::Tan(kAccMin);
528 // Start of Pb section
529 par2[15] = -dl+(kZPb-kZvac4);
530 par2[16] = r2+(kZPb-kZvac4-10.) * TMath::Tan(kThetaOpen2);
531 par2[17] = kZPb*TMath::Tan(kAccMin);
533 // end of cone following 2 deg line
534 par2[18] = -dl+(kZConeE-kZvac4);
535 par2[19] = r2+(kZConeE-kZvac4-10.) * TMath::Tan(kThetaOpen2);
538 par2[21] = -dl+(kZch31-kZvac4);
539 par2[22] = r2+(kZch31-kZvac4-10.) * TMath::Tan(kThetaOpen2);
542 par2[24] = -dl+(kZch31-kZvac4);
543 par2[25] = r2+(kZch31-kZvac4-10.) * TMath::Tan(kThetaOpen2);
546 par2[27] = -dl+(kZch32-kZvac4);
547 par2[28] = r2+(kZch32-kZvac4-10.) * TMath::Tan(kThetaOpen2);
550 par2[30] = -dl+(kZch32-kZvac4);
551 par2[31] = r2+(kZch32-kZvac4-10.) * TMath::Tan(kThetaOpen2);
554 par2[33] = -dl+(kZvac7-kZvac4);
555 par2[34] = r2+(kZvac7-kZvac4-10.) * TMath::Tan(kThetaOpen2);
558 gMC->Gsvolu("YGO2", "PCON", idtmed[kSteel+40], par2, 36);
567 Float_t dlPb=(kZvac7-kZPb)/2.;
570 parPb[ 4] = r2+(kZPb-kZvac4-10.) * TMath::Tan(kThetaOpen2);
571 parPb[ 5] = kZPb*TMath::Tan(kAccMin)-kDRSteel2;
573 parPb[ 6] = -dlPb+(kZConeE-kZPb);
574 parPb[ 7] = r2+(kZConeE-kZvac4-10.) * TMath::Tan(kThetaOpen2);
577 parPb[ 9] = -dlPb+(kZch32+4.-kZPb);
578 parPb[10] = r2+(kZch32+4.-kZvac4-10.) * TMath::Tan(kThetaOpen2);
581 parPb[12] = -dlPb+(kZch32+4.-kZPb);
582 parPb[13] = r2+(kZch32+4.-kZvac4-10.) * TMath::Tan(kThetaOpen2);
586 parPb[16] = r2+(kZvac7-kZvac4-10.) * TMath::Tan(kThetaOpen2);
589 gMC->Gsvolu("YXO2", "PCON", idtmed[kPb+40], parPb, 18);
590 gMC->Gspos("YXO2", 1, "YGO2", 0., 0., (kZPb-kZvac4)/2., 0, "ONLY");
592 // Concrete replacing Pb
595 Float_t zCC1 = 1066.;
596 Float_t zCC2 = 1188.;
601 Float_t dlCC=(zCC2-zCC1)/2.;
603 parCC[ 4] = r2+(zCC1-kZvac4-10.) * TMath::Tan(kThetaOpen2);
607 parCC[ 7] = r2+(zCC2-kZvac4-10.) * TMath::Tan(kThetaOpen2);
609 gMC->Gsvolu("YCO2", "PCON", idtmed[kSteel], parCC, 9);
610 // gMC->Gspos("YCO2", 1, "YXO2", 0., 0., dlPb-dlCC-(kZvac7-zCC2), 0, "ONLY");
616 parCC[ 4] = r2+(zCC1-kZvac4-10.) * TMath::Tan(kThetaOpen2);
617 parCC[ 5] = zCC1*TMath::Tan(kAccMin)-kDRSteel2;
620 parCC[ 7] = r2+(zCC2-kZvac4-10.) * TMath::Tan(kThetaOpen2);
623 gMC->Gsvolu("YCO1", "PCON", idtmed[kSteel], parCC, 9);
624 // gMC->Gspos("YCO1", 1, "YXO2", 0., 0., dlPb-dlCC-(kZvac7-zCC2), 0, "ONLY");
633 Float_t dlW=(kZPb-kZvac4)/2.;
637 parW[5] = kR21-kDRSteel2;
639 parW[6] = -dlW+(kZvac6-kZvac4)+kDRSteel2;
640 parW[7] = r2+(kZvac6-kZvac4+kDRSteel2) * TMath::Tan(kThetaOpen2);
641 parW[8] = kR21-kDRSteel2;
643 parW[9] = -dlW+(kZvac6-kZvac4)+kDRSteel2;
644 parW[10] = r2+(kZvac6-kZvac4+kDRSteel2) * TMath::Tan(kThetaOpen2);
645 parW[11] = (kZvac6+kDRSteel2)*TMath::Tan(kAccMin)-kDRSteel2;
648 parW[13] = r2+(kZPb-kZvac4) * TMath::Tan(kThetaOpen2);
649 parW[14] = kZPb*TMath::Tan(kAccMin)-kDRSteel2;
651 gMC->Gsvolu("YYO2", "PCON", idtmed[kNiCuW+40], parW, 15);
652 gMC->Gspos("YYO2", 1, "YGO2", 0., 0., -(kZvac7-kZPb)/2., 0, "ONLY");
654 for (i=4; i<35; i+=3) par2[i] = 0;
656 gMC->Gsvolu("YMO2", "PCON", idtmed[kVacuum+40], par2, 36);
657 gMC->Gspos("YGO2", 1, "YMO2", 0., 0., 0., 0, "ONLY");
659 gMC->Gspos("YMO2", 1, "YMOT", 0., 0., dZ, 0, "ONLY");
663 // 2nd section: vacuum system
665 cpar0[0]=(kZvac7-kZvac4)/2;
668 cpar0[3]=cpar0[1]+2.*cpar0[0]*TMath::Tan(kThetaOpenB);
669 cpar0[4]=cpar0[2]+2.*cpar0[0]*TMath::Tan(kThetaOpenB);
670 gMC->Gsvolu("YV21", "CONE", idtmed[kSteel+40], cpar0, 5);
674 cpar[1]=cpar0[1]+dTubeS;
675 cpar[2]=cpar0[1]+dTubeS+kDInsuS;
676 cpar[3]=cpar0[3]+dTubeS;
677 cpar[4]=cpar0[3]+dTubeS+kDInsuS;
678 gMC->Gsvolu("YI21", "CONE", idtmed[kInsulation+40], cpar, 5);
679 gMC->Gspos("YI21", 1, "YV21", 0., 0., 0., 0, "ONLY");
680 gMC->Gspos("YV21", 1, "YMO2", 0., 0., 0., 0, "ONLY");
683 // Third Section: Bellows and Flange
688 dl=(kZvac9-kZvac7)/2.;
691 par3[4] = r2+(kZvac7-kZvac3) * TMath::Tan(kThetaOpen2);
695 par3[7] = par3[4]+kDr21;
698 par3[9] = par3[6]+kDB2;
702 par3[12] = par3[9]+kDr22;
703 par3[13] = par3[10]+kDr22;
706 par3[15] = par3[12]+kDF2;
710 par3[18] = par3[15]+kDr22;
711 par3[19] = par3[16]-kDr22;
714 par3[21] = par3[18]+kDB2;
718 par3[24] = par3[21]+kDr23;
725 gMC->Gsvolu("YGO3", "PCON", idtmed[iHeavy+40], par3, 27);
727 for (i=4; i<26; i+=3) par3[i] = 0;
729 gMC->Gsvolu("YMO3", "PCON", idtmed[kVacuum+40], par3, 27);
730 gMC->Gspos("YGO3", 1, "YMO3", 0., 0., 0., 0, "ONLY");
737 // gMC->Gsvolu("YS31", "TUBE", idtmed[kSteel], tpar, 3);
738 // gMC->Gspos("YS31", 1, "YGO3", 0., 0., 0., 0, "ONLY");
740 gMC->Gspos("YMO3", 1, "YMOT", 0., 0., dZ, 0, "ONLY");
744 // 3rd section: vacuum system
752 gMC->Gsvolu("YB21", "TUBE", idtmed[kSteel+40], tpar, 3);
755 tpar[0]=kRB2+kHB2-kEB2;
757 tpar[2]=(kLB2/2.-2.*kEB2)/2.;
758 gMC->Gsvolu("YB22", "TUBE", idtmed[kSteel+40], tpar, 3);
764 gMC->Gsvolu("YB23", "TUBE", idtmed[kSteel+40], tpar, 3);
771 gMC->Gsvolu("YBU2", "TUBE", idtmed[kVacuum+40], tpar, 3);
774 gMC->Gspos("YB23", 1, "YBU2", 0., 0., dz, 0, "ONLY");
777 gMC->Gspos("YB21", 1, "YBU2", 0., 0., dz, 0, "ONLY");
780 gMC->Gspos("YB22", 1, "YBU2", 0., 0., dz, 0, "ONLY");
783 gMC->Gspos("YB21", 2, "YBU2", 0., 0., dz, 0, "ONLY");
786 gMC->Gspos("YB23", 2, "YBU2", 0., 0., dz, 0, "ONLY");
792 gMC->Gsvolu("YBM2", "TUBE", idtmed[kVacuum+40], tpar, 3);
795 for (i=0; i<7; i++) {
796 gMC->Gspos("YBU2", i+1 , "YBM2", 0., 0.,dz , 0, "ONLY");
800 dz=-dl+kDr21+tpar[2];
801 gMC->Gspos("YBM2", 1, "YMO3", 0., 0., dz, 0, "ONLY");
804 gMC->Gspos("YBM2", 2, "YMO3", 0., 0., dz, 0, "ONLY");
812 gMC->Gsvolu("YFM2", "TUBE", idtmed[kVacuum+40], tpar, 3);
817 gMC->Gsvolu("YF21", "TUBE", idtmed[kSteel+40], tpar, 3);
818 gMC->Gspos("YF21", 1, "YFM2", 0., 0., 0., 0, "ONLY");
823 gMC->Gsvolu("YF22", "TUBE", idtmed[kSteel+40], tpar, 3);
825 gMC->Gspos("YF22", 1, "YFM2", 0., 0., dz, 0, "ONLY");
827 gMC->Gspos("YF22", 2, "YFM2", 0., 0., dz, 0, "ONLY");
829 dz=kDr21/2.-kDr23/2.;
830 gMC->Gspos("YFM2", 2, "YMO3", 0., 0., dz, 0, "ONLY");
834 // pipe between flange and bellows
837 tpar[2]=2.*(kDB2+kDr22-7.*kLB2)/4.;
838 gMC->Gsvolu("YPF2", "TUBE", idtmed[kSteel+40], tpar, 3);
839 dz=kDr21/2.-kDr23/2.-kDF2/2.-tpar[2];
840 gMC->Gspos("YPF2", 1, "YMO3", 0., 0., dz, 0, "ONLY");
841 dz=kDr21/2.-kDr23/2.+kDF2/2.+tpar[2];
842 gMC->Gspos("YPF2", 2, "YMO3", 0., 0., dz, 0, "ONLY");
847 // 4th section: rear shield and closing cone
852 dl=(kZvac12-kZvac9)/2.;
862 par4[9] = -dl+(kZvac10-kZvac9);
863 par4[10] = r3+(kZvac10-kZvac9-dHorZ) * TMath::Tan(kThetaOpen3);
870 par4[15] = -dl+(kZvac11-kZvac9);
871 par4[16] = r3+(kZvac11-kZvac9-dHorZ) * TMath::Tan(kThetaOpen3);
878 par4[21] = -dl+(kZvac12-kZvac9);
879 par4[22] = kRVacu+dVacuS;
882 gMC->Gsvolu("YGO4", "PCON", idtmed[iHeavy+40], par4, 24);
885 for (i=4; i<23; i+=3) par4[i] = 0;
887 gMC->Gsvolu("YMO4", "PCON", idtmed[kVacuum+40], par4, 24);
888 gMC->Gspos("YGO4", 1, "YMO4", 0., 0., 0., 0, "ONLY");
893 gMC->Gspos("YMO4", 1, "YMOT", 0., 0., dZ, 0, "ONLY");
896 // Concrete replacing Pb
906 parCC[ 4] = r3+(zCC1-kZvac9-dHorZ) * TMath::Tan(kThetaOpen3);
910 parCC[ 7] = r3+(zCC2-kZvac9-dHorZ) * TMath::Tan(kThetaOpen3);
913 gMC->Gsvolu("YCO4", "PCON", idtmed[kSteel], parCC, 9);
914 // gMC->Gspos("YCO4", 1, "YGO4", 0., 0., dl-dlCC-(kZvac12-zCC2), 0, "ONLY");
921 parCC[ 4] = r3+(zCC1-kZvac9-dHorZ) * TMath::Tan(kThetaOpen3);
922 parCC[ 5] = kR41-kDRSteel2;
925 parCC[ 7] = r3+(zCC2-kZvac9-dHorZ) * TMath::Tan(kThetaOpen3);
926 parCC[ 8] = kR41-kDRSteel2;
928 gMC->Gsvolu("YCO5", "PCON", idtmed[kSteel], parCC, 9);
929 // gMC->Gspos("YCO5", 1, "YGO4", 0., 0., dl-dlCC-(kZvac12-zCC2), 0, "ONLY");
932 // Closing concrete cone
934 cpar[0]=(kZvac12-kZvac11)/2.;
935 cpar[1] = r3+(kZvac11-kZvac9-dHorZ) * TMath::Tan(kThetaOpen3);
936 cpar[2] = cpar[1]+0.001;
937 cpar[3] = kRVacu+dVacuS;
939 gMC->Gsvolu("YCC4", "CONE", idtmed[kConcrete+40], cpar, 5);
941 gMC->Gspos("YCC4", 1, "YGO4", 0., 0., dz, 0, "ONLY");
949 tpar[2]=(kZvac10-kZvac9)/2.;
950 gMC->Gsvolu("YS41", "TUBE", idtmed[kSteel], tpar, 3);
952 // gMC->Gspos("YS41", 1, "YGO4", 0., 0., dz, 0, "ONLY");
955 tpar[0]=kR41-kDRSteel2;
957 tpar[2]=(kZvac11-kZvac10)/2.;
958 gMC->Gsvolu("YS43", "TUBE", idtmed[kPb+40], tpar, 3);
960 gMC->Gspos("YS43", 1, "YGO4", 0., 0., dz, 0, "ONLY");
966 tpar[2]=(kZvac11-kZvac10)/2.;
967 gMC->Gsvolu("YPBI", "TUBE", idtmed[kPb+40], tpar, 3);
969 gMC->Gspos("YPBI", 1, "YGO4", 0., 0., dz, 0, "ONLY");
971 tpar[2]=(zCC2-zCC1)/2.;
972 gMC->Gsvolu("YCO6", "TUBE", idtmed[kSteel+40], tpar, 3);
973 // gMC->Gspos("YCO6", 1, "YPBI", 0., 0., -(kZvac11-kZvac10)/2.+tpar[2], 0, "ONLY");
978 tpar[2]=(kZvac11-kZvac10)/2.;
979 gMC->Gsvolu("YPBO", "TUBE", idtmed[kPb+40], tpar, 3);
980 gMC->Gspos("YPBO", 1, "YPBI", 0., 0., 0., 0, "ONLY");
982 tpar[2]=(zCC2-zCC1)/2.;
983 gMC->Gsvolu("YCO7", "TUBE", idtmed[kSteel], tpar, 3);
984 // gMC->Gspos("YCO7", 1, "YPBO", 0., 0., -(kZvac11-kZvac10)/2.+tpar[2], 0, "ONLY");
992 tpar[2]=(kZvac12-kZvac11)/2.;
993 gMC->Gsvolu("YFEI", "TUBE", idtmed[kFe+40], tpar, 3);
995 gMC->Gspos("YFEI", 1, "YGO4", 0., 0., dz, 0, "ONLY");
1000 gMC->Gsvolu("YFEO", "TUBE", idtmed[kFe], tpar, 3);
1001 dz=-(kZvac12-kZvac11)/2.+tpar[2];
1002 gMC->Gspos("YFEO", 1, "YFEI", 0., 0., dz, 0, "ONLY");
1007 // 4th section: vacuum system
1009 // up to closing cone
1011 Float_t r3V=r3-kDr23+dVacuS-1.6;
1013 cpar0[0]=(kZvac11-kZvac9)/2;
1014 cpar0[1]=r3V-dVacuS;
1016 cpar0[3]=cpar0[1]+2.*cpar0[0]*TMath::Tan(kThetaOpen3);
1017 cpar0[4]=cpar0[2]+2.*cpar0[0]*TMath::Tan(kThetaOpen3);
1018 gMC->Gsvolu("YV31", "CONE", idtmed[kSteel+40], cpar0, 5);
1022 cpar[1]=cpar0[1]+dTubeS;
1023 cpar[2]=cpar0[1]+dTubeS+kDInsuS;
1024 cpar[3]=cpar0[3]+dTubeS;
1025 cpar[4]=cpar0[3]+dTubeS+kDInsuS;
1026 gMC->Gsvolu("YI31", "CONE", idtmed[kInsulation+40], cpar, 5);
1027 gMC->Gspos("YI31", 1, "YV31", 0., 0., 0., 0, "ONLY");
1029 gMC->Gspos("YV31", 1, "YMO4", 0., 0., dz, 0, "ONLY");
1033 cpar0[0]=(kZvac12-kZvac11)/2;
1034 cpar0[1]=r3V-dVacuS+(kZvac11-kZvac9)*TMath::Tan(kThetaOpen3);
1035 cpar0[2]=r3V +(kZvac11-kZvac9)*TMath::Tan(kThetaOpen3);
1037 cpar0[4]=kRVacu+dTubeS+kDInsuS+kDProtS+kDFreeS;
1038 gMC->Gsvolu("YV32", "CONE", idtmed[kSteel+40], cpar0, 5);
1042 cpar[1]=cpar0[1]+dTubeS;
1043 cpar[2]=cpar0[1]+dTubeS+kDInsuS;
1044 cpar[3]=cpar0[3]+dTubeS;
1045 cpar[4]=cpar0[3]+dTubeS+kDInsuS;
1046 gMC->Gsvolu("YI32", "CONE", idtmed[kInsulation+40], cpar, 5);
1047 gMC->Gspos("YI32", 1, "YV32", 0., 0., 0., 0, "ONLY");
1050 gMC->Gspos("YV32", 1, "YMO4", 0., 0., dz, 0, "ONLY");
1053 // MUON trigger wall
1057 tpar[2] = (kZFilterOut - kZFilterIn) / 2.;
1058 gMC->Gsvolu("YFIM", "TUBE", idtmed[kFe+40], tpar, 3);
1059 dz = (kZFilterIn + kZFilterOut) / 2.;
1061 gMC->Gsvolu("YFII","TUBE", idtmed[kFe], tpar, 3);
1062 gMC->Gspos("YFII", 1, "YFIM", 0., 0., 0., 0, "ONLY");
1063 gMC->Gspos("YFIM", 1, "ALIC", 0., 0., - dz, 0, "ONLY");
1068 dl = (kZvac10-kZch32)/2.;
1077 par0[ 5] = 30.+(kZch32-kZConeE)*TMath::Tan(kThetaOpenPbO);
1080 par0[ 6] = -dz + kZch41;
1082 par0[ 8] = 30.+(kZch41-kZConeE)*TMath::Tan(kThetaOpenPbO);
1084 par0[ 9] = -dz + kZch41;
1088 par0[12] = -dz + kZch42;
1090 par0[14] = par0[11];
1092 par0[15] = -dz + kZch42;
1094 par0[17] = 30.+(kZch42-kZConeE)*TMath::Tan(kThetaOpenPbO);
1097 par0[18] = -dz + kZch51;
1099 par0[20] = 30.+(kZch51-kZConeE)*TMath::Tan(kThetaOpenPbO);
1101 par0[21] = -dz + kZch51;
1103 par0[23] = 36.9; // recess erice2000
1105 par0[24] = -dz + kZch52;
1107 par0[26] = par0[23];
1109 par0[27] = -dz + kZch52;
1111 par0[29] = 30.+(kZch52+4.-kZConeE)*TMath::Tan(kThetaOpenPbO);
1115 par0[32] = par0[29];
1117 gMC->Gsvolu("YOPB", "PCON", idtmed[kPb+40], par0, 33);
1118 Float_t dzs = -kzLength + (kZch32-zstart) + dl;
1119 gMC->Gspos("YOPB", 1, "YMOT", 0., 0., dzs, 0, "ONLY");
1129 par0[ 5] = 30.+(kZch32-kZConeE)*TMath::Tan(kThetaOpenPbO);
1130 par0[ 4] = par0[ 5] - 4.;
1134 par0[ 6] = -dz + kZch41 - 4.;
1135 par0[ 8] = 30.+(kZch41-4.-kZConeE)*TMath::Tan(kThetaOpenPbO);
1136 par0[ 7] = par0[ 8] -4.;
1138 par0[ 9] = -dz + kZch41 - 4.;
1142 par0[12] = -dz + kZch41;
1143 par0[14] = 30.+(kZch41-kZConeE)*TMath::Tan(kThetaOpenPbO);
1146 par0[15] = -dz + kZch41;
1152 par0[18] = -dz + kZch51;
1156 par0[21] = -dz + kZch52;
1160 par0[24] = -dz + kZch52;
1161 par0[26] = 30.+(kZch52-kZConeE)*TMath::Tan(kThetaOpenPbO);
1164 par0[27] = -dz + kZch52 + 4.;
1165 par0[29] = 30.+(kZch52+4.-kZConeE)*TMath::Tan(kThetaOpenPbO);
1168 par0[30] = -dz + kZch52 + 4.;
1169 par0[32] = 30.+(kZch52+4.-kZConeE)*TMath::Tan(kThetaOpenPbO);
1170 par0[31] = par0[32] - 4.;
1173 par0[35] = par0[32];
1174 par0[34] = par0[31];
1176 gMC->Gsvolu("YOSE", "PCON", idtmed[kSteel], par0, 36);
1177 gMC->Gspos ("YOSE", 1, "YOPB", 0., 0., 0., 0, "ONLY");
1179 // Extra Tungsten shield close to stations 1 and 2
1181 TGeoRotation* rot000 = new TGeoRotation("rot000", 90., 0., 90., 90., 0., 0.);
1182 TGeoRotation* rot090 = new TGeoRotation("rot090", 90., 90., 90., 180., 0., 0.);
1183 TGeoRotation* rot180 = new TGeoRotation("rot180", 90., 180., 90., 270., 0., 0.);
1184 TGeoRotation* rot270 = new TGeoRotation("rot270", 90., 270., 90., 0., 0., 0.);
1185 TGeoVolume* mother = gGeoManager->GetVolume("YMOT");
1186 TGeoVolumeAssembly* assembly = new TGeoVolumeAssembly("YASS");
1187 assembly->AddNode(mother, 1, new TGeoTranslation(0., 0., 0.));
1188 TGeoVolumeAssembly* extraShield1 = new TGeoVolumeAssembly("YCRE");
1189 TGeoVolumeAssembly* extraShield2 = new TGeoVolumeAssembly("YCRF");
1191 ///////////////////////////////////
1193 // Recess Station 1 //
1195 ///////////////////////////////////
1198 ///////////////////////////////////
1200 // Drawing ALIP2A__0220 //
1201 ///////////////////////////////////
1202 Float_t faWring2Rinner = 15.40;
1203 Float_t faWring2Router = 18.40;
1204 Float_t faWring2HWidth = 3.75;
1205 Float_t faWring2Cutoffx = 3.35;
1206 Float_t faWring2Cutoffy = 3.35;
1207 TGeoTubeSeg* shFaWring2a = new TGeoTubeSeg(faWring2Rinner, faWring2Router, faWring2HWidth, 0., 90.);
1208 shFaWring2a->SetName("shFaWring2a");
1209 TGeoBBox* shFaWring2b = new TGeoBBox(faWring2Router / 2., faWring2Router / 2., faWring2HWidth);
1210 shFaWring2b->SetName("shFaWring2b");
1211 TGeoTranslation* trFaWring2b
1212 = new TGeoTranslation("trFaWring2b", faWring2Router / 2. + faWring2Cutoffx, faWring2Router / 2. + faWring2Cutoffy, 0.);
1213 trFaWring2b->RegisterYourself();
1214 TGeoCompositeShape* shFaWring2 = new TGeoCompositeShape("shFaWring2", "(shFaWring2a)*(shFaWring2b:trFaWring2b)");
1215 TGeoVolume* voFaWring2 = new TGeoVolume("FA_WRING2", shFaWring2, gGeoManager->GetMedium("SHIL_Ni/W3"));
1217 ///////////////////////////////////
1219 // Drawing ALIP2A__0219 //
1220 ///////////////////////////////////
1221 Float_t faWring3Rinner = 15.40;
1222 Float_t faWring3Router = 18.40;
1223 Float_t faWring3HWidth = 3.75;
1224 Float_t faWring3Cutoffx = 3.35;
1225 Float_t faWring3Cutoffy = 3.35;
1226 TGeoTubeSeg* shFaWring3a = new TGeoTubeSeg(faWring3Rinner, faWring3Router, faWring3HWidth, 0., 90.);
1227 shFaWring3a->SetName("shFaWring3a");
1228 TGeoBBox* shFaWring3b = new TGeoBBox(faWring3Router / 2., faWring3Router / 2., faWring3HWidth);
1229 shFaWring3b->SetName("shFaWring3b");
1230 TGeoTranslation* trFaWring3b
1231 = new TGeoTranslation("trFaWring3b", faWring3Router / 2. + faWring3Cutoffx, faWring3Router / 2. + faWring3Cutoffy, 0.);
1232 trFaWring3b->RegisterYourself();
1233 TGeoCompositeShape* shFaWring3 = new TGeoCompositeShape("shFaWring3", "(shFaWring3a)*(shFaWring3b:trFaWring3b)");
1234 TGeoVolume* voFaWring3 = new TGeoVolume("FA_WRING3", shFaWring3, gGeoManager->GetMedium("SHIL_Ni/W3"));
1236 ///////////////////////////////////
1238 // Drawing ALIP2A__0221 //
1239 ///////////////////////////////////
1240 Float_t faWring5Rinner = 15.40;
1241 Float_t faWring5Router = 18.67;
1242 Float_t faWring5HWidth = 1.08;
1243 TGeoVolume* voFaWring5 = new TGeoVolume("FA_WRING5",
1244 new TGeoTube(faWring5Rinner, faWring5Router, faWring5HWidth),
1245 gGeoManager->GetMedium("SHIL_Ni/W3"));
1248 // Position the rings in the assembly
1250 // Distance between rings
1251 Float_t faDWrings = 1.92;
1253 dz = - (4. * faWring2HWidth + 4. * faWring3HWidth + 2. * faWring5HWidth + 2. * faDWrings) / 2.;
1254 dz += faWring2HWidth;
1255 extraShield1->AddNode(voFaWring2, 1, new TGeoCombiTrans(0., 0., dz, rot090));
1256 extraShield1->AddNode(voFaWring2, 2, new TGeoCombiTrans(0., 0., dz, rot270));
1257 dz += faWring2HWidth; dz += faDWrings;
1258 dz += faWring3HWidth;
1259 extraShield1->AddNode(voFaWring3, 1, new TGeoCombiTrans(0., 0., dz, rot000));
1260 extraShield1->AddNode(voFaWring3, 2, new TGeoCombiTrans(0., 0., dz, rot180));
1261 dz += faWring3HWidth;
1262 dz += faWring5HWidth;
1263 extraShield1->AddNode(voFaWring5, 1, new TGeoTranslation(0., 0., dz));
1264 dz += faWring5HWidth;
1265 dz += faWring3HWidth;
1266 extraShield1->AddNode(voFaWring3, 3, new TGeoCombiTrans(0., 0., dz, rot090));
1267 extraShield1->AddNode(voFaWring3, 4, new TGeoCombiTrans(0., 0., dz, rot270));
1268 dz += faWring3HWidth;
1270 dz += faWring2HWidth;
1271 extraShield1->AddNode(voFaWring2, 3, new TGeoCombiTrans(0., 0., dz, rot000));
1272 extraShield1->AddNode(voFaWring2, 4, new TGeoCombiTrans(0., 0., dz, rot180));
1273 dz += faWring2HWidth;
1275 assembly->AddNode(extraShield1, 1, new TGeoTranslation(0., 0., -kzLength + 49.7 + dz));
1277 ///////////////////////////////////
1279 // Recess Station 2 //
1281 ///////////////////////////////////
1283 ///////////////////////////////////
1285 // Drawing ALIP2A__0217 //
1286 ///////////////////////////////////
1287 Float_t saa1Wring1Width = 5.85;
1288 TGeoPcon* shSaa1Wring1 = new TGeoPcon(0., 360., 2);
1289 shSaa1Wring1->DefineSection(0, 0.00 , 20.30, 23.175);
1290 shSaa1Wring1->DefineSection(1, saa1Wring1Width, 20.30, 23.400);
1291 TGeoVolume* voSaa1Wring1 = new TGeoVolume("SAA1_WRING1", shSaa1Wring1, gGeoManager->GetMedium("SHIL_Ni/W3"));
1293 ///////////////////////////////////
1295 // Drawing ALIP2A__0055 //
1296 ///////////////////////////////////
1297 Float_t saa1Wring2Rinner = 20.30;
1298 Float_t saa1Wring2Router = 23.40;
1299 Float_t saa1Wring2HWidth = 3.75;
1300 Float_t saa1Wring2Cutoffx = 4.45;
1301 Float_t saa1Wring2Cutoffy = 4.45;
1302 TGeoTubeSeg* shSaa1Wring2a = new TGeoTubeSeg(saa1Wring2Rinner, saa1Wring2Router, saa1Wring2HWidth, 0., 90.);
1303 shSaa1Wring2a->SetName("shSaa1Wring2a");
1304 TGeoBBox* shSaa1Wring2b = new TGeoBBox(saa1Wring2Router / 2., saa1Wring2Router / 2., saa1Wring2HWidth);
1305 shSaa1Wring2b->SetName("shSaa1Wring2b");
1306 TGeoTranslation* trSaa1Wring2b
1307 = new TGeoTranslation("trSaa1Wring2b", saa1Wring2Router / 2. + saa1Wring2Cutoffx, saa1Wring2Router / 2. + saa1Wring2Cutoffy, 0.);
1308 trSaa1Wring2b->RegisterYourself();
1309 TGeoCompositeShape* shSaa1Wring2 = new TGeoCompositeShape("shSaa1Wring2", "(shSaa1Wring2a)*(shSaa1Wring2b:trSaa1Wring2b)");
1310 TGeoVolume* voSaa1Wring2 = new TGeoVolume("SAA1_WRING2", shSaa1Wring2, gGeoManager->GetMedium("SHIL_Ni/W3"));
1312 ///////////////////////////////////
1314 // Drawing ALIP2A__0216 //
1315 ///////////////////////////////////
1317 Float_t saa1Wring3Rinner = 20.30;
1318 Float_t saa1Wring3Router = 23.40;
1319 Float_t saa1Wring3HWidth = 3.75;
1320 Float_t saa1Wring3Cutoffx = 4.50;
1321 Float_t saa1Wring3Cutoffy = 4.40;
1322 TGeoTubeSeg* shSaa1Wring3a = new TGeoTubeSeg(saa1Wring3Rinner, saa1Wring3Router, saa1Wring3HWidth, 0., 90.);
1323 shSaa1Wring3a->SetName("shSaa1Wring3a");
1324 TGeoBBox* shSaa1Wring3b = new TGeoBBox(saa1Wring3Router / 2., saa1Wring3Router / 2., saa1Wring3HWidth);
1325 shSaa1Wring3b->SetName("shSaa1Wring3b");
1326 TGeoTranslation* trSaa1Wring3b
1327 = new TGeoTranslation("trSaa1Wring3b", saa1Wring3Router / 2. + saa1Wring3Cutoffx, saa1Wring3Router / 2. + saa1Wring3Cutoffy, 0.);
1328 trSaa1Wring3b->RegisterYourself();
1329 TGeoCompositeShape* shSaa1Wring3 = new TGeoCompositeShape("shSaa1Wring3", "(shSaa1Wring3a)*(shSaa1Wring3b:trSaa1Wring3b)");
1330 TGeoVolume* voSaa1Wring3 = new TGeoVolume("SAA1_WRING3", shSaa1Wring3, gGeoManager->GetMedium("SHIL_Ni/W3"));
1332 ///////////////////////////////////
1334 // Drawing ALIP2A__0215 //
1335 ///////////////////////////////////
1336 Float_t saa1Wring4Width = 5.85;
1337 TGeoPcon* shSaa1Wring4 = new TGeoPcon(0., 360., 5);
1338 shSaa1Wring4->DefineSection(0, 0.00, 20.30, 23.40);
1339 shSaa1Wring4->DefineSection(1, 1.00, 20.30, 23.40);
1340 shSaa1Wring4->DefineSection(2, 1.00, 20.30, 24.50);
1341 shSaa1Wring4->DefineSection(3, 4.85, 20.30, 24.80);
1342 shSaa1Wring4->DefineSection(4, 5.85, 24.10, 24.80);
1343 TGeoVolume* voSaa1Wring4 = new TGeoVolume("SAA1_WRING4", shSaa1Wring4, gGeoManager->GetMedium("SHIL_Ni/W3"));
1345 ///////////////////////////////////
1347 // Drawing ALIP2A__0218 //
1348 ///////////////////////////////////
1349 Float_t saa1Wring5Rinner = 20.30;
1350 Float_t saa1Wring5Router = 23.40;
1351 Float_t saa1Wring5HWidth = 0.85;
1352 TGeoVolume* voSaa1Wring5 = new TGeoVolume("SAA1_WRING5",
1353 new TGeoTube(saa1Wring5Rinner, saa1Wring5Router, saa1Wring5HWidth),
1354 gGeoManager->GetMedium("SHIL_Ni/W3"));
1356 // Position the rings in the assembly
1358 // Distance between rings
1359 Float_t saa1DWrings = 2.6;
1361 dz = - (saa1Wring1Width + 6. * saa1Wring2HWidth + 2. * saa1Wring3HWidth + saa1Wring4Width + 2. * saa1Wring5HWidth + 2. * saa1DWrings) / 2.;
1362 extraShield2->AddNode(voSaa1Wring1, 1, new TGeoTranslation(0., 0., dz));
1363 dz += saa1Wring1Width;
1364 dz += saa1Wring2HWidth;
1365 extraShield2->AddNode(voSaa1Wring2, 1, new TGeoCombiTrans(0., 0., dz, rot000));
1366 extraShield2->AddNode(voSaa1Wring2, 2, new TGeoCombiTrans(0., 0., dz, rot180));
1367 dz += saa1Wring2HWidth;
1369 dz += saa1Wring2HWidth;
1370 extraShield2->AddNode(voSaa1Wring2, 3, new TGeoCombiTrans(0., 0., dz, rot090));
1371 extraShield2->AddNode(voSaa1Wring2, 4, new TGeoCombiTrans(0., 0., dz, rot270));
1372 dz += saa1Wring2HWidth;
1373 dz += saa1Wring5HWidth;
1374 extraShield2->AddNode(voSaa1Wring5, 1, new TGeoTranslation(0., 0., dz));
1375 dz += saa1Wring5HWidth;
1376 dz += saa1Wring2HWidth;
1377 extraShield2->AddNode(voSaa1Wring2, 5, new TGeoCombiTrans(0., 0., dz, rot000));
1378 extraShield2->AddNode(voSaa1Wring2, 6, new TGeoCombiTrans(0., 0., dz, rot180));
1379 dz += saa1Wring2HWidth;
1381 dz += saa1Wring3HWidth;
1382 extraShield2->AddNode(voSaa1Wring3, 1, new TGeoCombiTrans(0., 0., dz, rot090));
1383 extraShield2->AddNode(voSaa1Wring3, 2, new TGeoCombiTrans(0., 0., dz, rot270));
1384 dz += saa1Wring3HWidth;
1385 extraShield2->AddNode(voSaa1Wring4, 1, new TGeoTranslation(0., 0., dz));
1386 dz += saa1Wring4Width;
1387 assembly->AddNode(extraShield2, 1, new TGeoTranslation(0., 0., -kzLength + (kZch21 - zstart) + dz));
1389 TGeoVolume* top = gGeoManager->GetVolume("ALIC");
1390 TGeoRotation* rotxz = new TGeoRotation("rotxz", 90., 0., 90., 90., 180., 0.);
1391 top->AddNode(assembly, 1, new TGeoCombiTrans(0., 0., -zstart - kzLength, rotxz));
1396 void AliSHILv2::Init()
1399 // Initialise the muon shield after it has been built
1403 if(AliLog::GetGlobalDebugLevel()>0) {
1404 printf("\n%s: ",ClassName());
1405 for(i=0;i<35;i++) printf("*");
1406 printf(" SHILv2_INIT ");
1407 for(i=0;i<35;i++) printf("*");
1408 printf("\n%s: ",ClassName());
1410 // Here the SHIL initialisation code (if any!)
1411 for(i=0;i<80;i++) printf("*");