GParticle not used any more
[u/mrichter/AliRoot.git] / STRUCT / AliABSO.cxx
CommitLineData
fe4da5cc 1///////////////////////////////////////////////////////////////////////////////
2// //
3// Muon ABSOrber //
4// This class contains the description of the muon absorber geometry //
5// //
6//Begin_Html
7/*
1439f98e 8<img src="picts/AliABSOClass.gif">
fe4da5cc 9</pre>
10<br clear=left>
11<font size=+2 color=red>
12<p>The responsible person for this module is
13<a href="mailto:andreas.morsch@cern.ch">Andreas Morsch</a>.
14</font>
15<pre>
16*/
17//End_Html
18// //
19// //
20///////////////////////////////////////////////////////////////////////////////
21
22#include "AliABSO.h"
23#include "AliRun.h"
fe4da5cc 24#include "AliConst.h"
25
26ClassImp(AliABSO)
27
28//_____________________________________________________________________________
29AliABSO::AliABSO()
30{
31 //
32 // Default constructor
33 //
34}
35
36//_____________________________________________________________________________
37AliABSO::AliABSO(const char *name, const char *title)
b8032157 38 : AliModule(name,title)
fe4da5cc 39{
40 //
41 // Standard constructor
42 //
43 SetMarkerColor(7);
44 SetMarkerStyle(2);
45 SetMarkerSize(0.4);
46}
47
48//_____________________________________________________________________________
fe4da5cc 49void AliABSO::CreateGeometry()
50{
51 //
52 // Creation of the geometry of the muon absorber
53 //
54 //Begin_Html
55 /*
1439f98e 56 <img src="picts/AliABSOTree.gif">
fe4da5cc 57 */
58 //End_Html
59 //Begin_Html
60 /*
1439f98e 61 <img src="picts/AliABSO.gif">
fe4da5cc 62 */
63 //End_Html
64
65 AliMC* pMC = AliMC::GetMC();
66
67 Int_t *idtmed = gAlice->Idtmed();
68
69 Float_t d_pb, cpar[5], dpar[12], tpar[3], zpos,
70 cpar1[5], cpar2[5], cpar3[5], cpar4[5], cpar5[12],
71 cpar7[5], cpar8[5], cpar9[5], abs_c, abs_d,
72 abs_l, cpar10[5], r_abs;
73 Float_t theta1, theta2, abs_cc, d_rear, dz, zr,
74 z_cone, d_poly, z_nose, theta_open;
75 Float_t acc_min, acc_max, par[50], d_steel, z_w,
76 theta_r, epsilon;
77 //
78 abs_d = 90.; // DEFINES DRIFT LENGTH
79 z_nose = 102.;
80 z_cone = 285.;
81 theta1 = 24.; // 1. angle defining the front absorber
82 theta2 = 5.; // 2. angle defining the front absorbe
83 acc_max = 9.; // ANGLE POLAIRE MAXIMUM
84 acc_min = 2.; // ANGLE POLAIRE MINIMUM DE DETECTION
85 abs_l = 503.;
86 d_steel = 1.; // THICKNESS OF STEEL SUPPORT
87 d_poly = 7.5;
88 d_pb = 2.5;
89 abs_cc = 315.; // DEFINES LENGTH OF CARBON
90 abs_c = 358.;
91 //abs_s = 150.; // DEFINES W-SHIELD LENGTH
92 //abs_n = 80.; // START OF NOSE
93 r_abs = 4.;
94 //r_pb = .1;
95 epsilon = .01;
96 theta_r = 3.;
97 d_rear = 35.;
98 theta_open = .75;
99 //
100 //z_l3 = 700.;
101 //zmag_in = 725.;
102 //zmag_out = 1225.;
103 //zfil_in = 1471.;
104 //zfil_out = 1591.;
105 //zcon_in = 1900.;
106 //zcon_out = 2e3;
107 //zcone_e = 859.0875;
108 //spec_l = 1800.;
109 //zplug_in = 1780.;
110 //zplug_out= 1900.;
111 //
112 // Chamber position
113 // CZ1=515.5
114 //cz1 = 511.;
115 //cz2 = 686.;
116 //cz3 = 971.;
117 //cz4 = 1245.;
118 //cz5 = 1445.;
119 //cz6 = 1610.;
120 //cz7 = 1710.;
121 //
122 // --- Outer shape of front absorber
123 par[0] = 0.;
124 par[1] = 360.;
125 par[2] = 4.;
126 par[3] = abs_d;
127 par[4] = 0.;
128 par[5] = abs_d * TMath::Tan(theta1 * kDegrad);
129 par[6] = z_nose;
130 par[7] = 0.;
131 par[8] = par[6] * TMath::Tan(theta1 * kDegrad);
132 par[9] = z_cone;
133 par[10] = 0.;
134 par[11] = par[8] + (par[9] - par[6]) * TMath::Tan(theta2 * kDegrad);
135 par[12] = abs_l;
136 par[13] = 0.;
137 par[14] = par[11] + (par[12] - par[9]) * TMath::Tan(acc_max * kDegrad);
138 pMC->Gsvolu("ABSM", "PCON", idtmed[1605], par, 15);
139 //
140 // --- Now define all elements of the absorber
141 //
142 // TUNGSTEN NOSE SEGMENT BETWEEN Z=90 AND 112 CM
143 // SHAPED ALONG A 24 DEG LINE
144 //
145 cpar1[0] = (z_nose - abs_d) / 2.;
146 cpar1[1] = abs_d * TMath::Tan(acc_max * kDegrad) + d_steel;
147 cpar1[2] = abs_d * TMath::Tan(theta1 * kDegrad);
148 cpar1[3] = z_nose * TMath::Tan(acc_max * kDegrad) + d_steel;
149 cpar1[4] = z_nose * TMath::Tan(theta1 * kDegrad);
150 pMC->Gsvolu("ANOS", "CONE", idtmed[1611], cpar1, 5);
151 //
152 dz = cpar1[0] + abs_d;
153 pMC->Gspos("ANOS", 1, "ABSM", 0., 0., dz, 0, "ONLY");
154 //
155 // IRON SUPPORT STRUCTURE
156 //
157 cpar2[0] = (abs_l - abs_d) / 2.;
158 cpar2[1] = abs_d * TMath::Tan(acc_max * kDegrad);
159 cpar2[2] = cpar2[1] + d_steel;
160 cpar2[3] = abs_l * TMath::Tan(acc_max * kDegrad);
161 cpar2[4] = cpar2[3] + d_steel;
162 pMC->Gsvolu("ASST", "CONE", idtmed[1658], cpar2, 5);
163 dz = cpar2[0] + abs_d;
164 pMC->Gspos("ASST", 1, "ABSM", 0., 0., dz, 0, "ONLY");
165 //
166 // PB FRONT SHIELD INNER SEGMENT, ALSO POLYETHYLENE WAS
167 // CONSIDERED FOR THIS REGION
168 //
169 cpar3[0] = (z_cone - z_nose) / 2.;
170 cpar3[1] = cpar1[3];
171 cpar3[2] = cpar1[3] + d_poly;
172 cpar3[3] = z_cone * TMath::Tan(acc_max * kDegrad) + d_steel;
173 cpar3[4] = cpar3[3] + d_poly;
174 pMC->Gsvolu("AWFS", "CONE", idtmed[1652], cpar3, 5);
175 dz = cpar3[0] + z_nose;
176 pMC->Gspos("AWFS", 1, "ABSM", 0., 0., dz, 0, "ONLY");
177 //
178 // PB OUTER SURFACE
179 //
180 cpar5[0] = 0.;
181 cpar5[1] = 360.;
182 cpar5[2] = 3.;
183 cpar5[3] = z_nose;
184 cpar5[4] = z_nose * TMath::Tan(acc_max * kDegrad) + d_steel + d_poly;
185 cpar5[5] = z_nose * TMath::Tan(theta1 * kDegrad);
186 cpar5[6] = z_cone;
187 cpar5[7] = z_cone * TMath::Tan(acc_max * kDegrad) + d_steel + d_poly;
188 cpar5[8] = cpar5[7] + d_pb;
189 cpar5[9] = abs_l;
190 cpar5[10] = abs_l * TMath::Tan(acc_max * kDegrad) + d_steel + d_poly;
191 cpar5[11] = cpar5[10] + d_pb;
192 pMC->Gsvolu("APBS", "PCON", idtmed[1612], cpar5, 12);
193 dz = 0.;
194 pMC->Gspos("APBS", 1, "ABSM", 0., 0., dz, 0, "ONLY");
195 //
196 // POLYETHYLEN LAYER
197 //
198 cpar4[0] = (abs_l - z_cone) / 2.;
199 cpar4[1] = z_cone * TMath::Tan(acc_max * kDegrad) + d_steel;
200 cpar4[2] = cpar4[1] + d_poly;
201 cpar4[3] = abs_l * TMath::Tan(acc_max * kDegrad) + d_steel;
202 cpar4[4] = cpar4[3] + d_poly;
203 pMC->Gsvolu("APOL", "CONE", idtmed[1657], cpar4, 5);
204 dz = cpar4[0] + z_cone;
205 pMC->Gspos("APOL", 1, "ABSM", 0., 0., dz, 0, "ONLY");
206 //
207 // LEAD INNER SHIELD (inner radius const up to z=abs_c)
208 //
209 z_w = r_abs / TMath::Tan(acc_min * kDegrad);
210 cpar8[0] = (abs_c - z_w) / 2.;
211 cpar8[1] = r_abs;
212 cpar8[2] = r_abs + epsilon;
213 cpar8[3] = r_abs;
214 cpar8[4] = abs_c * TMath::Tan(acc_min * kDegrad);
215 pMC->Gsvolu("AWI1", "CONE", idtmed[1652], cpar8, 5);
216 dz = cpar8[0] + z_w;
217 pMC->Gspos("AWI1", 1, "ABSM", 0., 0., dz, 0, "ONLY");
218 //
219 // TUNGSTEN OPENING CONE UP TO THE END
220 //
221 cpar8[0] = (abs_l - abs_c) / 2.;
222 cpar8[1] = r_abs;
223 cpar8[2] = abs_c * TMath::Tan(acc_min * kDegrad);
224 cpar8[3] = cpar8[1] + cpar8[0] * 2. * TMath::Tan(theta_open * kDegrad);
225 cpar8[4] = abs_l * TMath::Tan(acc_min * kDegrad);
226 pMC->Gsvolu("AWI2", "CONE", idtmed[1651], cpar8, 5);
227 dz = cpar8[0] + abs_c;
228 pMC->Gspos("AWI2", 1, "ABSM", 0., 0., dz, 0, "ONLY");
229 //
230 // CONCRETE CONE
231 //
232 cpar7[0] = (abs_l - d_rear - abs_cc) / 2.;
233 cpar7[1] = abs_cc * TMath::Tan(acc_min * kDegrad);
234 cpar7[2] = abs_cc * TMath::Tan(acc_max * kDegrad);
235 cpar7[3] = (abs_l - d_rear) * TMath::Tan(acc_min * kDegrad);
236 cpar7[4] = (abs_l - d_rear) * TMath::Tan(acc_max * kDegrad);
237 pMC->Gsvolu("ACON", "CONE", idtmed[1656], cpar7, 5);
238 dz = cpar7[0] + abs_cc;
239 pMC->Gspos("ACON", 1, "ABSM", 0., 0., dz, 0, "ONLY");
240 //
241 // REAR SHIELD
242 //
243 zr = abs_l - d_rear;
244 cpar9[0] = 2.5;
245 cpar9[1] = zr * TMath::Tan(theta_r * kDegrad);
246 cpar9[2] = zr * TMath::Tan(acc_max * kDegrad);
247 cpar9[3] = cpar9[1] + TMath::Tan(theta_r * kDegrad) * 5.;
248 cpar9[4] = cpar9[2] + TMath::Tan(acc_max * kDegrad) * 5.;
249 pMC->Gsvolu("ARE1", "CONE", idtmed[1652], cpar9, 5);
250 dz = cpar9[0] + zr;
251 zr += 5.;
252 pMC->Gspos("ARE1", 1, "ABSM", 0., 0., dz, 0, "ONLY");
253 //
254 cpar9[1] = zr * TMath::Tan(theta_r * kDegrad);
255 cpar9[2] = zr * TMath::Tan(acc_max * kDegrad);
256 cpar9[3] = cpar9[1] + TMath::Tan(theta_r * kDegrad) * 5.;
257 cpar9[4] = cpar9[2] + TMath::Tan(acc_max * kDegrad) * 5.;
258 pMC->Gsvolu("ARE2", "CONE", idtmed[1657], cpar9, 5);
259 dz = cpar9[0] + zr;
260 zr += 5.;
261 pMC->Gspos("ARE2", 1, "ABSM", 0., 0., dz, 0, "ONLY");
262 //
263 cpar9[1] = zr * TMath::Tan(theta_r * kDegrad);
264 cpar9[2] = zr * TMath::Tan(acc_max * kDegrad);
265 cpar9[3] = cpar9[1] + TMath::Tan(theta_r * kDegrad) * 5.;
266 cpar9[4] = cpar9[2] + TMath::Tan(acc_max * kDegrad) * 5.;
267 pMC->Gsvolu("ARE3", "CONE", idtmed[1652], cpar9, 5);
268 dz = cpar9[0] + zr;
269 zr += 5.;
270 pMC->Gspos("ARE3", 1, "ABSM", 0., 0., dz, 0, "ONLY");
271 //
272 cpar9[1] = zr * TMath::Tan(theta_r * kDegrad);
273 cpar9[2] = zr * TMath::Tan(acc_max * kDegrad);
274 cpar9[3] = cpar9[1] + TMath::Tan(theta_r * kDegrad) * 5.;
275 cpar9[4] = cpar9[2] + TMath::Tan(acc_max * kDegrad) * 5.;
276 pMC->Gsvolu("ARE4", "CONE", idtmed[1657], cpar9, 5);
277 dz = cpar9[0] + zr;
278 zr += 5.;
279 pMC->Gspos("ARE4", 1, "ABSM", 0., 0., dz, 0, "ONLY");
280 //
281 cpar9[1] = zr * TMath::Tan(theta_r * kDegrad);
282 cpar9[2] = zr * TMath::Tan(acc_max * kDegrad);
283 cpar9[3] = cpar9[1] + TMath::Tan(theta_r * kDegrad) * 5.;
284 cpar9[4] = cpar9[2] + TMath::Tan(acc_max * kDegrad) * 5.;
285 pMC->Gsvolu("ARE5", "CONE", idtmed[1652], cpar9, 5);
286 dz = cpar9[0] + zr;
287 zr += 5.;
288 pMC->Gspos("ARE5", 1, "ABSM", 0., 0., dz, 0, "ONLY");
289 //
290 cpar9[1] = zr * TMath::Tan(theta_r * kDegrad);
291 cpar9[2] = zr * TMath::Tan(acc_max * kDegrad);
292 cpar9[3] = cpar9[1] + TMath::Tan(theta_r * kDegrad) * 5.;
293 cpar9[4] = cpar9[2] + TMath::Tan(acc_max * kDegrad) * 5.;
294 pMC->Gsvolu("ARE6", "CONE", idtmed[1657], cpar9, 5);
295 dz = cpar9[0] + zr;
296 zr += 5.;
297 pMC->Gspos("ARE6", 1, "ABSM", 0., 0., dz, 0, "ONLY");
298 //
299 cpar9[1] = zr * TMath::Tan(theta_r * kDegrad);
300 cpar9[2] = zr * TMath::Tan(acc_max * kDegrad);
301 cpar9[3] = cpar9[1] + TMath::Tan(theta_r * kDegrad) * 5.;
302 cpar9[4] = cpar9[2] + TMath::Tan(acc_max * kDegrad) * 5.;
303 pMC->Gsvolu("ARE7", "CONE", idtmed[1612], cpar9, 5);
304 dz = cpar9[0] + zr;
305 zr += 5.;
306 pMC->Gspos("ARE7", 1, "ABSM", 0., 0., dz, 0, "ONLY");
307 //
308 // TUNGSTEN REAR SHIELD INNER PART
309 //
310 zr = abs_l - d_rear;
311 cpar10[0] = d_rear / 2.;
312 cpar10[1] = zr * TMath::Tan(acc_min * kDegrad);
313 cpar10[2] = zr * TMath::Tan(theta_r * kDegrad);
314 cpar10[3] = cpar10[1] + d_rear * TMath::Tan(acc_min * kDegrad);
315 cpar10[4] = cpar10[2] + d_rear * TMath::Tan(theta_r * kDegrad);
316 pMC->Gsvolu("ARIN", "CONE", idtmed[1611], cpar10, 5);
317 dz = cpar10[0] + zr;
318 pMC->Gspos("ARIN", 1, "ABSM", 0., 0., dz, 0, "ONLY");
319 //
320 // ELEMENTS OF THE BEAM PIPE TO BE POSITIONED INTO THE ABSORBER
321 //
322 // MOTHER VOLUME 1. SEGMENT
323 //
324 tpar[0] = 0.;
325 tpar[1] = r_abs;
326 tpar[2] = (abs_c - abs_d) / 2.;
327 pMC->Gsvolu("AATU", "TUBE", idtmed[1655], tpar, 3);
328 //
329 tpar[1] = r_abs - .8;
330 tpar[0] = tpar[1] - .2;
331 tpar[2] = (abs_c - abs_d) / 2.;
332 pMC->Gsvolu("ATUB", "TUBE", idtmed[1649], tpar, 3);
333 dz = 0.;
334 pMC->Gspos("ATUB", 1, "AATU", 0., 0., dz, 0, "ONLY");
335 //
336 dz = (abs_c - abs_d) / 2. + abs_d;
337 pMC->Gspos("AATU", 1, "ABSM", 0., 0., dz, 0, "ONLY");
338 //
339 // MOTHER VOLUME 2. SEGMENT
340 //
341 cpar[0] = (abs_l - abs_c) / 2.;
342 cpar[1] = 0.;
343 cpar[2] = r_abs;
344 cpar[3] = 0.;
345 cpar[4] = cpar[2] + cpar[0] * 2. * TMath::Tan(theta_open * kDegrad);
346 pMC->Gsvolu("AAT1", "CONE", idtmed[1655], cpar, 5);
347 //
348 cpar[0] = (abs_l - abs_c) / 2.;
349 cpar[2] += -.8;
350 cpar[1] = cpar[2] - .2;
351 cpar[4] += -.8;
352 cpar[3] = cpar[4] - .2;
353 pMC->Gsvolu("ATU1", "CONE", idtmed[1649], cpar, 5);
354 dz = 0.;
355 pMC->Gspos("ATU1", 1, "AAT1", 0., 0., dz, 0, "ONLY");
356 //
357 dz = (abs_l - abs_c) / 2. + abs_c;
358 pMC->Gspos("AAT1", 1, "ABSM", 0., 0., dz, 0, "ONLY");
359 //
360 pMC->Gspos("ABSM", 1, "ALIC", 0., 0., 0., 0, "ONLY");
361 //
362 // absorber support structure
363 //
364 // attention this element is positioned into ALIC
365 //
366 dpar[0] = 0.;
367 dpar[1] = 360.;
368 dpar[2] = 3.;
369 dpar[3] = abs_l;
370 dpar[4] = abs_l * TMath::Tan(acc_max * kDegrad);
371 dpar[5] = dpar[4] + 4. / TMath::Cos(acc_max * kDegrad);
372 dpar[6] = 600.;
373 dpar[7] = TMath::Tan(acc_max * kDegrad) * 600;
374 dpar[8] = dpar[7] + 4. / TMath::Cos(acc_max * kDegrad);
375 dpar[9] = 670.;
376 dpar[10] = 159.;
377 dpar[11] = 163.5;
378 pMC->Gsvolu("ASUP", "PCON", idtmed[1618], dpar, 12);
379 dz = 0.;
380 pMC->Gspos("ASUP", 1, "ALIC", 0., 0., dz, 0, "ONLY");
381 //
382 // Flange at the entrance of the absorber
383 //
384 tpar[0] = 3.;
385 tpar[1] = 5.7;
386 tpar[2] = 2.;
387 pMC->Gsvolu("AF63", "TUBE", idtmed[1618], tpar, 3);
388 zpos = abs_d + tpar[2];
389 pMC->Gspos("AF63", 1, "ABSM", 0., 0., zpos, 0, "ONLY");
390}
391
392//_____________________________________________________________________________
b8032157 393void AliABSO::DrawModule()
fe4da5cc 394{
395 //
396 // Draw a shaded view of the muon absorber
397 //
398
399 AliMC* pMC = AliMC::GetMC();
400
401 // Set everything unseen
402 pMC->Gsatt("*", "seen", -1);
403 //
404 // Set ALIC mother transparent
405 pMC->Gsatt("ALIC","SEEN",0);
406 //
407 // Set the volumes visible
408 pMC->Gsatt("ABSM","seen",1);
409 pMC->Gsatt("ANOS","seen",1);
410 pMC->Gsatt("ASST","seen",1);
411 pMC->Gsatt("AWFS","seen",1);
412 pMC->Gsatt("APBS","seen",1);
413 pMC->Gsatt("APOL","seen",1);
414 pMC->Gsatt("AWI1","seen",1);
415 pMC->Gsatt("AWI2","seen",1);
416 pMC->Gsatt("ACON","seen",1);
417 pMC->Gsatt("ARE1","seen",1);
418 pMC->Gsatt("ARE2","seen",1);
419 pMC->Gsatt("ARE3","seen",1);
420 pMC->Gsatt("ARE4","seen",1);
421 pMC->Gsatt("ARE5","seen",1);
422 pMC->Gsatt("ARE6","seen",1);
423 pMC->Gsatt("ARE7","seen",1);
424 pMC->Gsatt("ARIN","seen",1);
425 pMC->Gsatt("AATU","seen",1);
426 pMC->Gsatt("ATUB","seen",1);
427 pMC->Gsatt("AAT1","seen",1);
428 pMC->Gsatt("ATU1","seen",1);
429 pMC->Gsatt("ASUP","seen",1);
430 pMC->Gsatt("AF63","seen",1);
431 //
432 pMC->Gdopt("hide", "on");
433 pMC->Gdopt("shad", "on");
434 pMC->Gsatt("*", "fill", 7);
435 pMC->SetClipBox(".");
436 pMC->SetClipBox("*", 0, 3000, -3000, 3000, -6000, 6000);
437 pMC->DefaultRange();
438 pMC->Gdraw("alic", 40, 30, 0, 21.5, 15, .04, .04);
439 pMC->Gdhead(1111, "Muon Absorber");
440 pMC->Gdman(16, 6, "MAN");
441 pMC->Gdopt("hide","off");
442}
443
444//_____________________________________________________________________________
445void AliABSO::CreateMaterials()
446{
447 //
448 // Define materials for muon absorber
449 //
450 Int_t ISXFLD = gAlice->Field()->Integ();
451 Float_t SXMGMX = gAlice->Field()->Max();
452
453 Float_t apoly[2] = { 12.01,1. };
454 Float_t zpoly[2] = { 6.,1. };
455 Float_t wpoly[2] = { .33,.67 };
456 Float_t aconc[10] = { 1.,12.01,15.994,22.99,24.305,26.98,
457 28.086,39.1,40.08,55.85 };
458 Float_t zconc[10] = { 1.,6.,8.,11.,12.,13.,14.,19.,20.,26. };
459 Float_t wconc[10] = { .01,.001,.529107,.016,.002,.033872,
460 .337021,.013,.044,.014 };
461 Float_t asteel[4] = { 55.847,51.9961,58.6934,28.0855 };
462 Float_t zsteel[4] = { 26.,24.,28.,14. };
463 Float_t wsteel[4] = { .715,.18,.1,.005 };
464
465 Float_t epsil, stmin, tmaxfd, deemax, stemax;
466 //
467 // Carbon
468 AliMaterial(6, "CARBON$ ", 12.01, 6., 2.265, 18.8, 49.9);
469 AliMaterial(26, "CARBON$ ", 12.01, 6., 2.265, 18.8, 49.9);
470 AliMaterial(46, "CARBON$ ", 12.01, 6., 2.265, 18.8, 49.9);
471 //
472 // Aluminum
473 AliMaterial(9, "ALUMINIUM$", 26.98, 13., 2.7, 8.9, 37.2);
474 AliMaterial(29, "ALUMINIUM$", 26.98, 13., 2.7, 8.9, 37.2);
475 AliMaterial(49, "ALUMINIUM$", 26.98, 13., 2.7, 8.9, 37.2);
476 //
477 // Iron
478 AliMaterial(10, "IRON$ ", 55.85, 26., 7.87, 1.76, 17.1);
479 AliMaterial(30, "IRON$ ", 55.85, 26., 7.87, 1.76, 17.1);
480 AliMaterial(50, "IRON$ ", 55.85, 26., 7.87, 1.76, 17.1);
481 //
482 // Tungsten
483 AliMaterial(12, "TUNGSTEN$ ", 183.85, 74., 19.3, .35, 10.3);
484 AliMaterial(32, "TUNGSTEN$ ", 183.85, 74., 19.3, .35, 10.3);
485 AliMaterial(52, "TUNGSTEN$ ", 183.85, 74., 19.3, .35, 10.3);
486 //
487 // Lead
488 AliMaterial(13, "LEAD$ ", 207.19, 82., 11.35, .56, 18.5);
489 AliMaterial(33, "LEAD$ ", 207.19, 82., 11.35, .56, 18.5);
490 AliMaterial(53, "LEAD$ ", 207.19, 82., 11.35, .56, 18.5);
491 //
492 // Air
493 AliMaterial(15, "AIR$ ", 14.61, 7.3, .001205, 30423.24, 67500.);
494 AliMaterial(35, "AIR$ ", 14.61, 7.3, .001205, 30423.24, 67500.);
495 AliMaterial(55, "AIR$ ", 14.61, 7.3, .001205, 30423.24, 67500.);
496 //
497 // Vacuum
498 AliMaterial(16, "VACUUM$ ", 1e-16, 1e-16, 1e-16, 1e16, 1e16);
499 AliMaterial(36, "VACUUM$ ", 1e-16, 1e-16, 1e-16, 1e16, 1e16);
500 AliMaterial(56, "VACUUM$ ", 1e-16, 1e-16, 1e-16, 1e16, 1e16);
501 //
502 // Concrete
503 AliMixture(17, "CONCRETE$", aconc, zconc, 2.35, 10, wconc);
504 AliMixture(37, "CONCRETE$", aconc, zconc, 2.35, 10, wconc);
505 AliMixture(57, "CONCRETE$", aconc, zconc, 2.35, 10, wconc);
506 //
507 // Poly CH2
508 AliMixture(18, "POLYETHYLEN$", apoly, zpoly, .95, -2, wpoly);
509 //
510 // After a call with ratios by number (negative number of elements),
511 // the ratio array is changed to the ratio by weight, so all successive
512 // calls with the same array must specify the number of elements as
513 // positive
514 //
515 AliMixture(38, "POLYETHYLEN$", apoly, zpoly, .95, 2, wpoly);
516 AliMixture(58, "POLYETHYLEN$", apoly, zpoly, .95, 2, wpoly);
517 //
518 // stainless Steel
519 AliMixture(19, "STAINLESS STEEL$", asteel, zsteel, 7.88, 4, wsteel);
520 AliMixture(39, "STAINLESS STEEL$", asteel, zsteel, 7.88, 4, wsteel);
521 AliMixture(59, "STAINLESS STEEL$", asteel, zsteel, 7.88, 4, wsteel);
522 //
523 // ****************
524 // Defines tracking media parameters.
525 //
526 epsil = .001; // Tracking precision,
527 stemax = -1.; // Maximum displacement for multiple scat
528 tmaxfd = -20.; // Maximum angle due to field deflection
529 deemax = -.3; // Maximum fractional energy loss, DLS
530 stmin = -.8;
531 // ***************
532 //
533 // Carbon
534 AliMedium(1606, "C_C0 ", 6, 0, ISXFLD, SXMGMX, tmaxfd, stemax, deemax, epsil, stmin);
535 AliMedium(1626, "C_C1 ", 26, 0, ISXFLD, SXMGMX, tmaxfd, stemax, deemax, epsil, stmin);
536 AliMedium(1646, "C_C2 ", 46, 0, ISXFLD, SXMGMX, tmaxfd, stemax, deemax, epsil, stmin);
537 //
538 // Aluminum
539 AliMedium(1609, "ALU_C0 ", 9, 0, ISXFLD, SXMGMX, tmaxfd, stemax, deemax, epsil, stmin);
540 AliMedium(1629, "ALU_C1 ", 29, 0, ISXFLD, SXMGMX, tmaxfd, stemax, deemax, epsil, stmin);
541 AliMedium(1649, "ALU_C2 ", 49, 0, ISXFLD, SXMGMX, tmaxfd, stemax, deemax, epsil, stmin);
542 //
543 // Iron
544 AliMedium(1610, "FE_C0 ", 10, 0, ISXFLD, SXMGMX, tmaxfd, stemax, deemax, epsil, stmin);
545 AliMedium(1630, "FE_C1 ", 30, 0, ISXFLD, SXMGMX, tmaxfd, stemax, deemax, epsil, stmin);
546 AliMedium(1650, "FE_C2 ", 50, 0, ISXFLD, SXMGMX, tmaxfd, stemax, deemax, epsil, stmin);
547 //
548 // Tungsten
549 AliMedium(1612, "W_C0 ", 12, 0, ISXFLD, SXMGMX, tmaxfd, stemax, deemax, epsil, stmin);
550 AliMedium(1632, "W_C1 ", 32, 0, ISXFLD, SXMGMX, tmaxfd, stemax, deemax, epsil, stmin);
551 AliMedium(1652, "W_C2 ", 52, 0, ISXFLD, SXMGMX, tmaxfd, stemax, deemax, epsil, stmin);
552 //
553 // Lead
554 AliMedium(1613, "PB_C0 ", 13, 0, ISXFLD, SXMGMX, tmaxfd, stemax, deemax, epsil, stmin);
555 AliMedium(1633, "PB_C1 ", 33, 0, ISXFLD, SXMGMX, tmaxfd, stemax, deemax, epsil, stmin);
556 AliMedium(1653, "PB_C2 ", 53, 0, ISXFLD, SXMGMX, tmaxfd, stemax, deemax, epsil, stmin);
557 //
558 // Air
559 AliMedium(1615, "AIR_C0 ", 15, 0, ISXFLD, SXMGMX, tmaxfd, stemax, deemax, epsil, stmin);
560 AliMedium(1635, "AIR_C1 ", 35, 0, ISXFLD, SXMGMX, tmaxfd, stemax, deemax, epsil, stmin);
561 AliMedium(1655, "AIR_C2 ", 55, 0, ISXFLD, SXMGMX, tmaxfd, stemax, deemax, epsil, stmin);
562 //
563 // Vacuum
564 AliMedium(1616, "VA_C0 ", 16, 0, ISXFLD, SXMGMX, tmaxfd, stemax, deemax, epsil, stmin);
565 AliMedium(1636, "VA_C1 ", 36, 0, ISXFLD, SXMGMX, tmaxfd, stemax, deemax, epsil, stmin);
566 AliMedium(1656, "VA_C2 ", 56, 0, ISXFLD, SXMGMX, tmaxfd, stemax, deemax, epsil, stmin);
567 //
568 // Concrete
569 AliMedium(1617, "CC_C0 ", 17, 0, ISXFLD, SXMGMX, tmaxfd, stemax, deemax, epsil, stmin);
570 AliMedium(1637, "CC_C1 ", 37, 0, ISXFLD, SXMGMX, tmaxfd, stemax, deemax, epsil, stmin);
571 AliMedium(1657, "CC_C2 ", 57, 0, ISXFLD, SXMGMX, tmaxfd, stemax, deemax, epsil, stmin);
572 //
573 // Polyethilene
574 AliMedium(1618, "CH2_C0 B ", 18, 0, ISXFLD, SXMGMX, tmaxfd, stemax, deemax, epsil, stmin);
575 AliMedium(1638, "CH2_C1 ", 38, 0, ISXFLD, SXMGMX, tmaxfd, stemax, deemax, epsil, stmin);
576 AliMedium(1658, "CH2_C2 ", 58, 0, ISXFLD, SXMGMX, tmaxfd, stemax, deemax, epsil, stmin);
577 //
578 // Steel
579 AliMedium(1619, "ST_C0 ", 19, 0, ISXFLD, SXMGMX, tmaxfd, stemax, deemax, epsil, stmin);
580 AliMedium(1639, "ST_C1 ", 39, 0, ISXFLD, SXMGMX, tmaxfd, stemax, deemax, epsil, stmin);
581 AliMedium(1659, "ST_C3 ", 59, 0, ISXFLD, SXMGMX, tmaxfd, stemax, deemax, epsil, stmin);
582}
583
584//_____________________________________________________________________________
585void AliABSO::Init()
586{
587 //
588 // Initialisation of the muon absorber after it has been built
589 Int_t i;
590 //
591 printf("\n");
592 for(i=0;i<35;i++) printf("*");
593 printf(" ABSO_INIT ");
594 for(i=0;i<35;i++) printf("*");
595 printf("\n");
596 //
597 for(i=0;i<80;i++) printf("*");
598 printf("\n");
599}
600