1 ///////////////////////////////////////////////////////////////////////////////
3 // Magnetic Dipole version 1 //
7 <img src="gif/AliDIPOv2Class.gif">
10 <font size=+2 color=red>
11 <p>The responsible person for this module is
12 <a href="mailto:andreas.morsch@cern.ch">Andreas Morsch</a>.
19 ///////////////////////////////////////////////////////////////////////////////
21 #include "AliDIPOv2.h"
27 //_____________________________________________________________________________
28 AliDIPOv2::AliDIPOv2()
31 // Default constructor for magnetic dipole version 2
35 //_____________________________________________________________________________
36 AliDIPOv2::AliDIPOv2(const char *name, const char *title)
40 // Standard constructor for the magnetic dipole version 2
46 //_____________________________________________________________________________
47 void AliDIPOv2::CreateGeometry()
50 // Creation of the geometry of the magnetic DIPOLE version 2
54 <img src="gif/AliDIPOv2Tree.gif">
59 <img src="gif/AliDIPOv2.gif">
63 AliMC* pMC = AliMC::GetMC();
65 Float_t cpar[5], tpar[3], ypar[4];
68 Float_t acc_max, the1, phi1, the2, phi2, the3, phi3;
70 Int_t *idtmed = gAlice->Idtmed();
72 //abs_d = 90.; // DEFINES DRIFT LENGTH
75 //theta1 = 24.; // 1. angle defining the front absorber
76 //theta2 = 5.; // 2. angle defining the front absorbe
77 acc_max = 9.; // ANGLE POLAIRE MAXIMUM
78 //acc_min = 2.; // ANGLE POLAIRE MINIMUM DE DETECTION
80 //d_steel = 1.; // THICKNESS OF STEEL SUPPORT
83 //abs_cc = 315.; // DEFINES LENGTH OF CARBON
85 //abs_s = 150.; // DEFINES W-SHIELD LENGTH
86 //abs_n = 80.; // START OF NOSE
101 //zcone_e = 859.0875;
122 pMC->Gsvolu("DDIP", "BOX ", idtmed[1814], tpar, 3);
132 pMC->Gsvolu("DC1 ", "TUBS", idtmed[1813], cpar, 5);
135 pMC->Gsvolu("DC2 ", "TUBS", idtmed[1813], cpar, 5);
136 // ... define regions for higher cuts
142 pMC->Gsvolu("DC3 ", "TUBS", idtmed[1833], cpar, 5);
143 pMC->Gspos("DC3 ", 1, "DC1 ", 0., 0., 0., 0, "ONLY");
146 pMC->Gsvolu("DC4 ", "TUBS", idtmed[1833], cpar, 5);
147 pMC->Gspos("DC4 ", 1, "DC2 ", 0., 0., 0., 0, "ONLY");
150 pMC->Gspos("DC1 ", 1, "DDIP", 0., 0., dz, 0, "ONLY");
151 pMC->Gspos("DC1 ", 2, "DDIP", 0., 0., -dz, 0, "ONLY");
152 pMC->Gspos("DC2 ", 1, "DDIP", 0., 0., dz, 0, "ONLY");
153 pMC->Gspos("DC2 ", 2, "DDIP", 0., 0., -dz, 0, "ONLY");
160 AliMatrix(idrotm[1800], the1, phi1, the2, phi2, the3, phi3);
164 AliMatrix(idrotm[1801], the1, phi1, the2, phi2, the3, phi3);
171 AliMatrix(idrotm[1802], the1, phi1, the2, phi2, the3, phi3);
175 AliMatrix(idrotm[1803], the1, phi1, the2, phi2, the3, phi3);
181 pMC->Gsvolu("DC11", "TUBS", idtmed[1813], cpar, 5);
186 pMC->Gsvolu("DC21", "TUBS", idtmed[1833], cpar, 5);
187 pMC->Gspos("DC21", 1, "DC11", 0., 0., 0., 0, "ONLY");
189 dx = TMath::Sin(30*kDegrad) * -236.5;
190 dy = TMath::Cos(30*kDegrad) * -236.5;
191 dz = cpar[1] + 10. - 250.;
192 pMC->Gspos("DC11", 1, "DDIP", dx, dy, dz, idrotm[1800], "ONLY");
193 pMC->Gspos("DC11", 2, "DDIP", dx, dy, -dz, idrotm[1802], "ONLY");
194 pMC->Gspos("DC11", 3, "DDIP", -dx, dy, dz, idrotm[1801], "ONLY");
195 pMC->Gspos("DC11", 4, "DDIP", -dx, dy, -dz, idrotm[1803], "ONLY");
201 pMC->Gsvolu("DC12", "TUBS", idtmed[1813], cpar, 5);
206 pMC->Gsvolu("DC22", "TUBS", idtmed[1833], cpar, 5);
207 pMC->Gspos("DC22", 1, "DC12", 0., 0., 0., 0, "ONLY");
209 dx = TMath::Sin(30*kDegrad) * -236.5;
210 dy = TMath::Cos(30*kDegrad) * 236.5;
211 dz = cpar[1] + 10. - 250.;
212 pMC->Gspos("DC12", 1, "DDIP", dx, dy, dz, idrotm[1801], "ONLY");
213 pMC->Gspos("DC12", 2, "DDIP", dx, dy, -dz, idrotm[1803], "ONLY");
214 pMC->Gspos("DC12", 3, "DDIP", -dx, dy, dz, idrotm[1800], "ONLY");
215 pMC->Gspos("DC12", 4, "DDIP", -dx, dy, -dz, idrotm[1802], "ONLY");
222 AliMatrix(idrotm[1804], the1, phi1, the2, phi2, the3, phi3);
229 AliMatrix(idrotm[1805], the1, phi1, the2, phi2, the3, phi3);
233 pMC->Gsvolu("DL1 ", "BOX ", idtmed[1813], tpar, 3);
237 pMC->Gsvolu("DL2 ", "BOX ", idtmed[1833], tpar, 3);
238 pMC->Gspos("DL2 ", 1, "DL1 ", 0., 0., 0., 0, "ONLY");
243 pMC->Gspos("DL1 ", 1, "DDIP", dx, dy, dz, idrotm[1804], "ONLY");
244 pMC->Gspos("DL1 ", 2, "DDIP", dx, -dy, dz, idrotm[1805], "ONLY");
245 pMC->Gspos("DL1 ", 3, "DDIP",-dx, dy, dz, idrotm[1805], "ONLY");
246 pMC->Gspos("DL1 ", 4, "DDIP",-dx, -dy, dz, idrotm[1804], "ONLY");
253 ypar[0] = ypar[1] - ypar[3] * 2. * TMath::Tan(acc_max * kDegrad);
254 pMC->Gsvolu("DY1 ", "TRD1", idtmed[1809], ypar, 4);
257 pMC->Gspos("DY1 ", 1, "DDIP", 0., dy, 0., 0, "ONLY");
258 pMC->Gspos("DY1 ", 2, "DDIP", 0., -dy, 0., 0, "ONLY");
260 pMC->Gsvolu("DY2 ", "TRD1", idtmed[1829], ypar, 4);
263 pMC->Gspos("DY2 ", 1, "DDIP", 0., dy, 0., 0, "ONLY");
264 pMC->Gspos("DY2 ", 2, "DDIP", 0., -dy, 0., 0, "ONLY");
271 AliMatrix(idrotm[1806], the1, phi1, the2, phi2, the3, phi3);
275 AliMatrix(idrotm[1807], the1, phi1, the2, phi2, the3, phi3);
279 pMC->Gsvolu("DYL ", "BOX ", idtmed[1814], tpar, 3);
282 pMC->Gsvolu("DY3 ", "BOX ", idtmed[1809], tpar, 3);
285 pMC->Gspos("DY3 ", 1, "DYL ", dx, dy, 0., 0, "ONLY");
286 pMC->Gspos("DY3 ", 2, "DYL ", dx, -dy, 0., 0, "ONLY");
288 pMC->Gsvolu("DY4 ", "BOX ", idtmed[1829], tpar, 3);
289 dx = dx + 5. + tpar[0];
290 pMC->Gspos("DY4 ", 1, "DYL ", dx, dy, 0., 0, "ONLY");
291 pMC->Gspos("DY4 ", 2, "DYL ", dx, -dy, 0., 0, "ONLY");
294 pMC->Gsvolu("DY5 ", "BOX ", idtmed[1829], tpar, 3);
296 pMC->Gspos("DY5 ", 1, "DYL ", dx, 0., 0., 0, "ONLY");
298 pMC->Gsvolu("DY6 ", "BOX ", idtmed[1809], tpar, 3);
299 dx = dx - 37.7 - tpar[0];
300 pMC->Gspos("DY6 ", 1, "DYL ", dx, 0., 0., 0, "ONLY");
303 pMC->Gsvolu("DY7 ", "BOX ", idtmed[1809], tpar, 3);
306 pMC->Gspos("DY7 ", 1, "DYL ", dx, dy, 0., 0, "ONLY");
307 pMC->Gspos("DY7 ", 2, "DYL ", dx, -dy, 0., 0, "ONLY");
309 dx = ypar[0] + ypar[3] * TMath::Tan(acc_max * kDegrad) - 60.;
310 pMC->Gspos("DYL ", 1, "DDIP", dx, 0., 0., idrotm[1806], "ONLY");
311 pMC->Gspos("DYL ", 2, "DDIP",-dx, 0., 0., idrotm[1807], "ONLY");
312 pMC->Gspos("DDIP", 1, "ALIC", 0., 0., 725.+250., 0, "MANY");
313 pMC->Gsatt("DDIP", "SEEN", 0);
314 pMC->Gsatt("DC21", "SEEN", 0);
315 pMC->Gsatt("DC22", "SEEN", 0);
316 pMC->Gsatt("DC3 ", "SEEN", 0);
317 pMC->Gsatt("DC4 ", "SEEN", 0);
320 //_____________________________________________________________________________
321 void AliDIPOv2::DrawModule()
324 // Draw a shaded view of the muon absorber
327 AliMC* pMC = AliMC::GetMC();
329 // Set everything unseen
330 pMC->Gsatt("*", "seen", -1);
332 // Set ALIC mother transparent
333 pMC->Gsatt("ALIC","SEEN",0);
335 // Set the volumes visible
336 pMC->Gsatt("DDIP","seen",0);
337 pMC->Gsatt("DC1 ","seen",1);
338 pMC->Gsatt("DC2 ","seen",1);
339 pMC->Gsatt("DC3 ","seen",1);
340 pMC->Gsatt("DC4 ","seen",1);
341 pMC->Gsatt("DC11","seen",1);
342 pMC->Gsatt("DC21","seen",1);
343 pMC->Gsatt("DC12","seen",1);
344 pMC->Gsatt("DC22","seen",1);
345 pMC->Gsatt("DL1 ","seen",1);
346 pMC->Gsatt("DL2 ","seen",1);
347 pMC->Gsatt("DY1 ","seen",1);
348 pMC->Gsatt("DY2 ","seen",1);
349 pMC->Gsatt("DYL ","seen",1);
350 pMC->Gsatt("DY3 ","seen",1);
351 pMC->Gsatt("DY4 ","seen",1);
352 pMC->Gsatt("DY5 ","seen",1);
353 pMC->Gsatt("DY6 ","seen",1);
354 pMC->Gsatt("DY7 ","seen",1);
356 pMC->Gdopt("hide", "on");
357 pMC->Gdopt("shad", "on");
358 pMC->Gsatt("*", "fill", 7);
359 pMC->SetClipBox(".");
360 pMC->SetClipBox(".");
362 pMC->Gdraw("alic", 30, 30, 0, 17, 13.5, .019, .019);
363 pMC->Gdhead(1111, "Magnetic Dipole Version 2");
364 pMC->Gdman(16, 4, "MAN");
367 //_____________________________________________________________________________
368 void AliDIPOv2::CreateMaterials()
371 // Create Materials for Magnetic Dipole version 2
374 Int_t ISXFLD = gAlice->Field()->Integ();
375 Float_t SXMGMX = gAlice->Field()->Max();
377 Float_t asteel[4] = { 55.847,51.9961,58.6934,28.0855 };
378 Float_t zsteel[4] = { 26.,24.,28.,14. };
379 Float_t wsteel[4] = { .715,.18,.1,.005 };
380 Float_t acoil[3] = { 26.98,1.01,16. };
381 Float_t zcoil[3] = { 13.,1.,8. };
382 Float_t wcoil[3] = { .66,.226,.114 };
384 Float_t epsil, stmin, deemax, tmaxfd, stemax;
386 // --- Define the various materials for GEANT ---
388 AliMaterial(9, "ALUMINIUM$", 26.98, 13., 2.7, 8.9, 37.2);
389 AliMaterial(29, "ALUMINIUM$", 26.98, 13., 2.7, 8.9, 37.2);
390 AliMaterial(49, "ALUMINIUM$", 26.98, 13., 2.7, 8.9, 37.2);
393 AliMaterial(10, "IRON$ ", 55.85, 26., 7.87, 1.76, 17.1);
394 AliMaterial(30, "IRON$ ", 55.85, 26., 7.87, 1.76, 17.1);
395 AliMaterial(50, "IRON$ ", 55.85, 26., 7.87, 1.76, 17.1);
398 AliMaterial(15, "AIR$ ", 14.61, 7.3, .001205, 30423.24, 67500);
399 AliMaterial(35, "AIR$ ", 14.61, 7.3, .001205, 30423.24, 67500);
400 AliMaterial(55, "AIR$ ", 14.61, 7.3, .001205, 30423.24, 67500);
403 AliMaterial(16, "VACUUM$ ", 1e-16, 1e-16, 1e-16, 1e16, 1e16);
404 AliMaterial(36, "VACUUM$ ", 1e-16, 1e-16, 1e-16, 1e16, 1e16);
405 AliMaterial(56, "VACUUM$ ", 1e-16, 1e-16, 1e-16, 1e16, 1e16);
408 AliMixture(19, "STAINLESS STEEL$", asteel, zsteel, 7.88, 4, wsteel);
409 AliMixture(39, "STAINLESS STEEL$", asteel, zsteel, 7.88, 4, wsteel);
410 AliMixture(59, "STAINLESS STEEL$", asteel, zsteel, 7.88, 4, wsteel);
413 AliMixture(14, "Al$", acoil, zcoil, 2.122, 3, wcoil);
414 AliMixture(34, "Al$", acoil, zcoil, 2.122, 3, wcoil);
415 AliMixture(54, "Al$", acoil, zcoil, 2.122, 3, wcoil);
418 // Defines tracking media parameters.
419 // Les valeurs sont commentees pour laisser le defaut
420 // a GEANT (version 3-21, page CONS200), f.m.
421 epsil = .001; // Tracking precision,
422 stemax = -1.; // Maximum displacement for multiple scat
423 tmaxfd = -20.; // Maximum angle due to field deflection
424 deemax = -.3; // Maximum fractional energy loss, DLS
429 AliMedium(1809, "ALU_C0 ", 9, 0, ISXFLD, SXMGMX, tmaxfd, stemax, deemax, epsil, stmin);
430 AliMedium(1829, "ALU_C1 ", 29, 0, ISXFLD, SXMGMX, tmaxfd, stemax, deemax, epsil, stmin);
431 AliMedium(1849, "ALU_C2 ", 49, 0, ISXFLD, SXMGMX, tmaxfd, stemax, deemax, epsil, stmin);
434 AliMedium(1810, "FE_C0 ", 10, 0, ISXFLD, SXMGMX, tmaxfd, stemax, deemax, epsil, stmin);
435 AliMedium(1830, "FE_C1 ", 30, 0, ISXFLD, SXMGMX, tmaxfd, stemax, deemax, epsil, stmin);
436 AliMedium(1850, "FE_C2 ", 50, 0, ISXFLD, SXMGMX, tmaxfd, stemax, deemax, epsil, stmin);
439 AliMedium(1815, "AIR_C0 ", 15, 0, ISXFLD, SXMGMX, tmaxfd, stemax, deemax, epsil, stmin);
440 AliMedium(1835, "AIR_C1 ", 35, 0, ISXFLD, SXMGMX, tmaxfd, stemax, deemax, epsil, stmin);
441 AliMedium(1855, "AIR_C2 ", 55, 0, ISXFLD, SXMGMX, tmaxfd, stemax, deemax, epsil, stmin);
444 AliMedium(1816, "VA_C0 ", 16, 0, ISXFLD, SXMGMX, tmaxfd, stemax, deemax, epsil, stmin);
445 AliMedium(1836, "VA_C1 ", 36, 0, ISXFLD, SXMGMX, tmaxfd, stemax, deemax, epsil, stmin);
446 AliMedium(1856, "VA_C2 ", 56, 0, ISXFLD, SXMGMX, tmaxfd, stemax, deemax, epsil, stmin);
449 AliMedium(1819, "ST_C0 ", 19, 0, ISXFLD, SXMGMX, tmaxfd, stemax, deemax, epsil, stmin);
450 AliMedium(1839, "ST_C1 ", 39, 0, ISXFLD, SXMGMX, tmaxfd, stemax, deemax, epsil, stmin);
451 AliMedium(1859, "ST_C3 ", 59, 0, ISXFLD, SXMGMX, tmaxfd, stemax, deemax, epsil, stmin);
454 AliMedium(1814, "Coil_C1 ", 14, 0, ISXFLD, SXMGMX, tmaxfd, stemax, deemax, epsil, stmin);
455 AliMedium(1834, "Coil_C2 ", 34, 0, ISXFLD, SXMGMX, tmaxfd, stemax, deemax, epsil, stmin);
456 AliMedium(1854, "Coil_C3 ", 54, 0, ISXFLD, SXMGMX, tmaxfd, stemax, deemax, epsil, stmin);