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