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