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