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