]> git.uio.no Git - u/mrichter/AliRoot.git/blame - STRUCT/AliHALL.cxx
Definition of obsolete volume B059 commented.
[u/mrichter/AliRoot.git] / STRUCT / AliHALL.cxx
CommitLineData
4c039060 1/**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
3 * *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
6 * *
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 **************************************************************************/
15
eeacf08b 16/* $Id$ */
4c039060 17
fe4da5cc 18///////////////////////////////////////////////////////////////////////////////
19// //
20// Experimental Hall //
21// This class contains the description of the experimental hall //
22// //
23//Begin_Html
24/*
1439f98e 25<img src="picts/AliHALLClass.gif">
fe4da5cc 26</pre>
27<br clear=left>
28<font size=+2 color=red>
29<p>The responsible person for this module is
30<a href="mailto:andreas.morsch@cern.ch">Andreas Morsch</a>.
31</font>
32<pre>
33*/
34//End_Html
35// //
36// //
37///////////////////////////////////////////////////////////////////////////////
38
39#include "AliHALL.h"
40#include "AliRun.h"
94de3818 41#include "AliMagF.h"
fe4da5cc 42#include "AliConst.h"
43
44ClassImp(AliHALL)
45
46//_____________________________________________________________________________
b8032157 47AliHALL::AliHALL()
fe4da5cc 48{
49 //
50 // Default constructor for the experimental Hall
51 //
52}
53
54//_____________________________________________________________________________
55AliHALL::AliHALL(const char *name, const char *title)
b8032157 56 : AliModule(name,title)
fe4da5cc 57{
58 //
59 // Standard constructor for the experimental Hall
60 //
61 SetMarkerColor(7);
62 SetMarkerStyle(2);
63 SetMarkerSize(0.4);
64}
65
fe4da5cc 66//_____________________________________________________________________________
67void AliHALL::CreateGeometry()
68{
69 //
70 // Create the geometry of the exprimental hall
71 //
72 //Begin_Html
73 /*
1439f98e 74 <img src="picts/AliHALLTree.gif">
fe4da5cc 75 */
76 //End_Html
77 //
78 // If ZDC is not present the experimental hall includes a short
79 // section of the accelerator tunnel
80 //
81 //Begin_Html
82 /*
1439f98e 83 <img src="picts/AliHALLSmall.gif">
fe4da5cc 84 */
85 //End_Html
86 //
87 // If ZDC is present the experimental hall includes the accelerator
88 // tunnel beyond the ZDC
89 //
90 //Begin_Html
91 /*
1439f98e 92 <img src="picts/AliHALLLarge.gif">
fe4da5cc 93 */
94 //End_Html
95
96
fe4da5cc 97 Float_t r2;
9c671c0f 98 Float_t phid, phim, pbox[3], h, r, tspar[5];
fe4da5cc 99 Float_t w1, dh, am, bm, dl,cm, hm, dr, dx, xl;
100 Int_t idrotm[1999];
101 Float_t trdpar[4], trapar[11], hullen;
60404de7 102 Float_t phi;
fe4da5cc 103
ad51aeb0 104 Int_t *idtmed = fIdtmed->GetArray()-1899;
fe4da5cc 105
fe4da5cc 106 // RB24/26 TUNNEL FLOOR
107
108 r = 220.;
109 h = 140.;
110 phi = TMath::ACos(h / r);
111 xl = r * TMath::Sin(phi);
112 dr = 100.;
113 dh = dr * TMath::Cos(phi);
114 dl = dr * TMath::Sin(phi);
b8032157 115 if (gAlice->GetModule("ZDC") == 0) {
fe4da5cc 116
117 // No ZDC
118 hullen = 250.;
119 } else {
120
121 // ZDC is present
122 hullen = 6400.;
123 }
124 trdpar[0] = xl + dl;
125 trdpar[1] = xl;
126 trdpar[2] = hullen;
127 trdpar[3] = dh / 2.;
128 AliMatrix(idrotm[1900], 90., 0., 0., 0., 90., 90.);
129 AliMatrix(idrotm[1901], 270., 0., 90., 90., 0., 0.);
cfce8870 130 gMC->Gsvolu("HUFL", "TRD1", idtmed[1956], trdpar, 4);
fe4da5cc 131 r2 = hullen + 2020.;
cfce8870 132 gMC->Gspos("HUFL", 1, "ALIC", 70.,-100-trdpar[3] , r2, idrotm[1900], "ONLY");
fe4da5cc 133
134 // RB24/26 wall
135
136 phid = phi * 57.296;
137 tspar[0] = r;
138 tspar[1] = r + dr;
139 tspar[2] = hullen;
140 tspar[3] = phid - 90.;
141 tspar[4] = 270. - phid;
cfce8870 142 gMC->Gsvolu("HUWA", "TUBS", idtmed[1956], tspar, 5);
143 gMC->Gspos("HUWA", 1, "ALIC", 70., 40.,2020+hullen , 0, "ONLY");
fe4da5cc 144
fe4da5cc 145 // END WALL
9c671c0f 146 gMC->Gsvolu("HEW1", "BOX ", idtmed[1956], pbox, 0);
147 pbox[0] = 600.;
148 pbox[1] = 418.;
fe4da5cc 149 pbox[2] = 60.;
9c671c0f 150 gMC->Gsposp("HEW1", 1, "ALIC", 0., -pbox[1]-60., 1960, 0, "ONLY", pbox, 3);
151 pbox[1] = 822.;
152 gMC->Gsposp("HEW1", 2, "ALIC", 0., pbox[1]+60., 1960, 0, "ONLY", pbox, 3);
153 pbox[0] = 270.;
154 pbox[1] = 60.;
155 gMC->Gsposp("HEW1", 3, "ALIC", pbox[0]+60., 0. , 1960, 0, "ONLY", pbox, 3);
156 gMC->Gsposp("HEW1", 4, "ALIC", -pbox[0]-60., 0. , 1960, 0, "ONLY", pbox, 3);
157
fe4da5cc 158 // hall floor
159
160 phid = 16.197;
161 trdpar[0] = 700.;
162 trdpar[1] = TMath::Tan(phid * kDegrad) * 190. + 700.;
163 trdpar[2] = 550.;
164 trdpar[3] = 95.;
cfce8870 165 gMC->Gsvolu("HHF1", "TRD1", idtmed[1956], trdpar, 4);
166 gMC->Gspos("HHF1", 1, "ALIC", 0., -801., 1350., idrotm[1900], "ONLY");
167 gMC->Gspos("HHF1", 2, "ALIC", 0., -801.,-1350., idrotm[1900], "ONLY");
fe4da5cc 168
169 // hall side walls
170
171 trapar[0] = 550.;
172 trapar[1] = 0.;
173 trapar[2] = 0.;
174 trapar[3] = 1273.78/2;
175 trapar[4] = 235.;
176 trapar[5] = 50.;
177 trapar[6] = TMath::ATan((trapar[4] - trapar[5]) / 2. / trapar[3]) * kRaddeg;
178 trapar[7] = trapar[3];
179 trapar[8] = trapar[4];
180 trapar[9] = trapar[5];
181 trapar[10] = trapar[6];
182 dx = trapar[4] * 1.5 + 700. - trapar[5] * .5;
cfce8870 183 gMC->Gsvolu("HHW1", "TRAP", idtmed[1956], trapar, 11);
184 gMC->Gspos("HHW1", 1, "ALIC", dx, -896+trapar[3], 1350., 0, "ONLY");
185 gMC->Gspos("HHW1", 2, "ALIC",-dx, -896+trapar[3], 1350., idrotm[1901], "ONLY");
186 gMC->Gspos("HHW1", 3, "ALIC", dx, -896+trapar[3], -1350., 0, "ONLY");
187 gMC->Gspos("HHW1", 4, "ALIC",-dx, -896+trapar[3], -1350., idrotm[1901], "ONLY");
fe4da5cc 188 pbox[0] = 50.;
189 pbox[1] = (500. - (trapar[3] * 2. - 896.)) / 2.;
190 pbox[2] = 1900.;
cfce8870 191 gMC->Gsvolu("HBW1", "BOX ", idtmed[1956], pbox, 3);
192 gMC->Gspos("HBW1", 1, "ALIC", 1120., 500-pbox[1], 0., 0, "ONLY");
193 gMC->Gspos("HBW1", 2, "ALIC", -1120., 500-pbox[1], 0., 0, "ONLY");
fe4da5cc 194
195 // slanted wall close to L3 magnet
196
197 phim = 45.;
198 hm = 790.;
199 //rm = hm / TMath::Cos(phim / 2. * kDegrad);
200 am = hm * TMath::Tan(phim / 2. * kDegrad);
201 bm = (hm + 76.) / hm * am;
202 cm = bm * 2. / TMath::Sqrt(2.);
203 trapar[0] = 800.;
204 trapar[1] = 0.;
205 trapar[2] = 0.;
206 trapar[3] = (1273.78 - cm) / 2.;
207 trapar[4] = 235. - cm * TMath::Tan(phid * kDegrad) / 2.;
208 trapar[5] = 50.;
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 w1 = trapar[4];
215 dx = cm*TMath::Tan(phid * kDegrad) + 700. + trapar[4] * 1.5 - trapar[5] * .5;
cfce8870 216 gMC->Gsvolu("HHW2", "TRAP", idtmed[1956], trapar, 11);
fe4da5cc 217 r2 = cm - 896. + trapar[3];
cfce8870 218 gMC->Gspos("HHW2", 1, "ALIC", dx, r2, 0., 0, "ONLY");
219 gMC->Gspos("HHW2", 2, "ALIC",-dx, r2, 0., idrotm[1901], "ONLY");
fe4da5cc 220 trapar[3] = cm / 2.;
221 trapar[4] = w1 + cm / 2.;
222 trapar[5] = w1;
223 trapar[6] = TMath::ATan(.5) * kRaddeg;
224 trapar[7] = trapar[3];
225 trapar[8] = trapar[4];
226 trapar[9] = trapar[5];
227 trapar[10] = trapar[6];
228 dx = 1170. - trapar[4] * .5 - trapar[5] * .5;
cfce8870 229 gMC->Gsvolu("HHW3", "TRAP", idtmed[1956], trapar, 11);
fe4da5cc 230 r2 = trapar[3] - 896.;
cfce8870 231 gMC->Gspos("HHW3", 1, "ALIC", dx, r2, 0., 0, "ONLY");
232 gMC->Gspos("HHW3", 2, "ALIC",-dx, r2, 0., idrotm[1901], "ONLY");
fe4da5cc 233
234
235 tspar[0] = 1070.;
236 tspar[1] = 1170.;
237 tspar[2] = 1900.;
238 tspar[3] = 0.;
239 tspar[4] = 180.;
cfce8870 240 gMC->Gsvolu("HHC1", "TUBS", idtmed[1956], tspar, 5);
241 gMC->Gspos("HHC1", 1, "ALIC", 0., 500., 0., 0, "ONLY");
fe4da5cc 242 trdpar[0] = 1170 - trapar[4] * 2.;
243 trdpar[1] = trdpar[0] + TMath::Tan(phim * kDegrad) * 76.;
244 trdpar[2] = 800.;
245 trdpar[3] = 38.;
cfce8870 246 gMC->Gsvolu("HHF2", "TRD1", idtmed[1956], trdpar, 4);
247 gMC->Gspos("HHF2", 1, "ALIC", 0., -858., 0., idrotm[1900], "ONLY");
fe4da5cc 248
249 // pillars for working platform
250
251 pbox[0] = 40.;
9598a919 252 pbox[1] = 97.;
fe4da5cc 253 pbox[2] = 550.;
cfce8870 254 gMC->Gsvolu("HPIL", "BOX ", idtmed[1956], pbox, 3);
255 gMC->Gspos("HPIL", 1, "ALIC", 165.,-706+pbox[1] , 1350., 0, "ONLY");
256 gMC->Gspos("HPIL", 2, "ALIC",-165.,-706+pbox[1] , 1350., 0, "ONLY");
fe4da5cc 257
43707c21 258 // simple concrete beam shield
fe4da5cc 259
43707c21 260 Float_t ppgon[10];
261 ppgon[0] = 45.;
262 ppgon[1] = 360.;
263 ppgon[2] = 4.;
264 ppgon[3] = 2.;
bbeb80ee 265 ppgon[4] = -1800.;
43707c21 266 ppgon[5] = 150.;
267 ppgon[6] = 250.;
bbeb80ee 268 ppgon[7] = -720.;
43707c21 269 ppgon[8] = 150.;
270 ppgon[9] = 250.;
271
272 gMC->Gsvolu("HMBS", "PGON", idtmed[1956], ppgon, 10);
273 gMC->Gspos("HMBS", 1, "ALIC", 0., 70., 0., 0, "ONLY");
9598a919 274/*
275 ppgon[4] = -1800.;
276 ppgon[5] = 0.;
277 ppgon[6] = 150.;
278 ppgon[7] = -1300.;
279 ppgon[8] = 0.;
280 ppgon[9] = 150.;
281 gMC->Gsvolu("HMBT", "PGON", idtmed[1956], ppgon, 10);
282
283 ppgon[4] = -1800.;
284 ppgon[5] = 0.;
285 ppgon[6] = 10.;
286 ppgon[7] = -1300.;
287 ppgon[8] = 0.;
288 ppgon[9] = 10.;
289 gMC->Gsvolu("HMBU", "PGON", idtmed[1954], ppgon, 10);
290
291 gMC->Gspos("HMBU", 1, "HMBT", 0., -70., 0., 0, "ONLY");
74b4eee1 292
9598a919 293 gMC->Gspos("HMBT", 1, "ALIC", 0., 70., 0., 0, "ONLY");
74b4eee1 294*/
fe4da5cc 295}
296
297//_____________________________________________________________________________
298void AliHALL::CreateMaterials()
299{
300 //
301 // Create materials for the experimental hall
302 //
303
304
b43eb0dc 305 Int_t isxfld = gAlice->Field()->Integ();
306 Float_t sxmgmx = gAlice->Field()->Max();
fe4da5cc 307
308 Float_t aconc[10] = { 1.,12.01,15.994,22.99,24.305,26.98,28.086,39.1,40.08,55.85 };
309 Float_t zconc[10] = { 1.,6.,8.,11.,12.,13.,14.,19.,20.,26. };
310 Float_t wconc[10] = { .01,.001,.529107,.016,.002,.033872,.337021,.013,.044,.014 };
311
312 Float_t epsil, stmin, deemax, tmaxfd, stemax;
313
314 // FOR CONCRETE
315
316 AliMaterial(10, "IRON$ ", 55.85, 26., 7.87, 1.76, 17.1);
317 AliMaterial(30, "IRON$ ", 55.85, 26., 7.87, 1.76, 17.1);
318 AliMaterial(50, "IRON$ ", 55.85, 26., 7.87, 1.76, 17.1);
319 AliMaterial(15, "AIR$ ", 14.61, 7.3, .001205, 30423.24, 67500);
320 AliMaterial(35, "AIR$ ", 14.61, 7.3, .001205, 30423.24, 67500);
321 AliMaterial(55, "AIR$ ", 14.61, 7.3, .001205, 30423.24, 67500);
322 AliMixture(17, "CONCRETE$", aconc, zconc, 2.35, 10, wconc);
323 AliMixture(37, "CONCRETE$", aconc, zconc, 2.35, 10, wconc);
324 AliMixture(57, "CONCRETE$", aconc, zconc, 2.35, 10, wconc);
325
326 // ****************
327 // Defines tracking media parameters.
328 // Les valeurs sont commentees pour laisser le defaut
329 // a GEANT (version 3-21, page CONS200), f.m.
330 epsil = .001; // Tracking precision,
331 stemax = -1.; // Maximum displacement for multiple scat
332 tmaxfd = -20.; // Maximum angle due to field deflection
333 deemax = -.3; // Maximum fractional energy loss, DLS
334 stmin = -.8;
335 // ***************
336
337 // IRON
338
b43eb0dc 339 AliMedium(10, "FE_C0 ", 10, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
340 AliMedium(30, "FE_C1 ", 30, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
341 AliMedium(50, "FE_C2 ", 50, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
fe4da5cc 342
343 // Air
344
b43eb0dc 345 AliMedium(15, "AIR_C0 ", 15, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
346 AliMedium(35, "AIR_C1 ", 35, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
347 AliMedium(55, "AIR_C2 ", 55, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
fe4da5cc 348
349 // Concrete
350
b43eb0dc 351 AliMedium(17, "CC_C0 ", 17, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
352 AliMedium(37, "CC_C1 ", 37, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
353 AliMedium(57, "CC_C2 ", 57, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
fe4da5cc 354}
355
356//_____________________________________________________________________________
357void AliHALL::Init()
358{
359 //
360 // Initialise the HALL after it has been built
361 //
362 Int_t i;
363 //
9e1a0ddb 364 if(fDebug) {
365 printf("\n%s: ",ClassName());
366 for(i=0;i<35;i++) printf("*");
367 printf(" HALL_INIT ");
368 for(i=0;i<35;i++) printf("*");
369 printf("\n%s: ",ClassName());
370 //
371 // Here the HALL initialisation code (if any!)
372 for(i=0;i<80;i++) printf("*");
373 printf("\n");
374 }
fe4da5cc 375}
376
377//_____________________________________________________________________________
eeacf08b 378void AliHALL::DrawModule() const
fe4da5cc 379{
380 //
381 // Draw a shaded view of Experimental Hall
382 //
383
fe4da5cc 384 // Set everything unseen
cfce8870 385 gMC->Gsatt("*", "seen", -1);
fe4da5cc 386 //
387 // Set ALIC mother transparent
cfce8870 388 gMC->Gsatt("ALIC","SEEN",0);
fe4da5cc 389 //
390 // Set the volumes visible
cfce8870 391 gMC->Gsatt("HUFL","seen",1);
392 gMC->Gsatt("HUWA","seen",1);
393 gMC->Gsatt("HUP2","seen",1);
394 gMC->Gsatt("HEW1","seen",1);
395 gMC->Gsatt("HHF1","seen",1);
396 gMC->Gsatt("HHW1","seen",1);
397 gMC->Gsatt("HBW1","seen",1);
398 gMC->Gsatt("HHW2","seen",1);
399 gMC->Gsatt("HHW3","seen",1);
400 gMC->Gsatt("HHC1","seen",1);
401 gMC->Gsatt("HHF2","seen",1);
402 gMC->Gsatt("HPIL","seen",1);
403 gMC->Gsatt("HMBS","seen",1);
404 gMC->Gsatt("HBBS","seen",1);
405 gMC->Gsatt("HPBS","seen",1);
406 gMC->Gsatt("HXFI","seen",1);
407 gMC->Gsatt("HXII","seen",1);
fe4da5cc 408 //
cfce8870 409 gMC->Gdopt("hide", "on");
410 gMC->Gdopt("shad", "on");
411 gMC->Gsatt("*", "fill", 7);
412 gMC->SetClipBox(".");
b8032157 413 if (gAlice->GetModule("ZDC") == 0) {
fe4da5cc 414 //
415 // ZDC is not present
416 //
cfce8870 417 gMC->SetClipBox("*", 0, 3000, -3000, 3000, -6000, 6000);
418 gMC->DefaultRange();
419 gMC->Gdraw("alic", 40, 30, 0, 12, 7.5, .005, .005);
fe4da5cc 420 } else {
421 //
422 // ZDC is present
423 //
cfce8870 424 gMC->SetClipBox("*", 0, 2000, -2000, 2000, -2000, 16000);
425 gMC->DefaultRange();
426 gMC->Gdraw("alic", 40, 30, 0, 17.5, 10, .0019, .0019);
fe4da5cc 427 }
cfce8870 428 gMC->Gdhead(1111, "Experimental Hall");
429 gMC->Gdman(18, 2, "MAN");
fe4da5cc 430}
431