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 ///////////////////////////////////////////////////////////////////////////////
20 // Magnetic Dipole version 1 //
24 <img src="picts/AliDIPOv2Class.gif">
27 <font size=+2 color=red>
28 <p>The responsible person for this module is
29 <a href="mailto:andreas.morsch@cern.ch">Andreas Morsch</a>.
37 #include <TVirtualMC.h>
40 #include "AliDIPOv2.h"
46 //_____________________________________________________________________________
47 AliDIPOv2::AliDIPOv2()
50 // Last design of magnetic dipole version 2
54 //_____________________________________________________________________________
55 AliDIPOv2::AliDIPOv2(const char *name, const char *title)
59 // Standard constructor for the magnetic dipole version 2
65 void AliDIPOv2::CreateGeometry()
68 // Creation of the geometry of the magnetic DIPOLE version 2
71 CreateSpectrometerDipole();
72 CreateCompensatorDipole();
76 //_____________________________________________________________________________
77 void AliDIPOv2::CreateSpectrometerDipole()
80 // Creation of the geometry of the magnetic DIPOLE version 2
83 Float_t cpar[5], tpar[18], ypar[12];
86 Float_t accMax, the1, phi1, the2, phi2, the3, phi3;
88 Int_t *idtmed = fIdtmed->GetArray()-1799;
90 // const Int_t kCoil = 1813;
91 // const Int_t kCable= 1811;
93 const Int_t kCoil = 1808;
94 const Int_t kCable= 1808;
96 accMax = 9.; // ANGLE POLAIRE MAXIMUM
99 const Float_t kZDipole = 975;
105 tpar[3] = -250.55+kZDipole;
109 tpar[6] = -160.7+kZDipole;
113 tpar[9] = 30.+kZDipole;
117 tpar[12] = 150.8+kZDipole;
121 tpar[15] = 260.55+kZDipole;
126 gMC->Gsvolu("DDIP", "PCON", idtmed[1814], tpar, 18);
135 gMC->Gsvolu("DC1 ", "TUBS", idtmed[kCoil+40], cpar, 5);
138 gMC->Gsvolu("DC2 ", "TUBS", idtmed[kCoil+40], cpar, 5);
140 // coil - low cuts cuts
142 // cpar[1] = cpar[0] + 10.;
147 gMC->Gsvolu("DC3 ", "TUBS", idtmed[kCoil], cpar, 5);
152 gMC->Gsvolu("DC4 ", "TUBS", idtmed[kCoil], cpar, 5);
154 gMC->Gspos("DC3 ", 1, "DC1 ", 0., 0., 0., 0, "ONLY");
155 gMC->Gspos("DC4 ", 1, "DC2 ", 0., 0., 0., 0, "ONLY");
157 // dz = 37.65 - 243.55
160 gMC->Gspos("DC1 ", 1, "DDIP", dx, 0., dz+kZDipole, 0, "ONLY");
161 gMC->Gspos("DC1 ", 2, "DDIP", dx, 0., -dz+kZDipole, 0, "ONLY");
162 gMC->Gspos("DC2 ", 1, "DDIP", -dx, 0., dz+kZDipole, 0, "ONLY");
163 gMC->Gspos("DC2 ", 2, "DDIP", -dx, 0., -dz+kZDipole, 0, "ONLY");
170 AliMatrix(idrotm[1800], the1, phi1, the2, phi2, the3, phi3);
174 AliMatrix(idrotm[1801], the1, phi1, the2, phi2, the3, phi3);
181 AliMatrix(idrotm[1802], the1, phi1, the2, phi2, the3, phi3);
185 AliMatrix(idrotm[1803], the1, phi1, the2, phi2, the3, phi3);
188 cpar[1] = 100.3; //25+75.3
193 gMC->Gsvolu("DC11", "TUBS", idtmed[kCoil+40], cpar, 5);
195 dx = TMath::Sin(30.5*kDegrad) * -(207.+33.5)+5./TMath::Sin(30.5*kDegrad);
196 dy = TMath::Cos(30.5*kDegrad) * -(207.+33.5);
197 dz = cpar[1] - 243.55-2.45;
198 gMC->Gspos("DC11", 1, "DDIP", dx, dy, dz+kZDipole, idrotm[1800], "ONLY");
199 gMC->Gspos("DC11", 2, "DDIP", dx, dy, -dz+kZDipole, idrotm[1802], "ONLY");
200 gMC->Gspos("DC11", 3, "DDIP", -dx, dy, dz+kZDipole, idrotm[1801], "ONLY");
201 gMC->Gspos("DC11", 4, "DDIP", -dx, dy, -dz+kZDipole, idrotm[1803], "ONLY");
207 cpar[1] = 100.3; //25+75.3
212 gMC->Gsvolu("DC12", "TUBS", idtmed[kCoil+40], cpar, 5);
214 dx = TMath::Sin(30.5*kDegrad) * -(207.+33.5)+5./TMath::Sin(30.5*kDegrad);
215 dy = TMath::Cos(30.5*kDegrad) *(207.+33.5);
216 dz = cpar[1] - 243.55-2.45;
217 gMC->Gspos("DC12", 1, "DDIP", dx, dy, dz+kZDipole, idrotm[1801], "ONLY");
218 gMC->Gspos("DC12", 2, "DDIP", dx, dy, -dz+kZDipole, idrotm[1803], "ONLY");
219 gMC->Gspos("DC12", 3, "DDIP", -dx, dy, dz+kZDipole, idrotm[1800], "ONLY");
220 gMC->Gspos("DC12", 4, "DDIP", -dx, dy, -dz+kZDipole, idrotm[1802], "ONLY");
228 AliMatrix(idrotm[1804], the1, phi1, the2, phi2, the3, phi3);
233 AliMatrix(idrotm[1805], the1, phi1, the2, phi2, the3, phi3);
235 phi1 = 119.; //180 -61
237 phi2 = 209.; //270-61
238 AliMatrix(idrotm[1806], the1, phi1, the2, phi2, the3, phi3);
243 AliMatrix(idrotm[1807], the1, phi1, the2, phi2, the3, phi3);
250 gMC->Gsvolu("DL1 ", "BOX ", idtmed[kCoil+40], tpar, 3);
256 gMC->Gsvolu("DL2 ", "BOX ", idtmed[kCoil], tpar, 3);
257 gMC->Gspos("DL2 ", 1, "DL1 ", dx, 0., 0., 0, "ONLY");
262 gMC->Gspos("DL1 ", 1, "DDIP", dx, dy, dz+kZDipole, idrotm[1804], "ONLY");
263 gMC->Gspos("DL1 ", 2, "DDIP", dx, -dy, dz+kZDipole, idrotm[1805], "ONLY");
264 gMC->Gspos("DL1 ", 3, "DDIP",-dx, dy, dz+kZDipole, idrotm[1806], "ONLY");
265 gMC->Gspos("DL1 ", 4, "DDIP",-dx, -dy, dz+kZDipole, idrotm[1807], "ONLY");
271 //Steel outer face planes
279 gMC->Gsvolu("DCO1", "TUBS", idtmed[1818], cpar, 5);
282 gMC->Gspos("DCO1", 1, "DDIP", dx, 0, dz+kZDipole, 0, "ONLY");
283 dz = 243.55+4.5+1.5+1.;
284 gMC->Gspos("DCO1", 2, "DDIP", dx, 0, dz+kZDipole, 0, "ONLY");
288 // cpar[0] = 207.-18.6;
289 // cpar[1] = 274.+18.6;
294 gMC->Gsvolu("DCO2", "TUBS", idtmed[1818], cpar, 5);
297 gMC->Gspos("DCO2", 1, "DDIP", dx, 0, dz+kZDipole, 0, "ONLY");
298 dz = 243.55+4.5+1.5+1.;
299 gMC->Gspos("DCO2", 2, "DDIP", dx, 0, dz+kZDipole, 0, "ONLY");
311 gMC->Gsvolu("DCO3", "TUBS", idtmed[1812], cpar, 5);
314 gMC->Gspos("DCO3", 1, "DDIP", dx, 0, dz+kZDipole, 0, "ONLY");
315 dz = 243.55+4.5+0.75;
316 gMC->Gspos("DCO3", 2, "DDIP", dx, 0, dz+kZDipole, 0, "ONLY");
322 gMC->Gsvolu("DCO4", "TUBS", idtmed[1812], cpar, 5);
325 gMC->Gspos("DCO4", 1, "DDIP", dx, 0, dz+kZDipole, 0, "ONLY");
326 dz = 243.55+4.5+0.75 ;
327 gMC->Gspos("DCO4", 2, "DDIP", dx, 0, dz+kZDipole, 0, "ONLY");
338 gMC->Gsvolu("DCO5", "TUBS", idtmed[1810], cpar, 5);
342 gMC->Gspos("DCO5", 1, "DDIP", dx, 0, dz+kZDipole, 0, "ONLY");
349 gMC->Gsvolu("DCO6", "TUBS", idtmed[1810], cpar, 5);
353 gMC->Gspos("DCO6", 1, "DDIP", dx, 0, dz+kZDipole, 0, "ONLY");
355 //Steel supported planes
357 cpar[0] = 274.+1.5+2.;
363 gMC->Gsvolu("DCO7", "TUBS", idtmed[1818], cpar, 5);
367 gMC->Gspos("DCO7", 1, "DDIP", dx, 0, dz+kZDipole, 0, "ONLY");
370 cpar[0] = 274.+1.5+2.;
377 gMC->Gsvolu("DCO8", "TUBS", idtmed[1818], cpar, 5);
381 gMC->Gspos("DCO8", 1, "DDIP", dx, 0, dz+kZDipole, 0, "ONLY");
385 cpar[0] = 207.- 18.6;
386 cpar[1] = 207.- 2.- 1.5;
391 gMC->Gsvolu("DCO9", "TUBS", idtmed[1818], cpar, 5);
395 gMC->Gspos("DCO9", 1, "DDIP", dx, 0, dz+kZDipole, 0, "ONLY");
399 cpar[0] = 207.- 18.6;
400 cpar[1] = 207.- 2.- 1.5;
405 gMC->Gsvolu("DCOA", "TUBS", idtmed[1818], cpar, 5);
409 gMC->Gspos("DCOA", 1, "DDIP", dx, 0, dz+kZDipole, 0, "ONLY");
412 // Sides steel planes
414 cpar[0] = 207. - 1.5 -2.;
415 cpar[1] = 207. - 1.5;
416 cpar[2] = ((243.55+4.5+1.5)-168.25)/2;
420 gMC->Gsvolu("DCOB", "TUBS", idtmed[1818], cpar, 5);
422 cpar[0] = 274. + 1.5;
423 cpar[1] = 274. + 1.5 +2.;
425 gMC->Gsvolu("DCOC", "TUBS", idtmed[1818], cpar, 5);
428 dz = ((243.55+4.5+1.5)+168.25)/2;
429 gMC->Gspos("DCOB", 1, "DDIP", dx, 0, dz+kZDipole, 0, "ONLY");
430 gMC->Gspos("DCOC", 1, "DDIP", dx, 0, dz+kZDipole, 0, "ONLY");
434 cpar[0] = 207. - 1.5 -2.;
435 cpar[1] = 207. - 1.5;
436 cpar[2] = ((243.55+4.5+1.5)-168.25)/2;
440 gMC->Gsvolu("DCOD", "TUBS", idtmed[1818], cpar, 5);
442 cpar[0] = 274. + 1.5;
443 cpar[1] = 274. + 1.5 +2.;
445 gMC->Gsvolu("DCOE", "TUBS", idtmed[1818], cpar, 5);
448 dz = ((243.55+4.5+1.5)+168.25)/2;
449 gMC->Gspos("DCOD", 1, "DDIP", dx, 0, dz+kZDipole, 0, "ONLY");
450 gMC->Gspos("DCOE", 1, "DDIP", dx, 0, dz+kZDipole, 0, "ONLY");
453 // Top and bottom resin planes
455 cpar[0] = 207. - 1.5;
457 cpar[2] = ((243.55+4.5+1.5)-168.25)/2;
461 gMC->Gsvolu("DCOF", "TUBS", idtmed[1812], cpar, 5);
464 cpar[1] = 274. + 1.5;
466 gMC->Gsvolu("DCOG", "TUBS", idtmed[1812], cpar, 5);
470 dz = ((243.55+4.5+1.5)+168.25)/2;
471 gMC->Gspos("DCOF", 1, "DDIP", dx, 0, dz+kZDipole, 0, "ONLY");
472 gMC->Gspos("DCOG", 1, "DDIP", dx, 0, dz+kZDipole, 0, "ONLY");
475 cpar[0] = 207. - 1.5;
477 cpar[2] = ((243.55+4.5+1.5)-168.25)/2;
482 gMC->Gsvolu("DCOH", "TUBS", idtmed[1812], cpar, 5);
485 cpar[1] = 274. + 1.5;
487 gMC->Gsvolu("DCOI", "TUBS", idtmed[1812], cpar, 5);
491 dz = ((243.55+4.5+1.5)+168.25)/2;
492 gMC->Gspos("DCOH", 1, "DDIP", dx, 0, dz+kZDipole, 0, "ONLY");
493 gMC->Gspos("DCOI", 1, "DDIP", dx, 0, dz+kZDipole, 0, "ONLY");
498 cpar[0] = 274. + 1.5 +2.;
499 cpar[1] = 274. + 1.5 +2. + 80.;
504 gMC->Gsvolu("DCOJ", "TUBS", idtmed[kCable], cpar, 5);
506 // dx = 274. + 1.5 +2. +40.;
507 // dx = 5. + 1.5 +2. +40.;
508 // dx = 5. + 1.5 +2.;
510 dz = 168.25 + 5.05 + 5.05/2;
511 gMC->Gspos("DCOJ", 1, "DDIP", dx, 0, dz+kZDipole, 0, "ONLY");
513 dz = 243.55 - 5.05/2;
514 gMC->Gspos("DCOJ", 2, "DDIP", dx, 0, dz+kZDipole, 0, "ONLY");
521 gMC->Gsvolu("DCOK", "TUBS", idtmed[kCable], cpar, 5);
523 // dx = 274. + 1.5 +2. +40.;
524 // dx = 5. + 1.5 +2. +40.;
525 // dx = 5. + 1.5 +2.;
527 dz = 168.25 + 5.05 + 5.05/2;
528 gMC->Gspos("DCOK", 1, "DDIP", dx, 0, dz+kZDipole, 0, "ONLY");
530 dz = 243.55 - 5.05/2;
531 gMC->Gspos("DCOK", 2, "DDIP", dx, 0, dz+kZDipole, 0, "ONLY");
536 // Top and bottom blocks
542 gMC->Gsvolu("DY1 ", "BOX ", idtmed[1858], ypar, 3);
549 gMC->Gsvolu("DY11", "TRD1", idtmed[1818], ypar, 4);
550 gMC->Gspos("DY11", 1, "DY1 ", 0., dy, 0., 0, "ONLY");
554 gMC->Gspos("DY1 ", 1, "DDIP", 0., dy, -dz+kZDipole, 0, "ONLY");
562 AliMatrix(idrotm[1808], the1, phi1, the2, phi2, the3, phi3);
563 gMC->Gspos("DY1 ", 2, "DDIP", 0., -dy, -dz+kZDipole, idrotm[1808] , "ONLY");
566 // ypar[0] = 579./2.;
573 ypar[6] = 4.3058039629;
578 ypar[10] = 4.3058039629;
582 gMC->Gsvolu("DY2 ", "TRAP", idtmed[1858], ypar,11);
593 gMC->Gsvolu("DY22", "TRAP", idtmed[1818], ypar,11);
598 gMC->Gspos("DY22", 1, "DY2 ", dx, dy, 0., 0, "ONLY");
606 AliMatrix(idrotm[1809], the1, phi1, the2, phi2, the3, phi3);
614 AliMatrix(idrotm[1810], the1, phi1, the2, phi2, the3, phi3);
619 gMC->Gspos("DY2 ", 1, "DDIP", dx, 0.0, dz+kZDipole, idrotm[1809], "ONLY");
620 gMC->Gspos("DY2 ", 2, "DDIP", -dx, 0.0, dz+kZDipole, idrotm[1810], "ONLY");
622 AliMatrix(idrotm[1811], 270., 0., 90., 90., 180., 0.);
623 gMC->Gspos("DDIP", 1, "ALIC", 0., 0., 0., idrotm[1811], "ONLY");
625 gMC->Gsatt("DDIP", "SEEN", 0);
626 // gMC->Gsatt("DC21", "SEEN", 0);
627 // gMC->Gsatt("DC22", "SEEN", 0);
628 // gMC->Gsatt("DC3 ", "SEEN", 0);
629 // gMC->Gsatt("DC4 ", "SEEN", 0);
633 void AliDIPOv2::CreateCompensatorDipole()
636 // Geometry of the compensator Dipole MBWMD (was MCB @ SPS)
638 Int_t *idtmed = fIdtmed->GetArray()-1799;
641 Float_t pbox[3] = {63., 63., 170.};
644 gMC->Gsvolu("DCM0", "BOX", idtmed[1814], pbox, 3);
647 // Mother volume containing lower coil
652 gMC->Gsvolu("DCML", "BOX", idtmed[1809], pbox, 3);
657 gMC->Gsvolu("DCBA", "BOX", idtmed[1809], pbox, 3);
659 // Coil: straight sections, horizontal
663 gMC->Gsvolu("DCH1", "BOX", idtmed[1816], pbox, 3);
665 // Coil: straight sections, horizontal
669 gMC->Gsvolu("DCH2", "BOX", idtmed[1816], pbox, 3);
672 // Mother volume containing upper coil
676 gMC->Gsvolu("DCMU", "BOX", idtmed[1809], pbox, 3);
679 // Coil: straight sections, vertical
684 gMC->Gsvolu("DCCV", "BOX", idtmed[1816], pbox, 3);
686 // Coil: circular section
694 // gMC->Gsvolu("DCC1", "TUBS", idtmed[1809], ptubs, 5);
700 gMC->Gsvolu("DCC1", "TUBS", idtmed[1816], ptubs, 5);
714 gMC->Gsvolu("DCLA", "PGON", idtmed[1809], ppgon, 10);
718 AliMatrix(idrotm[1811], -90., 0., 90., 90., 0., 0.);
719 AliMatrix(idrotm[1812], 0., 0., 90., 90., 90., 0.);
720 AliMatrix(idrotm[1813], 180., 0., 90., 90., 90., 0.);
721 AliMatrix(idrotm[1814], 0., 180., 90., 270., 90., 0.);
722 AliMatrix(idrotm[1815], 180., 180., 90., 270., 90., 0.);
724 gMC->Gspos("DCH1", 1, "DCML", 23.25, -13., -17.5, 0, "ONLY");
725 gMC->Gspos("DCCV", 1, "DCM0", 12., 19., -159., 0, "ONLY");
726 gMC->Gspos("DCCV", 2, "DCM0", -12., 19., -159., 0, "ONLY");
727 gMC->Gspos("DCCV", 3, "DCML", 23.25, 20.5, 141.5, 0, "ONLY");
729 gMC->Gspos("DCML", 1, "DCM0", -33.25, -2.5, 17.5, 0, "ONLY");
730 gMC->Gspos("DCML", 2, "DCM0", 33.25, -2.5, 17.5, idrotm[1811], "ONLY");
733 gMC->Gspos("DCH2", 1, "DCMU", 2., 6.5, 0., 0, "ONLY");
734 gMC->Gspos("DCMU", 1, "DCM0", -12., 45., 0., 0, "ONLY");
735 gMC->Gspos("DCMU", 2, "DCM0", 12., 45., 0., idrotm[1811], "ONLY");
737 // gMC->Gspos("DCC2", 1, "DCC1", 0., 0., 0., 0, "ONLY");
739 gMC->Gspos("DCC1", 1, "DCM0", -12., 27.5, 135., idrotm[1812], "ONLY");
740 gMC->Gspos("DCC1", 2, "DCM0", 12., 27.5, 135., idrotm[1812], "ONLY");
741 gMC->Gspos("DCC1", 3, "DCM0", -12., 27.5, -135., idrotm[1813], "ONLY");
742 gMC->Gspos("DCC1", 4, "DCM0", 12., 27.5, -135., idrotm[1813], "ONLY");
744 gMC->Gspos("DCC1", 5, "DCM0", 12., 27.5-32.+13., -135., idrotm[1815], "ONLY");
745 gMC->Gspos("DCC1", 6, "DCM0", -12., 27.5-32.+13., -135., idrotm[1815], "ONLY");
747 gMC->Gspos("DCC1", 7, "DCML", 23.25, -13+13.+11., 117.5, idrotm[1814], "ONLY");
749 gMC->Gspos("DCLA", 1, "DCM0", 20., 27.5, -134., 0, "ONLY");
750 gMC->Gspos("DCLA", 2, "DCM0", 20., 27.5, -44., 0, "ONLY");
751 gMC->Gspos("DCLA", 3, "DCM0", 20., 27.5, 46., 0, "ONLY");
752 gMC->Gspos("DCLA", 4, "DCM0", 20., 27.5, 134., 0, "ONLY");
754 gMC->Gspos("DCLA", 5, "DCM0", -20., 27.5, -134., idrotm[1811], "ONLY");
755 gMC->Gspos("DCLA", 6, "DCM0", -20., 27.5, -44., idrotm[1811], "ONLY");
756 gMC->Gspos("DCLA", 7, "DCM0", -20., 27.5, 46., idrotm[1811], "ONLY");
757 gMC->Gspos("DCLA", 8, "DCM0", -20., 27.5, 134., idrotm[1811], "ONLY");
760 gMC->Gspos("DCBA", 1, "DCM0", 0., -47.5 , 17.5, 0, "ONLY");
761 AliMatrix(idrotm[1816], 270., 0., 90., 90., 180., 0.);
762 gMC->Gspos("DCM0", 1, "ALIC", 0., -6.75, 975., idrotm[1816], "ONLY");
767 //_____________________________________________________________________________
768 void AliDIPOv2::DrawModule() const
771 // Draw a shaded view of the muon absorber
774 // Set everything unseen
775 gMC->Gsatt("*", "seen", -1);
777 // Set ALIC mother transparent
778 gMC->Gsatt("ALIC","SEEN",0);
780 // Set the volumes visible
781 gMC->Gsatt("DDIP","seen",0);
782 gMC->Gsatt("DC1 ","seen",1);
783 gMC->Gsatt("DC2 ","seen",1);
784 gMC->Gsatt("DC3 ","seen",1);
785 gMC->Gsatt("DC4 ","seen",1);
786 gMC->Gsatt("DC11","seen",1);
787 gMC->Gsatt("DC21","seen",1);
788 gMC->Gsatt("DC12","seen",1);
789 gMC->Gsatt("DC22","seen",1);
790 gMC->Gsatt("DL1 ","seen",1);
791 gMC->Gsatt("DL2 ","seen",1);
792 gMC->Gsatt("DY1 ","seen",1);
793 gMC->Gsatt("DY2 ","seen",1);
794 gMC->Gsatt("DYL ","seen",1);
795 gMC->Gsatt("DY3 ","seen",1);
796 // gMC->Gsatt("DY4 ","seen",1);
797 // gMC->Gsatt("DY5 ","seen",1);
798 // gMC->Gsatt("DY6 ","seen",1);
799 // gMC->Gsatt("DY7 ","seen",1);
801 gMC->Gdopt("hide", "on");
802 gMC->Gdopt("shad", "on");
803 gMC->Gsatt("*", "fill", 7);
804 gMC->SetClipBox(".");
805 gMC->SetClipBox(".");
807 gMC->Gdraw("alic", 30, 30, 0, 17, 13.5, .019, .019);
808 gMC->Gdhead(1111, "Magnetic Dipole Version 2");
809 gMC->Gdman(16, 4, "MAN");
815 //_____________________________________________________________________________
816 void AliDIPOv2::CreateMaterials()
819 // Create Materials for Magnetic Dipole version 2
822 Int_t isxfld = gAlice->Field()->Integ();
823 Float_t sxmgmx = gAlice->Field()->Max();
825 Float_t aAir[4]={12.0107,14.0067,15.9994,39.948};
826 Float_t zAir[4]={6.,7.,8.,18.};
827 Float_t wAir[4]={0.000124,0.755267,0.231781,0.012827};
828 Float_t dAir = 1.20479E-3;
831 Float_t asteel[4] = { 55.847,51.9961,58.6934,28.0855 };
832 Float_t zsteel[4] = { 26.,24.,28.,14. };
833 Float_t wsteel[4] = { .715,.18,.1,.005 };
835 Float_t acoil[3] = { 26.98,1.01,16. };
836 Float_t zcoil[3] = { 13.,1.,8. };
837 Float_t wcoil[3] = { .66,.226,.114 };
839 Float_t aresi[3] = { 1.01,12.011,16.};
840 Float_t zresi[3] = { 1.,6.,8. };
841 Float_t wresi[3] = { .0644,.7655,.1701 };
843 Float_t aG10[5] = { 1.01,12.011,16.,28.085 ,79.904 };
844 Float_t zG10[5] = { 1.,6.,8.,14.,35. };
845 Float_t wG10[5] = { .02089,.22338,.28493,.41342,.05738 };
847 Float_t aAlCon[2] = { 14.61, 26.98};
848 Float_t zAlCon[2] = { 7.3, 13.};
849 Float_t wAlCon[2] = { .0004,.9996};
852 Float_t epsil, stmin, deemax, tmaxfd, stemax;
854 // --- Define the various materials for GEANT ---
856 AliMaterial( 9, "ALUMINIUM$", 26.98, 13., 2.7, 8.9, 37.2);
857 AliMaterial(29, "ALUMINIUM$", 26.98, 13., 2.7, 8.9, 37.2);
858 AliMaterial(49, "ALUMINIUM$", 26.98, 13., 2.7, 8.9, 37.2);
861 AliMaterial(10, "IRON$ ", 55.85, 26., 7.87, 1.76, 17.1);
862 AliMaterial(30, "IRON$ ", 55.85, 26., 7.87, 1.76, 17.1);
863 AliMaterial(50, "IRON$ ", 55.85, 26., 7.87, 1.76, 17.1);
865 AliMaterial(17, "COPPER$ ", 63.55, 29., 8.96, 1.43, 15.1);
866 AliMaterial(37, "COPPER$ ", 63.55, 29., 8.96, 1.43, 15.1);
867 AliMaterial(57, "COPPER$ ", 63.55, 29., 8.96, 1.43, 15.1);
869 AliMixture(15, "AIR$ ", aAir, zAir, dAir, 4, wAir);
870 AliMixture(35, "AIR$ ", aAir, zAir, dAir, 4, wAir);
871 AliMixture(55, "AIR$ ", aAir, zAir, dAir, 4, wAir);
873 AliMaterial(16, "VACUUM$ ", 1e-16, 1e-16, 1e-16, 1e16, 1e16);
874 AliMaterial(36, "VACUUM$ ", 1e-16, 1e-16, 1e-16, 1e16, 1e16);
875 AliMaterial(56, "VACUUM$ ", 1e-16, 1e-16, 1e-16, 1e16, 1e16);
878 AliMixture(19, "STAINLESS STEEL$", asteel, zsteel, 7.88, 4, wsteel);
879 AliMixture(39, "STAINLESS STEEL$", asteel, zsteel, 7.88, 4, wsteel);
880 AliMixture(59, "STAINLESS STEEL$", asteel, zsteel, 7.88, 4, wsteel);
883 AliMixture(14, "Al$", acoil, zcoil, 2.122, 3, wcoil);
884 AliMixture(34, "Al$", acoil, zcoil, 2.122, 3, wcoil);
885 AliMixture(54, "Al$", acoil, zcoil, 2.122, 3, wcoil);
888 AliMixture(13, "RESIN$", aresi, zresi, 1.05, 3, wresi);
889 AliMixture(33, "RESIN$", aresi, zresi, 1.05, 3, wresi);
890 AliMixture(53, "RESIN$", aresi, zresi, 1.05, 3, wresi);
893 AliMixture(11, "G10$", aG10, zG10, 1.7, 5, wG10);
894 AliMixture(31, "G10$", aG10, zG10, 1.7, 5, wG10);
895 AliMixture(51, "G10$", aG10, zG10, 1.7, 5, wG10);
897 //Aluminium Conductor
898 AliMixture(12, "AlCond$", aAlCon, zAlCon, 1.3506, 2, wAlCon);
899 AliMixture(32, "AlCond$", aAlCon, zAlCon, 1.3506, 2, wAlCon);
900 AliMixture(52, "AlCond$", aAlCon, zAlCon, 1.3506, 2, wAlCon);
903 // Defines tracking media parameters.
904 // Les valeurs sont commentees pour laisser le defaut
905 // a GEANT (version 3-21, page CONS200), f.m.
906 epsil = .001; // Tracking precision,
907 stemax = -1.; // Maximum displacement for multiple scat
908 tmaxfd = -20.; // Maximum angle due to field deflection
909 deemax = -.3; // Maximum fractional energy loss, DLS
914 AliMedium(9, "ALU_C0 ", 9, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
915 AliMedium(29, "ALU_C1 ", 29, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
916 AliMedium(49, "ALU_C2 ", 49, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
919 AliMedium(10, "FE_C0 ", 10, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
920 AliMedium(30, "FE_C1 ", 30, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
921 AliMedium(50, "FE_C2 ", 50, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
924 AliMedium(15, "AIR_C0 ", 15, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
925 AliMedium(35, "AIR_C1 ", 35, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
926 AliMedium(55, "AIR_C2 ", 55, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
929 AliMedium(16, "VA_C0 ", 16, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
930 AliMedium(36, "VA_C1 ", 36, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
931 AliMedium(56, "VA_C2 ", 56, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
934 AliMedium(19, "ST_C0 ", 19, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
935 AliMedium(39, "ST_C1 ", 39, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
936 AliMedium(59, "ST_C3 ", 59, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
939 AliMedium(14, "Coil_C1 ", 14, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
940 AliMedium(34, "Coil_C2 ", 34, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
941 AliMedium(54, "Coil_C3 ", 54, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
944 AliMedium(13, "RESIN_C0 ", 13, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
945 AliMedium(33, "RESIN_C1 ", 33, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
946 AliMedium(53, "RESIN_C2 ", 53, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
949 AliMedium(11, "G10_C0 ", 11, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
950 AliMedium(31, "G10_C1 ", 31, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
951 AliMedium(51, "G10_C2 ", 51, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
953 //Aluminium Contactor
954 AliMedium(12, "AlCond_C0 ", 12, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
955 AliMedium(32, "AlCond_C1 ", 32, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
956 AliMedium(52, "AlCond_C2 ", 52, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
960 AliMedium(17, "Cu_C0 ", 17, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
961 AliMedium(37, "Cu_C1 ", 37, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
962 AliMedium(57, "Cu_C2 ", 57, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);