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 ///////////////////////////////////////////////////////////////////////////////
28 //_____________________________________________________________________________
32 // Default constructor for the experimental Hall
36 //_____________________________________________________________________________
37 AliHALL::AliHALL(const char *name, const char *title)
38 : AliModule(name,title)
41 // Standard constructor for the experimental Hall
48 //_____________________________________________________________________________
49 void AliHALL::CreateGeometry()
52 // Create the geometry of the exprimental hall
56 <img src="gif/AliHALLTree.gif">
60 // If ZDC is not present the experimental hall includes a short
61 // section of the accelerator tunnel
65 <img src="gif/AliHALLSmall.gif">
69 // If ZDC is present the experimental hall includes the accelerator
70 // tunnel beyond the ZDC
74 <img src="gif/AliHALLLarge.gif">
79 AliMC* pMC = AliMC::GetMC();
82 Float_t phid, phim, tpar[3], pbox[3], zfil_out, h, r, tspar[5];
83 Float_t w1, dh, am, bm, dl,cm, hm, dr, dx, xl;
85 Float_t trdpar[4], trapar[11], hullen;
86 Float_t dz, phi, par[3], zfil_in;
88 Int_t *idtmed = gAlice->Idtmed();
90 //abs_d = 90.; // DEFINES DRIFT LENGTH
93 //theta1 = 24.; // 1. angle defining the front absorber
94 //theta2 = 5.; // 2. angle defining the front absorbe
95 //acc_max = 9.; // ANGLE POLAIRE MAXIMUM
96 //acc_min = 2.; // ANGLE POLAIRE MINIMUM DE DETECTION
98 //d_steel = 1.; // THICKNESS OF STEEL SUPPORT
101 //abs_cc = 315.; // DEFINES LENGTH OF CARBON
103 //abs_s = 150.; // DEFINES W-SHIELD LENGTH
104 //abs_n = 80.; // START OF NOSE
119 //zcone_e = 859.0875;
135 // RB24/26 TUNNEL FLOOR
139 phi = TMath::ACos(h / r);
140 xl = r * TMath::Sin(phi);
142 dh = dr * TMath::Cos(phi);
143 dl = dr * TMath::Sin(phi);
144 if (gAlice->GetModule("ZDC") == 0) {
157 AliMatrix(idrotm[1900], 90., 0., 0., 0., 90., 90.);
158 AliMatrix(idrotm[1901], 270., 0., 90., 90., 0., 0.);
159 pMC->Gsvolu("HUFL", "TRD1", idtmed[1956], trdpar, 4);
161 pMC->Gspos("HUFL", 1, "ALIC", 70.,-100-trdpar[3] , r2, idrotm[1900], "ONLY");
169 tspar[3] = phid - 90.;
170 tspar[4] = 270. - phid;
171 pMC->Gsvolu("HUWA", "TUBS", idtmed[1956], tspar, 5);
172 pMC->Gspos("HUWA", 1, "ALIC", 70., 40.,2020+hullen , 0, "ONLY");
179 pMC->Gsvolu("HUP2", "TUBE", idtmed[1954], tpar, 3);
186 pMC->Gsvolu("HEW1", "BOX ", idtmed[1956], pbox, 3);
187 pMC->Gspos("HUP2", 1, "HEW1", 0.,-404., 0., 0, "ONLY");
188 pMC->Gspos("HEW1", 1, "ALIC", 0., 404., 1960, 0, "ONLY");
194 trdpar[1] = TMath::Tan(phid * kDegrad) * 190. + 700.;
197 pMC->Gsvolu("HHF1", "TRD1", idtmed[1956], trdpar, 4);
198 pMC->Gspos("HHF1", 1, "ALIC", 0., -801., 1350., idrotm[1900], "ONLY");
199 pMC->Gspos("HHF1", 2, "ALIC", 0., -801.,-1350., idrotm[1900], "ONLY");
206 trapar[3] = 1273.78/2;
209 trapar[6] = TMath::ATan((trapar[4] - trapar[5]) / 2. / trapar[3]) * kRaddeg;
210 trapar[7] = trapar[3];
211 trapar[8] = trapar[4];
212 trapar[9] = trapar[5];
213 trapar[10] = trapar[6];
214 dx = trapar[4] * 1.5 + 700. - trapar[5] * .5;
215 pMC->Gsvolu("HHW1", "TRAP", idtmed[1956], trapar, 11);
216 pMC->Gspos("HHW1", 1, "ALIC", dx, -896+trapar[3], 1350., 0, "ONLY");
217 pMC->Gspos("HHW1", 2, "ALIC",-dx, -896+trapar[3], 1350., idrotm[1901], "ONLY");
218 pMC->Gspos("HHW1", 3, "ALIC", dx, -896+trapar[3], -1350., 0, "ONLY");
219 pMC->Gspos("HHW1", 4, "ALIC",-dx, -896+trapar[3], -1350., idrotm[1901], "ONLY");
221 pbox[1] = (500. - (trapar[3] * 2. - 896.)) / 2.;
223 pMC->Gsvolu("HBW1", "BOX ", idtmed[1956], pbox, 3);
224 pMC->Gspos("HBW1", 1, "ALIC", 1120., 500-pbox[1], 0., 0, "ONLY");
225 pMC->Gspos("HBW1", 2, "ALIC", -1120., 500-pbox[1], 0., 0, "ONLY");
227 // slanted wall close to L3 magnet
231 //rm = hm / TMath::Cos(phim / 2. * kDegrad);
232 am = hm * TMath::Tan(phim / 2. * kDegrad);
233 bm = (hm + 76.) / hm * am;
234 cm = bm * 2. / TMath::Sqrt(2.);
238 trapar[3] = (1273.78 - cm) / 2.;
239 trapar[4] = 235. - cm * TMath::Tan(phid * kDegrad) / 2.;
241 trapar[6] = TMath::ATan((trapar[4] - trapar[5]) / 2. / trapar[3]) * kRaddeg;
242 trapar[7] = trapar[3];
243 trapar[8] = trapar[4];
244 trapar[9] = trapar[5];
245 trapar[10] = trapar[6];
247 dx = cm*TMath::Tan(phid * kDegrad) + 700. + trapar[4] * 1.5 - trapar[5] * .5;
248 pMC->Gsvolu("HHW2", "TRAP", idtmed[1956], trapar, 11);
249 r2 = cm - 896. + trapar[3];
250 pMC->Gspos("HHW2", 1, "ALIC", dx, r2, 0., 0, "ONLY");
251 pMC->Gspos("HHW2", 2, "ALIC",-dx, r2, 0., idrotm[1901], "ONLY");
253 trapar[4] = w1 + cm / 2.;
255 trapar[6] = TMath::ATan(.5) * kRaddeg;
256 trapar[7] = trapar[3];
257 trapar[8] = trapar[4];
258 trapar[9] = trapar[5];
259 trapar[10] = trapar[6];
260 dx = 1170. - trapar[4] * .5 - trapar[5] * .5;
261 pMC->Gsvolu("HHW3", "TRAP", idtmed[1956], trapar, 11);
262 r2 = trapar[3] - 896.;
263 pMC->Gspos("HHW3", 1, "ALIC", dx, r2, 0., 0, "ONLY");
264 pMC->Gspos("HHW3", 2, "ALIC",-dx, r2, 0., idrotm[1901], "ONLY");
272 pMC->Gsvolu("HHC1", "TUBS", idtmed[1956], tspar, 5);
273 pMC->Gspos("HHC1", 1, "ALIC", 0., 500., 0., 0, "ONLY");
274 trdpar[0] = 1170 - trapar[4] * 2.;
275 trdpar[1] = trdpar[0] + TMath::Tan(phim * kDegrad) * 76.;
278 pMC->Gsvolu("HHF2", "TRD1", idtmed[1956], trdpar, 4);
279 pMC->Gspos("HHF2", 1, "ALIC", 0., -858., 0., idrotm[1900], "ONLY");
281 // pillars for working platform
286 pMC->Gsvolu("HPIL", "BOX ", idtmed[1956], pbox, 3);
287 pMC->Gspos("HPIL", 1, "ALIC", 165.,-706+pbox[1] , 1350., 0, "ONLY");
288 pMC->Gspos("HPIL", 2, "ALIC",-165.,-706+pbox[1] , 1350., 0, "ONLY");
290 // concrete beam shield
295 pMC->Gsvolu("HMBS", "BOX ", idtmed[1956], pbox, 3);
298 pMC->Gsvolu("HBBS", "BOX ", idtmed[1956], pbox, 3);
299 pMC->Gspos("HBBS", 1, "HMBS", -157.5, 0., 0., 0, "ONLY");
302 pMC->Gsvolu("HPBS", "BOX ", idtmed[1956], pbox, 3);
303 pMC->Gspos("HPBS", 1, "HMBS", 202.5, 30., 0., 0, "ONLY");
304 pMC->Gspos("HMBS", 1, "ALIC", 157.5, -50., -820., 0, "ONLY");
309 par[2] = (zfil_out - zfil_in) / 2.;
310 pMC->Gsvolu("HXFI", "TUBE", idtmed[1949], par, 3);
311 dz = (zfil_in + zfil_out) / 2.;
313 pMC->Gsvolu("HXII", "TUBE", idtmed[1909], par, 3);
314 pMC->Gspos("HXII", 1, "HXFI", 0., 0., 0., 0, "ONLY");
315 pMC->Gspos("HXFI", 1, "ALIC", 0., 0., dz, 0, "ONLY");
318 //_____________________________________________________________________________
319 void AliHALL::CreateMaterials()
322 // Create materials for the experimental hall
326 Int_t ISXFLD = gAlice->Field()->Integ();
327 Float_t SXMGMX = gAlice->Field()->Max();
329 Float_t aconc[10] = { 1.,12.01,15.994,22.99,24.305,26.98,28.086,39.1,40.08,55.85 };
330 Float_t zconc[10] = { 1.,6.,8.,11.,12.,13.,14.,19.,20.,26. };
331 Float_t wconc[10] = { .01,.001,.529107,.016,.002,.033872,.337021,.013,.044,.014 };
333 Float_t epsil, stmin, deemax, tmaxfd, stemax;
337 AliMaterial(10, "IRON$ ", 55.85, 26., 7.87, 1.76, 17.1);
338 AliMaterial(30, "IRON$ ", 55.85, 26., 7.87, 1.76, 17.1);
339 AliMaterial(50, "IRON$ ", 55.85, 26., 7.87, 1.76, 17.1);
340 AliMaterial(15, "AIR$ ", 14.61, 7.3, .001205, 30423.24, 67500);
341 AliMaterial(35, "AIR$ ", 14.61, 7.3, .001205, 30423.24, 67500);
342 AliMaterial(55, "AIR$ ", 14.61, 7.3, .001205, 30423.24, 67500);
343 AliMixture(17, "CONCRETE$", aconc, zconc, 2.35, 10, wconc);
344 AliMixture(37, "CONCRETE$", aconc, zconc, 2.35, 10, wconc);
345 AliMixture(57, "CONCRETE$", aconc, zconc, 2.35, 10, wconc);
348 // Defines tracking media parameters.
349 // Les valeurs sont commentees pour laisser le defaut
350 // a GEANT (version 3-21, page CONS200), f.m.
351 epsil = .001; // Tracking precision,
352 stemax = -1.; // Maximum displacement for multiple scat
353 tmaxfd = -20.; // Maximum angle due to field deflection
354 deemax = -.3; // Maximum fractional energy loss, DLS
360 AliMedium(1910, "FE_C0 ", 10, 0, ISXFLD, SXMGMX, tmaxfd, stemax, deemax, epsil, stmin);
361 AliMedium(1930, "FE_C1 ", 30, 0, ISXFLD, SXMGMX, tmaxfd, stemax, deemax, epsil, stmin);
362 AliMedium(1950, "FE_C2 ", 50, 0, ISXFLD, SXMGMX, tmaxfd, stemax, deemax, epsil, stmin);
366 AliMedium(1915, "AIR_C0 ", 15, 0, ISXFLD, SXMGMX, tmaxfd, stemax, deemax, epsil, stmin);
367 AliMedium(1935, "AIR_C1 ", 35, 0, ISXFLD, SXMGMX, tmaxfd, stemax, deemax, epsil, stmin);
368 AliMedium(1955, "AIR_C2 ", 55, 0, ISXFLD, SXMGMX, tmaxfd, stemax, deemax, epsil, stmin);
372 AliMedium(1917, "CC_C0 ", 17, 0, ISXFLD, SXMGMX, tmaxfd, stemax, deemax, epsil, stmin);
373 AliMedium(1937, "CC_C1 ", 37, 0, ISXFLD, SXMGMX, tmaxfd, stemax, deemax, epsil, stmin);
374 AliMedium(1957, "CC_C2 ", 57, 0, ISXFLD, SXMGMX, tmaxfd, stemax, deemax, epsil, stmin);
377 //_____________________________________________________________________________
381 // Initialise the HALL after it has been built
386 for(i=0;i<35;i++) printf("*");
387 printf(" HALL_INIT ");
388 for(i=0;i<35;i++) printf("*");
391 // Here the HALL initialisation code (if any!)
392 for(i=0;i<80;i++) printf("*");
396 //_____________________________________________________________________________
397 void AliHALL::DrawModule()
400 // Draw a shaded view of Experimental Hall
403 AliMC* pMC = AliMC::GetMC();
405 // Set everything unseen
406 pMC->Gsatt("*", "seen", -1);
408 // Set ALIC mother transparent
409 pMC->Gsatt("ALIC","SEEN",0);
411 // Set the volumes visible
412 pMC->Gsatt("HUFL","seen",1);
413 pMC->Gsatt("HUWA","seen",1);
414 pMC->Gsatt("HUP2","seen",1);
415 pMC->Gsatt("HEW1","seen",1);
416 pMC->Gsatt("HHF1","seen",1);
417 pMC->Gsatt("HHW1","seen",1);
418 pMC->Gsatt("HBW1","seen",1);
419 pMC->Gsatt("HHW2","seen",1);
420 pMC->Gsatt("HHW3","seen",1);
421 pMC->Gsatt("HHC1","seen",1);
422 pMC->Gsatt("HHF2","seen",1);
423 pMC->Gsatt("HPIL","seen",1);
424 pMC->Gsatt("HMBS","seen",1);
425 pMC->Gsatt("HBBS","seen",1);
426 pMC->Gsatt("HPBS","seen",1);
427 pMC->Gsatt("HXFI","seen",1);
428 pMC->Gsatt("HXII","seen",1);
430 pMC->Gdopt("hide", "on");
431 pMC->Gdopt("shad", "on");
432 pMC->Gsatt("*", "fill", 7);
433 pMC->SetClipBox(".");
434 if (gAlice->GetModule("ZDC") == 0) {
436 // ZDC is not present
438 pMC->SetClipBox("*", 0, 3000, -3000, 3000, -6000, 6000);
440 pMC->Gdraw("alic", 40, 30, 0, 12, 7.5, .005, .005);
445 pMC->SetClipBox("*", 0, 2000, -2000, 2000, -2000, 16000);
447 pMC->Gdraw("alic", 40, 30, 0, 17.5, 10, .0019, .0019);
449 pMC->Gdhead(1111, "Experimental Hall");
450 pMC->Gdman(18, 2, "MAN");