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 <TGeoManager.h>
38 #include <TGeoGlobalMagField.h>
39 #include <TGeoVolume.h>
40 #include <TVirtualMC.h>
44 #include "AliDIPOv2.h"
50 //_____________________________________________________________________________
51 AliDIPOv2::AliDIPOv2()
54 // Last design of magnetic dipole version 2
58 //_____________________________________________________________________________
59 AliDIPOv2::AliDIPOv2(const char *name, const char *title)
63 // Standard constructor for the magnetic dipole version 2
66 void AliDIPOv2::CreateGeometry()
69 // Creation of the geometry of the magnetic DIPOLE version 2
72 CreateSpectrometerDipole();
73 CreateCompensatorDipole();
77 //_____________________________________________________________________________
78 void AliDIPOv2::CreateSpectrometerDipole()
81 // Creation of the geometry of the magnetic DIPOLE version 2
84 Float_t cpar[5], tpar[18], ypar[12];
87 Float_t accMax, the1, phi1, the2, phi2, the3, phi3;
89 Int_t *idtmed = fIdtmed->GetArray()-1799;
91 // const Int_t kCoil = 1813;
92 // const Int_t kCable= 1811;
94 const Int_t kCoil = 1808;
95 const Int_t kCable= 1808;
97 accMax = 9.; // ANGLE POLAIRE MAXIMUM
100 const Float_t kZDipole = 975;
106 tpar[ 3] = -250.55 + kZDipole;
110 tpar[ 6] = 37. + kZDipole;
114 tpar[ 9] = 37. + kZDipole;
115 tpar[10] = tpar[ 9] * TMath::Tan(2. * TMath::Pi() / 180.);
118 tpar[12] = 260.55 + kZDipole;
119 tpar[13] = tpar[12] * TMath::Tan(2. * TMath::Pi() / 180.);
121 gMC->Gsvolu("DDIP", "PCON", idtmed[1874], tpar, 15);
131 gMC->Gsvolu("DC1 ", "TUBS", idtmed[kCoil+40], cpar, 5);
134 gMC->Gsvolu("DC2 ", "TUBS", idtmed[kCoil+40], cpar, 5);
136 // coil - low cuts cuts
138 // cpar[1] = cpar[0] + 10.;
143 gMC->Gsvolu("DC3 ", "TUBS", idtmed[kCoil], cpar, 5);
148 gMC->Gsvolu("DC4 ", "TUBS", idtmed[kCoil], cpar, 5);
150 gMC->Gspos("DC3 ", 1, "DC1 ", 0., 0., 0., 0, "ONLY");
151 gMC->Gspos("DC4 ", 1, "DC2 ", 0., 0., 0., 0, "ONLY");
153 // dz = 37.65 - 243.55
156 gMC->Gspos("DC1 ", 1, "DDIP", dx, 0., dz+kZDipole, 0, "ONLY");
157 gMC->Gspos("DC1 ", 2, "DDIP", dx, 0., -dz+kZDipole, 0, "ONLY");
158 gMC->Gspos("DC2 ", 1, "DDIP", -dx, 0., dz+kZDipole, 0, "ONLY");
159 gMC->Gspos("DC2 ", 2, "DDIP", -dx, 0., -dz+kZDipole, 0, "ONLY");
166 AliMatrix(idrotm[1800], the1, phi1, the2, phi2, the3, phi3);
170 AliMatrix(idrotm[1801], the1, phi1, the2, phi2, the3, phi3);
177 AliMatrix(idrotm[1802], the1, phi1, the2, phi2, the3, phi3);
181 AliMatrix(idrotm[1803], the1, phi1, the2, phi2, the3, phi3);
184 cpar[1] = 100.3; //25+75.3
189 gMC->Gsvolu("DC11", "TUBS", idtmed[kCoil+40], cpar, 5);
191 dx = TMath::Sin(30.5*kDegrad) * -(207.+33.5)+5./TMath::Sin(30.5*kDegrad);
192 dy = TMath::Cos(30.5*kDegrad) * -(207.+33.5);
193 dz = cpar[1] - 243.55-2.45;
194 gMC->Gspos("DC11", 1, "DDIP", dx, dy, dz+kZDipole, idrotm[1800], "ONLY");
195 gMC->Gspos("DC11", 2, "DDIP", dx, dy, -dz+kZDipole, idrotm[1802], "ONLY");
196 gMC->Gspos("DC11", 3, "DDIP", -dx, dy, dz+kZDipole, idrotm[1801], "ONLY");
197 gMC->Gspos("DC11", 4, "DDIP", -dx, dy, -dz+kZDipole, idrotm[1803], "ONLY");
203 cpar[1] = 100.3; //25+75.3
208 gMC->Gsvolu("DC12", "TUBS", idtmed[kCoil+40], cpar, 5);
210 dx = TMath::Sin(30.5*kDegrad) * -(207.+33.5)+5./TMath::Sin(30.5*kDegrad);
211 dy = TMath::Cos(30.5*kDegrad) *(207.+33.5);
212 dz = cpar[1] - 243.55-2.45;
213 gMC->Gspos("DC12", 1, "DDIP", dx, dy, dz+kZDipole, idrotm[1801], "ONLY");
214 gMC->Gspos("DC12", 2, "DDIP", dx, dy, -dz+kZDipole, idrotm[1803], "ONLY");
215 gMC->Gspos("DC12", 3, "DDIP", -dx, dy, dz+kZDipole, idrotm[1800], "ONLY");
216 gMC->Gspos("DC12", 4, "DDIP", -dx, dy, -dz+kZDipole, idrotm[1802], "ONLY");
224 AliMatrix(idrotm[1804], the1, phi1, the2, phi2, the3, phi3);
229 AliMatrix(idrotm[1805], the1, phi1, the2, phi2, the3, phi3);
231 phi1 = 119.; //180 -61
233 phi2 = 209.; //270-61
234 AliMatrix(idrotm[1806], the1, phi1, the2, phi2, the3, phi3);
239 AliMatrix(idrotm[1807], the1, phi1, the2, phi2, the3, phi3);
246 gMC->Gsvolu("DL1 ", "BOX ", idtmed[kCoil+40], tpar, 3);
252 gMC->Gsvolu("DL2 ", "BOX ", idtmed[kCoil], tpar, 3);
253 gMC->Gspos("DL2 ", 1, "DL1 ", dx, 0., 0., 0, "ONLY");
258 gMC->Gspos("DL1 ", 1, "DDIP", dx, dy, dz+kZDipole, idrotm[1804], "ONLY");
259 gMC->Gspos("DL1 ", 2, "DDIP", dx, -dy, dz+kZDipole, idrotm[1805], "ONLY");
260 gMC->Gspos("DL1 ", 3, "DDIP",-dx, dy, dz+kZDipole, idrotm[1806], "ONLY");
261 gMC->Gspos("DL1 ", 4, "DDIP",-dx, -dy, dz+kZDipole, idrotm[1807], "ONLY");
267 //Steel outer face planes
275 gMC->Gsvolu("DCO1", "TUBS", idtmed[1818], cpar, 5);
278 gMC->Gspos("DCO1", 1, "DDIP", dx, 0, dz+kZDipole, 0, "ONLY");
279 dz = 243.55+4.5+1.5+1.;
280 gMC->Gspos("DCO1", 2, "DDIP", dx, 0, dz+kZDipole, 0, "ONLY");
284 // cpar[0] = 207.-18.6;
285 // cpar[1] = 274.+18.6;
290 gMC->Gsvolu("DCO2", "TUBS", idtmed[1818], cpar, 5);
293 gMC->Gspos("DCO2", 1, "DDIP", dx, 0, dz+kZDipole, 0, "ONLY");
294 dz = 243.55+4.5+1.5+1.;
295 gMC->Gspos("DCO2", 2, "DDIP", dx, 0, dz+kZDipole, 0, "ONLY");
307 gMC->Gsvolu("DCO3", "TUBS", idtmed[1812], cpar, 5);
310 gMC->Gspos("DCO3", 1, "DDIP", dx, 0, dz+kZDipole, 0, "ONLY");
311 dz = 243.55+4.5+0.75;
312 gMC->Gspos("DCO3", 2, "DDIP", dx, 0, dz+kZDipole, 0, "ONLY");
318 gMC->Gsvolu("DCO4", "TUBS", idtmed[1812], cpar, 5);
321 gMC->Gspos("DCO4", 1, "DDIP", dx, 0, dz+kZDipole, 0, "ONLY");
322 dz = 243.55+4.5+0.75 ;
323 gMC->Gspos("DCO4", 2, "DDIP", dx, 0, dz+kZDipole, 0, "ONLY");
334 gMC->Gsvolu("DCO5", "TUBS", idtmed[1810], cpar, 5);
338 gMC->Gspos("DCO5", 1, "DDIP", dx, 0, dz+kZDipole, 0, "ONLY");
345 gMC->Gsvolu("DCO6", "TUBS", idtmed[1810], cpar, 5);
349 gMC->Gspos("DCO6", 1, "DDIP", dx, 0, dz+kZDipole, 0, "ONLY");
351 //Steel supported planes
353 cpar[0] = 274.+1.5+2.;
359 gMC->Gsvolu("DCO7", "TUBS", idtmed[1818], cpar, 5);
363 gMC->Gspos("DCO7", 1, "DDIP", dx, 0, dz+kZDipole, 0, "ONLY");
366 cpar[0] = 274.+1.5+2.;
373 gMC->Gsvolu("DCO8", "TUBS", idtmed[1818], cpar, 5);
377 gMC->Gspos("DCO8", 1, "DDIP", dx, 0, dz+kZDipole, 0, "ONLY");
381 cpar[0] = 207.- 18.6;
382 cpar[1] = 207.- 2.- 1.5;
387 gMC->Gsvolu("DCO9", "TUBS", idtmed[1818], cpar, 5);
391 gMC->Gspos("DCO9", 1, "DDIP", dx, 0, dz+kZDipole, 0, "ONLY");
395 cpar[0] = 207.- 18.6;
396 cpar[1] = 207.- 2.- 1.5;
401 gMC->Gsvolu("DCOA", "TUBS", idtmed[1818], cpar, 5);
405 gMC->Gspos("DCOA", 1, "DDIP", dx, 0, dz+kZDipole, 0, "ONLY");
408 // Sides steel planes
410 cpar[0] = 207. - 1.5 -2.;
411 cpar[1] = 207. - 1.5;
412 cpar[2] = ((243.55+4.5+1.5)-168.25)/2;
416 gMC->Gsvolu("DCOB", "TUBS", idtmed[1818], cpar, 5);
418 cpar[0] = 274. + 1.5;
419 cpar[1] = 274. + 1.5 +2.;
421 gMC->Gsvolu("DCOC", "TUBS", idtmed[1818], cpar, 5);
424 dz = ((243.55+4.5+1.5)+168.25)/2;
425 gMC->Gspos("DCOB", 1, "DDIP", dx, 0, dz+kZDipole, 0, "ONLY");
426 gMC->Gspos("DCOC", 1, "DDIP", dx, 0, dz+kZDipole, 0, "ONLY");
430 cpar[0] = 207. - 1.5 -2.;
431 cpar[1] = 207. - 1.5;
432 cpar[2] = ((243.55+4.5+1.5)-168.25)/2;
436 gMC->Gsvolu("DCOD", "TUBS", idtmed[1818], cpar, 5);
438 cpar[0] = 274. + 1.5;
439 cpar[1] = 274. + 1.5 +2.;
441 gMC->Gsvolu("DCOE", "TUBS", idtmed[1818], cpar, 5);
444 dz = ((243.55+4.5+1.5)+168.25)/2;
445 gMC->Gspos("DCOD", 1, "DDIP", dx, 0, dz+kZDipole, 0, "ONLY");
446 gMC->Gspos("DCOE", 1, "DDIP", dx, 0, dz+kZDipole, 0, "ONLY");
449 // Top and bottom resin planes
451 cpar[0] = 207. - 1.5;
453 cpar[2] = ((243.55+4.5+1.5)-168.25)/2;
457 gMC->Gsvolu("DCOF", "TUBS", idtmed[1812], cpar, 5);
460 cpar[1] = 274. + 1.5;
462 gMC->Gsvolu("DCOG", "TUBS", idtmed[1812], cpar, 5);
466 dz = ((243.55+4.5+1.5)+168.25)/2;
467 gMC->Gspos("DCOF", 1, "DDIP", dx, 0, dz+kZDipole, 0, "ONLY");
468 gMC->Gspos("DCOG", 1, "DDIP", dx, 0, dz+kZDipole, 0, "ONLY");
471 cpar[0] = 207. - 1.5;
473 cpar[2] = ((243.55+4.5+1.5)-168.25)/2;
478 gMC->Gsvolu("DCOH", "TUBS", idtmed[1812], cpar, 5);
481 cpar[1] = 274. + 1.5;
483 gMC->Gsvolu("DCOI", "TUBS", idtmed[1812], cpar, 5);
487 dz = ((243.55+4.5+1.5)+168.25)/2;
488 gMC->Gspos("DCOH", 1, "DDIP", dx, 0, dz+kZDipole, 0, "ONLY");
489 gMC->Gspos("DCOI", 1, "DDIP", dx, 0, dz+kZDipole, 0, "ONLY");
494 cpar[0] = 274. + 1.5 +2.;
495 cpar[1] = 274. + 1.5 +2. + 80.;
500 gMC->Gsvolu("DCOJ", "TUBS", idtmed[kCable], cpar, 5);
502 // dx = 274. + 1.5 +2. +40.;
503 // dx = 5. + 1.5 +2. +40.;
504 // dx = 5. + 1.5 +2.;
506 dz = 168.25 + 5.05 + 5.05/2;
507 gMC->Gspos("DCOJ", 1, "DDIP", dx, 0, dz+kZDipole, 0, "ONLY");
509 dz = 243.55 - 5.05/2;
510 gMC->Gspos("DCOJ", 2, "DDIP", dx, 0, dz+kZDipole, 0, "ONLY");
517 gMC->Gsvolu("DCOK", "TUBS", idtmed[kCable], cpar, 5);
519 // dx = 274. + 1.5 +2. +40.;
520 // dx = 5. + 1.5 +2. +40.;
521 // dx = 5. + 1.5 +2.;
523 dz = 168.25 + 5.05 + 5.05/2;
524 gMC->Gspos("DCOK", 1, "DDIP", dx, 0, dz+kZDipole, 0, "ONLY");
526 dz = 243.55 - 5.05/2;
527 gMC->Gspos("DCOK", 2, "DDIP", dx, 0, dz+kZDipole, 0, "ONLY");
532 // Top and bottom blocks
538 gMC->Gsvolu("DY1 ", "BOX ", idtmed[1858], ypar, 3);
545 gMC->Gsvolu("DY11", "TRD1", idtmed[1818], ypar, 4);
546 gMC->Gspos("DY11", 1, "DY1 ", 0., dy, 0., 0, "ONLY");
550 gMC->Gspos("DY1 ", 1, "DDIP", 0., dy, -dz+kZDipole, 0, "ONLY");
558 AliMatrix(idrotm[1808], the1, phi1, the2, phi2, the3, phi3);
559 gMC->Gspos("DY1 ", 2, "DDIP", 0., -dy, -dz+kZDipole, idrotm[1808] , "ONLY");
562 // ypar[0] = 579./2.;
569 ypar[6] = 4.3058039629;
574 ypar[10] = 4.3058039629;
578 gMC->Gsvolu("DY2 ", "TRAP", idtmed[1858], ypar,11);
589 gMC->Gsvolu("DY22", "TRAP", idtmed[1818], ypar,11);
594 gMC->Gspos("DY22", 1, "DY2 ", dx, dy, 0., 0, "ONLY");
602 AliMatrix(idrotm[1809], the1, phi1, the2, phi2, the3, phi3);
610 AliMatrix(idrotm[1810], the1, phi1, the2, phi2, the3, phi3);
615 gMC->Gspos("DY2 ", 1, "DDIP", dx, 0.0, dz+kZDipole, idrotm[1809], "ONLY");
616 gMC->Gspos("DY2 ", 2, "DDIP", -dx, 0.0, dz+kZDipole, idrotm[1810], "ONLY");
618 AliMatrix(idrotm[1811], 270., 0., 90., 90., 180., 0.);
619 gMC->Gspos("DDIP", 1, "ALIC", 0., 0., 0., idrotm[1811], "ONLY");
620 gGeoManager->SetVolumeAttribute("DDIP", "SEEN", 0);
624 void AliDIPOv2::CreateCompensatorDipole()
627 // Geometry of the compensator Dipole MBWMD (was MCB @ SPS)
628 // LAB I/EA Note 74.10
631 const Float_t kHCoil = 22.; // Coil Height
632 const Float_t kWCoil = 12.; // Coil Width
633 const Float_t kLCoilH = 250.; // Hor. Coil Length
634 const Float_t kRCoilC = 31.; // Circ Coil Radius
635 const Float_t kWBase = 125.; // Base Width
636 const Float_t kHBase = 30.; // Base Height
638 const Float_t kWUYoke = 16.;
639 const Float_t kHUYoke = 31.;
641 const Float_t kWLYoke = 50.0;
642 const Float_t kHLYoke = 61.0;
643 const Float_t kLLYoke = kLCoilH + kRCoilC;
645 const Float_t kWApperture = 12.;
646 const Float_t kDCoil = kHUYoke + kHLYoke - 6. - 2. * kRCoilC;
648 const Float_t kH = kHBase + kHUYoke + kHLYoke;
650 Int_t *idtmed = fIdtmed->GetArray()-1799;
655 TGeoVolumeAssembly* asDCM0 = new TGeoVolumeAssembly("DCM0");
656 asDCM0->SetName("DCM0");
659 // Mother volume containing lower coil
660 pbox[0] = kWLYoke / 2.;
661 pbox[1] = kHLYoke / 2.;
662 pbox[2] = kLLYoke / 2.;
664 gMC->Gsvolu("DCML", "BOX", idtmed[1809 + 40], pbox, 3);
667 pbox[0] = kWBase / 2.;
668 pbox[1] = kHBase / 2.;
669 gMC->Gsvolu("DCBA", "BOX", idtmed[1809 + 40], pbox, 3);
671 // Coil: straight sections, horizontal
672 pbox[0] = kWCoil / 2.;
673 pbox[1] = kHCoil / 2.;
674 pbox[2] = kLCoilH / 2.;
675 gMC->Gsvolu("DCH1", "BOX", idtmed[1816 + 40], pbox, 3);
677 // Coil: straight sections, horizontal
678 pbox[0] = kWCoil / 2.;
679 pbox[1] = kHCoil / 2.;
680 pbox[2] = kLCoilH / 2.;
681 gMC->Gsvolu("DCH2", "BOX", idtmed[1816 + 40], pbox, 3);
684 // Mother volume containing upper coil
685 pbox[0] = kWUYoke / 2.;
686 pbox[1] = kHUYoke / 2.;
687 pbox[2] = kLCoilH / 2.;
688 gMC->Gsvolu("DCMU", "BOX", idtmed[1809 + 40], pbox, 3);
691 // Coil: straight sections, vertical
692 pbox[0] = kWCoil / 2.;
693 pbox[1] = kDCoil / 2.;
694 pbox[2] = kHCoil / 2.;
696 gMC->Gsvolu("DCCV", "BOX", idtmed[1816 + 40], pbox, 3);
698 // Coil: circular section
701 ptubs[0] = kRCoilC - kHCoil;
703 ptubs[2] = kWCoil / 2.;
706 gMC->Gsvolu("DCC1", "TUBS", idtmed[1816 + 40], ptubs, 5);
720 gMC->Gsvolu("DCLA", "PGON", idtmed[1809 + 40], ppgon, 10);
724 AliMatrix(idrotm[1811], -90., 0., 90., 90., 0., 0.);
725 AliMatrix(idrotm[1812], 0., 0., 90., 90., 90., 0.);
726 AliMatrix(idrotm[1813], 180., 0., 90., 90., 90., 0.);
727 AliMatrix(idrotm[1814], 0., 180., 90., 270., 90., 0.);
728 AliMatrix(idrotm[1815], 180., 180., 90., 270., 90., 0.);
733 dy0 = -kH / 2. + kHBase/2.;
734 gMC->Gspos("DCBA", 1, "DCM0", 0., dy0, 15.0, 0, "ONLY");
737 dx = ( kWLYoke - kWCoil) / 2.;
738 dy = (-kHLYoke + kHCoil) / 2. + 6.;
739 gMC->Gspos("DCH1", 1, "DCML", dx, dy, -kRCoilC / 2., 0, "ONLY");
740 // Lower mother volume
741 dx = (kWLYoke + kWApperture) / 2.;
742 dy0 += (kHBase + kHLYoke) / 2.;
743 gMC->Gspos("DCML", 1, "DCM0", -dx, dy0, kRCoilC / 2., 0, "ONLY");
744 gMC->Gspos("DCML", 2, "DCM0", +dx, dy0, kRCoilC / 2., idrotm[1811], "ONLY");
746 dx = (kWUYoke - kWCoil) / 2.;
747 dy = (kHUYoke - kHCoil) / 2;
749 gMC->Gspos("DCH2", 1, "DCMU", dx, dy, 0., 0, "ONLY");
750 // Upper mother volume
751 dx = (kWUYoke + kWApperture) / 2.;
752 dy0 += (kHLYoke + kHUYoke) / 2.;
753 gMC->Gspos("DCMU", 1, "DCM0", -dx, dy0, 0., 0, "ONLY");
754 gMC->Gspos("DCMU", 2, "DCM0", +dx, dy0, 0., idrotm[1811], "ONLY");
757 dx = (kWCoil + kWApperture) / 2.;
758 dy = kH / 2. - kDCoil / 2. - kRCoilC;
759 dz = (kLCoilH - kHCoil) / 2. + kRCoilC;
760 gMC->Gspos("DCCV", 1, "DCM0", dx, dy, -dz, 0, "ONLY");
761 gMC->Gspos("DCCV", 2, "DCM0", -dx, dy, -dz, 0, "ONLY");
763 dx = (kWLYoke - kWCoil) / 2.;
764 dy = -kHLYoke / 2. + kDCoil / 2. + 6. + kRCoilC;
765 dz = kLLYoke / 2. - kHCoil / 2.;
767 gMC->Gspos("DCCV", 3, "DCML", dx, dy, dz, 0, "ONLY");
772 dx = (kWCoil + kWApperture) / 2.;
773 dy = dy0 + kHUYoke / 2. - kRCoilC;
775 gMC->Gspos("DCC1", 1, "DCM0", -dx, dy, dz, idrotm[1812], "ONLY");
776 gMC->Gspos("DCC1", 2, "DCM0", +dx, dy, dz, idrotm[1812], "ONLY");
777 gMC->Gspos("DCC1", 3, "DCM0", +dx, dy, -dz, idrotm[1813], "ONLY");
778 gMC->Gspos("DCC1", 4, "DCM0", -dx, dy, -dz, idrotm[1813], "ONLY");
779 dy = -kH / 2. + kHBase + 6. + kRCoilC;
780 gMC->Gspos("DCC1", 5, "DCM0", +dx, dy, -dz, idrotm[1815], "ONLY");
781 gMC->Gspos("DCC1", 6, "DCM0", -dx, dy, -dz, idrotm[1815], "ONLY");
783 dx = ( kWLYoke - kWCoil) / 2.;
784 dy = -kHLYoke / 2. + 6. + kRCoilC;
785 dz = kLLYoke / 2. - kRCoilC;
786 gMC->Gspos("DCC1", 7, "DCML", dx, dy, dz, idrotm[1814], "ONLY");
789 dx = kWApperture / 2. + kWUYoke;
790 dy = -kH / 2. + kHLYoke + kHBase;
793 gMC->Gspos("DCLA", 1, "DCM0", dx, dy, -119., 0, "ONLY");
794 gMC->Gspos("DCLA", 2, "DCM0", dx, dy, -44., 0, "ONLY");
795 gMC->Gspos("DCLA", 3, "DCM0", dx, dy, 46., 0, "ONLY");
796 gMC->Gspos("DCLA", 4, "DCM0", dx, dy, 119., 0, "ONLY");
798 gMC->Gspos("DCLA", 5, "DCM0", -dx, dy, -119., idrotm[1811], "ONLY");
799 gMC->Gspos("DCLA", 6, "DCM0", -dx, dy, -44., idrotm[1811], "ONLY");
800 gMC->Gspos("DCLA", 7, "DCM0", -dx, dy, 46., idrotm[1811], "ONLY");
801 gMC->Gspos("DCLA", 8, "DCM0", -dx, dy, 119., idrotm[1811], "ONLY");
804 AliMatrix(idrotm[1816], 270., 0., 90., 90., 180., 0.);
805 gMC->Gspos("DCM0", 1, "ALIC", 0., -12., 1075., idrotm[1816], "ONLY");
809 //_____________________________________________________________________________
810 void AliDIPOv2::CreateMaterials()
813 // Create Materials for Magnetic Dipole version 2
816 Int_t isxfld1 = ((AliMagF*)TGeoGlobalMagField::Instance()->GetField())->Integ();
817 Int_t isxfld2 = ((AliMagF*)TGeoGlobalMagField::Instance()->GetField())->PrecInteg();
818 Float_t sxmgmx = ((AliMagF*)TGeoGlobalMagField::Instance()->GetField())->Max();
821 Float_t asteel[4] = { 55.847,51.9961,58.6934,28.0855 };
822 Float_t zsteel[4] = { 26.,24.,28.,14. };
823 Float_t wsteel[4] = { .715,.18,.1,.005 };
825 Float_t acoil[3] = { 26.98,1.01,16. };
826 Float_t zcoil[3] = { 13.,1.,8. };
827 Float_t wcoil[3] = { .66,.226,.114 };
829 Float_t aresi[3] = { 1.01,12.011,16.};
830 Float_t zresi[3] = { 1.,6.,8. };
831 Float_t wresi[3] = { .0644,.7655,.1701 };
833 Float_t aG10[5] = { 1.01,12.011,16.,28.085 ,79.904 };
834 Float_t zG10[5] = { 1.,6.,8.,14.,35. };
835 Float_t wG10[5] = { .02089,.22338,.28493,.41342,.05738 };
839 Float_t aAir[4]={12.0107,14.0067,15.9994,39.948};
840 Float_t zAir[4]={6.,7.,8.,18.};
841 Float_t wAir[4]={0.000124,0.755267,0.231781,0.012827};
842 Float_t dAir = 1.20479E-3;
843 Float_t dAir1 = 1.20479E-10;
846 Float_t epsil, stmin, deemax, tmaxfd, stemax;
848 // --- Define the various materials for GEANT ---
850 AliMaterial( 9, "ALUMINIUM0$", 26.98, 13., 2.7, 8.9, 37.2);
851 AliMaterial(29, "ALUMINIUM1$", 26.98, 13., 2.7, 8.9, 37.2);
852 AliMaterial(49, "ALUMINIUM2$", 26.98, 13., 2.7, 8.9, 37.2);
855 AliMaterial(10, "IRON0$ ", 55.85, 26., 7.87, 1.76, 17.1);
856 AliMaterial(30, "IRON1$ ", 55.85, 26., 7.87, 1.76, 17.1);
857 AliMaterial(50, "IRON2$ ", 55.85, 26., 7.87, 1.76, 17.1);
859 AliMaterial(17, "COPPER0$ ", 63.55, 29., 8.96, 1.43, 15.1);
860 AliMaterial(37, "COPPER1$ ", 63.55, 29., 8.96, 1.43, 15.1);
861 AliMaterial(57, "COPPER2$ ", 63.55, 29., 8.96, 1.43, 15.1);
863 AliMixture(15, "AIR0$ ", aAir, zAir, dAir, 4, wAir);
864 AliMixture(35, "AIR1$ ", aAir, zAir, dAir, 4, wAir);
865 AliMixture(55, "AIR2$ ", aAir, zAir, dAir, 4, wAir);
866 AliMixture(75, "AIR_MUON ", aAir, zAir, dAir, 4, wAir);
868 AliMixture(16, "VACUUM0$ ", aAir, zAir, dAir1, 4, wAir);
869 AliMixture(36, "VACUUM1$ ", aAir, zAir, dAir1, 4, wAir);
870 AliMixture(56, "VACUUM2$ ", aAir, zAir, dAir1, 4, wAir);
873 AliMixture(19, "STAINLESS STEEL0$", asteel, zsteel, 7.88, 4, wsteel);
874 AliMixture(39, "STAINLESS STEEL1$", asteel, zsteel, 7.88, 4, wsteel);
875 AliMixture(59, "STAINLESS STEEL2$", asteel, zsteel, 7.88, 4, wsteel);
878 AliMixture(14, "Al0$", acoil, zcoil, 2.122, 3, wcoil);
879 AliMixture(34, "Al1$", acoil, zcoil, 2.122, 3, wcoil);
880 AliMixture(54, "Al2$", acoil, zcoil, 2.122, 3, wcoil);
883 AliMixture(13, "RESIN0$", aresi, zresi, 1.05, 3, wresi);
884 AliMixture(33, "RESIN1$", aresi, zresi, 1.05, 3, wresi);
885 AliMixture(53, "RESIN2$", aresi, zresi, 1.05, 3, wresi);
888 AliMixture(11, "G100$", aG10, zG10, 1.7, 5, wG10);
889 AliMixture(31, "G101$", aG10, zG10, 1.7, 5, wG10);
890 AliMixture(51, "G102$", aG10, zG10, 1.7, 5, wG10);
893 // Defines tracking media parameters.
894 // Les valeurs sont commentees pour laisser le defaut
895 // a GEANT (version 3-21, page CONS200), f.m.
896 epsil = .001; // Tracking precision,
897 stemax = -1.; // Maximum displacement for multiple scat
898 tmaxfd = -20.; // Maximum angle due to field deflection
899 deemax = -.3; // Maximum fractional energy loss, DLS
904 AliMedium( 9, "ALU_C0 ", 9, 0, isxfld1, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
905 AliMedium(29, "ALU_C1 ", 29, 0, isxfld1, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
906 AliMedium(49, "ALU_C2 ", 49, 0, isxfld1, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
909 AliMedium(10, "FE_C0 ", 10, 0, isxfld1, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
910 AliMedium(30, "FE_C1 ", 30, 0, isxfld1, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
911 AliMedium(50, "FE_C2 ", 50, 0, isxfld1, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
914 AliMedium(15, "AIR_C0 ", 15, 0, isxfld1, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
915 AliMedium(35, "AIR_C1 ", 35, 0, isxfld1, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
916 AliMedium(55, "AIR_C2 ", 55, 0, isxfld1, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
917 AliMedium(75, "AIR_MUON ", 75, 0, isxfld2, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
920 AliMedium(16, "VA_C0 ", 16, 0, isxfld1, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
921 AliMedium(36, "VA_C1 ", 36, 0, isxfld1, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
922 AliMedium(56, "VA_C2 ", 56, 0, isxfld1, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
925 AliMedium(19, "ST_C0 ", 19, 0, isxfld1, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
926 AliMedium(39, "ST_C1 ", 39, 0, isxfld1, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
927 AliMedium(59, "ST_C3 ", 59, 0, isxfld1, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
930 AliMedium(14, "Coil_C1 ", 14, 0, isxfld1, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
931 AliMedium(34, "Coil_C2 ", 34, 0, isxfld1, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
932 AliMedium(54, "Coil_C3 ", 54, 0, isxfld1, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
935 AliMedium(13, "RESIN_C0 ", 13, 0, isxfld1, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
936 AliMedium(33, "RESIN_C1 ", 33, 0, isxfld1, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
937 AliMedium(53, "RESIN_C2 ", 53, 0, isxfld1, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
940 AliMedium(11, "G10_C0 ", 11, 0, isxfld1, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
941 AliMedium(31, "G10_C1 ", 31, 0, isxfld1, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
942 AliMedium(51, "G10_C2 ", 51, 0, isxfld1, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
945 AliMedium(17, "Cu_C0 ", 17, 0, isxfld1, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
946 AliMedium(37, "Cu_C1 ", 37, 0, isxfld1, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
947 AliMedium(57, "Cu_C2 ", 57, 0, isxfld1, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);