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