1 ///////////////////////////////////////////////////////////////////////////////
3 // Magnetic Dipole version 1 //
7 <img src="picts/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="picts/AliDIPOv2Tree.gif">
59 <img src="picts/AliDIPOv2.gif">
63 Float_t cpar[5], tpar[3], ypar[4];
66 Float_t acc_max, the1, phi1, the2, phi2, the3, phi3;
68 Int_t *idtmed = fIdtmed->GetArray()-1799;
70 //abs_d = 90.; // DEFINES DRIFT LENGTH
73 //theta1 = 24.; // 1. angle defining the front absorber
74 //theta2 = 5.; // 2. angle defining the front absorbe
75 acc_max = 9.; // ANGLE POLAIRE MAXIMUM
76 //acc_min = 2.; // ANGLE POLAIRE MINIMUM DE DETECTION
78 //d_steel = 1.; // THICKNESS OF STEEL SUPPORT
81 //abs_cc = 315.; // DEFINES LENGTH OF CARBON
83 //abs_s = 150.; // DEFINES W-SHIELD LENGTH
84 //abs_n = 80.; // START OF NOSE
120 gMC->Gsvolu("DDIP", "BOX ", idtmed[1814], tpar, 3);
130 gMC->Gsvolu("DC1 ", "TUBS", idtmed[1813], cpar, 5);
133 gMC->Gsvolu("DC2 ", "TUBS", idtmed[1813], cpar, 5);
134 // ... define regions for higher cuts
140 gMC->Gsvolu("DC3 ", "TUBS", idtmed[1833], cpar, 5);
141 gMC->Gspos("DC3 ", 1, "DC1 ", 0., 0., 0., 0, "ONLY");
144 gMC->Gsvolu("DC4 ", "TUBS", idtmed[1833], cpar, 5);
145 gMC->Gspos("DC4 ", 1, "DC2 ", 0., 0., 0., 0, "ONLY");
148 gMC->Gspos("DC1 ", 1, "DDIP", 0., 0., dz, 0, "ONLY");
149 gMC->Gspos("DC1 ", 2, "DDIP", 0., 0., -dz, 0, "ONLY");
150 gMC->Gspos("DC2 ", 1, "DDIP", 0., 0., dz, 0, "ONLY");
151 gMC->Gspos("DC2 ", 2, "DDIP", 0., 0., -dz, 0, "ONLY");
158 AliMatrix(idrotm[1800], the1, phi1, the2, phi2, the3, phi3);
162 AliMatrix(idrotm[1801], the1, phi1, the2, phi2, the3, phi3);
169 AliMatrix(idrotm[1802], the1, phi1, the2, phi2, the3, phi3);
173 AliMatrix(idrotm[1803], the1, phi1, the2, phi2, the3, phi3);
179 gMC->Gsvolu("DC11", "TUBS", idtmed[1813], cpar, 5);
184 gMC->Gsvolu("DC21", "TUBS", idtmed[1833], cpar, 5);
185 gMC->Gspos("DC21", 1, "DC11", 0., 0., 0., 0, "ONLY");
187 dx = TMath::Sin(30*kDegrad) * -236.5;
188 dy = TMath::Cos(30*kDegrad) * -236.5;
189 dz = cpar[1] + 10. - 250.;
190 gMC->Gspos("DC11", 1, "DDIP", dx, dy, dz, idrotm[1800], "ONLY");
191 gMC->Gspos("DC11", 2, "DDIP", dx, dy, -dz, idrotm[1802], "ONLY");
192 gMC->Gspos("DC11", 3, "DDIP", -dx, dy, dz, idrotm[1801], "ONLY");
193 gMC->Gspos("DC11", 4, "DDIP", -dx, dy, -dz, idrotm[1803], "ONLY");
199 gMC->Gsvolu("DC12", "TUBS", idtmed[1813], cpar, 5);
204 gMC->Gsvolu("DC22", "TUBS", idtmed[1833], cpar, 5);
205 gMC->Gspos("DC22", 1, "DC12", 0., 0., 0., 0, "ONLY");
207 dx = TMath::Sin(30*kDegrad) * -236.5;
208 dy = TMath::Cos(30*kDegrad) * 236.5;
209 dz = cpar[1] + 10. - 250.;
210 gMC->Gspos("DC12", 1, "DDIP", dx, dy, dz, idrotm[1801], "ONLY");
211 gMC->Gspos("DC12", 2, "DDIP", dx, dy, -dz, idrotm[1803], "ONLY");
212 gMC->Gspos("DC12", 3, "DDIP", -dx, dy, dz, idrotm[1800], "ONLY");
213 gMC->Gspos("DC12", 4, "DDIP", -dx, dy, -dz, idrotm[1802], "ONLY");
220 AliMatrix(idrotm[1804], the1, phi1, the2, phi2, the3, phi3);
227 AliMatrix(idrotm[1805], the1, phi1, the2, phi2, the3, phi3);
231 gMC->Gsvolu("DL1 ", "BOX ", idtmed[1813], tpar, 3);
235 gMC->Gsvolu("DL2 ", "BOX ", idtmed[1833], tpar, 3);
236 gMC->Gspos("DL2 ", 1, "DL1 ", 0., 0., 0., 0, "ONLY");
241 gMC->Gspos("DL1 ", 1, "DDIP", dx, dy, dz, idrotm[1804], "ONLY");
242 gMC->Gspos("DL1 ", 2, "DDIP", dx, -dy, dz, idrotm[1805], "ONLY");
243 gMC->Gspos("DL1 ", 3, "DDIP",-dx, dy, dz, idrotm[1805], "ONLY");
244 gMC->Gspos("DL1 ", 4, "DDIP",-dx, -dy, dz, idrotm[1804], "ONLY");
251 ypar[0] = ypar[1] - ypar[3] * 2. * TMath::Tan(acc_max * kDegrad);
252 gMC->Gsvolu("DY1 ", "TRD1", idtmed[1809], ypar, 4);
255 gMC->Gspos("DY1 ", 1, "DDIP", 0., dy, 0., 0, "ONLY");
256 gMC->Gspos("DY1 ", 2, "DDIP", 0., -dy, 0., 0, "ONLY");
258 gMC->Gsvolu("DY2 ", "TRD1", idtmed[1829], ypar, 4);
261 gMC->Gspos("DY2 ", 1, "DDIP", 0., dy, 0., 0, "ONLY");
262 gMC->Gspos("DY2 ", 2, "DDIP", 0., -dy, 0., 0, "ONLY");
269 AliMatrix(idrotm[1806], the1, phi1, the2, phi2, the3, phi3);
273 AliMatrix(idrotm[1807], the1, phi1, the2, phi2, the3, phi3);
277 gMC->Gsvolu("DYL ", "BOX ", idtmed[1814], tpar, 3);
280 gMC->Gsvolu("DY3 ", "BOX ", idtmed[1809], tpar, 3);
283 gMC->Gspos("DY3 ", 1, "DYL ", dx, dy, 0., 0, "ONLY");
284 gMC->Gspos("DY3 ", 2, "DYL ", dx, -dy, 0., 0, "ONLY");
286 gMC->Gsvolu("DY4 ", "BOX ", idtmed[1829], tpar, 3);
287 dx = dx + 5. + tpar[0];
288 gMC->Gspos("DY4 ", 1, "DYL ", dx, dy, 0., 0, "ONLY");
289 gMC->Gspos("DY4 ", 2, "DYL ", dx, -dy, 0., 0, "ONLY");
292 gMC->Gsvolu("DY5 ", "BOX ", idtmed[1829], tpar, 3);
294 gMC->Gspos("DY5 ", 1, "DYL ", dx, 0., 0., 0, "ONLY");
296 gMC->Gsvolu("DY6 ", "BOX ", idtmed[1809], tpar, 3);
297 dx = dx - 37.7 - tpar[0];
298 gMC->Gspos("DY6 ", 1, "DYL ", dx, 0., 0., 0, "ONLY");
301 gMC->Gsvolu("DY7 ", "BOX ", idtmed[1809], tpar, 3);
304 gMC->Gspos("DY7 ", 1, "DYL ", dx, dy, 0., 0, "ONLY");
305 gMC->Gspos("DY7 ", 2, "DYL ", dx, -dy, 0., 0, "ONLY");
307 dx = ypar[0] + ypar[3] * TMath::Tan(acc_max * kDegrad) - 60.;
308 gMC->Gspos("DYL ", 1, "DDIP", dx, 0., 0., idrotm[1806], "ONLY");
309 gMC->Gspos("DYL ", 2, "DDIP",-dx, 0., 0., idrotm[1807], "ONLY");
310 gMC->Gspos("DDIP", 1, "ALIC", 0., 0., 725.+250., 0, "MANY");
311 gMC->Gsatt("DDIP", "SEEN", 0);
312 gMC->Gsatt("DC21", "SEEN", 0);
313 gMC->Gsatt("DC22", "SEEN", 0);
314 gMC->Gsatt("DC3 ", "SEEN", 0);
315 gMC->Gsatt("DC4 ", "SEEN", 0);
318 //_____________________________________________________________________________
319 void AliDIPOv2::DrawModule()
322 // Draw a shaded view of the muon absorber
325 // Set everything unseen
326 gMC->Gsatt("*", "seen", -1);
328 // Set ALIC mother transparent
329 gMC->Gsatt("ALIC","SEEN",0);
331 // Set the volumes visible
332 gMC->Gsatt("DDIP","seen",0);
333 gMC->Gsatt("DC1 ","seen",1);
334 gMC->Gsatt("DC2 ","seen",1);
335 gMC->Gsatt("DC3 ","seen",1);
336 gMC->Gsatt("DC4 ","seen",1);
337 gMC->Gsatt("DC11","seen",1);
338 gMC->Gsatt("DC21","seen",1);
339 gMC->Gsatt("DC12","seen",1);
340 gMC->Gsatt("DC22","seen",1);
341 gMC->Gsatt("DL1 ","seen",1);
342 gMC->Gsatt("DL2 ","seen",1);
343 gMC->Gsatt("DY1 ","seen",1);
344 gMC->Gsatt("DY2 ","seen",1);
345 gMC->Gsatt("DYL ","seen",1);
346 gMC->Gsatt("DY3 ","seen",1);
347 gMC->Gsatt("DY4 ","seen",1);
348 gMC->Gsatt("DY5 ","seen",1);
349 gMC->Gsatt("DY6 ","seen",1);
350 gMC->Gsatt("DY7 ","seen",1);
352 gMC->Gdopt("hide", "on");
353 gMC->Gdopt("shad", "on");
354 gMC->Gsatt("*", "fill", 7);
355 gMC->SetClipBox(".");
356 gMC->SetClipBox(".");
358 gMC->Gdraw("alic", 30, 30, 0, 17, 13.5, .019, .019);
359 gMC->Gdhead(1111, "Magnetic Dipole Version 2");
360 gMC->Gdman(16, 4, "MAN");
363 //_____________________________________________________________________________
364 void AliDIPOv2::CreateMaterials()
367 // Create Materials for Magnetic Dipole version 2
370 Int_t ISXFLD = gAlice->Field()->Integ();
371 Float_t SXMGMX = gAlice->Field()->Max();
373 Float_t asteel[4] = { 55.847,51.9961,58.6934,28.0855 };
374 Float_t zsteel[4] = { 26.,24.,28.,14. };
375 Float_t wsteel[4] = { .715,.18,.1,.005 };
376 Float_t acoil[3] = { 26.98,1.01,16. };
377 Float_t zcoil[3] = { 13.,1.,8. };
378 Float_t wcoil[3] = { .66,.226,.114 };
380 Float_t epsil, stmin, deemax, tmaxfd, stemax;
382 // --- Define the various materials for GEANT ---
384 AliMaterial(9, "ALUMINIUM$", 26.98, 13., 2.7, 8.9, 37.2);
385 AliMaterial(29, "ALUMINIUM$", 26.98, 13., 2.7, 8.9, 37.2);
386 AliMaterial(49, "ALUMINIUM$", 26.98, 13., 2.7, 8.9, 37.2);
389 AliMaterial(10, "IRON$ ", 55.85, 26., 7.87, 1.76, 17.1);
390 AliMaterial(30, "IRON$ ", 55.85, 26., 7.87, 1.76, 17.1);
391 AliMaterial(50, "IRON$ ", 55.85, 26., 7.87, 1.76, 17.1);
394 AliMaterial(15, "AIR$ ", 14.61, 7.3, .001205, 30423.24, 67500);
395 AliMaterial(35, "AIR$ ", 14.61, 7.3, .001205, 30423.24, 67500);
396 AliMaterial(55, "AIR$ ", 14.61, 7.3, .001205, 30423.24, 67500);
399 AliMaterial(16, "VACUUM$ ", 1e-16, 1e-16, 1e-16, 1e16, 1e16);
400 AliMaterial(36, "VACUUM$ ", 1e-16, 1e-16, 1e-16, 1e16, 1e16);
401 AliMaterial(56, "VACUUM$ ", 1e-16, 1e-16, 1e-16, 1e16, 1e16);
404 AliMixture(19, "STAINLESS STEEL$", asteel, zsteel, 7.88, 4, wsteel);
405 AliMixture(39, "STAINLESS STEEL$", asteel, zsteel, 7.88, 4, wsteel);
406 AliMixture(59, "STAINLESS STEEL$", asteel, zsteel, 7.88, 4, wsteel);
409 AliMixture(14, "Al$", acoil, zcoil, 2.122, 3, wcoil);
410 AliMixture(34, "Al$", acoil, zcoil, 2.122, 3, wcoil);
411 AliMixture(54, "Al$", acoil, zcoil, 2.122, 3, wcoil);
414 // Defines tracking media parameters.
415 // Les valeurs sont commentees pour laisser le defaut
416 // a GEANT (version 3-21, page CONS200), f.m.
417 epsil = .001; // Tracking precision,
418 stemax = -1.; // Maximum displacement for multiple scat
419 tmaxfd = -20.; // Maximum angle due to field deflection
420 deemax = -.3; // Maximum fractional energy loss, DLS
425 AliMedium(9, "ALU_C0 ", 9, 0, ISXFLD, SXMGMX, tmaxfd, stemax, deemax, epsil, stmin);
426 AliMedium(29, "ALU_C1 ", 29, 0, ISXFLD, SXMGMX, tmaxfd, stemax, deemax, epsil, stmin);
427 AliMedium(49, "ALU_C2 ", 49, 0, ISXFLD, SXMGMX, tmaxfd, stemax, deemax, epsil, stmin);
430 AliMedium(10, "FE_C0 ", 10, 0, ISXFLD, SXMGMX, tmaxfd, stemax, deemax, epsil, stmin);
431 AliMedium(30, "FE_C1 ", 30, 0, ISXFLD, SXMGMX, tmaxfd, stemax, deemax, epsil, stmin);
432 AliMedium(50, "FE_C2 ", 50, 0, ISXFLD, SXMGMX, tmaxfd, stemax, deemax, epsil, stmin);
435 AliMedium(15, "AIR_C0 ", 15, 0, ISXFLD, SXMGMX, tmaxfd, stemax, deemax, epsil, stmin);
436 AliMedium(35, "AIR_C1 ", 35, 0, ISXFLD, SXMGMX, tmaxfd, stemax, deemax, epsil, stmin);
437 AliMedium(55, "AIR_C2 ", 55, 0, ISXFLD, SXMGMX, tmaxfd, stemax, deemax, epsil, stmin);
440 AliMedium(16, "VA_C0 ", 16, 0, ISXFLD, SXMGMX, tmaxfd, stemax, deemax, epsil, stmin);
441 AliMedium(36, "VA_C1 ", 36, 0, ISXFLD, SXMGMX, tmaxfd, stemax, deemax, epsil, stmin);
442 AliMedium(56, "VA_C2 ", 56, 0, ISXFLD, SXMGMX, tmaxfd, stemax, deemax, epsil, stmin);
445 AliMedium(19, "ST_C0 ", 19, 0, ISXFLD, SXMGMX, tmaxfd, stemax, deemax, epsil, stmin);
446 AliMedium(39, "ST_C1 ", 39, 0, ISXFLD, SXMGMX, tmaxfd, stemax, deemax, epsil, stmin);
447 AliMedium(59, "ST_C3 ", 59, 0, ISXFLD, SXMGMX, tmaxfd, stemax, deemax, epsil, stmin);
450 AliMedium(14, "Coil_C1 ", 14, 0, ISXFLD, SXMGMX, tmaxfd, stemax, deemax, epsil, stmin);
451 AliMedium(34, "Coil_C2 ", 34, 0, ISXFLD, SXMGMX, tmaxfd, stemax, deemax, epsil, stmin);
452 AliMedium(54, "Coil_C3 ", 54, 0, ISXFLD, SXMGMX, tmaxfd, stemax, deemax, epsil, stmin);