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.12 2001/06/20 16:08:56 morsch
19 Remove some shielding to accomodate compensator magnet.
21 Revision 1.11 2001/05/16 14:57:22 alibrary
22 New files for folders and Stack
24 Revision 1.10 2000/10/02 21:28:15 fca
25 Removal of useless dependecies via forward declarations
27 Revision 1.9 2000/06/13 14:55:26 morsch
28 Unused variables removed
30 Revision 1.8 2000/06/11 12:35:41 morsch
31 Coding rule violations corrected
33 Revision 1.7 2000/01/12 15:33:28 morsch
36 Revision 1.6 1999/09/29 09:24:30 fca
37 Introduction of the Copyright and cvs Log
41 ///////////////////////////////////////////////////////////////////////////////
43 // Experimental Hall //
44 // This class contains the description of the experimental hall //
48 <img src="picts/AliHALLClass.gif">
51 <font size=+2 color=red>
52 <p>The responsible person for this module is
53 <a href="mailto:andreas.morsch@cern.ch">Andreas Morsch</a>.
60 ///////////////////////////////////////////////////////////////////////////////
70 //_____________________________________________________________________________
74 // Default constructor for the experimental Hall
78 //_____________________________________________________________________________
79 AliHALL::AliHALL(const char *name, const char *title)
80 : AliModule(name,title)
83 // Standard constructor for the experimental Hall
90 //_____________________________________________________________________________
91 void AliHALL::CreateGeometry()
94 // Create the geometry of the exprimental hall
98 <img src="picts/AliHALLTree.gif">
102 // If ZDC is not present the experimental hall includes a short
103 // section of the accelerator tunnel
107 <img src="picts/AliHALLSmall.gif">
111 // If ZDC is present the experimental hall includes the accelerator
112 // tunnel beyond the ZDC
116 <img src="picts/AliHALLLarge.gif">
122 Float_t phid, phim, tpar[3], pbox[3], h, r, tspar[5];
123 Float_t w1, dh, am, bm, dl,cm, hm, dr, dx, xl;
125 Float_t trdpar[4], trapar[11], hullen;
128 Int_t *idtmed = fIdtmed->GetArray()-1899;
130 // RB24/26 TUNNEL FLOOR
134 phi = TMath::ACos(h / r);
135 xl = r * TMath::Sin(phi);
137 dh = dr * TMath::Cos(phi);
138 dl = dr * TMath::Sin(phi);
139 if (gAlice->GetModule("ZDC") == 0) {
152 AliMatrix(idrotm[1900], 90., 0., 0., 0., 90., 90.);
153 AliMatrix(idrotm[1901], 270., 0., 90., 90., 0., 0.);
154 gMC->Gsvolu("HUFL", "TRD1", idtmed[1956], trdpar, 4);
156 gMC->Gspos("HUFL", 1, "ALIC", 70.,-100-trdpar[3] , r2, idrotm[1900], "ONLY");
164 tspar[3] = phid - 90.;
165 tspar[4] = 270. - phid;
166 gMC->Gsvolu("HUWA", "TUBS", idtmed[1956], tspar, 5);
167 gMC->Gspos("HUWA", 1, "ALIC", 70., 40.,2020+hullen , 0, "ONLY");
174 gMC->Gsvolu("HUP2", "TUBE", idtmed[1954], tpar, 3);
181 gMC->Gsvolu("HEW1", "BOX ", idtmed[1956], pbox, 3);
182 gMC->Gspos("HUP2", 1, "HEW1", 0.,-404., 0., 0, "ONLY");
183 gMC->Gspos("HEW1", 1, "ALIC", 0., 404., 1960, 0, "ONLY");
189 trdpar[1] = TMath::Tan(phid * kDegrad) * 190. + 700.;
192 gMC->Gsvolu("HHF1", "TRD1", idtmed[1956], trdpar, 4);
193 gMC->Gspos("HHF1", 1, "ALIC", 0., -801., 1350., idrotm[1900], "ONLY");
194 gMC->Gspos("HHF1", 2, "ALIC", 0., -801.,-1350., idrotm[1900], "ONLY");
201 trapar[3] = 1273.78/2;
204 trapar[6] = TMath::ATan((trapar[4] - trapar[5]) / 2. / trapar[3]) * kRaddeg;
205 trapar[7] = trapar[3];
206 trapar[8] = trapar[4];
207 trapar[9] = trapar[5];
208 trapar[10] = trapar[6];
209 dx = trapar[4] * 1.5 + 700. - trapar[5] * .5;
210 gMC->Gsvolu("HHW1", "TRAP", idtmed[1956], trapar, 11);
211 gMC->Gspos("HHW1", 1, "ALIC", dx, -896+trapar[3], 1350., 0, "ONLY");
212 gMC->Gspos("HHW1", 2, "ALIC",-dx, -896+trapar[3], 1350., idrotm[1901], "ONLY");
213 gMC->Gspos("HHW1", 3, "ALIC", dx, -896+trapar[3], -1350., 0, "ONLY");
214 gMC->Gspos("HHW1", 4, "ALIC",-dx, -896+trapar[3], -1350., idrotm[1901], "ONLY");
216 pbox[1] = (500. - (trapar[3] * 2. - 896.)) / 2.;
218 gMC->Gsvolu("HBW1", "BOX ", idtmed[1956], pbox, 3);
219 gMC->Gspos("HBW1", 1, "ALIC", 1120., 500-pbox[1], 0., 0, "ONLY");
220 gMC->Gspos("HBW1", 2, "ALIC", -1120., 500-pbox[1], 0., 0, "ONLY");
222 // slanted wall close to L3 magnet
226 //rm = hm / TMath::Cos(phim / 2. * kDegrad);
227 am = hm * TMath::Tan(phim / 2. * kDegrad);
228 bm = (hm + 76.) / hm * am;
229 cm = bm * 2. / TMath::Sqrt(2.);
233 trapar[3] = (1273.78 - cm) / 2.;
234 trapar[4] = 235. - cm * TMath::Tan(phid * kDegrad) / 2.;
236 trapar[6] = TMath::ATan((trapar[4] - trapar[5]) / 2. / trapar[3]) * kRaddeg;
237 trapar[7] = trapar[3];
238 trapar[8] = trapar[4];
239 trapar[9] = trapar[5];
240 trapar[10] = trapar[6];
242 dx = cm*TMath::Tan(phid * kDegrad) + 700. + trapar[4] * 1.5 - trapar[5] * .5;
243 gMC->Gsvolu("HHW2", "TRAP", idtmed[1956], trapar, 11);
244 r2 = cm - 896. + trapar[3];
245 gMC->Gspos("HHW2", 1, "ALIC", dx, r2, 0., 0, "ONLY");
246 gMC->Gspos("HHW2", 2, "ALIC",-dx, r2, 0., idrotm[1901], "ONLY");
248 trapar[4] = w1 + cm / 2.;
250 trapar[6] = TMath::ATan(.5) * kRaddeg;
251 trapar[7] = trapar[3];
252 trapar[8] = trapar[4];
253 trapar[9] = trapar[5];
254 trapar[10] = trapar[6];
255 dx = 1170. - trapar[4] * .5 - trapar[5] * .5;
256 gMC->Gsvolu("HHW3", "TRAP", idtmed[1956], trapar, 11);
257 r2 = trapar[3] - 896.;
258 gMC->Gspos("HHW3", 1, "ALIC", dx, r2, 0., 0, "ONLY");
259 gMC->Gspos("HHW3", 2, "ALIC",-dx, r2, 0., idrotm[1901], "ONLY");
267 gMC->Gsvolu("HHC1", "TUBS", idtmed[1956], tspar, 5);
268 gMC->Gspos("HHC1", 1, "ALIC", 0., 500., 0., 0, "ONLY");
269 trdpar[0] = 1170 - trapar[4] * 2.;
270 trdpar[1] = trdpar[0] + TMath::Tan(phim * kDegrad) * 76.;
273 gMC->Gsvolu("HHF2", "TRD1", idtmed[1956], trdpar, 4);
274 gMC->Gspos("HHF2", 1, "ALIC", 0., -858., 0., idrotm[1900], "ONLY");
276 // pillars for working platform
281 gMC->Gsvolu("HPIL", "BOX ", idtmed[1956], pbox, 3);
282 gMC->Gspos("HPIL", 1, "ALIC", 165.,-706+pbox[1] , 1350., 0, "ONLY");
283 gMC->Gspos("HPIL", 2, "ALIC",-165.,-706+pbox[1] , 1350., 0, "ONLY");
285 // simple concrete beam shield
299 gMC->Gsvolu("HMBS", "PGON", idtmed[1956], ppgon, 10);
300 gMC->Gspos("HMBS", 1, "ALIC", 0., 70., 0., 0, "ONLY");
304 //_____________________________________________________________________________
305 void AliHALL::CreateMaterials()
308 // Create materials for the experimental hall
312 Int_t isxfld = gAlice->Field()->Integ();
313 Float_t sxmgmx = gAlice->Field()->Max();
315 Float_t aconc[10] = { 1.,12.01,15.994,22.99,24.305,26.98,28.086,39.1,40.08,55.85 };
316 Float_t zconc[10] = { 1.,6.,8.,11.,12.,13.,14.,19.,20.,26. };
317 Float_t wconc[10] = { .01,.001,.529107,.016,.002,.033872,.337021,.013,.044,.014 };
319 Float_t epsil, stmin, deemax, tmaxfd, stemax;
323 AliMaterial(10, "IRON$ ", 55.85, 26., 7.87, 1.76, 17.1);
324 AliMaterial(30, "IRON$ ", 55.85, 26., 7.87, 1.76, 17.1);
325 AliMaterial(50, "IRON$ ", 55.85, 26., 7.87, 1.76, 17.1);
326 AliMaterial(15, "AIR$ ", 14.61, 7.3, .001205, 30423.24, 67500);
327 AliMaterial(35, "AIR$ ", 14.61, 7.3, .001205, 30423.24, 67500);
328 AliMaterial(55, "AIR$ ", 14.61, 7.3, .001205, 30423.24, 67500);
329 AliMixture(17, "CONCRETE$", aconc, zconc, 2.35, 10, wconc);
330 AliMixture(37, "CONCRETE$", aconc, zconc, 2.35, 10, wconc);
331 AliMixture(57, "CONCRETE$", aconc, zconc, 2.35, 10, wconc);
334 // Defines tracking media parameters.
335 // Les valeurs sont commentees pour laisser le defaut
336 // a GEANT (version 3-21, page CONS200), f.m.
337 epsil = .001; // Tracking precision,
338 stemax = -1.; // Maximum displacement for multiple scat
339 tmaxfd = -20.; // Maximum angle due to field deflection
340 deemax = -.3; // Maximum fractional energy loss, DLS
346 AliMedium(10, "FE_C0 ", 10, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
347 AliMedium(30, "FE_C1 ", 30, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
348 AliMedium(50, "FE_C2 ", 50, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
352 AliMedium(15, "AIR_C0 ", 15, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
353 AliMedium(35, "AIR_C1 ", 35, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
354 AliMedium(55, "AIR_C2 ", 55, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
358 AliMedium(17, "CC_C0 ", 17, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
359 AliMedium(37, "CC_C1 ", 37, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
360 AliMedium(57, "CC_C2 ", 57, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
363 //_____________________________________________________________________________
367 // Initialise the HALL after it has been built
372 printf("\n%s: ",ClassName());
373 for(i=0;i<35;i++) printf("*");
374 printf(" HALL_INIT ");
375 for(i=0;i<35;i++) printf("*");
376 printf("\n%s: ",ClassName());
378 // Here the HALL initialisation code (if any!)
379 for(i=0;i<80;i++) printf("*");
384 //_____________________________________________________________________________
385 void AliHALL::DrawModule()
388 // Draw a shaded view of Experimental Hall
391 // Set everything unseen
392 gMC->Gsatt("*", "seen", -1);
394 // Set ALIC mother transparent
395 gMC->Gsatt("ALIC","SEEN",0);
397 // Set the volumes visible
398 gMC->Gsatt("HUFL","seen",1);
399 gMC->Gsatt("HUWA","seen",1);
400 gMC->Gsatt("HUP2","seen",1);
401 gMC->Gsatt("HEW1","seen",1);
402 gMC->Gsatt("HHF1","seen",1);
403 gMC->Gsatt("HHW1","seen",1);
404 gMC->Gsatt("HBW1","seen",1);
405 gMC->Gsatt("HHW2","seen",1);
406 gMC->Gsatt("HHW3","seen",1);
407 gMC->Gsatt("HHC1","seen",1);
408 gMC->Gsatt("HHF2","seen",1);
409 gMC->Gsatt("HPIL","seen",1);
410 gMC->Gsatt("HMBS","seen",1);
411 gMC->Gsatt("HBBS","seen",1);
412 gMC->Gsatt("HPBS","seen",1);
413 gMC->Gsatt("HXFI","seen",1);
414 gMC->Gsatt("HXII","seen",1);
416 gMC->Gdopt("hide", "on");
417 gMC->Gdopt("shad", "on");
418 gMC->Gsatt("*", "fill", 7);
419 gMC->SetClipBox(".");
420 if (gAlice->GetModule("ZDC") == 0) {
422 // ZDC is not present
424 gMC->SetClipBox("*", 0, 3000, -3000, 3000, -6000, 6000);
426 gMC->Gdraw("alic", 40, 30, 0, 12, 7.5, .005, .005);
431 gMC->SetClipBox("*", 0, 2000, -2000, 2000, -2000, 16000);
433 gMC->Gdraw("alic", 40, 30, 0, 17.5, 10, .0019, .0019);
435 gMC->Gdhead(1111, "Experimental Hall");
436 gMC->Gdman(18, 2, "MAN");