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.7 2000/01/12 15:33:28 morsch
21 Revision 1.6 1999/09/29 09:24:30 fca
22 Introduction of the Copyright and cvs Log
26 ///////////////////////////////////////////////////////////////////////////////
28 // Experimental Hall //
29 // This class contains the description of the experimental hall //
33 <img src="picts/AliHALLClass.gif">
36 <font size=+2 color=red>
37 <p>The responsible person for this module is
38 <a href="mailto:andreas.morsch@cern.ch">Andreas Morsch</a>.
45 ///////////////////////////////////////////////////////////////////////////////
53 //_____________________________________________________________________________
57 // Default constructor for the experimental Hall
61 //_____________________________________________________________________________
62 AliHALL::AliHALL(const char *name, const char *title)
63 : AliModule(name,title)
66 // Standard constructor for the experimental Hall
73 //_____________________________________________________________________________
74 void AliHALL::CreateGeometry()
77 // Create the geometry of the exprimental hall
81 <img src="picts/AliHALLTree.gif">
85 // If ZDC is not present the experimental hall includes a short
86 // section of the accelerator tunnel
90 <img src="picts/AliHALLSmall.gif">
94 // If ZDC is present the experimental hall includes the accelerator
95 // tunnel beyond the ZDC
99 <img src="picts/AliHALLLarge.gif">
105 Float_t phid, phim, tpar[3], pbox[3], h, r, tspar[5];
106 Float_t w1, dh, am, bm, dl,cm, hm, dr, dx, xl;
108 Float_t trdpar[4], trapar[11], hullen;
109 Float_t dz, phi, par[3], zFilterIn;
111 Int_t *idtmed = fIdtmed->GetArray()-1899;
113 // RB24/26 TUNNEL FLOOR
117 phi = TMath::ACos(h / r);
118 xl = r * TMath::Sin(phi);
120 dh = dr * TMath::Cos(phi);
121 dl = dr * TMath::Sin(phi);
122 if (gAlice->GetModule("ZDC") == 0) {
135 AliMatrix(idrotm[1900], 90., 0., 0., 0., 90., 90.);
136 AliMatrix(idrotm[1901], 270., 0., 90., 90., 0., 0.);
137 gMC->Gsvolu("HUFL", "TRD1", idtmed[1956], trdpar, 4);
139 gMC->Gspos("HUFL", 1, "ALIC", 70.,-100-trdpar[3] , r2, idrotm[1900], "ONLY");
147 tspar[3] = phid - 90.;
148 tspar[4] = 270. - phid;
149 gMC->Gsvolu("HUWA", "TUBS", idtmed[1956], tspar, 5);
150 gMC->Gspos("HUWA", 1, "ALIC", 70., 40.,2020+hullen , 0, "ONLY");
157 gMC->Gsvolu("HUP2", "TUBE", idtmed[1954], tpar, 3);
164 gMC->Gsvolu("HEW1", "BOX ", idtmed[1956], pbox, 3);
165 gMC->Gspos("HUP2", 1, "HEW1", 0.,-404., 0., 0, "ONLY");
166 gMC->Gspos("HEW1", 1, "ALIC", 0., 404., 1960, 0, "ONLY");
172 trdpar[1] = TMath::Tan(phid * kDegrad) * 190. + 700.;
175 gMC->Gsvolu("HHF1", "TRD1", idtmed[1956], trdpar, 4);
176 gMC->Gspos("HHF1", 1, "ALIC", 0., -801., 1350., idrotm[1900], "ONLY");
177 gMC->Gspos("HHF1", 2, "ALIC", 0., -801.,-1350., idrotm[1900], "ONLY");
184 trapar[3] = 1273.78/2;
187 trapar[6] = TMath::ATan((trapar[4] - trapar[5]) / 2. / trapar[3]) * kRaddeg;
188 trapar[7] = trapar[3];
189 trapar[8] = trapar[4];
190 trapar[9] = trapar[5];
191 trapar[10] = trapar[6];
192 dx = trapar[4] * 1.5 + 700. - trapar[5] * .5;
193 gMC->Gsvolu("HHW1", "TRAP", idtmed[1956], trapar, 11);
194 gMC->Gspos("HHW1", 1, "ALIC", dx, -896+trapar[3], 1350., 0, "ONLY");
195 gMC->Gspos("HHW1", 2, "ALIC",-dx, -896+trapar[3], 1350., idrotm[1901], "ONLY");
196 gMC->Gspos("HHW1", 3, "ALIC", dx, -896+trapar[3], -1350., 0, "ONLY");
197 gMC->Gspos("HHW1", 4, "ALIC",-dx, -896+trapar[3], -1350., idrotm[1901], "ONLY");
199 pbox[1] = (500. - (trapar[3] * 2. - 896.)) / 2.;
201 gMC->Gsvolu("HBW1", "BOX ", idtmed[1956], pbox, 3);
202 gMC->Gspos("HBW1", 1, "ALIC", 1120., 500-pbox[1], 0., 0, "ONLY");
203 gMC->Gspos("HBW1", 2, "ALIC", -1120., 500-pbox[1], 0., 0, "ONLY");
205 // slanted wall close to L3 magnet
209 //rm = hm / TMath::Cos(phim / 2. * kDegrad);
210 am = hm * TMath::Tan(phim / 2. * kDegrad);
211 bm = (hm + 76.) / hm * am;
212 cm = bm * 2. / TMath::Sqrt(2.);
216 trapar[3] = (1273.78 - cm) / 2.;
217 trapar[4] = 235. - cm * TMath::Tan(phid * kDegrad) / 2.;
219 trapar[6] = TMath::ATan((trapar[4] - trapar[5]) / 2. / trapar[3]) * kRaddeg;
220 trapar[7] = trapar[3];
221 trapar[8] = trapar[4];
222 trapar[9] = trapar[5];
223 trapar[10] = trapar[6];
225 dx = cm*TMath::Tan(phid * kDegrad) + 700. + trapar[4] * 1.5 - trapar[5] * .5;
226 gMC->Gsvolu("HHW2", "TRAP", idtmed[1956], trapar, 11);
227 r2 = cm - 896. + trapar[3];
228 gMC->Gspos("HHW2", 1, "ALIC", dx, r2, 0., 0, "ONLY");
229 gMC->Gspos("HHW2", 2, "ALIC",-dx, r2, 0., idrotm[1901], "ONLY");
231 trapar[4] = w1 + cm / 2.;
233 trapar[6] = TMath::ATan(.5) * kRaddeg;
234 trapar[7] = trapar[3];
235 trapar[8] = trapar[4];
236 trapar[9] = trapar[5];
237 trapar[10] = trapar[6];
238 dx = 1170. - trapar[4] * .5 - trapar[5] * .5;
239 gMC->Gsvolu("HHW3", "TRAP", idtmed[1956], trapar, 11);
240 r2 = trapar[3] - 896.;
241 gMC->Gspos("HHW3", 1, "ALIC", dx, r2, 0., 0, "ONLY");
242 gMC->Gspos("HHW3", 2, "ALIC",-dx, r2, 0., idrotm[1901], "ONLY");
250 gMC->Gsvolu("HHC1", "TUBS", idtmed[1956], tspar, 5);
251 gMC->Gspos("HHC1", 1, "ALIC", 0., 500., 0., 0, "ONLY");
252 trdpar[0] = 1170 - trapar[4] * 2.;
253 trdpar[1] = trdpar[0] + TMath::Tan(phim * kDegrad) * 76.;
256 gMC->Gsvolu("HHF2", "TRD1", idtmed[1956], trdpar, 4);
257 gMC->Gspos("HHF2", 1, "ALIC", 0., -858., 0., idrotm[1900], "ONLY");
259 // pillars for working platform
264 gMC->Gsvolu("HPIL", "BOX ", idtmed[1956], pbox, 3);
265 gMC->Gspos("HPIL", 1, "ALIC", 165.,-706+pbox[1] , 1350., 0, "ONLY");
266 gMC->Gspos("HPIL", 2, "ALIC",-165.,-706+pbox[1] , 1350., 0, "ONLY");
268 // concrete beam shield
273 gMC->Gsvolu("HMBS", "BOX ", idtmed[1956], pbox, 3);
276 gMC->Gsvolu("HBBS", "BOX ", idtmed[1956], pbox, 3);
277 gMC->Gspos("HBBS", 1, "HMBS", -157.5, 0., 0., 0, "ONLY");
280 gMC->Gsvolu("HPBS", "BOX ", idtmed[1956], pbox, 3);
281 gMC->Gspos("HPBS", 1, "HMBS", 202.5, 30., 0., 0, "ONLY");
282 gMC->Gspos("HMBS", 1, "ALIC", 157.5, -50., -820., 0, "ONLY");
286 //_____________________________________________________________________________
287 void AliHALL::CreateMaterials()
290 // Create materials for the experimental hall
294 Int_t isxfld = gAlice->Field()->Integ();
295 Float_t sxmgmx = gAlice->Field()->Max();
297 Float_t aconc[10] = { 1.,12.01,15.994,22.99,24.305,26.98,28.086,39.1,40.08,55.85 };
298 Float_t zconc[10] = { 1.,6.,8.,11.,12.,13.,14.,19.,20.,26. };
299 Float_t wconc[10] = { .01,.001,.529107,.016,.002,.033872,.337021,.013,.044,.014 };
301 Float_t epsil, stmin, deemax, tmaxfd, stemax;
305 AliMaterial(10, "IRON$ ", 55.85, 26., 7.87, 1.76, 17.1);
306 AliMaterial(30, "IRON$ ", 55.85, 26., 7.87, 1.76, 17.1);
307 AliMaterial(50, "IRON$ ", 55.85, 26., 7.87, 1.76, 17.1);
308 AliMaterial(15, "AIR$ ", 14.61, 7.3, .001205, 30423.24, 67500);
309 AliMaterial(35, "AIR$ ", 14.61, 7.3, .001205, 30423.24, 67500);
310 AliMaterial(55, "AIR$ ", 14.61, 7.3, .001205, 30423.24, 67500);
311 AliMixture(17, "CONCRETE$", aconc, zconc, 2.35, 10, wconc);
312 AliMixture(37, "CONCRETE$", aconc, zconc, 2.35, 10, wconc);
313 AliMixture(57, "CONCRETE$", aconc, zconc, 2.35, 10, wconc);
316 // Defines tracking media parameters.
317 // Les valeurs sont commentees pour laisser le defaut
318 // a GEANT (version 3-21, page CONS200), f.m.
319 epsil = .001; // Tracking precision,
320 stemax = -1.; // Maximum displacement for multiple scat
321 tmaxfd = -20.; // Maximum angle due to field deflection
322 deemax = -.3; // Maximum fractional energy loss, DLS
328 AliMedium(10, "FE_C0 ", 10, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
329 AliMedium(30, "FE_C1 ", 30, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
330 AliMedium(50, "FE_C2 ", 50, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
334 AliMedium(15, "AIR_C0 ", 15, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
335 AliMedium(35, "AIR_C1 ", 35, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
336 AliMedium(55, "AIR_C2 ", 55, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
340 AliMedium(17, "CC_C0 ", 17, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
341 AliMedium(37, "CC_C1 ", 37, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
342 AliMedium(57, "CC_C2 ", 57, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
345 //_____________________________________________________________________________
349 // Initialise the HALL after it has been built
354 for(i=0;i<35;i++) printf("*");
355 printf(" HALL_INIT ");
356 for(i=0;i<35;i++) printf("*");
359 // Here the HALL initialisation code (if any!)
360 for(i=0;i<80;i++) printf("*");
364 //_____________________________________________________________________________
365 void AliHALL::DrawModule()
368 // Draw a shaded view of Experimental Hall
371 // Set everything unseen
372 gMC->Gsatt("*", "seen", -1);
374 // Set ALIC mother transparent
375 gMC->Gsatt("ALIC","SEEN",0);
377 // Set the volumes visible
378 gMC->Gsatt("HUFL","seen",1);
379 gMC->Gsatt("HUWA","seen",1);
380 gMC->Gsatt("HUP2","seen",1);
381 gMC->Gsatt("HEW1","seen",1);
382 gMC->Gsatt("HHF1","seen",1);
383 gMC->Gsatt("HHW1","seen",1);
384 gMC->Gsatt("HBW1","seen",1);
385 gMC->Gsatt("HHW2","seen",1);
386 gMC->Gsatt("HHW3","seen",1);
387 gMC->Gsatt("HHC1","seen",1);
388 gMC->Gsatt("HHF2","seen",1);
389 gMC->Gsatt("HPIL","seen",1);
390 gMC->Gsatt("HMBS","seen",1);
391 gMC->Gsatt("HBBS","seen",1);
392 gMC->Gsatt("HPBS","seen",1);
393 gMC->Gsatt("HXFI","seen",1);
394 gMC->Gsatt("HXII","seen",1);
396 gMC->Gdopt("hide", "on");
397 gMC->Gdopt("shad", "on");
398 gMC->Gsatt("*", "fill", 7);
399 gMC->SetClipBox(".");
400 if (gAlice->GetModule("ZDC") == 0) {
402 // ZDC is not present
404 gMC->SetClipBox("*", 0, 3000, -3000, 3000, -6000, 6000);
406 gMC->Gdraw("alic", 40, 30, 0, 12, 7.5, .005, .005);
411 gMC->SetClipBox("*", 0, 2000, -2000, 2000, -2000, 16000);
413 gMC->Gdraw("alic", 40, 30, 0, 17.5, 10, .0019, .0019);
415 gMC->Gdhead(1111, "Experimental Hall");
416 gMC->Gdman(18, 2, "MAN");