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