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.6 1999/09/29 09:24:30 fca
19 Introduction of the Copyright and cvs Log
23 ///////////////////////////////////////////////////////////////////////////////
25 // Experimental Hall //
26 // This class contains the description of the experimental hall //
30 <img src="picts/AliHALLClass.gif">
33 <font size=+2 color=red>
34 <p>The responsible person for this module is
35 <a href="mailto:andreas.morsch@cern.ch">Andreas Morsch</a>.
42 ///////////////////////////////////////////////////////////////////////////////
50 //_____________________________________________________________________________
54 // Default constructor for the experimental Hall
58 //_____________________________________________________________________________
59 AliHALL::AliHALL(const char *name, const char *title)
60 : AliModule(name,title)
63 // Standard constructor for the experimental Hall
70 //_____________________________________________________________________________
71 void AliHALL::CreateGeometry()
74 // Create the geometry of the exprimental hall
78 <img src="picts/AliHALLTree.gif">
82 // If ZDC is not present the experimental hall includes a short
83 // section of the accelerator tunnel
87 <img src="picts/AliHALLSmall.gif">
91 // If ZDC is present the experimental hall includes the accelerator
92 // tunnel beyond the ZDC
96 <img src="picts/AliHALLLarge.gif">
102 Float_t phid, phim, tpar[3], pbox[3], zfil_out, h, r, tspar[5];
103 Float_t w1, dh, am, bm, dl,cm, hm, dr, dx, xl;
105 Float_t trdpar[4], trapar[11], hullen;
106 Float_t dz, phi, par[3], zfil_in;
108 Int_t *idtmed = fIdtmed->GetArray()-1899;
112 // RB24/26 TUNNEL FLOOR
116 phi = TMath::ACos(h / r);
117 xl = r * TMath::Sin(phi);
119 dh = dr * TMath::Cos(phi);
120 dl = dr * TMath::Sin(phi);
121 if (gAlice->GetModule("ZDC") == 0) {
134 AliMatrix(idrotm[1900], 90., 0., 0., 0., 90., 90.);
135 AliMatrix(idrotm[1901], 270., 0., 90., 90., 0., 0.);
136 gMC->Gsvolu("HUFL", "TRD1", idtmed[1956], trdpar, 4);
138 gMC->Gspos("HUFL", 1, "ALIC", 70.,-100-trdpar[3] , r2, idrotm[1900], "ONLY");
146 tspar[3] = phid - 90.;
147 tspar[4] = 270. - phid;
148 gMC->Gsvolu("HUWA", "TUBS", idtmed[1956], tspar, 5);
149 gMC->Gspos("HUWA", 1, "ALIC", 70., 40.,2020+hullen , 0, "ONLY");
156 gMC->Gsvolu("HUP2", "TUBE", idtmed[1954], tpar, 3);
163 gMC->Gsvolu("HEW1", "BOX ", idtmed[1956], pbox, 3);
164 gMC->Gspos("HUP2", 1, "HEW1", 0.,-404., 0., 0, "ONLY");
165 gMC->Gspos("HEW1", 1, "ALIC", 0., 404., 1960, 0, "ONLY");
171 trdpar[1] = TMath::Tan(phid * kDegrad) * 190. + 700.;
174 gMC->Gsvolu("HHF1", "TRD1", idtmed[1956], trdpar, 4);
175 gMC->Gspos("HHF1", 1, "ALIC", 0., -801., 1350., idrotm[1900], "ONLY");
176 gMC->Gspos("HHF1", 2, "ALIC", 0., -801.,-1350., idrotm[1900], "ONLY");
183 trapar[3] = 1273.78/2;
186 trapar[6] = TMath::ATan((trapar[4] - trapar[5]) / 2. / trapar[3]) * kRaddeg;
187 trapar[7] = trapar[3];
188 trapar[8] = trapar[4];
189 trapar[9] = trapar[5];
190 trapar[10] = trapar[6];
191 dx = trapar[4] * 1.5 + 700. - trapar[5] * .5;
192 gMC->Gsvolu("HHW1", "TRAP", idtmed[1956], trapar, 11);
193 gMC->Gspos("HHW1", 1, "ALIC", dx, -896+trapar[3], 1350., 0, "ONLY");
194 gMC->Gspos("HHW1", 2, "ALIC",-dx, -896+trapar[3], 1350., idrotm[1901], "ONLY");
195 gMC->Gspos("HHW1", 3, "ALIC", dx, -896+trapar[3], -1350., 0, "ONLY");
196 gMC->Gspos("HHW1", 4, "ALIC",-dx, -896+trapar[3], -1350., idrotm[1901], "ONLY");
198 pbox[1] = (500. - (trapar[3] * 2. - 896.)) / 2.;
200 gMC->Gsvolu("HBW1", "BOX ", idtmed[1956], pbox, 3);
201 gMC->Gspos("HBW1", 1, "ALIC", 1120., 500-pbox[1], 0., 0, "ONLY");
202 gMC->Gspos("HBW1", 2, "ALIC", -1120., 500-pbox[1], 0., 0, "ONLY");
204 // slanted wall close to L3 magnet
208 //rm = hm / TMath::Cos(phim / 2. * kDegrad);
209 am = hm * TMath::Tan(phim / 2. * kDegrad);
210 bm = (hm + 76.) / hm * am;
211 cm = bm * 2. / TMath::Sqrt(2.);
215 trapar[3] = (1273.78 - cm) / 2.;
216 trapar[4] = 235. - cm * TMath::Tan(phid * kDegrad) / 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];
224 dx = cm*TMath::Tan(phid * kDegrad) + 700. + trapar[4] * 1.5 - trapar[5] * .5;
225 gMC->Gsvolu("HHW2", "TRAP", idtmed[1956], trapar, 11);
226 r2 = cm - 896. + trapar[3];
227 gMC->Gspos("HHW2", 1, "ALIC", dx, r2, 0., 0, "ONLY");
228 gMC->Gspos("HHW2", 2, "ALIC",-dx, r2, 0., idrotm[1901], "ONLY");
230 trapar[4] = w1 + cm / 2.;
232 trapar[6] = TMath::ATan(.5) * kRaddeg;
233 trapar[7] = trapar[3];
234 trapar[8] = trapar[4];
235 trapar[9] = trapar[5];
236 trapar[10] = trapar[6];
237 dx = 1170. - trapar[4] * .5 - trapar[5] * .5;
238 gMC->Gsvolu("HHW3", "TRAP", idtmed[1956], trapar, 11);
239 r2 = trapar[3] - 896.;
240 gMC->Gspos("HHW3", 1, "ALIC", dx, r2, 0., 0, "ONLY");
241 gMC->Gspos("HHW3", 2, "ALIC",-dx, r2, 0., idrotm[1901], "ONLY");
249 gMC->Gsvolu("HHC1", "TUBS", idtmed[1956], tspar, 5);
250 gMC->Gspos("HHC1", 1, "ALIC", 0., 500., 0., 0, "ONLY");
251 trdpar[0] = 1170 - trapar[4] * 2.;
252 trdpar[1] = trdpar[0] + TMath::Tan(phim * kDegrad) * 76.;
255 gMC->Gsvolu("HHF2", "TRD1", idtmed[1956], trdpar, 4);
256 gMC->Gspos("HHF2", 1, "ALIC", 0., -858., 0., idrotm[1900], "ONLY");
258 // pillars for working platform
263 gMC->Gsvolu("HPIL", "BOX ", idtmed[1956], pbox, 3);
264 gMC->Gspos("HPIL", 1, "ALIC", 165.,-706+pbox[1] , 1350., 0, "ONLY");
265 gMC->Gspos("HPIL", 2, "ALIC",-165.,-706+pbox[1] , 1350., 0, "ONLY");
267 // concrete beam shield
272 gMC->Gsvolu("HMBS", "BOX ", idtmed[1956], pbox, 3);
275 gMC->Gsvolu("HBBS", "BOX ", idtmed[1956], pbox, 3);
276 gMC->Gspos("HBBS", 1, "HMBS", -157.5, 0., 0., 0, "ONLY");
279 gMC->Gsvolu("HPBS", "BOX ", idtmed[1956], pbox, 3);
280 gMC->Gspos("HPBS", 1, "HMBS", 202.5, 30., 0., 0, "ONLY");
281 gMC->Gspos("HMBS", 1, "ALIC", 157.5, -50., -820., 0, "ONLY");
285 //_____________________________________________________________________________
286 void AliHALL::CreateMaterials()
289 // Create materials for the experimental hall
293 Int_t ISXFLD = gAlice->Field()->Integ();
294 Float_t SXMGMX = gAlice->Field()->Max();
296 Float_t aconc[10] = { 1.,12.01,15.994,22.99,24.305,26.98,28.086,39.1,40.08,55.85 };
297 Float_t zconc[10] = { 1.,6.,8.,11.,12.,13.,14.,19.,20.,26. };
298 Float_t wconc[10] = { .01,.001,.529107,.016,.002,.033872,.337021,.013,.044,.014 };
300 Float_t epsil, stmin, deemax, tmaxfd, stemax;
304 AliMaterial(10, "IRON$ ", 55.85, 26., 7.87, 1.76, 17.1);
305 AliMaterial(30, "IRON$ ", 55.85, 26., 7.87, 1.76, 17.1);
306 AliMaterial(50, "IRON$ ", 55.85, 26., 7.87, 1.76, 17.1);
307 AliMaterial(15, "AIR$ ", 14.61, 7.3, .001205, 30423.24, 67500);
308 AliMaterial(35, "AIR$ ", 14.61, 7.3, .001205, 30423.24, 67500);
309 AliMaterial(55, "AIR$ ", 14.61, 7.3, .001205, 30423.24, 67500);
310 AliMixture(17, "CONCRETE$", aconc, zconc, 2.35, 10, wconc);
311 AliMixture(37, "CONCRETE$", aconc, zconc, 2.35, 10, wconc);
312 AliMixture(57, "CONCRETE$", aconc, zconc, 2.35, 10, wconc);
315 // Defines tracking media parameters.
316 // Les valeurs sont commentees pour laisser le defaut
317 // a GEANT (version 3-21, page CONS200), f.m.
318 epsil = .001; // Tracking precision,
319 stemax = -1.; // Maximum displacement for multiple scat
320 tmaxfd = -20.; // Maximum angle due to field deflection
321 deemax = -.3; // Maximum fractional energy loss, DLS
327 AliMedium(10, "FE_C0 ", 10, 0, ISXFLD, SXMGMX, tmaxfd, stemax, deemax, epsil, stmin);
328 AliMedium(30, "FE_C1 ", 30, 0, ISXFLD, SXMGMX, tmaxfd, stemax, deemax, epsil, stmin);
329 AliMedium(50, "FE_C2 ", 50, 0, ISXFLD, SXMGMX, tmaxfd, stemax, deemax, epsil, stmin);
333 AliMedium(15, "AIR_C0 ", 15, 0, ISXFLD, SXMGMX, tmaxfd, stemax, deemax, epsil, stmin);
334 AliMedium(35, "AIR_C1 ", 35, 0, ISXFLD, SXMGMX, tmaxfd, stemax, deemax, epsil, stmin);
335 AliMedium(55, "AIR_C2 ", 55, 0, ISXFLD, SXMGMX, tmaxfd, stemax, deemax, epsil, stmin);
339 AliMedium(17, "CC_C0 ", 17, 0, ISXFLD, SXMGMX, tmaxfd, stemax, deemax, epsil, stmin);
340 AliMedium(37, "CC_C1 ", 37, 0, ISXFLD, SXMGMX, tmaxfd, stemax, deemax, epsil, stmin);
341 AliMedium(57, "CC_C2 ", 57, 0, ISXFLD, SXMGMX, tmaxfd, stemax, deemax, epsil, stmin);
344 //_____________________________________________________________________________
348 // Initialise the HALL after it has been built
353 for(i=0;i<35;i++) printf("*");
354 printf(" HALL_INIT ");
355 for(i=0;i<35;i++) printf("*");
358 // Here the HALL initialisation code (if any!)
359 for(i=0;i<80;i++) printf("*");
363 //_____________________________________________________________________________
364 void AliHALL::DrawModule()
367 // Draw a shaded view of Experimental Hall
370 // Set everything unseen
371 gMC->Gsatt("*", "seen", -1);
373 // Set ALIC mother transparent
374 gMC->Gsatt("ALIC","SEEN",0);
376 // Set the volumes visible
377 gMC->Gsatt("HUFL","seen",1);
378 gMC->Gsatt("HUWA","seen",1);
379 gMC->Gsatt("HUP2","seen",1);
380 gMC->Gsatt("HEW1","seen",1);
381 gMC->Gsatt("HHF1","seen",1);
382 gMC->Gsatt("HHW1","seen",1);
383 gMC->Gsatt("HBW1","seen",1);
384 gMC->Gsatt("HHW2","seen",1);
385 gMC->Gsatt("HHW3","seen",1);
386 gMC->Gsatt("HHC1","seen",1);
387 gMC->Gsatt("HHF2","seen",1);
388 gMC->Gsatt("HPIL","seen",1);
389 gMC->Gsatt("HMBS","seen",1);
390 gMC->Gsatt("HBBS","seen",1);
391 gMC->Gsatt("HPBS","seen",1);
392 gMC->Gsatt("HXFI","seen",1);
393 gMC->Gsatt("HXII","seen",1);
395 gMC->Gdopt("hide", "on");
396 gMC->Gdopt("shad", "on");
397 gMC->Gsatt("*", "fill", 7);
398 gMC->SetClipBox(".");
399 if (gAlice->GetModule("ZDC") == 0) {
401 // ZDC is not present
403 gMC->SetClipBox("*", 0, 3000, -3000, 3000, -6000, 6000);
405 gMC->Gdraw("alic", 40, 30, 0, 12, 7.5, .005, .005);
410 gMC->SetClipBox("*", 0, 2000, -2000, 2000, -2000, 16000);
412 gMC->Gdraw("alic", 40, 30, 0, 17.5, 10, .0019, .0019);
414 gMC->Gdhead(1111, "Experimental Hall");
415 gMC->Gdman(18, 2, "MAN");