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 Revision 1.13 2001/06/21 12:26:52 morsch
19 Simple concrete shielding around compensator dipole.
21 Revision 1.12 2001/06/20 16:08:56 morsch
22 Remove some shielding to accomodate compensator magnet.
24 Revision 1.11 2001/05/16 14:57:22 alibrary
25 New files for folders and Stack
27 Revision 1.10 2000/10/02 21:28:15 fca
28 Removal of useless dependecies via forward declarations
30 Revision 1.9 2000/06/13 14:55:26 morsch
31 Unused variables removed
33 Revision 1.8 2000/06/11 12:35:41 morsch
34 Coding rule violations corrected
36 Revision 1.7 2000/01/12 15:33:28 morsch
39 Revision 1.6 1999/09/29 09:24:30 fca
40 Introduction of the Copyright and cvs Log
44 ///////////////////////////////////////////////////////////////////////////////
46 // Experimental Hall //
47 // This class contains the description of the experimental hall //
51 <img src="picts/AliHALLClass.gif">
54 <font size=+2 color=red>
55 <p>The responsible person for this module is
56 <a href="mailto:andreas.morsch@cern.ch">Andreas Morsch</a>.
63 ///////////////////////////////////////////////////////////////////////////////
73 //_____________________________________________________________________________
77 // Default constructor for the experimental Hall
81 //_____________________________________________________________________________
82 AliHALL::AliHALL(const char *name, const char *title)
83 : AliModule(name,title)
86 // Standard constructor for the experimental Hall
93 //_____________________________________________________________________________
94 void AliHALL::CreateGeometry()
97 // Create the geometry of the exprimental hall
101 <img src="picts/AliHALLTree.gif">
105 // If ZDC is not present the experimental hall includes a short
106 // section of the accelerator tunnel
110 <img src="picts/AliHALLSmall.gif">
114 // If ZDC is present the experimental hall includes the accelerator
115 // tunnel beyond the ZDC
119 <img src="picts/AliHALLLarge.gif">
125 Float_t phid, phim, tpar[3], pbox[3], h, r, tspar[5];
126 Float_t w1, dh, am, bm, dl,cm, hm, dr, dx, xl;
128 Float_t trdpar[4], trapar[11], hullen;
131 Int_t *idtmed = fIdtmed->GetArray()-1899;
133 // RB24/26 TUNNEL FLOOR
137 phi = TMath::ACos(h / r);
138 xl = r * TMath::Sin(phi);
140 dh = dr * TMath::Cos(phi);
141 dl = dr * TMath::Sin(phi);
142 if (gAlice->GetModule("ZDC") == 0) {
155 AliMatrix(idrotm[1900], 90., 0., 0., 0., 90., 90.);
156 AliMatrix(idrotm[1901], 270., 0., 90., 90., 0., 0.);
157 gMC->Gsvolu("HUFL", "TRD1", idtmed[1956], trdpar, 4);
159 gMC->Gspos("HUFL", 1, "ALIC", 70.,-100-trdpar[3] , r2, idrotm[1900], "ONLY");
167 tspar[3] = phid - 90.;
168 tspar[4] = 270. - phid;
169 gMC->Gsvolu("HUWA", "TUBS", idtmed[1956], tspar, 5);
170 gMC->Gspos("HUWA", 1, "ALIC", 70., 40.,2020+hullen , 0, "ONLY");
177 gMC->Gsvolu("HUP2", "TUBE", idtmed[1954], tpar, 3);
184 gMC->Gsvolu("HEW1", "BOX ", idtmed[1956], pbox, 3);
185 gMC->Gspos("HUP2", 1, "HEW1", 0.,-404., 0., 0, "ONLY");
186 gMC->Gspos("HEW1", 1, "ALIC", 0., 404., 1960, 0, "ONLY");
192 trdpar[1] = TMath::Tan(phid * kDegrad) * 190. + 700.;
195 gMC->Gsvolu("HHF1", "TRD1", idtmed[1956], trdpar, 4);
196 gMC->Gspos("HHF1", 1, "ALIC", 0., -801., 1350., idrotm[1900], "ONLY");
197 gMC->Gspos("HHF1", 2, "ALIC", 0., -801.,-1350., idrotm[1900], "ONLY");
204 trapar[3] = 1273.78/2;
207 trapar[6] = TMath::ATan((trapar[4] - trapar[5]) / 2. / trapar[3]) * kRaddeg;
208 trapar[7] = trapar[3];
209 trapar[8] = trapar[4];
210 trapar[9] = trapar[5];
211 trapar[10] = trapar[6];
212 dx = trapar[4] * 1.5 + 700. - trapar[5] * .5;
213 gMC->Gsvolu("HHW1", "TRAP", idtmed[1956], trapar, 11);
214 gMC->Gspos("HHW1", 1, "ALIC", dx, -896+trapar[3], 1350., 0, "ONLY");
215 gMC->Gspos("HHW1", 2, "ALIC",-dx, -896+trapar[3], 1350., idrotm[1901], "ONLY");
216 gMC->Gspos("HHW1", 3, "ALIC", dx, -896+trapar[3], -1350., 0, "ONLY");
217 gMC->Gspos("HHW1", 4, "ALIC",-dx, -896+trapar[3], -1350., idrotm[1901], "ONLY");
219 pbox[1] = (500. - (trapar[3] * 2. - 896.)) / 2.;
221 gMC->Gsvolu("HBW1", "BOX ", idtmed[1956], pbox, 3);
222 gMC->Gspos("HBW1", 1, "ALIC", 1120., 500-pbox[1], 0., 0, "ONLY");
223 gMC->Gspos("HBW1", 2, "ALIC", -1120., 500-pbox[1], 0., 0, "ONLY");
225 // slanted wall close to L3 magnet
229 //rm = hm / TMath::Cos(phim / 2. * kDegrad);
230 am = hm * TMath::Tan(phim / 2. * kDegrad);
231 bm = (hm + 76.) / hm * am;
232 cm = bm * 2. / TMath::Sqrt(2.);
236 trapar[3] = (1273.78 - cm) / 2.;
237 trapar[4] = 235. - cm * TMath::Tan(phid * kDegrad) / 2.;
239 trapar[6] = TMath::ATan((trapar[4] - trapar[5]) / 2. / trapar[3]) * kRaddeg;
240 trapar[7] = trapar[3];
241 trapar[8] = trapar[4];
242 trapar[9] = trapar[5];
243 trapar[10] = trapar[6];
245 dx = cm*TMath::Tan(phid * kDegrad) + 700. + trapar[4] * 1.5 - trapar[5] * .5;
246 gMC->Gsvolu("HHW2", "TRAP", idtmed[1956], trapar, 11);
247 r2 = cm - 896. + trapar[3];
248 gMC->Gspos("HHW2", 1, "ALIC", dx, r2, 0., 0, "ONLY");
249 gMC->Gspos("HHW2", 2, "ALIC",-dx, r2, 0., idrotm[1901], "ONLY");
251 trapar[4] = w1 + cm / 2.;
253 trapar[6] = TMath::ATan(.5) * kRaddeg;
254 trapar[7] = trapar[3];
255 trapar[8] = trapar[4];
256 trapar[9] = trapar[5];
257 trapar[10] = trapar[6];
258 dx = 1170. - trapar[4] * .5 - trapar[5] * .5;
259 gMC->Gsvolu("HHW3", "TRAP", idtmed[1956], trapar, 11);
260 r2 = trapar[3] - 896.;
261 gMC->Gspos("HHW3", 1, "ALIC", dx, r2, 0., 0, "ONLY");
262 gMC->Gspos("HHW3", 2, "ALIC",-dx, r2, 0., idrotm[1901], "ONLY");
270 gMC->Gsvolu("HHC1", "TUBS", idtmed[1956], tspar, 5);
271 gMC->Gspos("HHC1", 1, "ALIC", 0., 500., 0., 0, "ONLY");
272 trdpar[0] = 1170 - trapar[4] * 2.;
273 trdpar[1] = trdpar[0] + TMath::Tan(phim * kDegrad) * 76.;
276 gMC->Gsvolu("HHF2", "TRD1", idtmed[1956], trdpar, 4);
277 gMC->Gspos("HHF2", 1, "ALIC", 0., -858., 0., idrotm[1900], "ONLY");
279 // pillars for working platform
284 gMC->Gsvolu("HPIL", "BOX ", idtmed[1956], pbox, 3);
285 gMC->Gspos("HPIL", 1, "ALIC", 165.,-706+pbox[1] , 1350., 0, "ONLY");
286 gMC->Gspos("HPIL", 2, "ALIC",-165.,-706+pbox[1] , 1350., 0, "ONLY");
288 // simple concrete beam shield
302 gMC->Gsvolu("HMBS", "PGON", idtmed[1956], ppgon, 10);
303 gMC->Gspos("HMBS", 1, "ALIC", 0., 70., 0., 0, "ONLY");
307 //_____________________________________________________________________________
308 void AliHALL::CreateMaterials()
311 // Create materials for the experimental hall
315 Int_t isxfld = gAlice->Field()->Integ();
316 Float_t sxmgmx = gAlice->Field()->Max();
318 Float_t aconc[10] = { 1.,12.01,15.994,22.99,24.305,26.98,28.086,39.1,40.08,55.85 };
319 Float_t zconc[10] = { 1.,6.,8.,11.,12.,13.,14.,19.,20.,26. };
320 Float_t wconc[10] = { .01,.001,.529107,.016,.002,.033872,.337021,.013,.044,.014 };
322 Float_t epsil, stmin, deemax, tmaxfd, stemax;
326 AliMaterial(10, "IRON$ ", 55.85, 26., 7.87, 1.76, 17.1);
327 AliMaterial(30, "IRON$ ", 55.85, 26., 7.87, 1.76, 17.1);
328 AliMaterial(50, "IRON$ ", 55.85, 26., 7.87, 1.76, 17.1);
329 AliMaterial(15, "AIR$ ", 14.61, 7.3, .001205, 30423.24, 67500);
330 AliMaterial(35, "AIR$ ", 14.61, 7.3, .001205, 30423.24, 67500);
331 AliMaterial(55, "AIR$ ", 14.61, 7.3, .001205, 30423.24, 67500);
332 AliMixture(17, "CONCRETE$", aconc, zconc, 2.35, 10, wconc);
333 AliMixture(37, "CONCRETE$", aconc, zconc, 2.35, 10, wconc);
334 AliMixture(57, "CONCRETE$", aconc, zconc, 2.35, 10, wconc);
337 // Defines tracking media parameters.
338 // Les valeurs sont commentees pour laisser le defaut
339 // a GEANT (version 3-21, page CONS200), f.m.
340 epsil = .001; // Tracking precision,
341 stemax = -1.; // Maximum displacement for multiple scat
342 tmaxfd = -20.; // Maximum angle due to field deflection
343 deemax = -.3; // Maximum fractional energy loss, DLS
349 AliMedium(10, "FE_C0 ", 10, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
350 AliMedium(30, "FE_C1 ", 30, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
351 AliMedium(50, "FE_C2 ", 50, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
355 AliMedium(15, "AIR_C0 ", 15, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
356 AliMedium(35, "AIR_C1 ", 35, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
357 AliMedium(55, "AIR_C2 ", 55, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
361 AliMedium(17, "CC_C0 ", 17, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
362 AliMedium(37, "CC_C1 ", 37, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
363 AliMedium(57, "CC_C2 ", 57, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
366 //_____________________________________________________________________________
370 // Initialise the HALL after it has been built
375 printf("\n%s: ",ClassName());
376 for(i=0;i<35;i++) printf("*");
377 printf(" HALL_INIT ");
378 for(i=0;i<35;i++) printf("*");
379 printf("\n%s: ",ClassName());
381 // Here the HALL initialisation code (if any!)
382 for(i=0;i<80;i++) printf("*");
387 //_____________________________________________________________________________
388 void AliHALL::DrawModule()
391 // Draw a shaded view of Experimental Hall
394 // Set everything unseen
395 gMC->Gsatt("*", "seen", -1);
397 // Set ALIC mother transparent
398 gMC->Gsatt("ALIC","SEEN",0);
400 // Set the volumes visible
401 gMC->Gsatt("HUFL","seen",1);
402 gMC->Gsatt("HUWA","seen",1);
403 gMC->Gsatt("HUP2","seen",1);
404 gMC->Gsatt("HEW1","seen",1);
405 gMC->Gsatt("HHF1","seen",1);
406 gMC->Gsatt("HHW1","seen",1);
407 gMC->Gsatt("HBW1","seen",1);
408 gMC->Gsatt("HHW2","seen",1);
409 gMC->Gsatt("HHW3","seen",1);
410 gMC->Gsatt("HHC1","seen",1);
411 gMC->Gsatt("HHF2","seen",1);
412 gMC->Gsatt("HPIL","seen",1);
413 gMC->Gsatt("HMBS","seen",1);
414 gMC->Gsatt("HBBS","seen",1);
415 gMC->Gsatt("HPBS","seen",1);
416 gMC->Gsatt("HXFI","seen",1);
417 gMC->Gsatt("HXII","seen",1);
419 gMC->Gdopt("hide", "on");
420 gMC->Gdopt("shad", "on");
421 gMC->Gsatt("*", "fill", 7);
422 gMC->SetClipBox(".");
423 if (gAlice->GetModule("ZDC") == 0) {
425 // ZDC is not present
427 gMC->SetClipBox("*", 0, 3000, -3000, 3000, -6000, 6000);
429 gMC->Gdraw("alic", 40, 30, 0, 12, 7.5, .005, .005);
434 gMC->SetClipBox("*", 0, 2000, -2000, 2000, -2000, 16000);
436 gMC->Gdraw("alic", 40, 30, 0, 17.5, 10, .0019, .0019);
438 gMC->Gdhead(1111, "Experimental Hall");
439 gMC->Gdman(18, 2, "MAN");