1 ///////////////////////////////////////////////////////////////////////////////
3 // Experimental Hall //
4 // This class contains the description of the experimental hall //
8 <img src="gif/AliHALLClass.gif">
11 <font size=+2 color=red>
12 <p>The responsible person for this module is
13 <a href="mailto:andreas.morsch@cern.ch">Andreas Morsch</a>.
20 ///////////////////////////////////////////////////////////////////////////////
29 //_____________________________________________________________________________
30 AliHALL::AliHALL() : AliDetector()
33 // Default constructor for the experimental Hall
37 //_____________________________________________________________________________
38 AliHALL::AliHALL(const char *name, const char *title)
39 : AliDetector(name,title)
42 // Standard constructor for the experimental Hall
49 //_____________________________________________________________________________
50 void AliHALL::BuildGeometry()
53 // Build ROOT TNode geometry. Only for Detectors
57 //_____________________________________________________________________________
58 void AliHALL::CreateGeometry()
61 // Create the geometry of the exprimental hall
65 <img src="gif/AliHALLTree.gif">
69 // If ZDC is not present the experimental hall includes a short
70 // section of the accelerator tunnel
74 <img src="gif/AliHALLSmall.gif">
78 // If ZDC is present the experimental hall includes the accelerator
79 // tunnel beyond the ZDC
83 <img src="gif/AliHALLLarge.gif">
88 AliMC* pMC = AliMC::GetMC();
91 Float_t phid, phim, tpar[3], pbox[3], zfil_out, h, r, tspar[5];
92 Float_t w1, dh, am, bm, dl,cm, hm, dr, dx, xl;
94 Float_t trdpar[4], trapar[11], hullen;
95 Float_t dz, phi, par[3], zfil_in;
97 Int_t *idtmed = gAlice->Idtmed();
99 //abs_d = 90.; // DEFINES DRIFT LENGTH
102 //theta1 = 24.; // 1. angle defining the front absorber
103 //theta2 = 5.; // 2. angle defining the front absorbe
104 //acc_max = 9.; // ANGLE POLAIRE MAXIMUM
105 //acc_min = 2.; // ANGLE POLAIRE MINIMUM DE DETECTION
107 //d_steel = 1.; // THICKNESS OF STEEL SUPPORT
110 //abs_cc = 315.; // DEFINES LENGTH OF CARBON
112 //abs_s = 150.; // DEFINES W-SHIELD LENGTH
113 //abs_n = 80.; // START OF NOSE
128 //zcone_e = 859.0875;
144 // RB24/26 TUNNEL FLOOR
148 phi = TMath::ACos(h / r);
149 xl = r * TMath::Sin(phi);
151 dh = dr * TMath::Cos(phi);
152 dl = dr * TMath::Sin(phi);
153 if (gAlice->GetDetector("ZDC") == 0) {
166 AliMatrix(idrotm[1900], 90., 0., 0., 0., 90., 90.);
167 AliMatrix(idrotm[1901], 270., 0., 90., 90., 0., 0.);
168 pMC->Gsvolu("HUFL", "TRD1", idtmed[1956], trdpar, 4);
170 pMC->Gspos("HUFL", 1, "ALIC", 70.,-100-trdpar[3] , r2, idrotm[1900], "ONLY");
178 tspar[3] = phid - 90.;
179 tspar[4] = 270. - phid;
180 pMC->Gsvolu("HUWA", "TUBS", idtmed[1956], tspar, 5);
181 pMC->Gspos("HUWA", 1, "ALIC", 70., 40.,2020+hullen , 0, "ONLY");
188 pMC->Gsvolu("HUP2", "TUBE", idtmed[1954], tpar, 3);
195 pMC->Gsvolu("HEW1", "BOX ", idtmed[1956], pbox, 3);
196 pMC->Gspos("HUP2", 1, "HEW1", 0.,-404., 0., 0, "ONLY");
197 pMC->Gspos("HEW1", 1, "ALIC", 0., 404., 1960, 0, "ONLY");
203 trdpar[1] = TMath::Tan(phid * kDegrad) * 190. + 700.;
206 pMC->Gsvolu("HHF1", "TRD1", idtmed[1956], trdpar, 4);
207 pMC->Gspos("HHF1", 1, "ALIC", 0., -801., 1350., idrotm[1900], "ONLY");
208 pMC->Gspos("HHF1", 2, "ALIC", 0., -801.,-1350., idrotm[1900], "ONLY");
215 trapar[3] = 1273.78/2;
218 trapar[6] = TMath::ATan((trapar[4] - trapar[5]) / 2. / trapar[3]) * kRaddeg;
219 trapar[7] = trapar[3];
220 trapar[8] = trapar[4];
221 trapar[9] = trapar[5];
222 trapar[10] = trapar[6];
223 dx = trapar[4] * 1.5 + 700. - trapar[5] * .5;
224 pMC->Gsvolu("HHW1", "TRAP", idtmed[1956], trapar, 11);
225 pMC->Gspos("HHW1", 1, "ALIC", dx, -896+trapar[3], 1350., 0, "ONLY");
226 pMC->Gspos("HHW1", 2, "ALIC",-dx, -896+trapar[3], 1350., idrotm[1901], "ONLY");
227 pMC->Gspos("HHW1", 3, "ALIC", dx, -896+trapar[3], -1350., 0, "ONLY");
228 pMC->Gspos("HHW1", 4, "ALIC",-dx, -896+trapar[3], -1350., idrotm[1901], "ONLY");
230 pbox[1] = (500. - (trapar[3] * 2. - 896.)) / 2.;
232 pMC->Gsvolu("HBW1", "BOX ", idtmed[1956], pbox, 3);
233 pMC->Gspos("HBW1", 1, "ALIC", 1120., 500-pbox[1], 0., 0, "ONLY");
234 pMC->Gspos("HBW1", 2, "ALIC", -1120., 500-pbox[1], 0., 0, "ONLY");
236 // slanted wall close to L3 magnet
240 //rm = hm / TMath::Cos(phim / 2. * kDegrad);
241 am = hm * TMath::Tan(phim / 2. * kDegrad);
242 bm = (hm + 76.) / hm * am;
243 cm = bm * 2. / TMath::Sqrt(2.);
247 trapar[3] = (1273.78 - cm) / 2.;
248 trapar[4] = 235. - cm * TMath::Tan(phid * kDegrad) / 2.;
250 trapar[6] = TMath::ATan((trapar[4] - trapar[5]) / 2. / trapar[3]) * kRaddeg;
251 trapar[7] = trapar[3];
252 trapar[8] = trapar[4];
253 trapar[9] = trapar[5];
254 trapar[10] = trapar[6];
256 dx = cm*TMath::Tan(phid * kDegrad) + 700. + trapar[4] * 1.5 - trapar[5] * .5;
257 pMC->Gsvolu("HHW2", "TRAP", idtmed[1956], trapar, 11);
258 r2 = cm - 896. + trapar[3];
259 pMC->Gspos("HHW2", 1, "ALIC", dx, r2, 0., 0, "ONLY");
260 pMC->Gspos("HHW2", 2, "ALIC",-dx, r2, 0., idrotm[1901], "ONLY");
262 trapar[4] = w1 + cm / 2.;
264 trapar[6] = TMath::ATan(.5) * kRaddeg;
265 trapar[7] = trapar[3];
266 trapar[8] = trapar[4];
267 trapar[9] = trapar[5];
268 trapar[10] = trapar[6];
269 dx = 1170. - trapar[4] * .5 - trapar[5] * .5;
270 pMC->Gsvolu("HHW3", "TRAP", idtmed[1956], trapar, 11);
271 r2 = trapar[3] - 896.;
272 pMC->Gspos("HHW3", 1, "ALIC", dx, r2, 0., 0, "ONLY");
273 pMC->Gspos("HHW3", 2, "ALIC",-dx, r2, 0., idrotm[1901], "ONLY");
281 pMC->Gsvolu("HHC1", "TUBS", idtmed[1956], tspar, 5);
282 pMC->Gspos("HHC1", 1, "ALIC", 0., 500., 0., 0, "ONLY");
283 trdpar[0] = 1170 - trapar[4] * 2.;
284 trdpar[1] = trdpar[0] + TMath::Tan(phim * kDegrad) * 76.;
287 pMC->Gsvolu("HHF2", "TRD1", idtmed[1956], trdpar, 4);
288 pMC->Gspos("HHF2", 1, "ALIC", 0., -858., 0., idrotm[1900], "ONLY");
290 // pillars for working platform
295 pMC->Gsvolu("HPIL", "BOX ", idtmed[1956], pbox, 3);
296 pMC->Gspos("HPIL", 1, "ALIC", 165.,-706+pbox[1] , 1350., 0, "ONLY");
297 pMC->Gspos("HPIL", 2, "ALIC",-165.,-706+pbox[1] , 1350., 0, "ONLY");
299 // concrete beam shield
304 pMC->Gsvolu("HMBS", "BOX ", idtmed[1956], pbox, 3);
307 pMC->Gsvolu("HBBS", "BOX ", idtmed[1956], pbox, 3);
308 pMC->Gspos("HBBS", 1, "HMBS", -157.5, 0., 0., 0, "ONLY");
311 pMC->Gsvolu("HPBS", "BOX ", idtmed[1956], pbox, 3);
312 pMC->Gspos("HPBS", 1, "HMBS", 202.5, 30., 0., 0, "ONLY");
313 pMC->Gspos("HMBS", 1, "ALIC", 157.5, -50., -820., 0, "ONLY");
318 par[2] = (zfil_out - zfil_in) / 2.;
319 pMC->Gsvolu("HXFI", "TUBE", idtmed[1949], par, 3);
320 dz = (zfil_in + zfil_out) / 2.;
322 pMC->Gsvolu("HXII", "TUBE", idtmed[1909], par, 3);
323 pMC->Gspos("HXII", 1, "HXFI", 0., 0., 0., 0, "ONLY");
324 pMC->Gspos("HXFI", 1, "ALIC", 0., 0., dz, 0, "ONLY");
327 //_____________________________________________________________________________
328 void AliHALL::CreateMaterials()
331 // Create materials for the experimental hall
335 Int_t ISXFLD = gAlice->Field()->Integ();
336 Float_t SXMGMX = gAlice->Field()->Max();
338 Float_t aconc[10] = { 1.,12.01,15.994,22.99,24.305,26.98,28.086,39.1,40.08,55.85 };
339 Float_t zconc[10] = { 1.,6.,8.,11.,12.,13.,14.,19.,20.,26. };
340 Float_t wconc[10] = { .01,.001,.529107,.016,.002,.033872,.337021,.013,.044,.014 };
342 Float_t epsil, stmin, deemax, tmaxfd, stemax;
346 AliMaterial(10, "IRON$ ", 55.85, 26., 7.87, 1.76, 17.1);
347 AliMaterial(30, "IRON$ ", 55.85, 26., 7.87, 1.76, 17.1);
348 AliMaterial(50, "IRON$ ", 55.85, 26., 7.87, 1.76, 17.1);
349 AliMaterial(15, "AIR$ ", 14.61, 7.3, .001205, 30423.24, 67500);
350 AliMaterial(35, "AIR$ ", 14.61, 7.3, .001205, 30423.24, 67500);
351 AliMaterial(55, "AIR$ ", 14.61, 7.3, .001205, 30423.24, 67500);
352 AliMixture(17, "CONCRETE$", aconc, zconc, 2.35, 10, wconc);
353 AliMixture(37, "CONCRETE$", aconc, zconc, 2.35, 10, wconc);
354 AliMixture(57, "CONCRETE$", aconc, zconc, 2.35, 10, wconc);
357 // Defines tracking media parameters.
358 // Les valeurs sont commentees pour laisser le defaut
359 // a GEANT (version 3-21, page CONS200), f.m.
360 epsil = .001; // Tracking precision,
361 stemax = -1.; // Maximum displacement for multiple scat
362 tmaxfd = -20.; // Maximum angle due to field deflection
363 deemax = -.3; // Maximum fractional energy loss, DLS
369 AliMedium(1910, "FE_C0 ", 10, 0, ISXFLD, SXMGMX, tmaxfd, stemax, deemax, epsil, stmin);
370 AliMedium(1930, "FE_C1 ", 30, 0, ISXFLD, SXMGMX, tmaxfd, stemax, deemax, epsil, stmin);
371 AliMedium(1950, "FE_C2 ", 50, 0, ISXFLD, SXMGMX, tmaxfd, stemax, deemax, epsil, stmin);
375 AliMedium(1915, "AIR_C0 ", 15, 0, ISXFLD, SXMGMX, tmaxfd, stemax, deemax, epsil, stmin);
376 AliMedium(1935, "AIR_C1 ", 35, 0, ISXFLD, SXMGMX, tmaxfd, stemax, deemax, epsil, stmin);
377 AliMedium(1955, "AIR_C2 ", 55, 0, ISXFLD, SXMGMX, tmaxfd, stemax, deemax, epsil, stmin);
381 AliMedium(1917, "CC_C0 ", 17, 0, ISXFLD, SXMGMX, tmaxfd, stemax, deemax, epsil, stmin);
382 AliMedium(1937, "CC_C1 ", 37, 0, ISXFLD, SXMGMX, tmaxfd, stemax, deemax, epsil, stmin);
383 AliMedium(1957, "CC_C2 ", 57, 0, ISXFLD, SXMGMX, tmaxfd, stemax, deemax, epsil, stmin);
386 //_____________________________________________________________________________
390 // Initialise the HALL after it has been built
395 for(i=0;i<35;i++) printf("*");
396 printf(" HALL_INIT ");
397 for(i=0;i<35;i++) printf("*");
400 // Here the HALL initialisation code (if any!)
401 for(i=0;i<80;i++) printf("*");
405 //_____________________________________________________________________________
406 void AliHALL::DrawDetector()
409 // Draw a shaded view of Experimental Hall
412 AliMC* pMC = AliMC::GetMC();
414 // Set everything unseen
415 pMC->Gsatt("*", "seen", -1);
417 // Set ALIC mother transparent
418 pMC->Gsatt("ALIC","SEEN",0);
420 // Set the volumes visible
421 pMC->Gsatt("HUFL","seen",1);
422 pMC->Gsatt("HUWA","seen",1);
423 pMC->Gsatt("HUP2","seen",1);
424 pMC->Gsatt("HEW1","seen",1);
425 pMC->Gsatt("HHF1","seen",1);
426 pMC->Gsatt("HHW1","seen",1);
427 pMC->Gsatt("HBW1","seen",1);
428 pMC->Gsatt("HHW2","seen",1);
429 pMC->Gsatt("HHW3","seen",1);
430 pMC->Gsatt("HHC1","seen",1);
431 pMC->Gsatt("HHF2","seen",1);
432 pMC->Gsatt("HPIL","seen",1);
433 pMC->Gsatt("HMBS","seen",1);
434 pMC->Gsatt("HBBS","seen",1);
435 pMC->Gsatt("HPBS","seen",1);
436 pMC->Gsatt("HXFI","seen",1);
437 pMC->Gsatt("HXII","seen",1);
439 pMC->Gdopt("hide", "on");
440 pMC->Gdopt("shad", "on");
441 pMC->Gsatt("*", "fill", 7);
442 pMC->SetClipBox(".");
443 if (gAlice->GetDetector("ZDC") == 0) {
445 // ZDC is not present
447 pMC->SetClipBox("*", 0, 3000, -3000, 3000, -6000, 6000);
449 pMC->Gdraw("alic", 40, 30, 0, 12, 7.5, .005, .005);
454 pMC->SetClipBox("*", 0, 2000, -2000, 2000, -2000, 16000);
456 pMC->Gdraw("alic", 40, 30, 0, 17.5, 10, .0019, .0019);
458 pMC->Gdhead(1111, "Experimental Hall");
459 pMC->Gdman(18, 2, "MAN");
462 //_____________________________________________________________________________
463 void AliHALL::StepManager()
466 // Called at every step in the HALL