Fixed compilation warning with HP unix.
[u/mrichter/AliRoot.git] / STRUCT / AliABSO.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
16/*
17$Log$
9af0a493 18Revision 1.7 2000/01/12 15:36:28 morsch
19Base class only
20
3f4d1718 21Revision 1.6 1999/09/29 09:24:29 fca
22Introduction of the Copyright and cvs Log
23
4c039060 24*/
25
fe4da5cc 26///////////////////////////////////////////////////////////////////////////////
27// //
28// Muon ABSOrber //
29// This class contains the description of the muon absorber geometry //
30// //
31//Begin_Html
32/*
1439f98e 33<img src="picts/AliABSOClass.gif">
fe4da5cc 34</pre>
35<br clear=left>
36<font size=+2 color=red>
37<p>The responsible person for this module is
38<a href="mailto:andreas.morsch@cern.ch">Andreas Morsch</a>.
39</font>
40<pre>
41*/
42//End_Html
43// //
44// //
45///////////////////////////////////////////////////////////////////////////////
46
47#include "AliABSO.h"
48#include "AliRun.h"
fe4da5cc 49#include "AliConst.h"
50
51ClassImp(AliABSO)
52
53//_____________________________________________________________________________
54AliABSO::AliABSO()
55{
56 //
57 // Default constructor
58 //
59}
60
61//_____________________________________________________________________________
62AliABSO::AliABSO(const char *name, const char *title)
b8032157 63 : AliModule(name,title)
fe4da5cc 64{
65 //
66 // Standard constructor
67 //
68 SetMarkerColor(7);
69 SetMarkerStyle(2);
70 SetMarkerSize(0.4);
71}
72
73//_____________________________________________________________________________
fe4da5cc 74void AliABSO::CreateGeometry()
75{
76 //
77 // Creation of the geometry of the muon absorber
78 //
fe4da5cc 79}
80
81//_____________________________________________________________________________
b8032157 82void AliABSO::DrawModule()
fe4da5cc 83{
84 //
85 // Draw a shaded view of the muon absorber
86 //
fe4da5cc 87}
88
3f4d1718 89
fe4da5cc 90//_____________________________________________________________________________
91void AliABSO::CreateMaterials()
92{
93 //
94 // Define materials for muon absorber
95 //
96 Int_t ISXFLD = gAlice->Field()->Integ();
97 Float_t SXMGMX = gAlice->Field()->Max();
98
99 Float_t apoly[2] = { 12.01,1. };
100 Float_t zpoly[2] = { 6.,1. };
101 Float_t wpoly[2] = { .33,.67 };
102 Float_t aconc[10] = { 1.,12.01,15.994,22.99,24.305,26.98,
103 28.086,39.1,40.08,55.85 };
104 Float_t zconc[10] = { 1.,6.,8.,11.,12.,13.,14.,19.,20.,26. };
105 Float_t wconc[10] = { .01,.001,.529107,.016,.002,.033872,
106 .337021,.013,.044,.014 };
107 Float_t asteel[4] = { 55.847,51.9961,58.6934,28.0855 };
108 Float_t zsteel[4] = { 26.,24.,28.,14. };
109 Float_t wsteel[4] = { .715,.18,.1,.005 };
3f4d1718 110//
111//
112// Ni-Cu-W alloy
113 Float_t aniwcu[3] ={58.6934, 183.84, 63.546};
114 Float_t zniwcu[3] ={28., 74., 29};
115 Float_t wniwcu[3] ={0.015,0.95,0.035};
116//
117// Insulation powder
9af0a493 118// Si O Ti Al
119 Float_t ains[4] ={28.0855, 15.9994, 47.867, 26.982};
120 Float_t zins[4] ={14., 8. , 22. , 13. };
121 Float_t wins[4] ={ 0.3019, 0.4887, 0.1914, 0.018};
3f4d1718 122//
fe4da5cc 123 Float_t epsil, stmin, tmaxfd, deemax, stemax;
124 //
125 // Carbon
3f4d1718 126 AliMaterial(6, "CARBON$ ", 12.01, 6., 2.265, 18.8, 49.9);
fe4da5cc 127 AliMaterial(26, "CARBON$ ", 12.01, 6., 2.265, 18.8, 49.9);
128 AliMaterial(46, "CARBON$ ", 12.01, 6., 2.265, 18.8, 49.9);
129 //
130 // Aluminum
3f4d1718 131 AliMaterial(9, "ALUMINIUM$", 26.98, 13., 2.7, 8.9, 37.2);
fe4da5cc 132 AliMaterial(29, "ALUMINIUM$", 26.98, 13., 2.7, 8.9, 37.2);
133 AliMaterial(49, "ALUMINIUM$", 26.98, 13., 2.7, 8.9, 37.2);
134 //
135 // Iron
136 AliMaterial(10, "IRON$ ", 55.85, 26., 7.87, 1.76, 17.1);
137 AliMaterial(30, "IRON$ ", 55.85, 26., 7.87, 1.76, 17.1);
138 AliMaterial(50, "IRON$ ", 55.85, 26., 7.87, 1.76, 17.1);
139 //
9af0a493 140 // Copper
141 AliMaterial(11, "COPPER$ ", 63.55, 29., 8.96, 1.43, 15.1);
142 AliMaterial(31, "COPPER$ ", 63.55, 29., 8.96, 1.43, 15.1);
143 AliMaterial(51, "COPPER$ ", 63.55, 29., 8.96, 1.43, 15.1);
144 //
fe4da5cc 145 // Tungsten
146 AliMaterial(12, "TUNGSTEN$ ", 183.85, 74., 19.3, .35, 10.3);
147 AliMaterial(32, "TUNGSTEN$ ", 183.85, 74., 19.3, .35, 10.3);
148 AliMaterial(52, "TUNGSTEN$ ", 183.85, 74., 19.3, .35, 10.3);
149 //
3f4d1718 150 // Ni-W-Cu
151 AliMixture(21, "Ni-W-Cu$", aniwcu, zniwcu, 18.78, 3, wniwcu);
152 AliMixture(41, "Ni-W-Cu$", aniwcu, zniwcu, 18.78, 3, wniwcu);
153 AliMixture(61, "Ni-W-Cu$", aniwcu, zniwcu, 18.78, 3, wniwcu);
154 //
fe4da5cc 155 // Lead
156 AliMaterial(13, "LEAD$ ", 207.19, 82., 11.35, .56, 18.5);
157 AliMaterial(33, "LEAD$ ", 207.19, 82., 11.35, .56, 18.5);
158 AliMaterial(53, "LEAD$ ", 207.19, 82., 11.35, .56, 18.5);
159 //
160 // Air
161 AliMaterial(15, "AIR$ ", 14.61, 7.3, .001205, 30423.24, 67500.);
162 AliMaterial(35, "AIR$ ", 14.61, 7.3, .001205, 30423.24, 67500.);
163 AliMaterial(55, "AIR$ ", 14.61, 7.3, .001205, 30423.24, 67500.);
164 //
165 // Vacuum
166 AliMaterial(16, "VACUUM$ ", 1e-16, 1e-16, 1e-16, 1e16, 1e16);
167 AliMaterial(36, "VACUUM$ ", 1e-16, 1e-16, 1e-16, 1e16, 1e16);
168 AliMaterial(56, "VACUUM$ ", 1e-16, 1e-16, 1e-16, 1e16, 1e16);
169 //
170 // Concrete
171 AliMixture(17, "CONCRETE$", aconc, zconc, 2.35, 10, wconc);
172 AliMixture(37, "CONCRETE$", aconc, zconc, 2.35, 10, wconc);
173 AliMixture(57, "CONCRETE$", aconc, zconc, 2.35, 10, wconc);
174 //
175 // Poly CH2
176 AliMixture(18, "POLYETHYLEN$", apoly, zpoly, .95, -2, wpoly);
177 //
178 // After a call with ratios by number (negative number of elements),
179 // the ratio array is changed to the ratio by weight, so all successive
180 // calls with the same array must specify the number of elements as
181 // positive
182 //
183 AliMixture(38, "POLYETHYLEN$", apoly, zpoly, .95, 2, wpoly);
184 AliMixture(58, "POLYETHYLEN$", apoly, zpoly, .95, 2, wpoly);
185 //
186 // stainless Steel
187 AliMixture(19, "STAINLESS STEEL$", asteel, zsteel, 7.88, 4, wsteel);
188 AliMixture(39, "STAINLESS STEEL$", asteel, zsteel, 7.88, 4, wsteel);
189 AliMixture(59, "STAINLESS STEEL$", asteel, zsteel, 7.88, 4, wsteel);
190 //
3f4d1718 191 // Insulation powder
9af0a493 192 AliMixture(14, "INSULATION$", ains, zins, 0.41, 4, wins);
193 AliMixture(34, "INSULATION$", ains, zins, 0.41, 4, wins);
194 AliMixture(54, "INSULATION$", ains, zins, 0.41, 4, wins);
3f4d1718 195
196 //
fe4da5cc 197 // ****************
198 // Defines tracking media parameters.
199 //
3f4d1718 200 epsil = .001; // Tracking precision,
201 stemax = -0.01; // Maximum displacement for multiple scat
202 tmaxfd = -20.; // Maximum angle due to field deflection
203 deemax = -.3; // Maximum fractional energy loss, DLS
fe4da5cc 204 stmin = -.8;
205 // ***************
206 //
207 // Carbon
3f4d1718 208 AliMedium(6, "C_C0 ", 6, 0, ISXFLD, SXMGMX, tmaxfd, stemax, deemax, epsil, stmin);
ad51aeb0 209 AliMedium(26, "C_C1 ", 26, 0, ISXFLD, SXMGMX, tmaxfd, stemax, deemax, epsil, stmin);
210 AliMedium(46, "C_C2 ", 46, 0, ISXFLD, SXMGMX, tmaxfd, stemax, deemax, epsil, stmin);
fe4da5cc 211 //
212 // Aluminum
3f4d1718 213 AliMedium(9, "ALU_C0 ", 9, 0, ISXFLD, SXMGMX, tmaxfd, stemax, deemax, epsil, stmin);
ad51aeb0 214 AliMedium(29, "ALU_C1 ", 29, 0, ISXFLD, SXMGMX, tmaxfd, stemax, deemax, epsil, stmin);
215 AliMedium(49, "ALU_C2 ", 49, 0, ISXFLD, SXMGMX, tmaxfd, stemax, deemax, epsil, stmin);
fe4da5cc 216 //
217 // Iron
ad51aeb0 218 AliMedium(10, "FE_C0 ", 10, 0, ISXFLD, SXMGMX, tmaxfd, stemax, deemax, epsil, stmin);
219 AliMedium(30, "FE_C1 ", 30, 0, ISXFLD, SXMGMX, tmaxfd, stemax, deemax, epsil, stmin);
220 AliMedium(50, "FE_C2 ", 50, 0, ISXFLD, SXMGMX, tmaxfd, stemax, deemax, epsil, stmin);
fe4da5cc 221 //
9af0a493 222 // Copper
223 AliMedium(11, "Cu_C0 ", 11, 0, ISXFLD, SXMGMX, tmaxfd, stemax, deemax, epsil, stmin);
224 AliMedium(31, "Cu_C1 ", 31, 0, ISXFLD, SXMGMX, tmaxfd, -stemax, deemax, epsil, stmin);
225 AliMedium(51, "Cu_C2 ", 51, 0, ISXFLD, SXMGMX, tmaxfd, stemax, deemax, epsil, stmin);
226 //
fe4da5cc 227 // Tungsten
ad51aeb0 228 AliMedium(12, "W_C0 ", 12, 0, ISXFLD, SXMGMX, tmaxfd, stemax, deemax, epsil, stmin);
3f4d1718 229 AliMedium(32, "W_C1 ", 32, 0, ISXFLD, SXMGMX, tmaxfd, -stemax, deemax, epsil, stmin);
ad51aeb0 230 AliMedium(52, "W_C2 ", 52, 0, ISXFLD, SXMGMX, tmaxfd, stemax, deemax, epsil, stmin);
3f4d1718 231 // Ni/Tungsten
232 AliMedium(21, "Ni/W0 ", 21, 0, ISXFLD, SXMGMX, tmaxfd, stemax, deemax, epsil, stmin);
233 AliMedium(41, "Ni/W1 ", 41, 0, ISXFLD, SXMGMX, tmaxfd, stemax, deemax, epsil, stmin);
234 AliMedium(61, "Ni/W3 ", 61, 0, ISXFLD, SXMGMX, tmaxfd, stemax, deemax, epsil, stmin);
fe4da5cc 235 //
236 // Lead
ad51aeb0 237 AliMedium(13, "PB_C0 ", 13, 0, ISXFLD, SXMGMX, tmaxfd, stemax, deemax, epsil, stmin);
3f4d1718 238 AliMedium(33, "PB_C1 ", 33, 0, ISXFLD, SXMGMX, tmaxfd, -stemax, deemax, epsil, stmin);
ad51aeb0 239 AliMedium(53, "PB_C2 ", 53, 0, ISXFLD, SXMGMX, tmaxfd, stemax, deemax, epsil, stmin);
fe4da5cc 240 //
3f4d1718 241 // Insulation Powder
242 AliMedium(14, "INS_C0 ", 14, 0, ISXFLD, SXMGMX, tmaxfd, stemax, deemax, epsil, stmin);
243 AliMedium(34, "INS_C1 ", 34, 0, ISXFLD, SXMGMX, tmaxfd, stemax, deemax, epsil, stmin);
244 AliMedium(54, "INS_C2 ", 54, 0, ISXFLD, SXMGMX, tmaxfd, stemax, deemax, epsil, stmin);
245 //
fe4da5cc 246 // Air
ad51aeb0 247 AliMedium(15, "AIR_C0 ", 15, 0, ISXFLD, SXMGMX, tmaxfd, stemax, deemax, epsil, stmin);
248 AliMedium(35, "AIR_C1 ", 35, 0, ISXFLD, SXMGMX, tmaxfd, stemax, deemax, epsil, stmin);
249 AliMedium(55, "AIR_C2 ", 55, 0, ISXFLD, SXMGMX, tmaxfd, stemax, deemax, epsil, stmin);
fe4da5cc 250 //
251 // Vacuum
ad51aeb0 252 AliMedium(16, "VA_C0 ", 16, 0, ISXFLD, SXMGMX, tmaxfd, stemax, deemax, epsil, stmin);
253 AliMedium(36, "VA_C1 ", 36, 0, ISXFLD, SXMGMX, tmaxfd, stemax, deemax, epsil, stmin);
254 AliMedium(56, "VA_C2 ", 56, 0, ISXFLD, SXMGMX, tmaxfd, stemax, deemax, epsil, stmin);
fe4da5cc 255 //
256 // Concrete
ad51aeb0 257 AliMedium(17, "CC_C0 ", 17, 0, ISXFLD, SXMGMX, tmaxfd, stemax, deemax, epsil, stmin);
258 AliMedium(37, "CC_C1 ", 37, 0, ISXFLD, SXMGMX, tmaxfd, stemax, deemax, epsil, stmin);
259 AliMedium(57, "CC_C2 ", 57, 0, ISXFLD, SXMGMX, tmaxfd, stemax, deemax, epsil, stmin);
fe4da5cc 260 //
261 // Polyethilene
3f4d1718 262 AliMedium(18, "CH2_C0 ", 18, 0, ISXFLD, SXMGMX, tmaxfd, stemax, deemax, epsil, stmin);
ad51aeb0 263 AliMedium(38, "CH2_C1 ", 38, 0, ISXFLD, SXMGMX, tmaxfd, stemax, deemax, epsil, stmin);
264 AliMedium(58, "CH2_C2 ", 58, 0, ISXFLD, SXMGMX, tmaxfd, stemax, deemax, epsil, stmin);
fe4da5cc 265 //
266 // Steel
ad51aeb0 267 AliMedium(19, "ST_C0 ", 19, 0, ISXFLD, SXMGMX, tmaxfd, stemax, deemax, epsil, stmin);
268 AliMedium(39, "ST_C1 ", 39, 0, ISXFLD, SXMGMX, tmaxfd, stemax, deemax, epsil, stmin);
269 AliMedium(59, "ST_C3 ", 59, 0, ISXFLD, SXMGMX, tmaxfd, stemax, deemax, epsil, stmin);
fe4da5cc 270}
271
272//_____________________________________________________________________________
273void AliABSO::Init()
274{
275 //
276 // Initialisation of the muon absorber after it has been built
277 Int_t i;
278 //
279 printf("\n");
280 for(i=0;i<35;i++) printf("*");
281 printf(" ABSO_INIT ");
282 for(i=0;i<35;i++) printf("*");
283 printf("\n");
284 //
285 for(i=0;i<80;i++) printf("*");
286 printf("\n");
287}
288