Air defined as mixture.
[u/mrichter/AliRoot.git] / STRUCT / AliSHIL.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// Muon Shield Class //
21// This class contains a description of the muon shield //
22// //
23//Begin_Html
24/*
1439f98e 25<img src="picts/AliSHILClass.gif">
fe4da5cc 26*/
27//End_Html
28// //
29// //
30///////////////////////////////////////////////////////////////////////////////
31
32#include "AliSHIL.h"
fe4da5cc 33#include "AliRun.h"
94de3818 34#include "AliMagF.h"
fe4da5cc 35#include "AliConst.h"
36
37ClassImp(AliSHIL)
38
39//_____________________________________________________________________________
40AliSHIL::AliSHIL()
41{
42 //
43 // Default constructor for muon shield
44 //
45}
46
47//_____________________________________________________________________________
48AliSHIL::AliSHIL(const char *name, const char *title)
b8032157 49 : AliModule(name,title)
fe4da5cc 50{
51 //
52 // Standard constructor for muon shield
53 //
54 SetMarkerColor(7);
55 SetMarkerStyle(2);
56 SetMarkerSize(0.4);
57}
58
fe4da5cc 59//_____________________________________________________________________________
60void AliSHIL::CreateGeometry()
61{
62 //
63 // Build muon shield geometry
64 //
fe4da5cc 65}
66
67//_____________________________________________________________________________
68void AliSHIL::CreateMaterials()
69{
70 //
71 // Defines materials for the muon shield
72 //
b43eb0dc 73 Int_t isxfld = gAlice->Field()->Integ();
74 Float_t sxmgmx = gAlice->Field()->Max();
3f4d1718 75// Steel
fe4da5cc 76 Float_t asteel[4] = { 55.847,51.9961,58.6934,28.0855 };
77 Float_t zsteel[4] = { 26.,24.,28.,14. };
78 Float_t wsteel[4] = { .715,.18,.1,.005 };
3f4d1718 79// PbW
fe4da5cc 80 Float_t apbw[2] = { 207.2,183.85 };
81 Float_t zpbw[2] = { 82.,74. };
82 Float_t wpbw[2] = { .5,.5 };
3f4d1718 83// Concrete
84 Float_t aconc[10] = { 1.,12.01,15.994,22.99,24.305,26.98,
85 28.086,39.1,40.08,55.85 };
86 Float_t zconc[10] = { 1.,6.,8.,11.,12.,13.,14.,19.,20.,26. };
87 Float_t wconc[10] = { .01,.001,.529107,.016,.002,.033872,
88 .337021,.013,.044,.014 };
89// Ni-Cu-W alloy
90 Float_t aniwcu[3] ={58.6934, 183.84, 63.546};
91 Float_t zniwcu[3] ={28., 74., 29};
92 Float_t wniwcu[3] ={0.015,0.95,0.035};
93//
94// Insulation powder
9af0a493 95// Si O Ti Al
96 Float_t ains[4] ={28.0855, 15.9994, 47.867, 26.982};
97 Float_t zins[4] ={14., 8. , 22. , 13. };
98 Float_t wins[4] ={ 0.3019, 0.4887, 0.1914, 0.018};
002b3738 99//
100// Air
101//
102 Float_t aAir[4]={12.0107,14.0067,15.9994,39.948};
103 Float_t zAir[4]={6.,7.,8.,18.};
104 Float_t wAir[4]={0.000124,0.755267,0.231781,0.012827};
105 Float_t dAir = 1.20479E-3;
9af0a493 106
002b3738 107
fe4da5cc 108 Float_t epsil, stmin, tmaxfd, deemax, stemax;
109
110 // STEEL
111
112
113 // LEAD/TUNGSTEN MIXTURE
114
115
116 // --- Define the various materials for GEANT ---
117 // Aluminum
118 AliMaterial(9, "ALUMINIUM$", 26.98, 13., 2.7, 8.9, 37.2);
119 AliMaterial(29, "ALUMINIUM$", 26.98, 13., 2.7, 8.9, 37.2);
120 AliMaterial(49, "ALUMINIUM$", 26.98, 13., 2.7, 8.9, 37.2);
121
122 // Iron
123 AliMaterial(10, "IRON$ ", 55.85, 26., 7.87, 1.76, 17.1);
124 AliMaterial(30, "IRON$ ", 55.85, 26., 7.87, 1.76, 17.1);
125 AliMaterial(50, "IRON$ ", 55.85, 26., 7.87, 1.76, 17.1);
9af0a493 126
127 //
128 // Copper
129 AliMaterial(11, "COPPER$ ", 63.55, 29., 8.96, 1.43, 15.1);
130 AliMaterial(31, "COPPER$ ", 63.55, 29., 8.96, 1.43, 15.1);
131 AliMaterial(51, "COPPER$ ", 63.55, 29., 8.96, 1.43, 15.1);
fe4da5cc 132
133 // Tungsten
134 AliMaterial(12, "TUNGSTEN$ ", 183.85, 74., 19.3, .35, 10.3);
135 AliMaterial(32, "TUNGSTEN$ ", 183.85, 74., 19.3, .35, 10.3);
136 AliMaterial(52, "TUNGSTEN$ ", 183.85, 74., 19.3, .35, 10.3);
137
138 // Lead
139 AliMaterial(13, "LEAD$ ", 207.19, 82., 11.35, .56, 18.5);
140 AliMaterial(33, "LEAD$ ", 207.19, 82., 11.35, .56, 18.5);
141 AliMaterial(53, "LEAD$ ", 207.19, 82., 11.35, .56, 18.5);
142
143 // Air
002b3738 144 AliMixture(15, "AIR$ ", aAir, zAir, dAir, 4, wAir);
145 AliMixture(35, "AIR$ ", aAir, zAir, dAir, 4, wAir);
146 AliMixture(55, "AIR$ ", aAir, zAir, dAir, 4, wAir);
147 //
fe4da5cc 148 // Vacuum
149 AliMaterial(16, "VACUUM$ ", 1e-16, 1e-16, 1e-16, 1e16, 1e16);
150 AliMaterial(36, "VACUUM$ ", 1e-16, 1e-16, 1e-16, 1e16, 1e16);
151 AliMaterial(56, "VACUUM$ ", 1e-16, 1e-16, 1e-16, 1e16, 1e16);
152
3f4d1718 153 // Stainless Steel
fe4da5cc 154 AliMixture(19, "STAINLESS STEEL$", asteel, zsteel, 7.88, 4, wsteel);
155 AliMixture(39, "STAINLESS STEEL$", asteel, zsteel, 7.88, 4, wsteel);
156 AliMixture(59, "STAINLESS STEEL$", asteel, zsteel, 7.88, 4, wsteel);
157
158 // Lead/Tungsten
159 AliMixture(20, "LEAD/TUNGSTEN$", apbw, zpbw, 15.325, 2, wpbw);
160 AliMixture(40, "LEAD/TUNGSTEN$", apbw, zpbw, 15.325, 2, wpbw);
161 AliMixture(60, "LEAD/TUNGSTEN$", apbw, zpbw, 15.325, 2, wpbw);
3f4d1718 162
163 // Ni-W-Cu
164 AliMixture(21, "Ni-W-Cu$", aniwcu, zniwcu, 18.78, 3, wniwcu);
165 AliMixture(41, "Ni-W-Cu$", aniwcu, zniwcu, 18.78, 3, wniwcu);
166 AliMixture(61, "Ni-W-Cu$", aniwcu, zniwcu, 18.78, 3, wniwcu);
167
168 // Concrete
169 AliMixture(17, "CONCRETE$", aconc, zconc, 2.35, 10, wconc);
170 AliMixture(37, "CONCRETE$", aconc, zconc, 2.35, 10, wconc);
171 AliMixture(57, "CONCRETE$", aconc, zconc, 2.35, 10, wconc);
172
173 // Insulation powder
9af0a493 174 AliMixture(14, "INSULATION$", ains, zins, 0.41, 4, wins);
175 AliMixture(34, "INSULATION$", ains, zins, 0.41, 4, wins);
176 AliMixture(54, "INSULATION$", ains, zins, 0.41, 4, wins);
fe4da5cc 177
178 // ****************
179 // Defines tracking media parameters.
180 // Les valeurs sont commentees pour laisser le defaut
181 // a GEANT (version 3-21, page CONS200), f.m.
182 epsil = .001; // Tracking precision,
183 stemax = -1.; // Maximum displacement for multiple scat
184 tmaxfd = -20.; // Maximum angle due to field deflection
185 deemax = -.3; // Maximum fractional energy loss, DLS
186 stmin = -.8;
187 // ***************
188
189 // Aluminum
b43eb0dc 190 AliMedium(9, "ALU_C0 ", 9, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
191 AliMedium(29, "ALU_C1 ", 29, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
192 AliMedium(49, "ALU_C2 ", 49, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
fe4da5cc 193
194 // Iron
b43eb0dc 195 AliMedium(10, "FE_C0 ", 10, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
196 AliMedium(30, "FE_C1 ", 30, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
197 AliMedium(50, "FE_C2 ", 50, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
9af0a493 198
199 // Iron
b43eb0dc 200 AliMedium(11, "Cu_C0 ", 11, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
201 AliMedium(31, "Cu_C1 ", 31, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
202 AliMedium(51, "Cu_C2 ", 51, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
fe4da5cc 203
204 // Tungsten
b43eb0dc 205 AliMedium(12, "W_C0 ", 12, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
206 AliMedium(32, "W_C1 ", 32, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
207 AliMedium(52, "W_C2 ", 52, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
fe4da5cc 208
209 // Lead
b43eb0dc 210 AliMedium(13, "PB_C0 ", 13, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
211 AliMedium(33, "PB_C1 ", 33, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
212 AliMedium(53, "PB_C2 ", 53, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
3f4d1718 213
214 // Insulation Powder
b43eb0dc 215 AliMedium(14, "INS_C0 ", 14, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
216 AliMedium(34, "INS_C1 ", 34, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
217 AliMedium(54, "INS_C2 ", 54, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
fe4da5cc 218
219 // Air
b43eb0dc 220 AliMedium(15, "AIR_C0 ", 15, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
221 AliMedium(35, "AIR_C1 ", 35, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
222 AliMedium(55, "AIR_C2 ", 55, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
fe4da5cc 223
224 // Vacuum
b43eb0dc 225 AliMedium(16, "VA_C0 ", 16, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
226 AliMedium(36, "VA_C1 ", 36, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
227 AliMedium(56, "VA_C2 ", 56, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
fe4da5cc 228
229 // Steel
b43eb0dc 230 AliMedium(19, "ST_C0 ", 19, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
231 AliMedium(39, "ST_C1 ", 39, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
232 AliMedium(59, "ST_C3 ", 59, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
fe4da5cc 233
234 // Lead/Tungsten
b43eb0dc 235 AliMedium(20, "PB/W0 ", 20, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
236 AliMedium(40, "PB/W1 ", 40, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
237 AliMedium(60, "PB/W3 ", 60, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
3f4d1718 238
239 // Ni/Tungsten
b43eb0dc 240 AliMedium(21, "Ni/W0 ", 21, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
241 AliMedium(41, "Ni/W1 ", 41, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
242 AliMedium(61, "Ni/W3 ", 61, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
3f4d1718 243
244// Concrete
b43eb0dc 245 AliMedium(17, "CC_C0 ", 17, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
246 AliMedium(37, "CC_C1 ", 37, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
247 AliMedium(57, "CC_C2 ", 57, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
3f4d1718 248
fe4da5cc 249}
250
251//_____________________________________________________________________________
b8032157 252void AliSHIL::DrawModule ()
fe4da5cc 253{
b43eb0dc 254 // Drawing options
fe4da5cc 255}
256
257//_____________________________________________________________________________
258void AliSHIL::Init()
259{
260 //
261 // Initialise the muon shield after it has been built
262 //
263 Int_t i;
264 //
9e1a0ddb 265 if(fDebug) {
266 printf("\n%s: ",ClassName());
267 for(i=0;i<35;i++) printf("*");
268 printf(" SHIL_INIT ");
269 for(i=0;i<35;i++) printf("*");
270 printf("\n%s: ",ClassName());
271 //
272 // Here the SHIL initialisation code (if any!)
273 for(i=0;i<80;i++) printf("*");
274 printf("\n");
275 }
fe4da5cc 276}
277
278