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