]>
Commit | Line | Data |
---|---|---|
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$ | |
94de3818 | 18 | Revision 1.7 2000/06/11 12:37:25 morsch |
19 | Coding rule violations corrected | |
20 | ||
b43eb0dc | 21 | Revision 1.6 1999/09/29 09:24:30 fca |
22 | Introduction of the Copyright and cvs Log | |
23 | ||
4c039060 | 24 | */ |
25 | ||
fe4da5cc | 26 | /////////////////////////////////////////////////////////////////////////////// |
27 | // // | |
28 | // Beam pipe class // | |
29 | // // | |
30 | //Begin_Html | |
31 | /* | |
1439f98e | 32 | <img src="picts/AliPIPEClass.gif"> |
fe4da5cc | 33 | */ |
34 | //End_Html | |
35 | // // | |
36 | /////////////////////////////////////////////////////////////////////////////// | |
37 | ||
38 | #include "AliPIPEv1.h" | |
39 | #include "AliRun.h" | |
94de3818 | 40 | #include "AliMagF.h" |
fe4da5cc | 41 | #include "AliMC.h" |
42 | ||
43 | ClassImp(AliPIPEv1) | |
44 | ||
45 | //_____________________________________________________________________________ | |
b8032157 | 46 | AliPIPEv1::AliPIPEv1() |
fe4da5cc | 47 | { |
48 | // | |
49 | // Default constructor for beam pipe | |
50 | // | |
51 | } | |
52 | ||
53 | //_____________________________________________________________________________ | |
54 | AliPIPEv1::AliPIPEv1(const char *name, const char *title) | |
55 | : AliPIPE(name,title) | |
56 | { | |
57 | // | |
58 | // Standard constructor for beam pipe | |
59 | // | |
60 | } | |
61 | ||
62 | //_____________________________________________________________________________ | |
63 | void AliPIPEv1::CreateGeometry() | |
64 | { | |
65 | // | |
66 | // Create Beam Pipe geometry | |
67 | // | |
68 | //Begin_Html | |
69 | /* | |
1439f98e | 70 | <img src="picts/AliPIPE.gif"> |
fe4da5cc | 71 | */ |
72 | //End_Html | |
73 | //Begin_Html | |
74 | /* | |
1439f98e | 75 | <img src="picts/AliPIPETree.gif"> |
fe4da5cc | 76 | */ |
77 | //End_Html | |
78 | ||
b43eb0dc | 79 | Float_t tpar[3], dzmo, zpos, absorberDistance, absorberEnd; |
fe4da5cc | 80 | Float_t r2, dr; |
81 | ||
b43eb0dc | 82 | const Double_t kZFlange = 150; |
fe4da5cc | 83 | |
ad51aeb0 | 84 | Int_t *idtmed = fIdtmed->GetArray()-1999; |
fe4da5cc | 85 | |
86 | ||
b43eb0dc | 87 | absorberDistance = 90.; // DEFINES DRIFT LENGTH |
fe4da5cc | 88 | //z_nose = 102.; |
89 | //z_cone = 285.; | |
90 | //theta1 = 24.; // 1. angle defining the front absorber | |
91 | //theta2 = 5.; // 2. angle defining the front absorbe | |
92 | //acc_max = 9.; // ANGLE POLAIRE MAXIMUM | |
93 | //acc_min = 2.; // ANGLE POLAIRE MINIMUM DE DETECTION | |
b43eb0dc | 94 | absorberEnd = 503.; |
fe4da5cc | 95 | //d_steel = 1.; // THICKNESS OF STEEL SUPPORT |
96 | //d_poly = 7.5; | |
97 | //d_pb = 2.5; | |
98 | //abs_cc = 315.; // DEFINES LENGTH OF CARBON | |
99 | //abs_c = 358.; | |
100 | //abs_s = 150.; // DEFINES W-SHIELD LENGTH | |
101 | //abs_n = 80.; // START OF NOSE | |
102 | //r_abs = 4.; | |
103 | //r_pb = .1; | |
104 | //epsilon = .01; | |
105 | //theta_r = 3.; | |
106 | //d_rear = 35.; | |
107 | //theta_open = .75; | |
108 | ||
109 | //z_l3 = 700.; | |
110 | //zmag_in = 725.; | |
111 | //zmag_out = 1225.; | |
112 | //zfil_in = 1471.; | |
113 | //zfil_out = 1591.; | |
114 | //zcon_in = 1900.; | |
115 | //zcon_out = 2e3; | |
116 | //zcone_e = 859.0875; | |
117 | //spec_l = 1800.; | |
118 | //zplug_in = 1780.; | |
119 | //zplug_out = 1900.; | |
120 | ||
121 | // Chamber position | |
122 | // CZ1=515.5 | |
123 | //cz1 = 511.; | |
124 | //cz2 = 686.; | |
125 | //cz3 = 971.; | |
126 | //cz4 = 1245.; | |
127 | //cz5 = 1445.; | |
128 | //cz6 = 1610.; | |
129 | //cz7 = 1710.; | |
130 | ||
131 | ||
132 | // the mother of all beam pipes | |
133 | ||
134 | tpar[0] = 0.; | |
135 | tpar[1] = 3.; | |
b43eb0dc | 136 | tpar[2] = (absorberDistance + 700.) / 2.; |
137 | dzmo = tpar[2] - absorberDistance; | |
cfce8870 | 138 | gMC->Gsvolu("QQMO", "TUBE", idtmed[2015], tpar, 3); |
139 | gMC->Gspos("QQMO", 1, "ALIC", 0., 0., -dzmo, 0, "ONLY"); | |
fe4da5cc | 140 | |
141 | // BEAM PIPE IN DRIFT SPACE | |
142 | ||
b43eb0dc | 143 | // -30-kZFlange |
fe4da5cc | 144 | tpar[0] = 0.; |
145 | tpar[1] = 3.; | |
146 | tpar[2] = 30; | |
cfce8870 | 147 | gMC->Gsvolu("QDT1", "TUBE", idtmed[2015], tpar, 3); |
fe4da5cc | 148 | |
149 | tpar[0] = 2.9; | |
cfce8870 | 150 | gMC->Gsvolu("QTB1", "TUBE", idtmed[2004], tpar, 3); |
151 | gMC->Gspos("QTB1", 1, "QDT1", 0., 0., 0., 0, "ONLY"); | |
152 | gMC->Gspos("QDT1", 1, "QQMO", 0., 0., dzmo, 0, "ONLY"); | |
fe4da5cc | 153 | |
154 | ||
155 | // 30-90 | |
156 | tpar[0] = 0.; | |
157 | tpar[1] = 3.; | |
158 | tpar[2] = 30.; | |
cfce8870 | 159 | gMC->Gsvolu("QDT2", "TUBE", idtmed[2015], tpar, 3); |
fe4da5cc | 160 | |
161 | tpar[0] = 2.9; | |
cfce8870 | 162 | gMC->Gsvolu("QTB2", "TUBE", idtmed[2004], tpar, 3); |
163 | gMC->Gspos("QTB2", 1, "QDT2", 0., 0., 0., 0, "ONLY"); | |
164 | gMC->Gspos("QDT2", 1, "QQMO", 0., 0., dzmo, 0, "ONLY"); | |
fe4da5cc | 165 | |
166 | // beam pipe outside absorber on the left side | |
167 | ||
168 | ||
169 | ||
b43eb0dc | 170 | // -30 - kZFlange |
fe4da5cc | 171 | tpar[0] = 0.; |
172 | tpar[1] = 3.; | |
b43eb0dc | 173 | tpar[2] = (kZFlange - 30)/2; |
cfce8870 | 174 | gMC->Gsvolu("QDT5", "TUBE", idtmed[2015], tpar, 3); |
fe4da5cc | 175 | |
176 | tpar[0] = 2.9; | |
177 | zpos = -30. - tpar[2] + dzmo; | |
cfce8870 | 178 | gMC->Gsvolu("QTB5", "TUBE", idtmed[2004], tpar, 3); |
179 | gMC->Gspos("QTB5", 1, "QDT5", 0., 0., 0., 0, "ONLY"); | |
180 | gMC->Gspos("QDT5", 1, "QQMO", 0., 0., zpos, 0, "ONLY"); | |
fe4da5cc | 181 | |
182 | // STRAIGHT STEEL PIECE | |
183 | ||
b43eb0dc | 184 | zpos = -kZFlange; |
fe4da5cc | 185 | r2 = 2.9; |
186 | dr = .015; | |
187 | tpar[0] = 0.; | |
188 | tpar[1] = r2 + dr; | |
189 | tpar[2] = (zpos + 700.) / 2.; | |
cfce8870 | 190 | gMC->Gsvolu("QDT7", "TUBE", idtmed[2015], tpar, 3); |
fe4da5cc | 191 | tpar[0] = r2; |
cfce8870 | 192 | gMC->Gsvolu("QTB7", "TUBE", idtmed[2018], tpar, 3); |
193 | gMC->Gspos("QTB7", 1, "QDT7", 0., 0., 0., 0, "ONLY"); | |
fe4da5cc | 194 | zpos = zpos - tpar[2] + dzmo; |
cfce8870 | 195 | gMC->Gspos("QDT7", 1, "QQMO", 0., 0., zpos, 0, "ONLY"); |
fe4da5cc | 196 | |
197 | // flange dn 63 | |
198 | ||
199 | tpar[0] = 3.; | |
200 | tpar[1] = 5.7; | |
201 | tpar[2] = 2.; | |
cfce8870 | 202 | gMC->Gsvolu("QN63", "TUBE", idtmed[2018], tpar, 3); |
b43eb0dc | 203 | zpos = tpar[2] - kZFlange; |
cfce8870 | 204 | gMC->Gspos("QN63", 1, "ALIC", 0., 0., zpos, 0, "ONLY"); |
fe4da5cc | 205 | |
206 | ||
207 | // Replace Absorber or Shield by Beam-Pipe | |
208 | // in case they are not selected | |
209 | ||
b8032157 | 210 | if (gAlice->GetModule("ABSO") == 0) { |
fe4da5cc | 211 | |
b43eb0dc | 212 | gMC->Gspos("QN63", 2, "ALIC", 0., 0., kZFlange, 0, "ONLY"); |
fe4da5cc | 213 | r2 = 2.9; |
214 | dr = .1; | |
215 | tpar[0] = 0.; | |
216 | tpar[1] = r2 + dr; | |
b43eb0dc | 217 | tpar[2] = (kZFlange - absorberDistance) / 2.; |
cfce8870 | 218 | gMC->Gsvolu("QDT8", "TUBE", idtmed[2015], tpar, 3); |
fe4da5cc | 219 | tpar[0] = r2; |
cfce8870 | 220 | gMC->Gsvolu("QTB8", "TUBE", idtmed[2004], tpar, 3); |
221 | gMC->Gspos("QTB8", 1, "QDT8", 0., 0., 0., 0, "ONLY"); | |
b43eb0dc | 222 | zpos = absorberDistance + tpar[2]; |
cfce8870 | 223 | gMC->Gspos("QDT8", 1, "ALIC", 0., 0., zpos, 0, "ONLY"); |
fe4da5cc | 224 | dr = .015; |
225 | tpar[0] = 0.; | |
226 | tpar[1] = r2 + dr; | |
b43eb0dc | 227 | tpar[2] = (absorberEnd - kZFlange) / 2.; |
cfce8870 | 228 | gMC->Gsvolu("QDTS", "TUBE", idtmed[2015], tpar, 3); |
fe4da5cc | 229 | tpar[0] = r2; |
cfce8870 | 230 | gMC->Gsvolu("QTBS", "TUBE", idtmed[2018], tpar, 3); |
231 | gMC->Gspos("QTBS", 1, "QDTS", 0., 0., 0., 0, "ONLY"); | |
b43eb0dc | 232 | zpos = tpar[2] + kZFlange; |
cfce8870 | 233 | gMC->Gspos("QDTS", 1, "ALIC", 0., 0., zpos, 0, "ONLY"); |
fe4da5cc | 234 | } |
b8032157 | 235 | if (gAlice->GetModule("SHIL") == 0) { |
fe4da5cc | 236 | r2 = 2.9; |
237 | dr = .015; | |
238 | tpar[0] = 0.; | |
239 | tpar[1] = r2 + dr; | |
b43eb0dc | 240 | tpar[2] = (700. - absorberEnd) / 2.; |
cfce8870 | 241 | gMC->Gsvolu("QDT9", "TUBE", idtmed[2015], tpar, 3); |
fe4da5cc | 242 | tpar[0] = r2; |
cfce8870 | 243 | gMC->Gsvolu("QTB9", "TUBE", idtmed[2018], tpar, 3); |
244 | gMC->Gspos("QTB9", 1, "QDT9", 0., 0., 0., 0, "ONLY"); | |
b43eb0dc | 245 | zpos = absorberEnd + tpar[2]; |
cfce8870 | 246 | gMC->Gspos("QDT9", 1, "ALIC", 0., 0., zpos, 0, "ONLY"); |
fe4da5cc | 247 | } |
248 | } | |
249 | ||
250 | //_____________________________________________________________________________ | |
b8032157 | 251 | void AliPIPEv1::DrawModule() |
fe4da5cc | 252 | { |
253 | // | |
254 | // Draw a shaded view of the Beam Pipe | |
255 | // | |
256 | ||
fe4da5cc | 257 | // Set everything unseen |
cfce8870 | 258 | gMC->Gsatt("*", "seen", -1); |
fe4da5cc | 259 | // |
260 | // Set ALIC mother transparent | |
cfce8870 | 261 | gMC->Gsatt("ALIC","SEEN",0); |
fe4da5cc | 262 | // |
263 | // Set the volumes visible | |
cfce8870 | 264 | gMC->Gsatt("QQMO","seen",1); |
265 | gMC->Gsatt("QDT1","seen",1); | |
266 | gMC->Gsatt("QTB1","seen",1); | |
267 | gMC->Gsatt("QDT2","seen",1); | |
268 | gMC->Gsatt("QTB2","seen",1); | |
269 | gMC->Gsatt("QDT5","seen",1); | |
270 | gMC->Gsatt("QTB5","seen",1); | |
271 | gMC->Gsatt("QDT7","seen",1); | |
272 | gMC->Gsatt("QTB7","seen",1); | |
273 | gMC->Gsatt("QN63","seen",1); | |
fe4da5cc | 274 | // |
cfce8870 | 275 | gMC->Gdopt("hide", "on"); |
276 | gMC->Gdopt("shad", "on"); | |
277 | gMC->Gsatt("*", "fill", 7); | |
278 | gMC->SetClipBox("."); | |
279 | gMC->SetClipBox("*", 0, 3000, -3000, 3000, -6000, 6000); | |
280 | gMC->DefaultRange(); | |
281 | gMC->Gdraw("alic", 40, 30, 0, 3, 5, .04, .04); | |
282 | gMC->Gdhead(1111, "Beam Pipe"); | |
283 | gMC->Gdman(16, 6, "MAN"); | |
284 | gMC->Gdopt("hide","off"); | |
fe4da5cc | 285 | } |
286 | ||
287 | //_____________________________________________________________________________ | |
288 | void AliPIPEv1::CreateMaterials() | |
289 | { | |
290 | // | |
291 | // Create materials for beam pipe | |
292 | // | |
293 | ||
b43eb0dc | 294 | Int_t isxfld = gAlice->Field()->Integ(); |
295 | Float_t sxmgmx = gAlice->Field()->Max(); | |
fe4da5cc | 296 | |
297 | Float_t asteel[4] = { 55.847,51.9961,58.6934,28.0855 }; | |
298 | Float_t zsteel[4] = { 26.,24.,28.,14. }; | |
299 | Float_t wsteel[4] = { .715,.18,.1,.005 }; | |
300 | ||
301 | Float_t epsil, stmin, tmaxfd, deemax, stemax; | |
302 | ||
303 | // STEEL | |
304 | ||
305 | ||
306 | // --- Define the various materials for GEANT --- | |
307 | AliMaterial(5, "BERILLIUM$", 9.01, 4., 1.848, 35.3, 36.7); | |
308 | AliMaterial(16, "VACUUM$ ", 1e-16, 1e-16, 1e-16, 1e16, 1e16); | |
309 | AliMaterial(15, "AIR$ ", 14.61, 7.3, .001205, 30423.24, 67500); | |
310 | AliMixture(19, "STAINLESS STEEL$", asteel, zsteel, 7.88, 4, wsteel); | |
311 | ||
312 | // **************** | |
313 | // Defines tracking media parameters. | |
314 | // Les valeurs sont commentees pour laisser le defaut | |
315 | // a GEANT (version 3-21, page CONS200), f.m. | |
316 | epsil = .001; // Tracking precision, | |
317 | stemax = -1.; // Maximum displacement for multiple scat | |
318 | tmaxfd = -20.; // Maximum angle due to field deflection | |
319 | deemax = -.3; // Maximum fractional energy loss, DLS | |
320 | stmin = -.8; | |
321 | ||
322 | // Air | |
323 | ||
b43eb0dc | 324 | AliMedium(15, "AIR_L3_US", 15, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin); |
fe4da5cc | 325 | |
326 | // Beryllium | |
327 | ||
b43eb0dc | 328 | AliMedium(5, "BE_L3_US", 5, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin); |
fe4da5cc | 329 | |
330 | // Vacuum | |
331 | ||
b43eb0dc | 332 | AliMedium(16, "VA_L3_US", 16, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin); |
fe4da5cc | 333 | |
334 | // Steel | |
335 | ||
b43eb0dc | 336 | AliMedium(19, "ST_L3_US", 19, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin); |
fe4da5cc | 337 | } |
338 |