]>
Commit | Line | Data |
---|---|---|
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.10 2000/11/24 13:00:37 morsch | |
19 | - Geometry and materials imported from euclid output | |
20 | - include comments | |
21 | - better struturing of volume tree | |
22 | - improved version of flange close to front absorber | |
23 | - more realistic pump materials | |
24 | - undulated beam pipe imported from v3. | |
25 | ||
26 | Revision 1.9 2000/10/02 21:28:15 fca | |
27 | Removal of useless dependecies via forward declarations | |
28 | ||
29 | Revision 1.8 2000/06/11 12:37:01 morsch | |
30 | Coding rule violations corrected | |
31 | ||
32 | Revision 1.7 2000/02/23 16:25:24 fca | |
33 | AliVMC and AliGeant3 classes introduced | |
34 | ReadEuclid moved from AliRun to AliModule | |
35 | ||
36 | Revision 1.6 1999/09/29 09:24:30 fca | |
37 | Introduction of the Copyright and cvs Log | |
38 | ||
39 | */ | |
40 | ||
41 | //////////////////////////////////////////////// | |
42 | // Beam pipe class / | |
43 | //////////////////////////////////////////////// | |
44 | ||
45 | #include "AliPIPEv0.h" | |
46 | #include "AliRun.h" | |
47 | #include "AliConst.h" | |
48 | #include "AliMagF.h" | |
49 | #include "AliMC.h" | |
50 | #include "TSystem.h" | |
51 | ||
52 | ClassImp(AliPIPEv0) | |
53 | ||
54 | //_____________________________________________________________________________ | |
55 | AliPIPEv0::AliPIPEv0() | |
56 | { | |
57 | // Constructor | |
58 | } | |
59 | ||
60 | //_____________________________________________________________________________ | |
61 | AliPIPEv0::AliPIPEv0(const char *name, const char *title) | |
62 | : AliPIPE(name,title) | |
63 | { | |
64 | // Constructor | |
65 | } | |
66 | ||
67 | ||
68 | //___________________________________________ | |
69 | void AliPIPEv0::CreateGeometry() | |
70 | { | |
71 | //Begin_Html | |
72 | /* | |
73 | <img src="picts/pipe.gif"> | |
74 | */ | |
75 | //End_Html | |
76 | ||
77 | ||
78 | //Begin_Html | |
79 | /* | |
80 | <img src="picts/tree_pipe.gif"> | |
81 | */ | |
82 | //End_Html | |
83 | ||
84 | printf("Create PIPEv0 geometry \n"); | |
85 | ||
86 | ||
87 | Int_t *idtmed = fIdtmed->GetArray(); | |
88 | Float_t ppcon[36], ptube[3], pbox[3]; | |
89 | Int_t i=0; | |
90 | ||
91 | enum {kC=6, kAlu=9, kInox=19, kGetter=20, kBe=5, kVac=16, kAir=15, kAlBe=21}; | |
92 | ||
93 | Int_t idrotm[2099]; | |
94 | AliMatrix(idrotm[2001],90.,240., 0., 0., 90.,150.); | |
95 | AliMatrix(idrotm[2002],90., 0., 0., 0., 90.,270.); | |
96 | AliMatrix(idrotm[2003],90.,120., 0., 0., 90., 30.); | |
97 | AliMatrix(idrotm[2004],90.,315., 90., 45., 0., 0.); | |
98 | AliMatrix(idrotm[2005],90.,270., 90., 0., 0., 0.); | |
99 | AliMatrix(idrotm[2006],90.,225., 90.,315., 0., 0.); | |
100 | AliMatrix(idrotm[2007],90.,180., 90.,270., 0., 0.); | |
101 | AliMatrix(idrotm[2008],90.,135., 90.,225., 0., 0.); | |
102 | AliMatrix(idrotm[2009],90., 90., 90.,180., 0., 0.); | |
103 | AliMatrix(idrotm[2010],90., 45., 90.,135., 0., 0.); | |
104 | idrotm[2011] = 0; | |
105 | AliMatrix(idrotm[2012],90.,180., 90., 90.,180., 0.); | |
106 | AliMatrix(idrotm[2013],90., 0., 90., 90.,180., 0.); | |
107 | ||
108 | ||
109 | ||
110 | // | |
111 | // The peam pipe up to the Front Absorber | |
112 | // | |
113 | // Mother Volume QBPM | |
114 | ppcon[0] = 0; | |
115 | ppcon[1] = 360; | |
116 | ppcon[2] = 11; | |
117 | // 1: | |
118 | ppcon[3] = - 90; | |
119 | ppcon[4] = 0; | |
120 | ppcon[5] = 5.8; | |
121 | // 2 | |
122 | ppcon[6] = - 81.0; | |
123 | ppcon[7] = 0.; | |
124 | ppcon[8] = 5.8; | |
125 | // 3 | |
126 | ppcon[9] = - 81.; | |
127 | ppcon[10] = 0.; | |
128 | ppcon[11] = 4.22; | |
129 | // 4 | |
130 | ppcon[12] = - 28.00; | |
131 | ppcon[13] = 0; | |
132 | ppcon[14] = 4.22; | |
133 | // 5 | |
134 | ppcon[15] = - 28.00; | |
135 | ppcon[16] = 0; | |
136 | ppcon[17] = 3.2; | |
137 | // 6 | |
138 | ppcon[18] = 0; | |
139 | ppcon[19] = 0; | |
140 | ppcon[20] = 3.2; | |
141 | // 7 | |
142 | ppcon[21] = 28.00; | |
143 | ppcon[22] = 0; | |
144 | ppcon[23] = 3.2; | |
145 | // 8 | |
146 | ppcon[24] = 28.00; | |
147 | ppcon[25] = 0; | |
148 | ppcon[26] = 4.22; | |
149 | // 9 | |
150 | ppcon[27] = 250; | |
151 | ppcon[28] = 0; | |
152 | ppcon[29] = 4.22; | |
153 | // 10 | |
154 | ppcon[30] = 250; | |
155 | ppcon[31] = 0; | |
156 | ppcon[32] = 5; | |
157 | // 11 | |
158 | ppcon[33] = 800; | |
159 | ppcon[34] = 0; | |
160 | ppcon[35] = 5; | |
161 | ||
162 | gMC->Gsvolu("QBPM", "PCON", idtmed[kAir], ppcon, 36); | |
163 | ||
164 | // | |
165 | // The Vacuum | |
166 | ptube[0] = 0.0; | |
167 | ptube[1] = 2.9; | |
168 | ptube[2] = 445.0; | |
169 | ||
170 | gMC->Gsvolu("QBVA","TUBE", idtmed[kVac], ptube, 3); | |
171 | gMC->Gspos("QBVA", 1, "QBPM", 0., 0., 355., 0, "ONLY"); | |
172 | // | |
173 | // Be Pipe in central Alice | |
174 | ptube[0] = 2.90; | |
175 | ptube[1] = 3.00; | |
176 | ptube[2] = 28.25; | |
177 | ||
178 | gMC->Gsvolu("QBBE","TUBE", idtmed[kBe], ptube, 3); | |
179 | gMC->Gspos("QBBE", 1, "QBPM", 0., 0., 0., 0, "ONLY"); | |
180 | ||
181 | // | |
182 | // Metal-Metal Transitions | |
183 | // | |
184 | // Be-Inox | |
185 | // Mother Volume | |
186 | ptube[0] = 2.900; | |
187 | ptube[1] = 4.200; | |
188 | ptube[2] = 2.750; | |
189 | gMC->Gsvolu("QBT1","TUBE", idtmed[kAir], ptube, 3); | |
190 | gMC->Gspos("QBT1", 1, "QBPM", 0., 0., 28.25+ptube[2], 0, "ONLY"); | |
191 | ||
192 | ptube[0] = 2.900; | |
193 | ptube[1] = 3.150; | |
194 | ptube[2] = 0.375; | |
195 | // | |
196 | // Be-part | |
197 | gMC->Gsvolu("QB01","TUBE", idtmed[kInox], ptube, 3); | |
198 | ||
199 | ptube[1] = 3.000; | |
200 | gMC->Gsvolu("QBA1","TUBE", idtmed[kBe], ptube, 3); | |
201 | ||
202 | gMC->Gspos("QBA1", 1, "QB01", 0., 0., 0, 0, "ONLY"); | |
203 | gMC->Gspos("QB01", 1, "QBT1", 0., 0.,-2.75+ptube[2], 0, "ONLY"); | |
204 | ||
205 | // Inox-part | |
206 | // | |
207 | ptube[0] = 2.900; | |
208 | ptube[1] = 3.150; | |
209 | ptube[2] = 2.375; | |
210 | ||
211 | gMC->Gsvolu("QB03","TUBE", idtmed[kInox], ptube, 3); | |
212 | gMC->Gspos("QB03", 1, "QBT1", 0., 0.,-2.+ptube[2], 0, "ONLY"); | |
213 | ||
214 | ||
215 | ptube[0] = 3.15; | |
216 | ptube[1] = 3.50; | |
217 | ptube[2] = 0.10; | |
218 | ||
219 | gMC->Gsvolu("QB05","TUBE", idtmed[kInox], ptube, 3); | |
220 | gMC->Gspos("QB05", 1, "QBT1", 0., 0., 2.55+ptube[2], 0, "ONLY"); | |
221 | ||
222 | ||
223 | // Fixations | |
224 | ptube[0] = 0.0; | |
225 | ptube[1] = 0.1; | |
226 | ptube[2] = 0.5; | |
227 | ||
228 | gMC->Gsvolu("QB08","TUBE", idtmed[kInox], ptube, 3); | |
229 | gMC->Gspos("QB08", 1 ,"QBT1", 0.000, 3.650, -1.25, idrotm[2002], "ONLY"); | |
230 | gMC->Gspos("QB08", 2 ,"QBT1", 3.161, -1.825, -1.25, idrotm[2001], "ONLY"); | |
231 | gMC->Gspos("QB08", 3 ,"QBT1", -3.161, -1.825, -1.25, idrotm[2003], "ONLY"); | |
232 | ||
233 | // Carbon ring | |
234 | ptube[0] = 3.15; | |
235 | ptube[1] = 4.10; | |
236 | ptube[2] = 0.55; | |
237 | ||
238 | gMC->Gsvolu("QB07","TUBE", idtmed[kC], ptube, 3); | |
239 | ||
240 | ptube[0] = 3.15; | |
241 | ptube[1] = 3.50; | |
242 | ptube[2] = 0.10; | |
243 | gMC->Gsvolu("QBA7","TUBE", idtmed[kInox], ptube, 3); | |
244 | gMC->Gspos("QBA7", 1, "QB07", 0.0, 0.0, 0.55-0.2, 0, "ONLY"); | |
245 | gMC->Gspos("QB07", 1, "QBT1", 0.0, 0.0, 2., 0, "ONLY"); | |
246 | ||
247 | // | |
248 | // Be-Alu | |
249 | // Mother Volume | |
250 | ptube[0] = 2.900; | |
251 | ptube[1] = 4.200; | |
252 | ptube[2] = 2.750; | |
253 | gMC->Gsvolu("QBT2","TUBE", idtmed[kAir], ptube, 3); | |
254 | gMC->Gspos("QBT2", 1, "QBPM", 0., 0., -28.25-ptube[2], idrotm[2012], "ONLY"); | |
255 | ||
256 | ptube[0] = 2.900; | |
257 | ptube[1] = 3.150; | |
258 | ptube[2] = 0.375; | |
259 | // | |
260 | // Be-part | |
261 | gMC->Gsvolu("QB02","TUBE", idtmed[kAlu], ptube, 3); | |
262 | ||
263 | ptube[1] = 3.000; | |
264 | gMC->Gsvolu("QBA2","TUBE", idtmed[kBe], ptube, 3); | |
265 | ||
266 | gMC->Gspos("QBA2", 1, "QB01", 0., 0., 0, 0, "ONLY"); | |
267 | gMC->Gspos("QB02", 1, "QBT2", 0., 0.,-2.75+ptube[2], 0, "ONLY"); | |
268 | ||
269 | // Alu part | |
270 | ptube[0] = 2.900; | |
271 | ptube[1] = 3.150; | |
272 | ptube[2] = 2.375; | |
273 | ||
274 | gMC->Gsvolu("QB04","TUBE", idtmed[kAlu], ptube, 3); | |
275 | gMC->Gspos("QB04", 1, "QBT2", 0., 0.,-2.+ptube[2], 0, "ONLY"); | |
276 | ||
277 | ||
278 | ptube[0] = 3.15; | |
279 | ptube[1] = 3.50; | |
280 | ptube[2] = 0.10; | |
281 | ||
282 | gMC->Gsvolu("QB06","TUBE", idtmed[kAlu], ptube, 3); | |
283 | gMC->Gspos("QB06", 1, "QBT2", 0., 0., 2.55+ptube[2], 0, "ONLY"); | |
284 | ||
285 | ||
286 | // Fixation | |
287 | ptube[0] = 0.0; | |
288 | ptube[1] = 0.1; | |
289 | ptube[2] = 0.5; | |
290 | ||
291 | gMC->Gsvolu("QBA8","TUBE", idtmed[kInox], ptube, 3); | |
292 | gMC->Gspos("QBA8", 1 ,"QBT2", 0.000, 3.650, -1.25, idrotm[2002], "ONLY"); | |
293 | gMC->Gspos("QBA8", 2 ,"QBT2", 3.161, -1.825, -1.25, idrotm[2001], "ONLY"); | |
294 | gMC->Gspos("QBA8", 3 ,"QBT2", -3.161, -1.825, -1.25, idrotm[2003], "ONLY"); | |
295 | ||
296 | // Carbon ring | |
297 | ptube[0] = 3.15; | |
298 | ptube[1] = 4.10; | |
299 | ptube[2] = 0.55; | |
300 | ||
301 | gMC->Gsvolu("QB77","TUBE", idtmed[kC], ptube, 3); | |
302 | ||
303 | ptube[0] = 3.15; | |
304 | ptube[1] = 3.50; | |
305 | ptube[2] = 0.10; | |
306 | gMC->Gsvolu("QBB7","TUBE", idtmed[kInox], ptube, 3); | |
307 | gMC->Gspos("QBB7", 1, "QB77", 0.0, 0.0, 0.55-0.2, 0, "ONLY"); | |
308 | gMC->Gspos("QB77", 1, "QBT2", 0.0, 0.0, 2., 0, "ONLY"); | |
309 | ||
310 | ||
311 | ||
312 | // | |
313 | // 1st section Alu non-absorber side | |
314 | ptube[0] = 2.9; | |
315 | ptube[1] = 3.0; | |
316 | ptube[2] = 85.175; | |
317 | ||
318 | gMC->Gsvolu("QB10","TUBE", idtmed[kAlu], ptube, 3); | |
319 | gMC->Gspos("QB10", 1, "QBPM", 0.0, 0.0, 118.925, 0, "ONLY"); | |
320 | // | |
321 | // Support rollers: non absorber side | |
322 | // | |
323 | // Mother volume | |
324 | ptube[0] = 3.2; | |
325 | ptube[1] = 4.8; | |
326 | ptube[2] = 3.0; | |
327 | gMC->Gsvolu("QBRM","TUBE", idtmed[kAir], ptube, 3); | |
328 | gMC->Gspos("QBRM", 1, "QBPM", 0., 0., 654.8, 0, "ONLY"); | |
329 | gMC->Gspos("QBRM", 2, "QBPM", 0., 0., 254.8, 0, "ONLY"); | |
330 | ||
331 | ptube[0] = 0.0; | |
332 | ptube[1] = 0.7; | |
333 | ptube[2] = 3.0; | |
334 | ||
335 | gMC->Gsvolu("QB30","TUBE", idtmed[kInox], ptube, 3); | |
336 | ||
337 | for (i=0; i<8; i++) { | |
338 | Float_t phi = 45.+i*45.*kDegrad; | |
339 | Float_t xpos = 4.*TMath::Sin(phi); | |
340 | Float_t ypos = 4.*TMath::Cos(phi); | |
341 | gMC->Gspos("QB30", i+1, "QBRM", xpos, ypos, 0, idrotm[2004+i], "ONLY"); | |
342 | } | |
343 | ||
344 | // | |
345 | // Flanges: non absorber side | |
346 | ptube[0] = 3.0; | |
347 | ptube[1] = 4.9; | |
348 | ptube[2] = 2.2; | |
349 | ||
350 | gMC->Gsvolu("QB29","TUBE", idtmed[kInox], ptube, 3); | |
351 | gMC->Gspos("QB29", 2, "QBPM", 0.0, 0.0, 654.8, 0, "ONLY"); | |
352 | gMC->Gspos("QB29", 1, "QBPM", 0.0, 0.0, 254.8, 0, "ONLY"); | |
353 | // | |
354 | // Inox beam pipe: non absorber side | |
355 | ||
356 | ptube[0] = 2.90; | |
357 | ptube[1] = 2.98; | |
358 | // ptube[2] = 275.05; // without undulated beampipe | |
359 | ptube[2] = 42.55; | |
360 | ||
361 | gMC->Gsvolu("QB28","TUBE", idtmed[kInox], ptube, 3); | |
362 | // gMC->Gspos("QB28", 1, "QBPM", 0.0, 0.0, 524.95, 0, "ONLY"); // without undulated beam pipe | |
363 | gMC->Gspos("QB28", 1, "QBPM", 0.0, 0.0, 249.9+ptube[2], 0, "ONLY"); | |
364 | ||
365 | // | |
366 | // Undulated beam pipe | |
367 | // | |
368 | /* | |
369 | Float_t pitch=0.25; | |
370 | Float_t thick=0.015; | |
371 | Float_t zundul=171; | |
372 | Float_t rundul=3.0; | |
373 | char cn48[][5]={"QN21","QN22","QN23","QN24","QN25","QN26","QN27","QN28"}; | |
374 | ||
375 | Undulation("QUND",pitch,thick,zundul,rundul,cn48); | |
376 | gMC->Gspos("QUND", 1, "QBPM", 0., 0., 335.+zundul, 0, "ONLY"); | |
377 | */ | |
378 | ||
379 | // Al-Be (40-60 wgt%, rho=2.7 g/cm**3) beam pipe | |
380 | // | |
381 | ptube[0] = 2.90; | |
382 | ptube[1] = 3.05; | |
383 | ptube[2] = 171.0; | |
384 | ||
385 | gMC->Gsvolu("QBAB","TUBE", idtmed[kAlBe], ptube, 3); | |
386 | gMC->Gspos("QBAB", 1, "QBPM", 0.0, 0.0, 335.+ptube[2], 0, "ONLY"); | |
387 | ||
388 | ||
389 | // | |
390 | // missing pieces of inox pipe | |
391 | // | |
392 | ptube[0] = 2.90; | |
393 | ptube[1] = 2.98; | |
394 | ptube[2] = 61.55; | |
395 | ||
396 | gMC->Gsvolu("QB48","TUBE", idtmed[kInox], ptube, 3); | |
397 | gMC->Gspos("QB48", 1, "QBPM", 0.0, 0.0, 800.-ptube[2], 0, "ONLY"); | |
398 | ||
399 | ptube[0] = 2.90; | |
400 | ptube[1] = 2.98; | |
401 | ptube[2] = 1.0; | |
402 | ||
403 | gMC->Gsvolu("QB27","TUBE", idtmed[kInox], ptube, 3); | |
404 | gMC->Gspos("QB27", 1, "QBPM", 0.0, 0.0, 208.1, 0, "ONLY"); | |
405 | // | |
406 | ptube[0] = 2.90; | |
407 | ptube[1] = 3.15; | |
408 | ptube[2] = 1.5; | |
409 | ||
410 | gMC->Gsvolu("QB26","TUBE", idtmed[kInox], ptube, 3); | |
411 | gMC->Gspos("QB26", 1, "QBPM", 0.0, 0.0, 205.6, 0, "ONLY"); | |
412 | ||
413 | // | |
414 | ptube[0] = 3.0; | |
415 | ptube[1] = 3.15; | |
416 | ptube[2] = 2.75; | |
417 | ||
418 | gMC->Gsvolu("QB25","TUBE", idtmed[kAlu], ptube, 3); | |
419 | gMC->Gspos("QB25", 1, "QBPM", 0.0, 0.0, 201.35, 0, "ONLY"); | |
420 | ||
421 | // | |
422 | // Bellows | |
423 | // | |
424 | // Mother Volume | |
425 | ptube[0] = 2.90; | |
426 | ptube[1] = 3.75; | |
427 | ptube[2] = 14.70; | |
428 | gMC->Gsvolu("QBE0","TUBE", idtmed[kAir], ptube, 3); | |
429 | gMC->Gspos("QBE0", 2 ,"QBPM", 0.0, 0.0, 229.5, 0, "ONLY"); | |
430 | gMC->Gspos("QBE0", 1 ,"QBPM", 0.0, 0.0, -61.3, 0, "ONLY"); | |
431 | ||
432 | ptube[2] = 5.70; | |
433 | ||
434 | gMC->Gsvolu("QBEM","TUBE", idtmed[kAir], ptube, 3); | |
435 | gMC->Gspos("QBEM", 2 ,"QBE0", 0.0, 0.0,-14.7, 0 , "ONLY"); | |
436 | gMC->Gspos("QBEM", 1 ,"QBE0", 0.0, 0.0, 14.7,idrotm[2012], "ONLY"); | |
437 | ||
438 | ptube[0] = 2.90; | |
439 | ptube[1] = 3.25; | |
440 | ptube[2] = 3.70; | |
441 | ||
442 | gMC->Gsvolu("QB19","TUBE", idtmed[kVac], ptube, 3); | |
443 | gMC->Gspos("QB19", 1 ,"QBEM", 0.0, 0.0, 0.5, 0 , "ONLY"); | |
444 | ||
445 | ptube[0] = 3.25; | |
446 | ptube[1] = 3.74; | |
447 | ptube[2] = 0.095; | |
448 | ||
449 | gMC->Gsvolu("QB18","TUBE", idtmed[kVac], ptube, 3); | |
450 | for (i=0; i<15; i++) { | |
451 | gMC->Gspos("QB18", i+1, "QBEM", 0.0, 0.0, 3.3-i*0.4, 0, "ONLY"); | |
452 | } | |
453 | ||
454 | ptube[0] = 2.90; | |
455 | ptube[1] = 3.00; | |
456 | ptube[2] = 1.20; | |
457 | ||
458 | gMC->Gsvolu("QB21","TUBE", idtmed[kVac], ptube, 3); | |
459 | gMC->Gspos("QB21", 1 ,"QBEM", 0.0, 0.0, -4.5, 0 , "ONLY"); | |
460 | ||
461 | ptube[0] = 3.250; | |
462 | ptube[1] = 3.750; | |
463 | ptube[2] = 0.005; | |
464 | ||
465 | gMC->Gsvolu("QB15","TUBE", idtmed[kInox], ptube, 3); | |
466 | for (i=0; i<30; i++) { | |
467 | gMC->Gspos("QB15", i+1, "QBEM", 0.0, 0.0, 3.4-i*0.2, 0, "ONLY"); | |
468 | } | |
469 | ||
470 | ptube[0] = 3.740; | |
471 | ptube[1] = 3.750; | |
472 | ptube[2] = 0.095; | |
473 | ||
474 | gMC->Gsvolu("QB16","TUBE", idtmed[kInox], ptube, 3); | |
475 | for (i=0; i<15; i++) { | |
476 | gMC->Gspos("QB16", i+1, "QBEM", 0.0, 0.0, 3.3-i*0.4, 0, "ONLY"); | |
477 | } | |
478 | ||
479 | ptube[0] = 3.250; | |
480 | ptube[1] = 3.260; | |
481 | ptube[2] = 0.095; | |
482 | ||
483 | gMC->Gsvolu("QB17","TUBE", idtmed[kInox], ptube, 3); | |
484 | for (i=0; i<14; i++) { | |
485 | gMC->Gspos("QB17", i+1, "QBEM", 0.0, 0.0, 3.1-i*0.4, 0, "ONLY"); | |
486 | } | |
487 | ||
488 | ptube[0] = 3.250; | |
489 | ptube[1] = 3.260; | |
490 | ptube[2] = 0.3975; | |
491 | ||
492 | gMC->Gsvolu("QB14","TUBE", idtmed[kInox], ptube, 3); | |
493 | gMC->Gspos("QB14", 2 ,"QBEM", 0.0, 0.0, -2.8025, 0 , "ONLY"); | |
494 | gMC->Gspos("QB14", 1 ,"QBEM", 0.0, 0.0, 3.8025, 0 , "ONLY"); | |
495 | ||
496 | ptube[0] = 2.900; | |
497 | ptube[1] = 3.260; | |
498 | ptube[2] = 0.050; | |
499 | ||
500 | gMC->Gsvolu("QB13","TUBE", idtmed[kInox], ptube, 3); | |
501 | gMC->Gspos("QB13", 2 ,"QBEM", 0.0, 0.0, -3.25, 0 , "ONLY"); | |
502 | gMC->Gspos("QB13", 1 ,"QBEM", 0.0, 0.0, 4.25, 0 , "ONLY"); | |
503 | ||
504 | ptube[0] = 2.900; | |
505 | ptube[1] = 3.000; | |
506 | ptube[2] = 0.700; | |
507 | ||
508 | gMC->Gsvolu("QB12","TUBE", idtmed[kInox], ptube, 3); | |
509 | gMC->Gspos("QB12", 1 ,"QBEM", 0.0, 0.0, 5.0, 0, "ONLY"); | |
510 | ||
511 | ||
512 | // | |
513 | // pipe between Bellows | |
514 | ptube[0] = 2.9; | |
515 | ptube[1] = 3.0; | |
516 | ptube[2] = 9.0; | |
517 | gMC->Gsvolu("QB23","TUBE", idtmed[kInox], ptube, 3); | |
518 | gMC->Gspos("QB23", 1 ,"QBE0", 0.0, 0.0, 0.0, 0, "ONLY"); | |
519 | ||
520 | // | |
521 | // End Bellow | |
522 | ||
523 | // Absorber side | |
524 | // | |
525 | // beam pipe between metal-metal transition and bellows | |
526 | ptube[0] = 2.9; | |
527 | ptube[1] = 3.0; | |
528 | ptube[2] = 3.575; | |
529 | ||
530 | gMC->Gsvolu("QB24","TUBE", idtmed[kInox], ptube, 3); | |
531 | gMC->Gspos("QB24", 1 ,"QBPM", 0.0, 0.0, -37.325, 0, "ONLY"); | |
532 | // | |
533 | // beam pipe between flange and bellows | |
534 | ptube[0] = 2.90; | |
535 | ptube[1] = 3.00; | |
536 | ptube[2] = 0.45; | |
537 | ||
538 | gMC->Gsvolu("QB22","TUBE", idtmed[kInox], ptube, 3); | |
539 | gMC->Gspos("QB22", 1 ,"QBPM", 0.0, 0.0, -82.15, 0, "ONLY"); | |
540 | ||
541 | // | |
542 | // Flange | |
543 | // | |
544 | // Mother Volume | |
545 | ptube[0] = 2.900; | |
546 | ptube[1] = 4.300; | |
547 | ptube[2] = 1.400; | |
548 | ||
549 | gMC->Gsvolu("QFA0","TUBE", idtmed[kAlu], ptube, 3); | |
550 | gMC->Gspos("QFA0", 1 ,"QBPM", 0.0, 0.0, -84.0, 0, "ONLY"); | |
551 | // | |
552 | // inner Inox piece | |
553 | ptube[0] = 2.900; | |
554 | ptube[1] = 3.500; | |
555 | ptube[2] = 0.450; | |
556 | gMC->Gsvolu("QFA1","TUBE", idtmed[kInox], ptube, 3); | |
557 | gMC->Gspos("QFA1", 1 ,"QFA0", 0.0, 0.0, 0.225, 0, "ONLY"); | |
558 | // | |
559 | // 8 x M5 Inox | |
560 | ptube[0] = 0.000; | |
561 | ptube[1] = 0.250; | |
562 | ptube[2] = 1.400; | |
563 | gMC->Gsvolu("QFA2","TUBE", idtmed[kInox], ptube, 3); | |
564 | for (i=0; i<8; i++) { | |
565 | Float_t phi = i*45.*kDegrad; | |
566 | Float_t xpos = 3.9*TMath::Sin(phi); | |
567 | Float_t ypos = 3.9*TMath::Cos(phi); | |
568 | gMC->Gspos("QFA2", i+1, "QFA0", xpos, ypos, 0., 0, "ONLY"); | |
569 | } | |
570 | ||
571 | ||
572 | ptube[0] = 2.900; | |
573 | ptube[1] = 3.000; | |
574 | ptube[2] = 2.300; | |
575 | ||
576 | gMC->Gsvolu("QB32","TUBE", idtmed[kInox], ptube, 3); | |
577 | gMC->Gspos("QB32", 1 ,"QBPM", 0.0, 0.0, -90.+2.3, 0, "ONLY"); | |
578 | ||
579 | // | |
580 | // The Ion Pump | |
581 | // --- Place the PIPE ghost volume (QBPM) in its mother volume (ALIC) | |
582 | // and make it invisible | |
583 | // | |
584 | ||
585 | ||
586 | gMC->Gspos("QBPM",1,"ALIC",0,0,0,idrotm[2013], "ONLY"); | |
587 | ||
588 | // | |
589 | // Ion Pump | |
590 | // | |
591 | ptube[0] = 5.; | |
592 | ptube[1] = 55.; | |
593 | ptube[2] = 20.; | |
594 | gMC->Gsvolu("QIPM","TUBE", idtmed[kAir], ptube, 3); | |
595 | // | |
596 | // Getters -> | |
597 | pbox[0] = 6.50; | |
598 | pbox[1] = 6.75; | |
599 | pbox[2] = 15.60; | |
600 | gMC->Gsvolu("QI32","BOX", idtmed[kInox], pbox, 3); | |
601 | ||
602 | pbox[0] = 5.90; | |
603 | pbox[1] = 6.15; | |
604 | pbox[2] = 15.00; | |
605 | gMC->Gsvolu("QI42","BOX", idtmed[kGetter], pbox, 3); | |
606 | gMC->Gspos("QI42", 1, "QI32", 0.0, 0.0, 0.0, 0, "ONLY"); | |
607 | // <- | |
608 | ||
609 | ptube[0] = 0.0; | |
610 | ptube[1] = 19.0; | |
611 | ptube[2] = 2.5; | |
612 | gMC->Gsvolu("QI33","TUBE", idtmed[kInox], ptube, 3); | |
613 | ||
614 | ||
615 | ptube[0] = 0.0; | |
616 | ptube[1] = 15.0; | |
617 | ptube[2] = 2.5; | |
618 | gMC->Gsvolu("QI43","TUBE", idtmed[kInox], ptube, 3); | |
619 | gMC->Gspos("QI43", 1, "QI33", 0.0, 0.0, 0.0, 0, "ONLY"); | |
620 | // | |
621 | // Connecting tube -> | |
622 | ptube[0] = 0.0; | |
623 | ptube[1] = 5.4; | |
624 | ptube[2] = 13.7; | |
625 | gMC->Gsvolu("QI34","TUBE", idtmed[kInox], ptube, 3); | |
626 | ||
627 | ptube[0] = 0.0; | |
628 | ptube[1] = 4.8; | |
629 | ptube[2] = 13.7; | |
630 | gMC->Gsvolu("QI44","TUBE", idtmed[kInox], ptube, 3); | |
631 | gMC->Gspos("QI44", 1, "QI34", 0.0, 0.0, 0.0, 0, "ONLY"); | |
632 | // <- | |
633 | ||
634 | // | |
635 | // Flange -> | |
636 | ptube[0] = 0.00; | |
637 | ptube[1] = 7.30; | |
638 | ptube[2] = 2.15; | |
639 | gMC->Gsvolu("QI35","TUBE", idtmed[kInox], ptube, 3); | |
640 | ||
641 | ptube[0] = 4.80; | |
642 | ptube[1] = 7.30; | |
643 | ptube[2] = 2.15; | |
644 | gMC->Gsvolu("QI45","TUBE", idtmed[kAir], ptube, 3); | |
645 | gMC->Gspos("QI45", 1, "QI35", 0.0, 0.0, 0.0, 0, "ONLY"); | |
646 | // <- | |
647 | ||
648 | gMC->Gspos("QI32", 1, "QIPM", 0.0, -44.25, 0.0, 0, "ONLY"); | |
649 | gMC->Gspos("QI33", 1, "QIPM", 0.0, -35.00, 0.0,idrotm[2002], "ONLY"); | |
650 | gMC->Gspos("QI34", 1, "QIPM", 0.0, -18.80, 0.0,idrotm[2002], "ONLY"); | |
651 | gMC->Gspos("QI35", 1, "QIPM", 0.0, -24.35, 0.0,idrotm[2002], "ONLY"); | |
652 | // | |
653 | // PLACE ION PUMP (QIPM) AT Z=-385. | |
654 | // | |
655 | gMC->Gspos("QIPM",1,"ALIC",0,0,-385,idrotm[2013], "ONLY"); | |
656 | ||
657 | ||
658 | gMC->Gsatt("QIPM", "SEEN", 0); | |
659 | gMC->Gsatt("QBPM", "SEEN", 0); | |
660 | gMC->Gsatt("QBEM", "SEEN", 0); | |
661 | } | |
662 | ||
663 | ||
664 | //___________________________________________ | |
665 | void AliPIPEv0::DrawModule() | |
666 | { | |
667 | // Set drawing options | |
668 | ; | |
669 | } | |
670 | ||
671 | //___________________________________________ | |
672 | void AliPIPEv0::CreateMaterials() | |
673 | { | |
674 | printf("Create PIPEv0 materials \n"); | |
675 | // | |
676 | // Define materials for muon absorber | |
677 | // | |
678 | Int_t isxfld = gAlice->Field()->Integ(); | |
679 | Float_t sxmgmx = gAlice->Field()->Max(); | |
680 | // Steel (Inox) | |
681 | Float_t asteel[4] = { 55.847,51.9961,58.6934,28.0855 }; | |
682 | Float_t zsteel[4] = { 26.,24.,28.,14. }; | |
683 | Float_t wsteel[4] = { .715,.18,.1,.005 }; | |
684 | // AlBe - alloy | |
685 | Float_t aAlBe[2] = { 26.98, 9.01}; | |
686 | Float_t zAlBe[2] = { 13.00, 4.00}; | |
687 | Float_t wAlBe[2] = { 0.4, 0.6}; | |
688 | ||
689 | // | |
690 | // Berillium | |
691 | AliMaterial(5, "BERILLIUM$", 9.01, 4., 1.848, 35.3, 36.7); | |
692 | // | |
693 | // Carbon | |
694 | AliMaterial(6, "CARBON$ ", 12.01, 6., 2.265, 18.8, 49.9); | |
695 | // | |
696 | // Aluminum | |
697 | AliMaterial(9, "ALUMINIUM$", 26.98, 13., 2.7, 8.9, 37.2); | |
698 | // | |
699 | // Air | |
700 | AliMaterial(15, "AIR$ ", 14.61, 7.3, .001205, 30423.24, 67500.); | |
701 | // | |
702 | // Vacuum | |
703 | AliMaterial(16, "VACUUM$ ", 1e-16, 1e-16, 1e-16, 1e16, 1e16); | |
704 | // | |
705 | // stainless Steel | |
706 | AliMixture(19, "STAINLESS STEEL$", asteel, zsteel, 7.88, 4, wsteel); | |
707 | // | |
708 | // reduced density steel to approximate pump getter material | |
709 | AliMixture(20, "GETTER$", asteel, zsteel, 1.00, 4, wsteel); | |
710 | // Al-Be alloy | |
711 | // | |
712 | AliMixture(21, "AlBe$", aAlBe, zAlBe, 2.07, 2, wAlBe); | |
713 | // | |
714 | // **************** | |
715 | // Defines tracking media parameters. | |
716 | // | |
717 | Float_t epsil = .001; // Tracking precision, | |
718 | Float_t stemax = -0.01; // Maximum displacement for multiple scat | |
719 | Float_t tmaxfd = -20.; // Maximum angle due to field deflection | |
720 | Float_t deemax = -.3; // Maximum fractional energy loss, DLS | |
721 | Float_t stmin = -.8; | |
722 | // *************** | |
723 | // | |
724 | // Beryllium | |
725 | ||
726 | AliMedium(5, "BE", 5, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin); | |
727 | ||
728 | // Carbon | |
729 | AliMedium(6, "C", 6, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin); | |
730 | // | |
731 | // Aluminum | |
732 | AliMedium(9, "ALU", 9, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin); | |
733 | // | |
734 | // Air | |
735 | AliMedium(15, "AIR", 15, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin); | |
736 | // | |
737 | // Vacuum | |
738 | AliMedium(16, "VACUUM", 16, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin); | |
739 | // | |
740 | // Steel | |
741 | AliMedium(19, "INOX", 19, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin); | |
742 | // | |
743 | // Getter | |
744 | AliMedium(20, "GETTER", 20, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin); | |
745 | // | |
746 | // AlBe - Aloy | |
747 | AliMedium(21, "AlBe" , 21, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin); | |
748 | ||
749 | } | |
750 | ||
751 | ||
752 | void AliPIPEv0::Undulation(char *undul, Float_t pitch, Float_t thick, | |
753 | Float_t zundul, Float_t rundul, char (*cone)[5]) | |
754 | { | |
755 | // | |
756 | // RUNDUL : Internal radius of the undulated chamber | |
757 | // THICK : material thickness | |
758 | // PITCH : one-QUARTER wave of undulation (cm) | |
759 | // ZUNDUL : half length (cm) | |
760 | // | |
761 | // The undulated structure is desgned as a superposition of eight CONES | |
762 | // of suitable sizes, where the inner/outer radius of the cone increases, | |
763 | // then decreases, each half of the wave is assumed to be a semicircle, | |
764 | // which allows to calculate the thickness and the radii of the cone, by | |
765 | // dividing the semicircle into 4 parts of equal arc length. | |
766 | // Thus apear the constants 0.293 and 0.707. | |
767 | // | |
768 | ||
769 | const Float_t kConst1 = .293; | |
770 | const Float_t kConst2 = .707; | |
771 | ||
772 | // Local variables | |
773 | Int_t j, nwave; | |
774 | Float_t dcone1[5], dcone2[5], dcone3[5], dcone4[5], dcone5[5], | |
775 | dcone6[5], dcone7[5], dcone8[5]; | |
776 | Float_t xc, yc, zc, dundul[3]; | |
777 | Int_t *idtmed = fIdtmed->GetArray()-1999; | |
778 | ||
779 | // Function Body | |
780 | ||
781 | dcone1[0] = kConst1 * pitch / 2; | |
782 | dcone1[1] = rundul; | |
783 | dcone1[2] = dcone1[1] + thick; | |
784 | dcone1[3] = dcone1[1] + kConst2 * pitch; | |
785 | dcone1[4] = dcone1[3] + thick; | |
786 | ||
787 | dcone2[0] = kConst2 * pitch / 2; | |
788 | dcone2[1] = dcone1[3]; | |
789 | dcone2[2] = dcone1[4]; | |
790 | dcone2[3] = dcone2[1] + kConst1 * pitch; | |
791 | dcone2[4] = dcone2[3] + thick; | |
792 | ||
793 | dcone3[0] = dcone2[0]; | |
794 | dcone3[1] = dcone2[3]; | |
795 | dcone3[2] = dcone2[4]; | |
796 | dcone3[3] = dcone2[1]; | |
797 | dcone3[4] = dcone2[2]; | |
798 | ||
799 | dcone4[0] = dcone1[0]; | |
800 | dcone4[1] = dcone1[3]; | |
801 | dcone4[2] = dcone1[4]; | |
802 | dcone4[3] = dcone1[1]; | |
803 | dcone4[4] = dcone1[2]; | |
804 | ||
805 | dcone5[0] = dcone1[0]; | |
806 | dcone5[1] = dcone1[1] - thick; | |
807 | dcone5[2] = dcone1[1]; | |
808 | dcone5[3] = dcone5[1] - kConst2 * pitch; | |
809 | dcone5[4] = dcone5[3] + thick; | |
810 | ||
811 | dcone6[0] = dcone2[0]; | |
812 | dcone6[1] = dcone5[3]; | |
813 | dcone6[2] = dcone5[4]; | |
814 | dcone6[3] = dcone6[1] - kConst1 * pitch; | |
815 | dcone6[4] = dcone6[3] + thick; | |
816 | dcone7[0] = dcone6[0]; | |
817 | dcone7[1] = dcone6[3]; | |
818 | dcone7[2] = dcone6[4]; | |
819 | dcone7[3] = dcone5[3]; | |
820 | dcone7[4] = dcone5[4]; | |
821 | ||
822 | dcone8[0] = dcone5[0]; | |
823 | dcone8[1] = dcone7[3]; | |
824 | dcone8[2] = dcone7[4]; | |
825 | dcone8[3] = dcone5[1]; | |
826 | dcone8[4] = dcone5[2]; | |
827 | ||
828 | gMC->Gsvolu(cone[0], "CONE", idtmed[2018], dcone1, 5); | |
829 | gMC->Gsvolu(cone[1], "CONE", idtmed[2018], dcone2, 5); | |
830 | gMC->Gsvolu(cone[2], "CONE", idtmed[2018], dcone3, 5); | |
831 | gMC->Gsvolu(cone[3], "CONE", idtmed[2018], dcone4, 5); | |
832 | gMC->Gsvolu(cone[4], "CONE", idtmed[2018], dcone5, 5); | |
833 | gMC->Gsvolu(cone[5], "CONE", idtmed[2018], dcone6, 5); | |
834 | gMC->Gsvolu(cone[6], "CONE", idtmed[2018], dcone7, 5); | |
835 | gMC->Gsvolu(cone[7], "CONE", idtmed[2018], dcone8, 5); | |
836 | gMC->Gsatt(cone[0], "SEEN", 0); | |
837 | gMC->Gsatt(cone[1], "SEEN", 0); | |
838 | gMC->Gsatt(cone[2], "SEEN", 0); | |
839 | gMC->Gsatt(cone[3], "SEEN", 0); | |
840 | gMC->Gsatt(cone[4], "SEEN", 0); | |
841 | gMC->Gsatt(cone[5], "SEEN", 0); | |
842 | gMC->Gsatt(cone[6], "SEEN", 0); | |
843 | gMC->Gsatt(cone[7], "SEEN", 0); | |
844 | ||
845 | // DEFINE AN IMAGINARY TUBE VOLUME FOR UNDULATED CHAMBER, FILL WITH VACUUM | |
846 | ||
847 | nwave = Int_t (zundul / (pitch * 2) + .1); | |
848 | dundul[2] = pitch * 2 * nwave; | |
849 | dundul[1] = rundul + pitch + thick * 2; | |
850 | // | |
851 | dundul[0] = 2.9; | |
852 | gMC->Gsvolu(undul, "TUBE", idtmed[2015], dundul, 3); | |
853 | ||
854 | xc = 0; | |
855 | yc = 0; | |
856 | zc = -dundul[2] + dcone1[0]; | |
857 | for (j = 1; j <= nwave; ++j) { | |
858 | gMC->Gspos(cone[0], j, undul, xc, yc, zc, 0, "ONLY"); | |
859 | zc = zc + dcone1[0] + dcone2[0]; | |
860 | gMC->Gspos(cone[1], j, undul, xc, yc, zc, 0, "ONLY"); | |
861 | zc = zc + dcone2[0] + dcone3[0]; | |
862 | gMC->Gspos(cone[2], j, undul, xc, yc, zc, 0, "ONLY"); | |
863 | zc = zc + dcone3[0] + dcone4[0]; | |
864 | gMC->Gspos(cone[3], j, undul, xc, yc, zc, 0, "ONLY"); | |
865 | zc = zc + dcone4[0] + dcone5[0]; | |
866 | gMC->Gspos(cone[4], j, undul, xc, yc, zc, 0, "ONLY"); | |
867 | zc = zc + dcone5[0] + dcone6[0]; | |
868 | gMC->Gspos(cone[5], j, undul, xc, yc, zc, 0, "ONLY"); | |
869 | zc = zc + dcone6[0] + dcone7[0]; | |
870 | gMC->Gspos(cone[6], j, undul, xc, yc, zc, 0, "ONLY"); | |
871 | zc = zc + dcone7[0] + dcone8[0]; | |
872 | gMC->Gspos(cone[7], j, undul, xc, yc, zc, 0, "ONLY"); | |
873 | zc = zc + dcone8[0] + dcone1[0]; | |
874 | } | |
875 | } | |
876 | ||
877 | ||
878 | ||
879 | ||
880 | ||
881 | ||
882 | ||
883 | ||
884 | ||
885 | ||
886 |