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