]>
Commit | Line | Data |
---|---|---|
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 | ||
f7a1cc68 | 39 | #include <TGeoGlobalMagField.h> |
88cb7938 | 40 | #include <TVirtualMC.h> |
c93255fe | 41 | #include <TArrayI.h> |
88cb7938 | 42 | |
43 | #include "AliConst.h" | |
fe4da5cc | 44 | #include "AliHALL.h" |
94de3818 | 45 | #include "AliMagF.h" |
88cb7938 | 46 | #include "AliRun.h" |
4951e003 | 47 | #include "AliLog.h" |
fe4da5cc | 48 | |
49 | ClassImp(AliHALL) | |
50 | ||
51 | //_____________________________________________________________________________ | |
b8032157 | 52 | AliHALL::AliHALL() |
fe4da5cc | 53 | { |
54 | // | |
55 | // Default constructor for the experimental Hall | |
56 | // | |
57 | } | |
58 | ||
59 | //_____________________________________________________________________________ | |
60 | AliHALL::AliHALL(const char *name, const char *title) | |
b8032157 | 61 | : AliModule(name,title) |
fe4da5cc | 62 | { |
63 | // | |
64 | // Standard constructor for the experimental Hall | |
65 | // | |
e939a978 | 66 | //PH SetMarkerColor(7); |
67 | //PH SetMarkerStyle(2); | |
68 | //PH SetMarkerSize(0.4); | |
fe4da5cc | 69 | } |
70 | ||
fe4da5cc | 71 | //_____________________________________________________________________________ |
72 | void AliHALL::CreateGeometry() | |
73 | { | |
74 | // | |
75 | // Create the geometry of the exprimental hall | |
76 | // | |
77 | //Begin_Html | |
78 | /* | |
1439f98e | 79 | <img src="picts/AliHALLTree.gif"> |
fe4da5cc | 80 | */ |
81 | //End_Html | |
82 | // | |
83 | // If ZDC is not present the experimental hall includes a short | |
84 | // section of the accelerator tunnel | |
85 | // | |
86 | //Begin_Html | |
87 | /* | |
1439f98e | 88 | <img src="picts/AliHALLSmall.gif"> |
fe4da5cc | 89 | */ |
90 | //End_Html | |
91 | // | |
92 | // If ZDC is present the experimental hall includes the accelerator | |
93 | // tunnel beyond the ZDC | |
94 | // | |
95 | //Begin_Html | |
96 | /* | |
1439f98e | 97 | <img src="picts/AliHALLLarge.gif"> |
fe4da5cc | 98 | */ |
99 | //End_Html | |
100 | ||
101 | ||
fe4da5cc | 102 | Float_t r2; |
9c671c0f | 103 | Float_t phid, phim, pbox[3], h, r, tspar[5]; |
fe4da5cc | 104 | Float_t w1, dh, am, bm, dl,cm, hm, dr, dx, xl; |
105 | Int_t idrotm[1999]; | |
106 | Float_t trdpar[4], trapar[11], hullen; | |
60404de7 | 107 | Float_t phi; |
fe4da5cc | 108 | |
ad51aeb0 | 109 | Int_t *idtmed = fIdtmed->GetArray()-1899; |
fe4da5cc | 110 | |
fe4da5cc | 111 | // RB24/26 TUNNEL FLOOR |
112 | ||
113 | r = 220.; | |
114 | h = 140.; | |
115 | phi = TMath::ACos(h / r); | |
116 | xl = r * TMath::Sin(phi); | |
099f87ce | 117 | dr = 1600.; |
fe4da5cc | 118 | dh = dr * TMath::Cos(phi); |
119 | dl = dr * TMath::Sin(phi); | |
b8032157 | 120 | if (gAlice->GetModule("ZDC") == 0) { |
fe4da5cc | 121 | |
122 | // No ZDC | |
099f87ce | 123 | hullen = 370.; |
fe4da5cc | 124 | } else { |
125 | ||
126 | // ZDC is present | |
099f87ce | 127 | hullen = 6520.; |
fe4da5cc | 128 | } |
129 | trdpar[0] = xl + dl; | |
130 | trdpar[1] = xl; | |
131 | trdpar[2] = hullen; | |
132 | trdpar[3] = dh / 2.; | |
133 | AliMatrix(idrotm[1900], 90., 0., 0., 0., 90., 90.); | |
134 | AliMatrix(idrotm[1901], 270., 0., 90., 90., 0., 0.); | |
cfce8870 | 135 | gMC->Gsvolu("HUFL", "TRD1", idtmed[1956], trdpar, 4); |
099f87ce | 136 | r2 = hullen + 1900.; |
299e56a5 | 137 | gMC->Gspos("HUFL", 1, "ALIC", 70.,-100-trdpar[3] , -r2, idrotm[1900], "ONLY"); |
fe4da5cc | 138 | |
139 | // RB24/26 wall | |
140 | ||
141 | phid = phi * 57.296; | |
142 | tspar[0] = r; | |
143 | tspar[1] = r + dr; | |
144 | tspar[2] = hullen; | |
145 | tspar[3] = phid - 90.; | |
146 | tspar[4] = 270. - phid; | |
cfce8870 | 147 | gMC->Gsvolu("HUWA", "TUBS", idtmed[1956], tspar, 5); |
099f87ce | 148 | gMC->Gspos("HUWA", 1, "ALIC", 70., 40., -1900 - hullen , 0, "ONLY"); |
fe4da5cc | 149 | |
9c671c0f | 150 | |
2d4282ac | 151 | // Hall floor |
fe4da5cc | 152 | |
153 | phid = 16.197; | |
154 | trdpar[0] = 700.; | |
155 | trdpar[1] = TMath::Tan(phid * kDegrad) * 190. + 700.; | |
156 | trdpar[2] = 550.; | |
157 | trdpar[3] = 95.; | |
cfce8870 | 158 | gMC->Gsvolu("HHF1", "TRD1", idtmed[1956], trdpar, 4); |
159 | gMC->Gspos("HHF1", 1, "ALIC", 0., -801., 1350., idrotm[1900], "ONLY"); | |
160 | gMC->Gspos("HHF1", 2, "ALIC", 0., -801.,-1350., idrotm[1900], "ONLY"); | |
fe4da5cc | 161 | |
2d4282ac | 162 | // Hall side walls |
fe4da5cc | 163 | |
164 | trapar[0] = 550.; | |
165 | trapar[1] = 0.; | |
166 | trapar[2] = 0.; | |
167 | trapar[3] = 1273.78/2; | |
168 | trapar[4] = 235.; | |
169 | trapar[5] = 50.; | |
170 | trapar[6] = TMath::ATan((trapar[4] - trapar[5]) / 2. / trapar[3]) * kRaddeg; | |
171 | trapar[7] = trapar[3]; | |
172 | trapar[8] = trapar[4]; | |
173 | trapar[9] = trapar[5]; | |
174 | trapar[10] = trapar[6]; | |
175 | dx = trapar[4] * 1.5 + 700. - trapar[5] * .5; | |
cfce8870 | 176 | gMC->Gsvolu("HHW1", "TRAP", idtmed[1956], trapar, 11); |
177 | gMC->Gspos("HHW1", 1, "ALIC", dx, -896+trapar[3], 1350., 0, "ONLY"); | |
178 | gMC->Gspos("HHW1", 2, "ALIC",-dx, -896+trapar[3], 1350., idrotm[1901], "ONLY"); | |
179 | gMC->Gspos("HHW1", 3, "ALIC", dx, -896+trapar[3], -1350., 0, "ONLY"); | |
180 | gMC->Gspos("HHW1", 4, "ALIC",-dx, -896+trapar[3], -1350., idrotm[1901], "ONLY"); | |
fe4da5cc | 181 | pbox[0] = 50.; |
182 | pbox[1] = (500. - (trapar[3] * 2. - 896.)) / 2.; | |
183 | pbox[2] = 1900.; | |
cfce8870 | 184 | gMC->Gsvolu("HBW1", "BOX ", idtmed[1956], pbox, 3); |
185 | gMC->Gspos("HBW1", 1, "ALIC", 1120., 500-pbox[1], 0., 0, "ONLY"); | |
186 | gMC->Gspos("HBW1", 2, "ALIC", -1120., 500-pbox[1], 0., 0, "ONLY"); | |
fe4da5cc | 187 | |
188 | // slanted wall close to L3 magnet | |
189 | ||
190 | phim = 45.; | |
191 | hm = 790.; | |
192 | //rm = hm / TMath::Cos(phim / 2. * kDegrad); | |
193 | am = hm * TMath::Tan(phim / 2. * kDegrad); | |
194 | bm = (hm + 76.) / hm * am; | |
195 | cm = bm * 2. / TMath::Sqrt(2.); | |
196 | trapar[0] = 800.; | |
197 | trapar[1] = 0.; | |
198 | trapar[2] = 0.; | |
199 | trapar[3] = (1273.78 - cm) / 2.; | |
200 | trapar[4] = 235. - cm * TMath::Tan(phid * kDegrad) / 2.; | |
201 | trapar[5] = 50.; | |
202 | trapar[6] = TMath::ATan((trapar[4] - trapar[5]) / 2. / trapar[3]) * kRaddeg; | |
203 | trapar[7] = trapar[3]; | |
204 | trapar[8] = trapar[4]; | |
205 | trapar[9] = trapar[5]; | |
206 | trapar[10] = trapar[6]; | |
207 | w1 = trapar[4]; | |
208 | dx = cm*TMath::Tan(phid * kDegrad) + 700. + trapar[4] * 1.5 - trapar[5] * .5; | |
cfce8870 | 209 | gMC->Gsvolu("HHW2", "TRAP", idtmed[1956], trapar, 11); |
fe4da5cc | 210 | r2 = cm - 896. + trapar[3]; |
cfce8870 | 211 | gMC->Gspos("HHW2", 1, "ALIC", dx, r2, 0., 0, "ONLY"); |
212 | gMC->Gspos("HHW2", 2, "ALIC",-dx, r2, 0., idrotm[1901], "ONLY"); | |
fe4da5cc | 213 | trapar[3] = cm / 2.; |
214 | trapar[4] = w1 + cm / 2.; | |
215 | trapar[5] = w1; | |
216 | trapar[6] = TMath::ATan(.5) * kRaddeg; | |
217 | trapar[7] = trapar[3]; | |
218 | trapar[8] = trapar[4]; | |
219 | trapar[9] = trapar[5]; | |
220 | trapar[10] = trapar[6]; | |
221 | dx = 1170. - trapar[4] * .5 - trapar[5] * .5; | |
cfce8870 | 222 | gMC->Gsvolu("HHW3", "TRAP", idtmed[1956], trapar, 11); |
fe4da5cc | 223 | r2 = trapar[3] - 896.; |
cfce8870 | 224 | gMC->Gspos("HHW3", 1, "ALIC", dx, r2, 0., 0, "ONLY"); |
225 | gMC->Gspos("HHW3", 2, "ALIC",-dx, r2, 0., idrotm[1901], "ONLY"); | |
fe4da5cc | 226 | |
227 | ||
228 | tspar[0] = 1070.; | |
229 | tspar[1] = 1170.; | |
230 | tspar[2] = 1900.; | |
231 | tspar[3] = 0.; | |
232 | tspar[4] = 180.; | |
cfce8870 | 233 | gMC->Gsvolu("HHC1", "TUBS", idtmed[1956], tspar, 5); |
234 | gMC->Gspos("HHC1", 1, "ALIC", 0., 500., 0., 0, "ONLY"); | |
fe4da5cc | 235 | trdpar[0] = 1170 - trapar[4] * 2.; |
236 | trdpar[1] = trdpar[0] + TMath::Tan(phim * kDegrad) * 76.; | |
237 | trdpar[2] = 800.; | |
238 | trdpar[3] = 38.; | |
cfce8870 | 239 | gMC->Gsvolu("HHF2", "TRD1", idtmed[1956], trdpar, 4); |
240 | gMC->Gspos("HHF2", 1, "ALIC", 0., -858., 0., idrotm[1900], "ONLY"); | |
fe4da5cc | 241 | |
242 | // pillars for working platform | |
243 | ||
244 | pbox[0] = 40.; | |
9b21f9d2 | 245 | pbox[1] = 96.; |
fe4da5cc | 246 | pbox[2] = 550.; |
cfce8870 | 247 | gMC->Gsvolu("HPIL", "BOX ", idtmed[1956], pbox, 3); |
299e56a5 | 248 | gMC->Gspos("HPIL", 1, "ALIC", 165.,-706+pbox[1] , -1350., 0, "ONLY"); |
249 | gMC->Gspos("HPIL", 2, "ALIC",-165.,-706+pbox[1] , -1350., 0, "ONLY"); | |
fe4da5cc | 250 | |
43707c21 | 251 | // simple concrete beam shield |
fe4da5cc | 252 | |
43707c21 | 253 | Float_t ppgon[10]; |
254 | ppgon[0] = 45.; | |
255 | ppgon[1] = 360.; | |
256 | ppgon[2] = 4.; | |
257 | ppgon[3] = 2.; | |
299e56a5 | 258 | ppgon[7] = 1800.; |
43707c21 | 259 | ppgon[8] = 150.; |
260 | ppgon[9] = 250.; | |
299e56a5 | 261 | ppgon[4] = 720.; |
262 | ppgon[5] = 150.; | |
263 | ppgon[6] = 250.; | |
43707c21 | 264 | |
265 | gMC->Gsvolu("HMBS", "PGON", idtmed[1956], ppgon, 10); | |
266 | gMC->Gspos("HMBS", 1, "ALIC", 0., 70., 0., 0, "ONLY"); | |
fe4da5cc | 267 | } |
268 | ||
269 | //_____________________________________________________________________________ | |
270 | void AliHALL::CreateMaterials() | |
271 | { | |
272 | // | |
273 | // Create materials for the experimental hall | |
274 | // | |
def952f1 | 275 | |
276 | Int_t isxfld = 0; | |
f7a1cc68 | 277 | Float_t sxmgmx = ((AliMagF*)TGeoGlobalMagField::Instance()->GetField())->Max(); |
fe4da5cc | 278 | |
279 | Float_t aconc[10] = { 1.,12.01,15.994,22.99,24.305,26.98,28.086,39.1,40.08,55.85 }; | |
280 | Float_t zconc[10] = { 1.,6.,8.,11.,12.,13.,14.,19.,20.,26. }; | |
281 | Float_t wconc[10] = { .01,.001,.529107,.016,.002,.033872,.337021,.013,.044,.014 }; | |
282 | ||
002b3738 | 283 | Float_t aAir[4]={12.0107,14.0067,15.9994,39.948}; |
284 | Float_t zAir[4]={6.,7.,8.,18.}; | |
285 | Float_t wAir[4]={0.000124,0.755267,0.231781,0.012827}; | |
286 | Float_t dAir = 1.20479E-3; | |
287 | ||
2d4282ac | 288 | // Steel |
289 | Float_t asteel[4] = { 55.847,51.9961,58.6934,28.0855 }; | |
290 | Float_t zsteel[4] = { 26.,24.,28.,14. }; | |
291 | Float_t wsteel[4] = { .715,.18,.1,.005 }; | |
292 | ||
fe4da5cc | 293 | Float_t epsil, stmin, deemax, tmaxfd, stemax; |
294 | ||
fe4da5cc | 295 | |
4a9de4af | 296 | AliMixture(15, "AIR0$ ", aAir, zAir, dAir, 4, wAir); |
297 | AliMixture(35, "AIR1$ ", aAir, zAir, dAir, 4, wAir); | |
298 | AliMixture(55, "AIR2$ ", aAir, zAir, dAir, 4, wAir); | |
002b3738 | 299 | |
4a9de4af | 300 | AliMixture(17, "CONCRETE0$", aconc, zconc, 2.35, 10, wconc); |
301 | AliMixture(37, "CONCRETE1$", aconc, zconc, 2.35, 10, wconc); | |
302 | AliMixture(57, "CONCRETE2$", aconc, zconc, 2.35, 10, wconc); | |
2d4282ac | 303 | |
304 | // Stainless Steel | |
305 | AliMixture(10, "STAINLESS STEEL1", asteel, zsteel, 7.88, 4, wsteel); | |
306 | AliMixture(30, "STAINLESS STEEL2", asteel, zsteel, 7.88, 4, wsteel); | |
307 | AliMixture(50, "STAINLESS STEEL3", asteel, zsteel, 7.88, 4, wsteel); | |
fe4da5cc | 308 | |
309 | // **************** | |
310 | // Defines tracking media parameters. | |
311 | // Les valeurs sont commentees pour laisser le defaut | |
312 | // a GEANT (version 3-21, page CONS200), f.m. | |
313 | epsil = .001; // Tracking precision, | |
314 | stemax = -1.; // Maximum displacement for multiple scat | |
315 | tmaxfd = -20.; // Maximum angle due to field deflection | |
316 | deemax = -.3; // Maximum fractional energy loss, DLS | |
317 | stmin = -.8; | |
318 | // *************** | |
319 | ||
2d4282ac | 320 | // Stainless Steel |
321 | AliMedium(10, "STST_C0 ", 10, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin); | |
322 | AliMedium(30, "STST_C1 ", 30, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin); | |
323 | AliMedium(50, "STST_C2 ", 50, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin); | |
fe4da5cc | 324 | |
325 | // Air | |
326 | ||
b43eb0dc | 327 | AliMedium(15, "AIR_C0 ", 15, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin); |
328 | AliMedium(35, "AIR_C1 ", 35, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin); | |
329 | AliMedium(55, "AIR_C2 ", 55, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin); | |
fe4da5cc | 330 | |
331 | // Concrete | |
332 | ||
b43eb0dc | 333 | AliMedium(17, "CC_C0 ", 17, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin); |
334 | AliMedium(37, "CC_C1 ", 37, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin); | |
335 | AliMedium(57, "CC_C2 ", 57, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin); | |
fe4da5cc | 336 | } |
337 | ||
338 | //_____________________________________________________________________________ | |
339 | void AliHALL::Init() | |
340 | { | |
341 | // | |
342 | // Initialise the HALL after it has been built | |
343 | // | |
344 | Int_t i; | |
345 | // | |
4951e003 | 346 | if(AliLog::GetGlobalDebugLevel()>0) { |
9e1a0ddb | 347 | printf("\n%s: ",ClassName()); |
348 | for(i=0;i<35;i++) printf("*"); | |
349 | printf(" HALL_INIT "); | |
350 | for(i=0;i<35;i++) printf("*"); | |
351 | printf("\n%s: ",ClassName()); | |
352 | // | |
353 | // Here the HALL initialisation code (if any!) | |
354 | for(i=0;i<80;i++) printf("*"); | |
355 | printf("\n"); | |
356 | } | |
fe4da5cc | 357 | } |
358 |