Bugfix in AliPoints2Memory
[u/mrichter/AliRoot.git] / STRUCT / AliPIPEv0.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
16/*
17$Log$
fddcf8f7 18Revision 1.19.4.1 2002/06/10 15:13:48 hristov
19Merged with v3-08-02
20
21Revision 1.21 2002/05/11 19:14:44 morsch
22PCONE QBEU had last z defined twice.
23
13a638e8 24Revision 1.20 2002/05/02 12:36:43 morsch
25New version of beam-pipe geometry. Ref. AL502206PL
26(used in production readiness report).
27
614dff1c 28Revision 1.19 2002/03/25 12:34:40 morsch
29Obsolete support rollers removed.
30
4a7308f7 31Revision 1.18 2002/02/01 18:02:41 morsch
32Material of beam pipe between inner Be piece and forward detectors
33can be set by SetPipeMaterial(mat), mat = kInox, kAlu, kBe ...
34
765e9e1a 35Revision 1.17 2001/09/24 13:11:50 morsch
36Ion pump and bellows moved out by 15 cm to make space for forward
37detectors.
38
22811e34 39Revision 1.16 2001/05/16 14:57:22 alibrary
40New files for folders and Stack
41
9e1a0ddb 42Revision 1.15 2001/05/02 11:50:18 morsch
43New layout of the non-absorber side provided by Y. Viyogi. Not the final design
44but the prsent most realistic.
45
cd9c4f3a 46Revision 1.14 2001/01/20 16:56:33 morsch
47Put air in connecting tubes and flanges of vacuum pump.
48
14b75006 49Revision 1.13 2001/01/20 16:35:27 morsch
50Increase mother volume for bellows.
51
1416b7f3 52Revision 1.12 2000/12/21 16:41:06 morsch
53Coding convention clean-up (RS3)
54
13391c3e 55Revision 1.11 2000/11/28 16:06:57 morsch
56Undulated beam-pipe replaced by Al-Be (40,60) pipe 1.5 mm thick.
57
2196bc42 58Revision 1.10 2000/11/24 13:00:37 morsch
59- Geometry and materials imported from euclid output
60- include comments
61- better struturing of volume tree
62- improved version of flange close to front absorber
63- more realistic pump materials
64- undulated beam pipe imported from v3.
65
7bd7faf8 66Revision 1.9 2000/10/02 21:28:15 fca
67Removal of useless dependecies via forward declarations
68
94de3818 69Revision 1.8 2000/06/11 12:37:01 morsch
70Coding rule violations corrected
71
b43eb0dc 72Revision 1.7 2000/02/23 16:25:24 fca
73AliVMC and AliGeant3 classes introduced
74ReadEuclid moved from AliRun to AliModule
75
b13db077 76Revision 1.6 1999/09/29 09:24:30 fca
77Introduction of the Copyright and cvs Log
78
4c039060 79*/
80
fe4da5cc 81////////////////////////////////////////////////
82// Beam pipe class /
83////////////////////////////////////////////////
84
fe4da5cc 85#include "AliPIPEv0.h"
86#include "AliRun.h"
7bd7faf8 87#include "AliConst.h"
88#include "AliMagF.h"
94de3818 89#include "AliMC.h"
fe4da5cc 90#include "TSystem.h"
22811e34 91
92#include <iostream.h>
fe4da5cc 93
94ClassImp(AliPIPEv0)
95
96//_____________________________________________________________________________
b8032157 97AliPIPEv0::AliPIPEv0()
fe4da5cc 98{
b43eb0dc 99// Constructor
765e9e1a 100 SetPipeMaterial();
fe4da5cc 101}
102
103//_____________________________________________________________________________
104AliPIPEv0::AliPIPEv0(const char *name, const char *title)
105 : AliPIPE(name,title)
106{
b43eb0dc 107// Constructor
765e9e1a 108 SetPipeMaterial();
fe4da5cc 109}
110
111
112//___________________________________________
113void AliPIPEv0::CreateGeometry()
114{
fe4da5cc 115//Begin_Html
116/*
1439f98e 117<img src="picts/pipe.gif">
fe4da5cc 118*/
119//End_Html
120
121
122//Begin_Html
123/*
1439f98e 124<img src="picts/tree_pipe.gif">
fe4da5cc 125*/
126//End_Html
127
9e1a0ddb 128 if(fDebug) printf("%s: Create PIPEv0 geometry \n",ClassName());
fe4da5cc 129
fe4da5cc 130
7bd7faf8 131 Int_t *idtmed = fIdtmed->GetArray();
22811e34 132 Float_t ppcon[84], ptube[3], pbox[3];
7bd7faf8 133 Int_t i=0;
134
7bd7faf8 135
136 Int_t idrotm[2099];
137 AliMatrix(idrotm[2001],90.,240., 0., 0., 90.,150.);
138 AliMatrix(idrotm[2002],90., 0., 0., 0., 90.,270.);
139 AliMatrix(idrotm[2003],90.,120., 0., 0., 90., 30.);
140 AliMatrix(idrotm[2004],90.,315., 90., 45., 0., 0.);
141 AliMatrix(idrotm[2005],90.,270., 90., 0., 0., 0.);
142 AliMatrix(idrotm[2006],90.,225., 90.,315., 0., 0.);
143 AliMatrix(idrotm[2007],90.,180., 90.,270., 0., 0.);
144 AliMatrix(idrotm[2008],90.,135., 90.,225., 0., 0.);
145 AliMatrix(idrotm[2009],90., 90., 90.,180., 0., 0.);
146 AliMatrix(idrotm[2010],90., 45., 90.,135., 0., 0.);
147 idrotm[2011] = 0;
148 AliMatrix(idrotm[2012],90.,180., 90., 90.,180., 0.);
149 AliMatrix(idrotm[2013],90., 0., 90., 90.,180., 0.);
614dff1c 150//
151// Bellow
152//
22811e34 153// distance between bellows
614dff1c 154 const Float_t dzbb = 9.0;
155// total size of bellow section
156 const Float_t dzb = 15.0;
157// size of undulated region
158 const Float_t dzub = 2.0;
159
160// half-lengths of various beam pipe sections
161// central Be-Pipe
162 Float_t hlenQbbe1 = 40.;
163 Float_t hlenQbbe2 = 36.5;
164 Float_t hlenQbbe = (hlenQbbe1+hlenQbbe2)/2.;
165//
166//
167// Float_t hlenQbt1 = 5.5/2.;
168//
169// Pipe outside central region (non-absober side)
170 Float_t hlenQbab = 157.5;
171//
172// Flange non-absorber side
173 Float_t hlenQb29 = 11.5/2.+1.75 + 5.0;
174//
175// Bellow element
176 Float_t hlenQbe0 = dzb;
177//
178// Inox pipe between Be and Bellow (absorber side)
179 Float_t hlenQb24[3] = {10.5/2., 1.8, 3.3};
180//
181//
182 Float_t hlenQb28 = (800.-hlenQbbe1-2.*hlenQbab-4.*hlenQb29-2.*hlenQbe0)/2.;
183//
184// Position of the pump
185 Float_t zPump = hlenQbbe1+2.*hlenQbab+2.*hlenQb29+dzb;
186//
187// Inner beam pipe radius
188 Float_t RinBe = 2.9;
189 Float_t RinSt = 2.92;
190//
191//
192 Float_t RoutBe = 2.98;
193 Float_t RoutSt = 3.00;
22811e34 194
614dff1c 195
196//
197 Float_t dz;
7bd7faf8 198
fe4da5cc 199//
200// The peam pipe up to the Front Absorber
fe4da5cc 201//
7bd7faf8 202// Mother Volume QBPM
614dff1c 203 ppcon[0] = 0;
204 ppcon[1] = 360;
205 ppcon[2] = 18;
7bd7faf8 206// 1:
614dff1c 207 ppcon[3] = -90.;
208 ppcon[4] = 0.;
209 ppcon[5] = 4.4;
7bd7faf8 210// 2
614dff1c 211 ppcon[6] = -90+2.*hlenQb24[2]+2.8+2.*hlenQb24[1];
212 ppcon[7] = 0.;
213 ppcon[8] = 4.4;
7bd7faf8 214// 3
614dff1c 215 ppcon[9] = ppcon[6];
216 ppcon[10] = 0.;
217 ppcon[11] = 4.1;
22811e34 218// 4
614dff1c 219 ppcon[12] = ppcon[9] + 2. + 2.*dzub+0.2;
220 ppcon[13] = 0.;
221 ppcon[14] = 4.1;
22811e34 222// 5
614dff1c 223 ppcon[15] = ppcon[12];
224 ppcon[16] = 0.;
225 ppcon[17] = 3.2;
22811e34 226// 6
614dff1c 227 ppcon[18] = ppcon[15] + 2.* dzbb-0.4;
228 ppcon[19] = 0.;
229 ppcon[20] = 3.2;
7bd7faf8 230// 7
614dff1c 231 ppcon[21] = ppcon[18];
232 ppcon[22] = 0.;
233 ppcon[23] = 4.1;
7bd7faf8 234// 8
614dff1c 235 ppcon[24] = -44.;
236 ppcon[25] = 0.;
237 ppcon[26] = 4.1;
7bd7faf8 238// 9
614dff1c 239 ppcon[27] = -44.;
7bd7faf8 240 ppcon[28] = 0;
614dff1c 241 ppcon[29] = 3.0;
22811e34 242// 10
614dff1c 243 ppcon[30] = 38.;
7bd7faf8 244 ppcon[31] = 0;
614dff1c 245 ppcon[32] = 3.0;
22811e34 246// 11
614dff1c 247 ppcon[33] = 38.;
7bd7faf8 248 ppcon[34] = 0;
614dff1c 249 ppcon[35] = 3.6;
22811e34 250// 12
614dff1c 251 ppcon[36] = hlenQbbe1+2.*hlenQbab-0.1;
252 ppcon[37] = 0.;
253 ppcon[38] = 3.6;
254// 13
255 ppcon[39] = ppcon[36];
256 ppcon[40] = 0.;
257 ppcon[41] = 3.6;
22811e34 258// 14
614dff1c 259 ppcon[42] = ppcon[39]+2.*hlenQb29-5.;
260 ppcon[43] = 0.;
261 ppcon[44] = 3.6;
262// 15
263 ppcon[45] = ppcon[42];
264 ppcon[46] = 0.;
265 ppcon[47] = 56.;
22811e34 266// 16
614dff1c 267 ppcon[48] = ppcon[45]+2.*dzb+10.;
268 ppcon[49] = 0.;
269 ppcon[50] = 56.;
22811e34 270// 17
614dff1c 271 ppcon[51] = ppcon[48];
22811e34 272 ppcon[52] = 0.;
614dff1c 273 ppcon[53] = 3.6;
22811e34 274// 18
614dff1c 275 ppcon[54] = 800.;
22811e34 276 ppcon[55] = 0.;
614dff1c 277 ppcon[56] = 3.6;
7bd7faf8 278
614dff1c 279 gMC->Gsvolu("QBPM", "PCON", idtmed[kAir], ppcon,57);
280
281
7bd7faf8 282//
cd9c4f3a 283// volume definitions of various sections
284//
cd9c4f3a 285
614dff1c 286//
287// The Vacuum
288 gMC->Gsvolu("QBVA","TUBE", idtmed[kVac], ptube, 0);
289 ptube[0] = 0.0;
290 ptube[1] = RinSt;
291 ptube[2] = (90.-hlenQbbe2)/2.;
292 dz = -90. + ptube[2];
293 gMC->Gsposp ("QBVA", 1, "QBPM", 0., 0., dz , 0, "ONLY", ptube, 3);
294 dz = dz + ptube[2];
295
296 ptube[1] = RinBe;
297 ptube[2] = hlenQbbe+hlenQbab;
298 dz = dz + ptube[2];
299 gMC->Gsposp ("QBVA", 2, "QBPM", 0., 0., dz , 0, "ONLY", ptube, 3);
300 dz = dz + ptube[2];
301
302 ptube[1] = RinSt;
303 ptube[2] = (800.-hlenQbbe1-2.*hlenQbab)/2.;
304 dz = dz + ptube[2];
305 gMC->Gsposp ("QBVA", 3, "QBPM", 0., 0., dz , 0, "ONLY", ptube, 3);
cd9c4f3a 306
614dff1c 307//
308// Be Pipe in central Alice
309 ptube[0] = RinBe;
310 ptube[1] = RoutBe;
cd9c4f3a 311 ptube[2] = hlenQbbe;
7bd7faf8 312
313 gMC->Gsvolu("QBBE","TUBE", idtmed[kBe], ptube, 3);
7bd7faf8 314
315//
614dff1c 316// Support Ring
7bd7faf8 317//
614dff1c 318 // Mother
319 ppcon[0] = 0;
320 ppcon[1] = 360;
321 ppcon[2] = 6;
322// 1:
323 ppcon[3] = -1.;
324 ppcon[4] = 3.0;
325 ppcon[5] = 3.4;
326// 2
327 ppcon[6] = -0.8;
328 ppcon[7] = 3.0;
329 ppcon[8] = 3.4;
330// 3
331 ppcon[9] = -0.8;
332 ppcon[10] = 3.0;
333 ppcon[11] = 3.2;
334// 4
335 ppcon[12] = 0.8;
336 ppcon[13] = 3.0;
337 ppcon[14] = 3.2;
338// 5
339 ppcon[15] = 0.8;
340 ppcon[16] = 3.0;
341 ppcon[17] = 3.4;
342// 6
343 ppcon[18] = 1.0;
344 ppcon[19] = 3.0;
345 ppcon[20] = 3.4;
7bd7faf8 346
7bd7faf8 347
614dff1c 348 gMC->Gsvolu("QBSR", "PCON", idtmed[kC], ppcon,21);
349 gMC->Gspos("QBSR", 1, "QBPM", 0.0, 0.0, 40., 0, "ONLY");
350 gMC->Gspos("QBSR", 2, "QBPM", 0.0, 0.0, 150., 0, "ONLY");
351 gMC->Gspos("QBSR", 3, "QBPM", 0.0, 0.0, 260., 0, "ONLY");
352 gMC->Gspos("QBSR", 4, "QBPM", 0.0, 0.0,- 46., 0, "ONLY");
7bd7faf8 353//
614dff1c 354// Flange and Fixed Point: non absorber side
7bd7faf8 355//
614dff1c 356// ---------->
357//
358// Mother
359 ppcon[0] = 0;
360 ppcon[1] = 360;
361 ppcon[2] = 4;
362// 1:
363 ppcon[3] = -hlenQb29;
364 ppcon[4] = RinSt;
365 ppcon[5] = 5.8;
366// 2
367 ppcon[6] = ppcon[3]+3.6;
368 ppcon[7] = RinSt;
369 ppcon[8] = 5.8;
370// 3
371 ppcon[9] = ppcon[6];
372 ppcon[10] = RinSt;
373 ppcon[11] = 3.6;
374// 4
375 ppcon[12] = hlenQb29;
376 ppcon[13] = RinSt;
377 ppcon[14] = 3.6;
7bd7faf8 378
614dff1c 379 gMC->Gsvolu("QB29", "PCON", idtmed[kAir], ppcon,15);
7bd7faf8 380
7bd7faf8 381
614dff1c 382// Flange
383 ptube[0] = RinSt;
384 ptube[1] = 5.7;
385 ptube[2] = 1.75;
386 gMC->Gsvolu("QF29","TUBE", idtmed[kInox], ptube, 3);
387 gMC->Gspos("QF29", 1, "QB29", 0.0, 0.0, -hlenQb29+1.75, 0, "ONLY");
388// Pipe
389 ptube[0] = RinSt;
390 ptube[1] = 3.0;
cd9c4f3a 391 ptube[2] = hlenQb29;
614dff1c 392 gMC->Gsvolu("QS29","TUBE", idtmed[kInox], ptube, 3);
393 gMC->Gspos("QS29", 1, "QB29", 0.0, 0.0, 0., 0, "ONLY");
394// Fixed point
395 ptube[0] = RinSt;
396 ptube[1] = 3.5;
397 ptube[2] = 0.3;
398 gMC->Gsvolu("QP29","TUBE", idtmed[kInox], ptube, 3);
399 gMC->Gspos("QP29", 1, "QB29", 0.0, 0.0, -hlenQb29+9.75+3., 0, "ONLY");
22811e34 400
614dff1c 401//
7bd7faf8 402//
cd9c4f3a 403// Inox beam pipe: final section on non-absorber side
7bd7faf8 404
614dff1c 405 ptube[0] = RinSt;
406 ptube[1] = RoutSt;
cd9c4f3a 407 ptube[2] = hlenQb28;
7bd7faf8 408
409 gMC->Gsvolu("QB28","TUBE", idtmed[kInox], ptube, 3);
7bd7faf8 410
2196bc42 411
412// Al-Be (40-60 wgt%, rho=2.7 g/cm**3) beam pipe
413//
614dff1c 414// This section is under study (A.M. 1/2/2002)
765e9e1a 415//
416
614dff1c 417 ptube[0] = RinBe;
765e9e1a 418 if (fPipeMaterial == kAlu) {
419 ptube[1] = 3.0;
420 } else if (fPipeMaterial == kBe) {
614dff1c 421 ptube[1] = RoutBe;
765e9e1a 422 } else if (fPipeMaterial == kInox){
614dff1c 423 ptube[1] = RoutSt;
765e9e1a 424 }
cd9c4f3a 425 ptube[2] = hlenQbab;
2196bc42 426
765e9e1a 427 gMC->Gsvolu("QBAB","TUBE", idtmed[fPipeMaterial], ptube, 3);
2196bc42 428
cd9c4f3a 429// 2.5 mm thick SS tube for hanging pump
614dff1c 430/*
431 ptube[0] = Rin;
7bd7faf8 432 ptube[1] = 3.15;
cd9c4f3a 433 ptube[2] = hlenQb26;
7bd7faf8 434
cd9c4f3a 435 gMC->Gsvolu("QB26","TUBE", idtmed[kInox], ptube, 3);
614dff1c 436*/
7bd7faf8 437//
438// Bellows
fe4da5cc 439//
22811e34 440//
7bd7faf8 441// Mother Volume
614dff1c 442 Float_t pconQBE0[33];
443 pconQBE0[ 0]= 0;
444 pconQBE0[ 1]= 360;
445 pconQBE0[ 2]= 10;
446// 1
447 pconQBE0[ 3]= -dzb;
448 pconQBE0[ 4]= RinSt;
449 pconQBE0[ 5]= RoutSt;
450// 2
451 pconQBE0[ 6]= -dzb+2.;
452 pconQBE0[ 7]= RinSt;
453 pconQBE0[ 8]= RoutSt;
454// 3
455 pconQBE0[ 9]= -dzb+2.;
456 pconQBE0[10]= RinSt;
457 pconQBE0[11]= 4.00;
458// 4
459 pconQBE0[12]= -dzb+2.+2.*dzub;
460 pconQBE0[13]= RinSt;
461 pconQBE0[14]= 4.00;
462// 5
463 pconQBE0[15]= -dzb+2.+2.*dzub;
464 pconQBE0[16]= RinSt;
465 pconQBE0[17]= RoutSt;
466// 6
467 pconQBE0[18]= -dzb+2.+2.*dzub+2.*dzbb;
468 pconQBE0[19]= RinSt;
469 pconQBE0[20]= RoutSt;
470// 7
471 pconQBE0[21]= -dzb+2.+2.*dzub+2.*dzbb;
472 pconQBE0[22]= RinSt;
473 pconQBE0[23]= 4.00;
474// 8
475 pconQBE0[24]= -dzb+2.+4.*dzub+2.*dzbb;
476 pconQBE0[25]= RinSt;
477 pconQBE0[26]= 4.00;
478// 9
479 pconQBE0[27]= -dzb+2.+4.*dzub+2.*dzbb;
480 pconQBE0[28]= RinSt;
481 pconQBE0[29]= RoutSt;
482// 10
483 pconQBE0[30]= +dzb;
484 pconQBE0[31]= RinSt;
485 pconQBE0[32]= RoutSt;
486 gMC->Gsvolu("QBE0", "PCON", idtmed[kAir], pconQBE0, 33);
487//
488// Undulated piece mother
489 ptube[0] = RinSt;
490 ptube[1] = 4.00;
491 ptube[2] = dzub;
7bd7faf8 492 gMC->Gsvolu("QBEM","TUBE", idtmed[kAir], ptube, 3);
614dff1c 493 dz = -dzb+2.+dzub;
494 gMC->Gspos("QBEM", 2 ,"QBE0", 0.0, 0.0, dz, 0 , "ONLY");
495 gMC->Gspos("QBEM", 1 ,"QBE0", 0.0, 0.0, -dz, idrotm[2012], "ONLY");
496//
497 Float_t pund[30];
498 Float_t uw = 0.02;
499 Float_t ur = 2.*dzub-12.*uw;
500 Float_t uz = ur/13.;
501 Float_t ut = uz+uw;
502
503 pund[ 0] = 0;
504 pund[ 1] = 360;
13a638e8 505 pund[ 2] = 8;
614dff1c 506
507 pund[ 3] = -ut;
508 pund[ 4] = RinSt;
509 pund[ 5] = RinSt+uw;
510
511 pund[ 6] = -ut+uz;
512 pund[ 7] = pund[4];
513 pund[ 8] = pund[5];
514
515 pund[ 9] = pund[6];
516 pund[10] = pund[4];
517 pund[11] = 4.0;
518
519 pund[12] = pund[9]+uw;
520 pund[13] = pund[10];
521 pund[14] = pund[11];
522
523 pund[15] = pund[12];
524 pund[16] = 4.0-uw;
525 pund[17] = pund[14];
526
527 pund[18] = pund[12]+uz;
528 pund[19] = pund[16];
529 pund[20] = pund[17];
530
531 pund[21] = pund[18];
532 pund[22] = RinSt;
533 pund[23] = pund[20];
534
535 pund[24] = pund[21]+uw;
536 pund[25] = pund[22];
537 pund[26] = pund[23];
614dff1c 538
13a638e8 539 gMC->Gsvolu("QBEU", "PCON", idtmed[kInox], pund, 27);
614dff1c 540
541 for (i = 0; i < 6; i++)
542 {
543 dz = -dzub+(1+2*i)*ut;
544 gMC->Gspos("QBEU", i+1 ,"QBEM", 0.0, 0.0, dz, 0 , "ONLY");
7bd7faf8 545 }
614dff1c 546 ptube[0] = RinSt;
547 ptube[1] = RinSt+uw;
548 ptube[2] = uz;
549 gMC->Gsvolu("QBEW","TUBE", idtmed[kInox], ptube, 3);
550 gMC->Gspos("QBEW", 1 ,"QBEM", 0.0, 0.0, dzub-uz, 0 , "ONLY");
7bd7faf8 551//
614dff1c 552// BeamPipe
553 gMC->Gsvolu("QBEP","TUBE", idtmed[kInox], ptube, 0);
554 ptube[0] = RinSt;
555 ptube[1] = RoutSt;
556 ptube[2] = 1.;
557 gMC->Gsposp("QBEP", 1 ,"QBE0", 0.0, 0.0, -dzb+1., 0 , "ONLY", ptube, 3);
558 gMC->Gsposp("QBEP", 2 ,"QBE0", 0.0, 0.0, dzb-1., 0 , "ONLY", ptube, 3);
559 ptube[2] = dzbb;
560 gMC->Gsposp("QBEP", 3 ,"QBE0", 0.0, 0.0, 0., 0 , "ONLY", ptube, 3);
561//
562// End undulated part
563//
564//
565// ----> End Bellow
566//
567// **** Placement of various sections on non-absorber side ****
7bd7faf8 568//
cd9c4f3a 569 //
614dff1c 570 // first the beryllium section
571 Float_t zpos = -(hlenQbbe2-hlenQbbe1)/2;
cd9c4f3a 572 gMC->Gspos("QBBE", 1, "QBPM", 0., 0., zpos, 0, "ONLY");
573
574 // next meta-metal transition QBT1 on on-absorber side
614dff1c 575// zpos = zpos + hlenQbbe + hlenQbt1;
576// gMC->Gspos("QBT1", 1, "QBPM", 0., 0., zpos, 0, "ONLY");
cd9c4f3a 577
578 // Aluminium OR Al-be alloy section
614dff1c 579 zpos = hlenQbbe1+hlenQbab;
cd9c4f3a 580 gMC->Gspos("QBAB", 1, "QBPM", 0.0, 0.0, zpos, 0, "ONLY");
614dff1c 581 //
cd9c4f3a 582 // inox flange at the start of bellow
cd9c4f3a 583 zpos = zpos + hlenQbab + hlenQb29;
614dff1c 584 gMC->Gspos("QB29", 1, "QBPM", 0.0, 0.0, zpos, idrotm[2012], "ONLY");
585 //
cd9c4f3a 586 // bellow section
cd9c4f3a 587 zpos = zpos + hlenQb29 + hlenQbe0;
614dff1c 588 gMC->Gspos("QBE0", 2 ,"QBPM", 0.0, 0.0, zpos, 0, "ONLY");
589 //
cd9c4f3a 590 // inox flange at the end of bellow and start of thick inox for pump
cd9c4f3a 591 zpos = zpos + hlenQbe0 + hlenQb29;
614dff1c 592 gMC->Gspos("QB29", 2, "QBPM", 0.0, 0.0, zpos, 0, "ONLY");
593 //
cd9c4f3a 594 //last inox section till 800 cm
cd9c4f3a 595 zpos = zpos + hlenQb29 + hlenQb28;
596 gMC->Gspos("QB28", 1, "QBPM", 0.0, 0.0, zpos, 0, "ONLY");
614dff1c 597
cd9c4f3a 598//******** end of placement on no-absorber side *********
599
600 //
601 // **** Absorber side *****
602 //
603 //
614dff1c 604/*
cd9c4f3a 605 // metal-metal transition : Be-Alu on absorber side
606 // Mother Volume
607 ptube[0] = 2.900;
608 ptube[1] = 4.200;
609 ptube[2] = 2.750;
610 gMC->Gsvolu("QBT2","TUBE", idtmed[kAir], ptube, 3);
611 // z = 43.3 - 48.8
612 gMC->Gspos("QBT2", 1, "QBPM", 0., 0., -hlenQbbe-ptube[2], idrotm[2012], "ONLY");
613
614 ptube[0] = 2.900;
615 ptube[1] = 3.150;
616 ptube[2] = 0.375;
617 //
618 // Be-part
619 gMC->Gsvolu("QB02","TUBE", idtmed[kAlu], ptube, 3);
620
621 ptube[1] = 3.000;
622 gMC->Gsvolu("QBA2","TUBE", idtmed[kBe], ptube, 3);
623
624 gMC->Gspos("QBA2", 1, "QB02", 0., 0., 0, 0, "ONLY");
625// z = -2.75 -> -2.00
626 gMC->Gspos("QB02", 1, "QBT2", 0., 0.,-2.75+ptube[2], 0, "ONLY");
627
628 // Alu part
629 ptube[0] = 2.900;
630 ptube[1] = 3.150;
631 ptube[2] = 2.375;
632// z = -2.00 -> 2.75
633 gMC->Gsvolu("QB04","TUBE", idtmed[kAlu], ptube, 3);
634 gMC->Gspos("QB04", 1, "QBT2", 0., 0.,-2.+ptube[2], 0, "ONLY");
635
636
637 ptube[0] = 3.15;
638 ptube[1] = 3.50;
639 ptube[2] = 0.10;
640// z = 2.55 -> 2.75
641 gMC->Gsvolu("QB06","TUBE", idtmed[kAlu], ptube, 3);
642 gMC->Gspos("QB06", 1, "QBT2", 0., 0., 2.55+ptube[2], 0, "ONLY");
643
644
645 // Fixation
646 ptube[0] = 0.0;
647 ptube[1] = 0.1;
648 ptube[2] = 0.5;
649
650 gMC->Gsvolu("QBA8","TUBE", idtmed[kInox], ptube, 3);
651 gMC->Gspos("QBA8", 1 ,"QBT2", 0.000, 3.650, -1.25, idrotm[2002], "ONLY");
652 gMC->Gspos("QBA8", 2 ,"QBT2", 3.161, -1.825, -1.25, idrotm[2001], "ONLY");
653 gMC->Gspos("QBA8", 3 ,"QBT2", -3.161, -1.825, -1.25, idrotm[2003], "ONLY");
654
655 // Carbon ring
656 ptube[0] = 3.15;
657 ptube[1] = 4.10;
658 ptube[2] = 0.55;
659
660 gMC->Gsvolu("QB77","TUBE", idtmed[kC], ptube, 3);
661
662 ptube[0] = 3.15;
663 ptube[1] = 3.50;
664 ptube[2] = 0.10;
665 gMC->Gsvolu("QBB7","TUBE", idtmed[kInox], ptube, 3);
666 gMC->Gspos("QBB7", 1, "QB77", 0.0, 0.0, 0.55-0.2, 0, "ONLY");
667 gMC->Gspos("QB77", 1, "QBT2", 0.0, 0.0, 2., 0, "ONLY");
614dff1c 668 */
669//
670// Beam pipes between elements
671//
cd9c4f3a 672
614dff1c 673 gMC->Gsvolu("QB24","TUBE", idtmed[kInox], ptube, 0);
674 ptube[0] = RinSt;
675 ptube[1] = RoutSt;
676 ptube[2] = hlenQb24[0];
677 dz = hlenQbbe2 + ptube[2];
678 gMC->Gsposp("QB24", 1 ,"QBPM", 0.0, 0.0, -dz, 0, "ONLY", ptube, 3);
679//
680// Bellow on absorber side
681 dz = dz+hlenQb24[0] + dzb;
682 gMC->Gspos("QBE0", 1 ,"QBPM", 0.0, 0.0, -dz, 0, "ONLY");
683//
684 ptube[2] = hlenQb24[1];
685 dz = dz + dzb + ptube[2];
686 gMC->Gsposp("QB24", 2 ,"QBPM", 0.0, 0.0, -dz, 0, "ONLY", ptube, 3);
687 dz = dz + ptube[2];
7bd7faf8 688
7bd7faf8 689//
7bd7faf8 690// Flange
691//
692// Mother Volume
614dff1c 693 ptube[0] = RinSt;
7bd7faf8 694 ptube[1] = 4.300;
614dff1c 695 ptube[2] = 1.4;
7bd7faf8 696
614dff1c 697 gMC->Gsvolu("QFA0","TUBE", idtmed[kInox], ptube, 3);
698 dz = dz + ptube[2];
699 gMC->Gspos("QFA0", 1 ,"QBPM", 0.0, 0.0, -dz, 0, "ONLY");
700 dz = dz + ptube[2];
7bd7faf8 701//
614dff1c 702//
703 ptube[0] = RinSt;
704 ptube[1] = RoutSt;
705 ptube[2] = hlenQb24[2];
706 dz = dz + ptube[2];
707 gMC->Gsposp("QB24", 3 ,"QBPM", 0.0, 0.0, -dz, 0, "ONLY", ptube, 3);
cd9c4f3a 708
709
fe4da5cc 710// --- Place the PIPE ghost volume (QBPM) in its mother volume (ALIC)
cd9c4f3a 711// by rotating it to 180 deg. and make it invisible
fe4da5cc 712//
7bd7faf8 713 gMC->Gspos("QBPM",1,"ALIC",0,0,0,idrotm[2013], "ONLY");
fddcf8f7 714 gMC->Gsbool("QBPM", "L3DX");
715 gMC->Gsbool("QBPM", "L3O3");
716 gMC->Gsbool("QBPM", "L3O4");
7bd7faf8 717
cd9c4f3a 718
7bd7faf8 719//
cd9c4f3a 720// ******** Ion Pump volume description starts here ******
7bd7faf8 721//
7bd7faf8 722 //
723 // Getters ->
724 pbox[0] = 6.50;
725 pbox[1] = 6.75;
726 pbox[2] = 15.60;
727 gMC->Gsvolu("QI32","BOX", idtmed[kInox], pbox, 3);
728
729 pbox[0] = 5.90;
730 pbox[1] = 6.15;
731 pbox[2] = 15.00;
732 gMC->Gsvolu("QI42","BOX", idtmed[kGetter], pbox, 3);
733 gMC->Gspos("QI42", 1, "QI32", 0.0, 0.0, 0.0, 0, "ONLY");
734// <-
735
736 ptube[0] = 0.0;
737 ptube[1] = 19.0;
738 ptube[2] = 2.5;
739 gMC->Gsvolu("QI33","TUBE", idtmed[kInox], ptube, 3);
740
741
742 ptube[0] = 0.0;
743 ptube[1] = 15.0;
744 ptube[2] = 2.5;
14b75006 745 gMC->Gsvolu("QI43","TUBE", idtmed[kAir], ptube, 3);
7bd7faf8 746 gMC->Gspos("QI43", 1, "QI33", 0.0, 0.0, 0.0, 0, "ONLY");
747//
748// Connecting tube ->
749 ptube[0] = 0.0;
750 ptube[1] = 5.4;
cd9c4f3a 751 ptube[2] = 14.6;
7bd7faf8 752 gMC->Gsvolu("QI34","TUBE", idtmed[kInox], ptube, 3);
753
754 ptube[0] = 0.0;
755 ptube[1] = 4.8;
cd9c4f3a 756 ptube[2] = 14.6;
14b75006 757 gMC->Gsvolu("QI44","TUBE", idtmed[kAir], ptube, 3);
7bd7faf8 758 gMC->Gspos("QI44", 1, "QI34", 0.0, 0.0, 0.0, 0, "ONLY");
759// <-
760
761 //
762 // Flange ->
cd9c4f3a 763 ptube[0] = 5.41;
7bd7faf8 764 ptube[1] = 7.30;
765 ptube[2] = 2.15;
766 gMC->Gsvolu("QI35","TUBE", idtmed[kInox], ptube, 3);
7bd7faf8 767// <-
cd9c4f3a 768 gMC->Gspos("QI32", 1, "QBPM", 0.0, -44.25, zPump, 0, "ONLY");
769 gMC->Gspos("QI33", 1, "QBPM", 0.0, -35.00, zPump,idrotm[2002], "ONLY");
770 gMC->Gspos("QI34", 1, "QBPM", 0.0, -17.90, zPump,idrotm[2002], "ONLY");
771 gMC->Gspos("QI35", 1, "QBPM", 0.0, -24.35, zPump,idrotm[2002], "ONLY");
fe4da5cc 772
22811e34 773 gMC->Gsatt("QBPM", "SEEN", 1);
774 gMC->Gsatt("QBEM", "SEEN", 1);
fe4da5cc 775}
776
cd9c4f3a 777
fe4da5cc 778
779//___________________________________________
780void AliPIPEv0::CreateMaterials()
781{
7bd7faf8 782 //
13391c3e 783 // Define materials for beam pipe
7bd7faf8 784 //
13391c3e 785
9e1a0ddb 786 if(fDebug) printf("%s: Create PIPEv0 materials \n",ClassName());
7bd7faf8 787 Int_t isxfld = gAlice->Field()->Integ();
788 Float_t sxmgmx = gAlice->Field()->Max();
2196bc42 789 // Steel (Inox)
7bd7faf8 790 Float_t asteel[4] = { 55.847,51.9961,58.6934,28.0855 };
791 Float_t zsteel[4] = { 26.,24.,28.,14. };
792 Float_t wsteel[4] = { .715,.18,.1,.005 };
2196bc42 793 // AlBe - alloy
794 Float_t aAlBe[2] = { 26.98, 9.01};
795 Float_t zAlBe[2] = { 13.00, 4.00};
796 Float_t wAlBe[2] = { 0.4, 0.6};
797
7bd7faf8 798 //
799 // Berillium
800 AliMaterial(5, "BERILLIUM$", 9.01, 4., 1.848, 35.3, 36.7);
801 //
802 // Carbon
803 AliMaterial(6, "CARBON$ ", 12.01, 6., 2.265, 18.8, 49.9);
804 //
805 // Aluminum
806 AliMaterial(9, "ALUMINIUM$", 26.98, 13., 2.7, 8.9, 37.2);
807 //
808 // Air
809 AliMaterial(15, "AIR$ ", 14.61, 7.3, .001205, 30423.24, 67500.);
810 //
811 // Vacuum
812 AliMaterial(16, "VACUUM$ ", 1e-16, 1e-16, 1e-16, 1e16, 1e16);
813 //
814 // stainless Steel
815 AliMixture(19, "STAINLESS STEEL$", asteel, zsteel, 7.88, 4, wsteel);
816 //
817 // reduced density steel to approximate pump getter material
818 AliMixture(20, "GETTER$", asteel, zsteel, 1.00, 4, wsteel);
2196bc42 819 // Al-Be alloy
820 //
821 AliMixture(21, "AlBe$", aAlBe, zAlBe, 2.07, 2, wAlBe);
7bd7faf8 822 //
823 // ****************
824 // Defines tracking media parameters.
825 //
826 Float_t epsil = .001; // Tracking precision,
827 Float_t stemax = -0.01; // Maximum displacement for multiple scat
828 Float_t tmaxfd = -20.; // Maximum angle due to field deflection
829 Float_t deemax = -.3; // Maximum fractional energy loss, DLS
830 Float_t stmin = -.8;
831 // ***************
832 //
833 // Beryllium
834
835 AliMedium(5, "BE", 5, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
836
837 // Carbon
838 AliMedium(6, "C", 6, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
839 //
840 // Aluminum
841 AliMedium(9, "ALU", 9, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
842 //
843 // Air
844 AliMedium(15, "AIR", 15, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
845 //
846 // Vacuum
847 AliMedium(16, "VACUUM", 16, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
848 //
849 // Steel
850 AliMedium(19, "INOX", 19, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
851 //
852 // Getter
853 AliMedium(20, "GETTER", 20, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
2196bc42 854 //
855 // AlBe - Aloy
856 AliMedium(21, "AlBe" , 21, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
857
fe4da5cc 858}
859
860
fe4da5cc 861
862
863
864
865
866
867
868