Position of bellow.
[u/mrichter/AliRoot.git] / STRUCT / AliSHILvF.cxx
CommitLineData
5aba2f60 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$
7520e6df 18Revision 1.15 2002/05/30 11:58:34 morsch
19More robust geometry for bellows: use divisions and neg. parameters.
20
74b346fb 21Revision 1.14 2002/05/29 11:23:46 morsch
22Numerical overlap for 2nd bellow corrected.
23
b44de8e7 24Revision 1.13 2002/05/02 12:50:06 morsch
25For G4: gMC->VolId(...) replaced by gAlice->GetModule(...).
26
fe713e43 27Revision 1.12 2002/01/21 11:31:21 morsch
28ALIFE output only on demand.
29
b21a5bbd 30Revision 1.11 2001/11/17 01:29:21 morsch
31Obsolete and wrong volume YXO5 removed.
32
34caa072 33Revision 1.10 2001/11/16 08:57:42 morsch
34Volume YP32 obsolete.
35
9de2c2a2 36Revision 1.9 2001/11/12 10:19:30 morsch
37Correction of uninitialized array element problem.
38
d3be3170 39Revision 1.8 2001/10/25 08:50:57 morsch
40New beamshield geometry with increased tolerances and insulation thickness.
41
d6618b0d 42Revision 1.6 2001/04/23 23:12:41 morsch
43Overlap in closing cone corrected (thanks to Ivana Hrivnacova)
44
12133ee7 45Revision 1.5 2001/03/16 16:26:05 morsch
46Put vacuum in beam-pipe not air.
47
9d5c07b4 48Revision 1.4 2001/01/31 11:55:27 hristov
49Loop variables declared once (required by HP)
50
3a685df6 51Revision 1.3 2001/01/30 12:28:27 morsch
52Recess station 1 changed do make space for chambers.
53
e2e83b79 54Revision 1.2 2000/12/04 16:30:02 morsch
55Update to geometry defined for the Muon Spectrometer Addendum to the TDR.
56
5aba2f60 57*/
58
59
60#include "AliSHILvF.h"
61#include "AliRun.h"
a0cb6c86 62#include "AliMC.h"
5aba2f60 63#include "AliConst.h"
64#include "AliALIFE.h"
65
66ClassImp(AliSHILvF)
67
68//_____________________________________________________________________________
69AliSHILvF::AliSHILvF()
70{
71 //
72 // Default constructor for muon shield
73 //
74}
75
76//_____________________________________________________________________________
77AliSHILvF::AliSHILvF(const char *name, const char *title)
78 : AliSHIL(name,title)
79{
80 //
81 // Standard constructor for muon shield
82 //
83 SetMarkerColor(7);
84 SetMarkerStyle(2);
85 SetMarkerSize(0.4);
86 // Pb cone not yet compatible with muon chamber inner radii
87 // Switched off by default
b21a5bbd 88 SetWriteGeometry();
89 SetPbCone();
5aba2f60 90}
91
92//_____________________________________________________________________________
93void AliSHILvF::CreateGeometry()
94{
95 //
96 // Build muon shield geometry
97 //
98 //
99 //Begin_Html
100 /*
101 <img src="picts/AliSHILvF.gif">
102 */
103 //End_Html
104 //Begin_Html
105 /*
106 <img src="picts/AliSHILvFTree.gif">
107 */
108 //End_Html
109
77976fd8 110 Float_t cpar[5], cpar0[5], tpar[3], par1[100], pars1[100], par2[100], par3[100],
111 par4[21], par0[100];
5aba2f60 112 Float_t dz, dZ;
113
114 Int_t *idtmed = fIdtmed->GetArray()-1699;
115
116#include "ABSOSHILConst.h"
117#include "SHILConst.h"
118
119enum {kC=1705, kAl=1708, kFe=1709, kCu=1710, kW=1711, kPb=1712,
9d5c07b4 120 kNiCuW=1720, kVacuum=1715, kAir=1714, kConcrete=1716,
5aba2f60 121 kPolyCH2=1717, kSteel=1709, kInsulation=1713};
122//
123// Material of the rear part of the shield
124 Int_t iHeavy=kNiCuW;
125 if (fPbCone) iHeavy=kPb;
126//
127//
128// begin Fluka
3a685df6 129 Int_t i=0,ifl=0;
5aba2f60 130 Float_t posfluka[3]={0., 0., 0.};
131 Float_t zfluka[12], rfluka1[12], rfluka2[12], rfluka3[12] ;
b21a5bbd 132 AliALIFE* flukaGeom = 0;
133
134 if (fWriteGeometry) {
135 flukaGeom = new AliALIFE("beamshield.alife", "beamshield_vol.inp");
136 }
137
5aba2f60 138//
139// end Fluka
140
141
142//
143// Mother volume
144//
145 Float_t dRear1=dRear;
146
147 Float_t zstart=zRear-dRear1;
148
149 par0[0] = 0.;
150 par0[1] = 360.;
77976fd8 151 par0[2] = 28.;
5aba2f60 152
153 Float_t dl=(zvac12-zstart)/2.;
154 dz=zstart+dl;
155//
77976fd8 156// start
5aba2f60 157 par0[3] = -dl;
158 par0[4] = 0.;
159 par0[5] = zstart * TMath::Tan(accMin);
77976fd8 160// recess station 1
161 par0[6] = -dz+zch11;
5aba2f60 162 par0[7] = 0.;
77976fd8 163 par0[8] = zch11 * TMath::Tan(accMin);
5aba2f60 164
77976fd8 165 par0[9] = par0[6];
5aba2f60 166 par0[10] = 0.;
77976fd8 167 par0[11] = 17.9;
5aba2f60 168
77976fd8 169 par0[12] = -dz+zch12;
5aba2f60 170 par0[13] = 0.;
77976fd8 171 par0[14] = 17.9;
5aba2f60 172
77976fd8 173 par0[15] = par0[12];
174 par0[16] = 0.;
175 par0[17] = zch12 * TMath::Tan(accMin);
176// recess station 2
177 par0[18] = -dz+zch21;
178 par0[19] = 0.;
179 par0[20] = zch21 * TMath::Tan(accMin);
5aba2f60 180
77976fd8 181 par0[21] = -dz+zch21;
5aba2f60 182 par0[22] = 0.;
77976fd8 183 par0[23] = 23.;
5aba2f60 184
77976fd8 185 par0[24] = -dz+zch22;
5aba2f60 186 par0[25] = 0.;
77976fd8 187 par0[26] = 23.;
5aba2f60 188
77976fd8 189 par0[27] = -dz+zch22;
190 par0[28] = 0.;
191 par0[29] = zch22 * TMath::Tan(accMin);
192//
193 par0[30] = -dz+zvac6;
5aba2f60 194 par0[31] = 0.;
77976fd8 195 par0[32] = zvac6 * TMath::Tan(accMin);
196// end of 2 deg cone
197 par0[33] = -dz+zConeE;
5aba2f60 198 par0[34] = 0.;
77976fd8 199 par0[35] = 30.;
5aba2f60 200
77976fd8 201 par0[36] = -dz+zch31;
5aba2f60 202 par0[37] = 0.;
77976fd8 203 par0[38] = 30.;
5aba2f60 204
77976fd8 205 par0[39] = -dz+zch31;
5aba2f60 206 par0[40] = 0.;
77976fd8 207 par0[41] = 29.;
208
209 par0[42] = -dz+zch32;
210 par0[43] = 0.;
211 par0[44] = 29.;
212// start of 1.6 deg cone
213 par0[45] = -dz+zch32;
214 par0[46] = 0.;
215 par0[47] = 30.+(zch32-zConeE)*TMath::Tan(thetaOpenPbO);
216// recess station 4
217 par0[48] = -dz+zch41;
218 par0[49] = 0.;
219 par0[50] = 30.+(zch41-zConeE)*TMath::Tan(thetaOpenPbO);
220
221 par0[51] = -dz+zch41;
222 par0[52] = 0.;
223 par0[53] = 37.5;
224
225 par0[54] = -dz+zch42;
226 par0[55] = 0.;
227 par0[56] = 37.5;
228
229 par0[57] = -dz+zch42;
230 par0[58] = 0.;
231 par0[59] = 30.+(zch42-zConeE)*TMath::Tan(thetaOpenPbO);
232
233// recess station 5
234
235 par0[60] = -dz+zch51;
236 par0[61] = 0.;
237 par0[62] = 30.+(zch51-zConeE)*TMath::Tan(thetaOpenPbO);
238
239 par0[63] = -dz+zch51;
240 par0[64] = 0.;
241 par0[65] = 37.5;
242
243 par0[66] = -dz+zch52;
244 par0[67] = 0.;
245 par0[68] = 37.5;
246
247 par0[69] = -dz+zch52;
248 par0[70] = 0.;
249 par0[71] = 30.+(zch52-zConeE)*TMath::Tan(thetaOpenPbO);
250
251// end of cone
252
253 par0[72] = -dz+zvac10;
254 par0[73] = 0.;
255 par0[74] = 30.+(zvac10-zConeE)*TMath::Tan(thetaOpenPbO);
5aba2f60 256
77976fd8 257 par0[75] = -dz+zvac10;
258 par0[76] = 0.;
259 par0[77] = R42;
260
261 par0[78] = -dz+zvac11;
262 par0[79] = 0.;
263 par0[80] = R42;
264
265 par0[81] = -dz+zvac11;
266 par0[82] = 0.;
267 par0[83] = R43;
268
269 par0[84] = -dz+zvac12;
270 par0[85] = 0.;
271 par0[86] = R43;
272
273 gMC->Gsvolu("YMOT", "PCON", idtmed[kVacuum], par0, 87);
5aba2f60 274 dz=zstart+dl;
275 gMC->Gspos("YMOT", 1, "ALIC", 0., 0., dz, 0, "ONLY");
276//
277
278 dZ=-dl;
279
280//
281// First section: bellows below and behind front absorber
282//
283//
284 par1[0] = 0.;
285 par1[1] = 360.;
286 par1[2] = 12.;
287 dl=(zvac4-zstart)/2.;
288
289 par1[3] = -dl;
290 par1[4] = rAbs+(zstart-zOpen) * TMath::Tan(thetaOpen1);
291 par1[5] = zstart * TMath::Tan(accMin);
292
293 par1[6] = -dl+zvac1-zstart;
294 par1[7] = rAbs+ (zvac1-zOpen) * TMath::Tan(thetaOpen1);
295 par1[8] = zvac1 * TMath::Tan(accMin);
296
77976fd8 297 par1[9] = par1[6]+dr11/2.;
5aba2f60 298 par1[10] = par1[7]+dr11;
77976fd8 299 par1[11] = (zvac1+dr11/2.) * TMath::Tan(accMin);
5aba2f60 300
301 par1[12] = -dl+dRear1;
302 par1[13] = par1[10];
303 par1[14] = zRear * TMath::Tan(accMin);
304
305 par1[15] = -dl+dRear1;
306 par1[16] = par1[10];
307 par1[17] = R11;
308
309 par1[18] = -dl+(zvac1+dr11+dB1-zstart);
310 par1[19] = par1[16];
311 par1[20] = R11;
312
313 par1[21] = par1[18]+dr12;
314 par1[22] = par1[19]+dr12;
315 par1[23] = R11;
316
317 par1[24] = par1[21]+dF1;
318 par1[25] = par1[22];
319 par1[26] = R11;
320
321 par1[27] = par1[24]+dr12;
77976fd8 322 par1[28] = par1[25]-dr12;
5aba2f60 323 par1[29] = R11;
324
325 par1[30] = par1[27]+dB1;
326 par1[31] = par1[28];
327 par1[32] = R11;
328
329 par1[33] = par1[30]+dr13;
77976fd8 330 par1[34] = par1[31]-dr13;
5aba2f60 331 par1[35] = R11;
332
333 par1[36] = -dl+zvac4-zstart;
a0cb6c86 334 par1[37] = par1[34];
5aba2f60 335 par1[38] = R11;
336
77976fd8 337 Float_t r2 = par1[37];
a0cb6c86 338 Float_t rBox= par1[31]-0.1;
5aba2f60 339 Float_t rc1 = par1[7];
340
341 gMC->Gsvolu("YGO1", "PCON", idtmed[kNiCuW], par1, 39);
342
343//
344// begin Fluka
5aba2f60 345 Float_t rfluka0[8]={rBox,rBox,rBox,rBox,rBox,rBox,rBox,rBox};
b21a5bbd 346 if (fWriteGeometry) {
347 for (ifl=0; ifl<12; ifl++) {
348 zfluka[ifl]=par1[3+3*ifl]+dl+zRear-dRear;
349 rfluka1[ifl] = par1[4+3*ifl];
350 rfluka2[ifl] = par1[5+3*ifl];
351 if (ifl > 3) rfluka2[ifl]=rfluka2[ifl]-dRSteel1;
352 }
353 flukaGeom->Comment("1st part: Shield");
5aba2f60 354// Use default for first three cones
b21a5bbd 355 flukaGeom->SetDefaultVolume("*ACR02");
356 rfluka2[0]=rfluka2[1]=rfluka2[2]=-1;
5aba2f60 357//
b21a5bbd 358 flukaGeom->Comment("Shield");
359 flukaGeom->PolyCone(rfluka1, rfluka2, zfluka, 12, posfluka, "NIW", "MF", "$SHS");
360 flukaGeom->Comment("Vacuum");
361 flukaGeom->PolyCone(rfluka0, rfluka1+2, zfluka+2, 8, posfluka, "VACUUM", "MF", "$SHS");
362 }
363
5aba2f60 364//
365// end Fluka
b21a5bbd 366
367
7520e6df 368 for (i=0; i<39; i++) {
369 pars1[i] = par1[i];
370 }
371
77976fd8 372 for (i=4; i<38; i+=3) pars1[i] = 0.;
5aba2f60 373
77976fd8 374 gMC->Gsvolu("YMO1", "PCON", idtmed[kVacuum+40], pars1, 39);
5aba2f60 375 gMC->Gspos("YGO1", 1, "YMO1", 0., 0., 0., 0, "ONLY");
376 dZ+=dl;
377 gMC->Gspos("YMO1", 1, "YMOT", 0., 0., dZ, 0, "ONLY");
378 dZ+=dl;
379
380//
381// Steel envelope
77976fd8 382 tpar[0]=R11-dRSteel2;
5aba2f60 383 tpar[1]=R11;
77976fd8 384 tpar[2]=(zvac4-zvac3)/2.;
5aba2f60 385 gMC->Gsvolu("YSE1", "TUBE", idtmed[kNiCuW], tpar, 3);
386 dz=dl-tpar[2];
387 gMC->Gspos("YSE1", 1, "YGO1", 0., 0., dz, 0, "ONLY");
388
b21a5bbd 389
5aba2f60 390// begin Fluka
b21a5bbd 391 if (fWriteGeometry) {
392 flukaGeom->Comment("1st part: Steel Envelope");
393 flukaGeom->Cylinder(tpar[0], tpar[1], zRear, zvac4, posfluka, "NIW", "MF", "$SHS");
394 }
395
5aba2f60 396//
397// end Fluka
398
399//
400// 1st section: vacuum system
401//
402//
403// Bellow 1
404//
405 tpar[0]=rB1;
406 tpar[1]=rB1+hB1;
407 tpar[2]=eB1/2.;
408 gMC->Gsvolu("YB11", "TUBE", idtmed[kSteel+40], tpar, 3);
409 Float_t dl1=tpar[2];
410
411 tpar[0]=rB1+hB1-eB1;
412 tpar[1]=rB1+hB1;
413 tpar[2]=(lB1/2.-2.*eB1)/2.;
414 gMC->Gsvolu("YB12", "TUBE", idtmed[kSteel+40], tpar, 3);
415 Float_t dl2=tpar[2];
416
417 tpar[0]=rB1-eB1;
418 tpar[1]=rB1;
419 tpar[2]=lB1/8.;
420 gMC->Gsvolu("YB13", "TUBE", idtmed[kSteel+40], tpar, 3);
421 Float_t dl3=tpar[2];
422
423
424 tpar[0]=0;
425 tpar[1]=rB1+hB1;
74b346fb 426 tpar[2]=-lB1/2.;
5aba2f60 427 gMC->Gsvolu("YBU1", "TUBE", idtmed[kVacuum+40], tpar, 3);
428
74b346fb 429 dz=-lB1/2.+dl3;
5aba2f60 430 gMC->Gspos("YB13", 1, "YBU1", 0., 0., dz, 0, "ONLY");
431 dz+=dl3;
432 dz+=dl1;
433 gMC->Gspos("YB11", 1, "YBU1", 0., 0., dz, 0, "ONLY");
434 dz+=dl1;
435 dz+=dl2;
436 gMC->Gspos("YB12", 1, "YBU1", 0., 0., dz, 0, "ONLY");
437 dz+=dl2;
438 dz+=dl1;
439 gMC->Gspos("YB11", 2, "YBU1", 0., 0., dz, 0, "ONLY");
440 dz+=dl1;
441 dz+=dl3;
442 gMC->Gspos("YB13", 2, "YBU1", 0., 0., dz, 0, "ONLY");
443
444
445 tpar[0]=0;
77976fd8 446 tpar[1]=rB1+hB1+0.5;
b21a5bbd 447 tpar[2]=12.*lB1/2.;
5aba2f60 448 gMC->Gsvolu("YBM1", "TUBE", idtmed[kVacuum+40], tpar, 3);
74b346fb 449 gMC->Gsdvn("YB1S", "YBM1", 12 , 3);
450
77976fd8 451 Float_t bsize = tpar[2];
452 tpar[0]=rB1+hB1;
74b346fb 453 tpar[2]=-lB1/2.;
77976fd8 454 gMC->Gsvolu("YBI1", "TUBE", idtmed[kInsulation+40], tpar, 3);
77976fd8 455
74b346fb 456 gMC->Gspos("YBI1", 1, "YB1S", 0., 0., 0., 0, "ONLY");
457 gMC->Gspos("YBU1", 1, "YB1S", 0., 0., 0., 0, "ONLY");
3a685df6 458
7520e6df 459 dz=-dl+(zvac1-zstart)+dr11/2.+bsize;
5aba2f60 460 gMC->Gspos("YBM1", 1, "YMO1", 0., 0., dz, 0, "ONLY");
461
b21a5bbd 462// dz=dl-dr13-(zvac4-zvac3)-bsize;
463// gMC->Gspos("YBM1", 2, "YMO1", 0., 0., dz, 0, "ONLY");
5aba2f60 464
77976fd8 465
5aba2f60 466//
467// Flange
468
469 tpar[0]=0;
77976fd8 470 tpar[1]=rF1+0.6;
5aba2f60 471 tpar[2]=dF1/2.;
472 gMC->Gsvolu("YFM1", "TUBE", idtmed[kVacuum+40], tpar, 3);
77976fd8 473// Steel
474 tpar[0]=rB1;
475 tpar[1]=rF1+0.6;
5aba2f60 476 tpar[2]=dF1/2.;
477 gMC->Gsvolu("YF11", "TUBE", idtmed[kSteel+40], tpar, 3);
77976fd8 478// Insulation
479 tpar[0]=rF1;
480 tpar[1]=rF1+0.5;
481 tpar[2]=dF1/2.;
482 gMC->Gsvolu("YF12", "TUBE", idtmed[kInsulation+40], tpar, 3);
5aba2f60 483
77976fd8 484
485 gMC->Gspos("YF11", 1, "YFM1", 0., 0., 0., 0, "ONLY");
486 gMC->Gspos("YF12", 1, "YFM1", 0., 0., 0., 0, "ONLY");
5aba2f60 487
7520e6df 488 dz=-dl+(zvac1-zstart)+dr11/2.+2.*bsize+dF1/2.+3.;
5aba2f60 489 gMC->Gspos("YFM1", 2, "YMO1", 0., 0., dz, 0, "ONLY");
490
491//
492// pipe between flange and bellows
77976fd8 493//
494// Steel
5aba2f60 495 tpar[0]=rB1-dTubeS;
77976fd8 496 tpar[1]=rB1+0.6;
7520e6df 497 tpar[2]=1.5;
5aba2f60 498 gMC->Gsvolu("YPF1", "TUBE", idtmed[kSteel+40], tpar, 3);
77976fd8 499// Insulation
500 tpar[0]=rB1;
501 tpar[1]=rB1+0.5;
502 gMC->Gsvolu("YPS1", "TUBE", idtmed[kInsulation+40], tpar, 3);
503 gMC->Gspos("YPS1", 1, "YPF1", 0., 0., 0., 0, "ONLY");
504
7520e6df 505 dz=dz-1.5-dF1/2.;
5aba2f60 506 gMC->Gspos("YPF1", 1, "YMO1", 0., 0., dz, 0, "ONLY");
7520e6df 507 dz=dz+3.0+dF1;
5aba2f60 508 gMC->Gspos("YPF1", 2, "YMO1", 0., 0., dz, 0, "ONLY");
509
510//
511// begin Fluka
b21a5bbd 512 Float_t z1, z2, zcy1, zcy2, zfl;
5aba2f60 513
b21a5bbd 514 if (fWriteGeometry) {
515 flukaGeom->Comment("First Bellow");
516 z1=zvac1+dr11;
3a685df6 517 for (i=0; i<10; i++) {
5aba2f60 518 z2=z1+eB1;
519 flukaGeom->Cylinder(0., rB1, z1, z2, posfluka, "VACUUM", "MF", "$SHH");
520 flukaGeom->Cylinder(rB1, rB1+hB1, z1, z2, posfluka, "STEEL", "MF", "$SHH");
521
522 z1=z2;
523 z2+=lB1/2.-eB1;
524 flukaGeom->Cylinder(0., rB1+hB1-eB1, z1, z2, posfluka, "VACUUM", "MF", "$SHH");
525 flukaGeom->Cylinder(rB1+hB1-eB1, rB1+hB1, z1, z2, posfluka, "STEEL", "MF", "$SHH");
526 z1=z2;
527 z2=z1+eB1;
528 flukaGeom->Cylinder(0., rB1, z1, z2, posfluka, "VACUUM", "MF", "$SHH");
529 flukaGeom->Cylinder(rB1, rB1+hB1, z1, z2, posfluka, "STEEL", "MF", "$SHH");
530 z1=z2;
531 z2+=lB1/2.-eB1;
532 flukaGeom->Cylinder(0., rB1, z1, z2, posfluka, "VACUUM", "MF", "$SHH");
533 flukaGeom->Cylinder(rB1, rB1+eB1, z1, z2, posfluka, "STEEL", "MF", "$SHH");
534 flukaGeom->Cylinder(rB1+eB1, rB1+hB1, z1, z2, posfluka, "AIR", "MF", "$SHH");
535 z1=z2;
536 }
537 flukaGeom->Cylinder(rB1+hB1, rB1+hB1+0.5, zvac1+dr11, z1, posfluka, "AIR", "MF", "$SHH");
538 flukaGeom->Cylinder(rB1+hB1+0.5, rBox, zvac1+dr11, z1, posfluka, "AIR", "MF", "$SHH");
b21a5bbd 539 zcy1=z1;
5aba2f60 540
541
542 flukaGeom->Comment("Second Bellow");
543 z1=zvac3-dr13;
3a685df6 544 for (i=0; i<10; i++) {
5aba2f60 545 z2=z1-eB1;
546 flukaGeom->Cylinder(0., rB1, z2, z1, posfluka, "VACUUM", "MF", "$SHH");
547 flukaGeom->Cylinder(rB1, rB1+hB1, z2, z1, posfluka, "STEEL", "MF", "$SHH");
548 z1=z2;
549 z2-=lB1/2.-eB1;
550 flukaGeom->Cylinder(0., rB1+hB1-eB1, z2, z1, posfluka, "VACUUM", "MF", "$SHH");
551 flukaGeom->Cylinder(rB1+hB1-eB1, rB1+hB1, z2, z1, posfluka, "STEEL", "MF", "$SHH");
552 z1=z2;
553 z2=z1-eB1;
554 flukaGeom->Cylinder(0., rB1, z2, z1, posfluka, "VACUUM", "MF", "$SHH");
555 flukaGeom->Cylinder(rB1, rB1+hB1, z2, z1, posfluka, "STEEL", "MF", "$SHH");
556 z1=z2;
557 z2-=lB1/2.-eB1;
558 flukaGeom->Cylinder(0., rB1, z2, z1, posfluka, "VACUUM", "MF", "$SHH");
559 flukaGeom->Cylinder(rB1, rB1+eB1, z2, z1, posfluka, "STEEL", "MF", "$SHH");
560 flukaGeom->Cylinder(rB1+eB1, rB1+hB1, z2, z1, posfluka, "AIR", "MF", "$SHH");
561 z1=z2;
562 }
563 flukaGeom->Cylinder(rB1+hB1, rB1+hB1+0.5, z1, zvac3-dr13, posfluka, "AIR", "MF", "$SHH");
564 flukaGeom->Cylinder(rB1+hB1+0.5, rBox, z1, zvac3-dr13, posfluka, "AIR", "MF", "$SHH");
565
b21a5bbd 566 zcy2=z1;
5aba2f60 567 flukaGeom->Comment("Flange");
b21a5bbd 568 zfl=(zcy1+zcy2)/2.;
5aba2f60 569
570 z1=zfl-dF1/2.;
571 z2=zfl+dF1/2.;
572 flukaGeom->Cylinder(0.,rF1-2. , z1, z2, posfluka, "VACUUM", "MF", "$SHH");
573 flukaGeom->Cylinder(rF1-2., rF1 , z1, z2, posfluka, "STEEL", "MF", "$SHH");
a0cb6c86 574 flukaGeom->Cylinder(rF1, rF1+0.05 , z1, z2, posfluka, "AIR", "MF", "$SHH");
575 flukaGeom->Cylinder(rF1+0.05, rBox , z1, z2, posfluka, "AIR", "MF", "$SHH");
5aba2f60 576 z2=z1;
577 z1=z2-dFlange;
578 flukaGeom->Cylinder(0.,rB1 , z1, z2, posfluka, "VACUUM", "MF", "$SHH");
579 flukaGeom->Cylinder(rB1, rF1 , z1, z2, posfluka, "STEEL", "MF", "$SHH");
580 flukaGeom->Cylinder(rF1, rF1+0.5 , z1, z2, posfluka, "AIR", "MF", "$SHH");
581 flukaGeom->Cylinder(rF1+0.5, rBox , z1, z2, posfluka, "AIR", "MF", "$SHH");
582 z2=z1;
583 z1=zcy1;
584 flukaGeom->Cylinder(0.,rB1 , z1, z2, posfluka, "VACUUM", "MF", "$SHH");
585 flukaGeom->Cylinder(rB1, rB1+0.1 , z1, z2, posfluka, "STEEL", "MF", "$SHH");
586 flukaGeom->Cylinder(rB1+0.1, rB1+0.6 , z1, z2, posfluka, "AIR", "MF", "$SHH");
587 flukaGeom->Cylinder(rB1+0.6, rBox , z1, z2, posfluka, "AIR", "MF", "$SHH");
588
589 z1=zfl+dF1/2.;
590 z2=z1+dFlange;
591 flukaGeom->Cylinder(0.,rB1 , z1, z2, posfluka, "VACUUM", "MF", "$SHH");
592 flukaGeom->Cylinder(rB1, rF1 , z1, z2, posfluka, "STEEL", "MF", "$SHH");
593 flukaGeom->Cylinder(rF1, rF1+0.5 , z1, z2, posfluka, "AIR", "MF", "$SHH");
594 flukaGeom->Cylinder(rF1+0.5, rBox , z1, z2, posfluka, "AIR", "MF", "$SHH");
595 z1=z2;
596 z2=zcy2;
597 flukaGeom->Cylinder(0.,rB1 , z1, z2, posfluka, "VACUUM", "MF", "$SHH");
598 flukaGeom->Cylinder(rB1, rB1+0.1 , z1, z2, posfluka, "STEEL", "MF", "$SHH");
599 flukaGeom->Cylinder(rB1+0.1, rB1+0.6 , z1, z2, posfluka, "AIR", "MF", "$SHH");
600 flukaGeom->Cylinder(rB1+0.6, rBox , z1, z2, posfluka, "AIR", "MF", "$SHH");
b21a5bbd 601 }
5aba2f60 602// end Fluka
603//
604
77976fd8 605// Pipe+Heating 1.5 mm
606// Heating Jacket 5.0 mm
607// Protection 1.0 mm
608// ========================
609// 7.5 mm
5aba2f60 610// pipe and heating jackets outside bellows
611//
612// left side
7520e6df 613 cpar0[0]=(zvac1+dr11/2.-zstart)/2;
77976fd8 614 cpar0[1]=rVacu-0.05 +(zstart-zOpen)*TMath::Tan(thetaOpen1);
615 cpar0[2]=rVacu+0.7 +(zstart-zOpen)*TMath::Tan(thetaOpen1);
5aba2f60 616 cpar0[3]=cpar0[1]+2.*cpar0[0]*TMath::Tan(thetaOpen1);
617 cpar0[4]=cpar0[2]+2.*cpar0[0]*TMath::Tan(thetaOpen1);
618 gMC->Gsvolu("YV11", "CONE", idtmed[kSteel+40], cpar0, 5);
619//
620// insulation
621 dTubeS=0.15;
622 cpar[0]=cpar0[0];
623 cpar[1]=cpar0[1]+0.15;
624 cpar[2]=cpar0[1]+0.65;
625 cpar[3]=cpar0[3]+0.15;
626 cpar[4]=cpar0[3]+0.65;
627 gMC->Gsvolu("YI11", "CONE", idtmed[kInsulation+40], cpar, 5);
628 gMC->Gspos("YI11", 1, "YV11", 0., 0., 0., 0, "ONLY");
5aba2f60 629 dz=-dl+cpar0[0];
630 gMC->Gspos("YV11", 1, "YMO1", 0., 0., dz, 0, "ONLY");
631
632// begin Fluka
633//
634 Float_t rf1[10], rf2[10];
b21a5bbd 635 char* materialsA[7]
636 = {"VACUUM", "STEEL", "PIPEINSU", "STEEL", "AIR", "AIR"};
637 char* fieldsA[7]
638 = {"MF", "MF", "MF", "MF", "MF", "MF"};
639 char* cutsA[7]
640 = {"$SHH","$SHH","$SHH","$SHH","$SHH","$SHH","$SHH"};
641
642 if (fWriteGeometry) {
5aba2f60 643 rf1[0]=0.; rf2[0]=0.;
644 rf1[1] = cpar0[1];
645 rf2[1] = cpar0[3];
646
647
648 rf1[2]=rf1[1]+0.15; rf1[3]=rf1[2]+0.5; rf1[4]=rf1[3]+0.1;
77976fd8 649 rf1[5]=par1[4];
5aba2f60 650 rf2[2]=rf2[1]+0.15; rf2[3]=rf2[2]+0.5; rf2[4]=rf2[3]+0.1;
77976fd8 651 rf2[5]=par1[7];
5aba2f60 652
5aba2f60 653
654 flukaGeom->Comment("1st part: Beam pipe lateral struture (left)");
655 flukaGeom->OnionCone(rf1, rf2, 6 , zstart, zvac1, posfluka, materialsA, fieldsA, cutsA);
d3be3170 656 for (i=0; i<6; i++) rf1[i]=rf2[i];
657 for (i=1; i<6; i++) rf2[i]=rf1[i]+dr11*TMath::Tan(thetaOpen1);
5aba2f60 658 flukaGeom->OnionCone(rf1, rf2, 6 , zvac1, zvac1+dr11, posfluka, materialsA, fieldsA, cutsA);
659 flukaGeom->Cone(rc1, rf2[5], rc1, rc1+dr11, zvac1 , zvac1+dr11, posfluka,"AIR", "MF", "$SHH");
b21a5bbd 660 }
661
5aba2f60 662//
663// end Fluka
664
665
666// right side
77976fd8 667 dTubeS = 0.35;
668 dVacuS += 0.25;
5aba2f60 669
77976fd8 670 cpar0[0] = (zvac4-zvac3)/2;
671 cpar0[1] = rB1;
672 cpar0[2] = cpar0[1]+dVacuS;
673 cpar0[3] = cpar0[1]+2.*cpar0[0]*TMath::Tan(thetaOpenB);
674 cpar0[4] = cpar0[2]+2.*cpar0[0]*TMath::Tan(thetaOpenB);
5aba2f60 675 gMC->Gsvolu("YV12", "CONE", idtmed[kSteel], cpar0, 5);
676 Float_t r2V=cpar0[3];
677//
678// insulation
77976fd8 679 cpar[0] = cpar0[0];
680 cpar[1] = cpar0[1]+dTubeS;
681 cpar[2] = cpar0[1]+dTubeS+dInsuS;
682 cpar[3] = cpar0[3]+dTubeS;
683 cpar[4] = cpar0[3]+dTubeS+dInsuS;
5aba2f60 684 gMC->Gsvolu("YI12", "CONE", idtmed[kInsulation], cpar, 5);
685 gMC->Gspos("YI12", 1, "YV12", 0., 0., 0., 0, "ONLY");
686
5aba2f60 687 dz=dl-cpar0[0];
688 gMC->Gspos("YV12", 1, "YMO1", 0., 0., dz, 0, "ONLY");
689
690//
691// begin Fluka
77976fd8 692 char* materialsB[5]
693 = {"VACUUM", "STEEL", "PIPEINSU", "STEEL", "AIR"};
694
695 char* fieldsB[5]
696 = {"MF", "MF", "MF", "MF", "MF"};
5aba2f60 697
77976fd8 698 char* cutsB[5]
699 = {"$SHH","$SHH","$SHH","$SHH","$SHH"};
b21a5bbd 700
701 if (fWriteGeometry) {
702
5aba2f60 703 rf1[0]=rf2[0]=0.;
704 rf1[1]=cpar0[1];
705 rf2[1]=cpar0[3];
706
707 rf1[2]=rf1[1]+dTubeS; rf1[3]=rf1[2]+dInsuS; rf1[4]=rf1[3]+dEnveS;
77976fd8 708 rf1[5]=r2;
5aba2f60 709
710 rf2[2]=rf2[1]+dTubeS; rf2[3]=rf2[2]+dInsuS; rf2[4]=rf2[3]+dEnveS;
77976fd8 711 rf2[5]=r2;
5aba2f60 712 flukaGeom->Comment("1st part: Beam pipe lateral structure (right)");
77976fd8 713 flukaGeom->OnionCone(rf1, rf2, 6 , zvac3, zvac4, posfluka, materialsB, fieldsB, cutsB);
714 for (i=0; i<6; i++) rf2[i]=rf1[i];
715 for (i=1; i<5; i++) rf1[i]=rf2[i];
716 rf1[5]=rf2[5]+dr13;
717 flukaGeom->OnionCone(rf1, rf2, 6 , zvac3-dr13, zvac3, posfluka, materialsB, fieldsB, cutsB);
b21a5bbd 718 }
719
5aba2f60 720//
721// end Fluka
722
723//
724// Second Section
725// Between first and second bellow section
726//
727
728 par2[0] = 0.;
729 par2[1] = 360.;
77976fd8 730 par2[2] = 11.;
5aba2f60 731 dl=(zvac7-zvac4)/2.;
a0cb6c86 732// recess station 2
5aba2f60 733 par2[3] = -dl;
a0cb6c86 734 par2[4] = r2;
735 par2[5] = R21;
736
77976fd8 737 par2[6] = -dl+.1;
a0cb6c86 738 par2[7] = r2;
5aba2f60 739 par2[8] = R21;
740
a0cb6c86 741 par2[9] = -dl+(zvac6-zvac4);
742 par2[10] = r2+(zvac6-zvac4-10.) * TMath::Tan(thetaOpen2);
5aba2f60 743 par2[11] = R21;
744
745 par2[12] = -dl+(zvac6-zvac4);
746 par2[13] = par2[10];
747 par2[14] = zvac6*TMath::Tan(accMin);
748
749// Start of Pb section
750 par2[15] = -dl+(zPb-zvac4);
a0cb6c86 751 par2[16] = r2+(zPb-zvac4-10.) * TMath::Tan(thetaOpen2);
5aba2f60 752 par2[17] = zPb*TMath::Tan(accMin);
5aba2f60 753//
754// end of cone following 2 deg line
755 par2[18] = -dl+(zConeE-zvac4);
a0cb6c86 756 par2[19] = r2+(zConeE-zvac4-10.) * TMath::Tan(thetaOpen2);
5aba2f60 757 par2[20] = 30.;
77976fd8 758// recess station 3
759 par2[21] = -dl+(zch31-zvac4);
760 par2[22] = r2+(zch31-zvac4-10.) * TMath::Tan(thetaOpen2);
5aba2f60 761 par2[23] = 30.;
762
77976fd8 763 par2[24] = -dl+(zch31-zvac4);
764 par2[25] = r2+(zch31-zvac4-10.) * TMath::Tan(thetaOpen2);
765 par2[26] = 29.;
5aba2f60 766
77976fd8 767 par2[27] = -dl+(zch32-zvac4);
768 par2[28] = r2+(zch32-zvac4-10.) * TMath::Tan(thetaOpen2);
769 par2[29] = 29.;
5aba2f60 770
77976fd8 771 par2[30] = -dl+(zch32-zvac4);
772 par2[31] = r2+(zch32-zvac4-10.) * TMath::Tan(thetaOpen2);
773 par2[32] = 30.;
5aba2f60 774
77976fd8 775 par2[33] = -dl+(zvac7-zvac4);
776 par2[34] = r2+(zvac7-zvac4-10.) * TMath::Tan(thetaOpen2);
777 par2[35] = 30.;
5aba2f60 778
77976fd8 779 gMC->Gsvolu("YGO2", "PCON", idtmed[kSteel+40], par2, 36);
5aba2f60 780
77976fd8 781//
782// begin Fluka
b21a5bbd 783 Float_t r3V;
784
785 if (fWriteGeometry) {
786 char* materials1[8]
77976fd8 787 = {"VACUUM", "STEEL", "PIPEINSU", "STEEL", "AIR", "NIW", "NIW", "STEEL"};
788 char* fields1[8]
789 = {"MF", "MF", "MF", "MF", "MF", "MF", "MF", "MF"};
790 char* cuts1[8]
791 = {"$SHH","$SHH","$SHH","$SHH","$SHH","$SHH","$SHH","$SHH"};
5aba2f60 792
77976fd8 793 flukaGeom->Comment("2nd part: Beam shield lateral struture (0)");
794 // until end of recess 1
795 rf1[0] = 0.; rf1[1] = r2V; rf1[2] = rf1[1] + dTubeS; rf1[3] = rf1[2] + dInsuS;
796 rf1[4] = rf1[3] + dEnveS; rf1[5] = r2; rf1[6] = rf1[5]+2.;
797 rf1[7] = R11-dRSteel1; rf1[8] = R21;
5aba2f60 798
77976fd8 799 for (i=1; i<7; i++) rf2[i]=rf1[i]+4.*TMath::Tan(thetaOpenB);
800 rf2[7] = rf1[7];
801 rf2[8] = rf1[8];
802 flukaGeom->OnionCone(rf1, rf2, 9 , zvac4, zvac4+4, posfluka, materials1, fields1, cuts1);
803
804 flukaGeom->Comment("2nd part: Beam shield lateral struture (1)");
805 // until end of recess 2
806 for (i=0; i<9; i++) rf1[i]=rf2[i];
807 rf1[7] = R21-dRSteel2; rf1[8] = R21;
808 for (i=1; i<9; i++) rf2[i]=rf1[i]+(zvac6-zvac4-4.)*TMath::Tan(thetaOpenB);
809 rf2[7] = rf1[7];
810 rf2[8] = rf1[8];
811 flukaGeom->OnionCone(rf1, rf2, 9 , zvac4+4, zvac6, posfluka, materials1, fields1, cuts1);
812
813 flukaGeom->Comment("2nd part: Beam shield lateral struture (2)");
814 // steel recess
815 for (i=0; i<9; i++) rf1[i]=rf2[i];
816 rf1[8] = zvac6*TMath::Tan(accMin);
817 rf1[7] = R21-dRSteel2;
818
819 for (i=1; i<9; i++) rf2[i]=rf1[i]+4.*TMath::Tan(thetaOpenB);
820 rf2[7] = rf1[7];
821
822 rf2[8] = -(rf1[8]+4.*TMath::Tan(accMin));
823 rf1[8] = -rf1[8];
824
825 flukaGeom->OnionCone(rf1, rf2, 9 , zvac6, zvac6+4, posfluka, materials1, fields1, cuts1);
826 rf1[8] = -rf1[8];
827 rf2[8] = -rf2[8];
5aba2f60 828
77976fd8 829 flukaGeom->Comment("2nd part: Beam shield lateral struture (3)");
830 // until start of lead section
831 for (i=0; i<9; i++) rf1[i]=rf2[i];
832 for (i=1; i<9; i++) rf2[i]=rf1[i]+(zPb-zvac6-4.)*TMath::Tan(thetaOpenB);
833 rf1[7] = rf1[8] - dRSteel2;
834 rf2[8] = rf1[8] + (zPb-zvac6-4.)*TMath::Tan(accMin);
835 rf2[7] = rf2[8] - dRSteel2;
836
837 rf1[8]=-rf1[8];
838 rf2[8]=-rf2[8];
839 flukaGeom->OnionCone(rf1, rf2, 9 , zvac6+4, zPb, posfluka, materials1, fields1, cuts1);
840 rf1[8]=-rf1[8];
841 rf2[8]=-rf2[8];
842
843 flukaGeom->Comment("2nd part: Beam shield lateral struture (4)");
844 // until end of 2deg
845 materials1[5] = "LEAD";
846 materials1[6] = "LEAD";
847 for (i=0; i<9; i++) rf1[i]=rf2[i];
848 for (i=1; i<9; i++) rf2[i]=rf1[i]+(zConeE-zPb)*TMath::Tan(thetaOpenB);
849 rf1[8] = -rf1[8];
850 rf2[8] = -30.;
851 rf2[7] = 26.;
852 flukaGeom->OnionCone(rf1, rf2, 9 , zPb, zConeE, posfluka, materials1, fields1, cuts1);
853 rf1[8]=-rf1[8];
854 rf2[8]=-rf2[8];
855
856 flukaGeom->Comment("2nd part: Beam shield lateral struture (4)");
857 // until end of this section
858 for (i=0; i<9; i++) rf1[i]=rf2[i];
859 for (i=1; i<9; i++) rf2[i]=rf1[i]+(zvac7-zConeE)*TMath::Tan(thetaOpenB);
860 rf2[8] = 30;
861 rf2[7] = 26;
862 flukaGeom->OnionCone(rf1, rf2, 9 , zConeE, zvac7, posfluka, materials1, fields1, cuts1);
5aba2f60 863
b21a5bbd 864 r3V = rf2[1];
865 }
866
5aba2f60 867// end Fluka
868
869//
77976fd8 870// Lead cone
5aba2f60 871//
b21a5bbd 872 Float_t parPb[18];
873 parPb[ 0] = 0.;
874 parPb[ 1] = 360.;
875 parPb[ 2] = 5.;
5aba2f60 876 Float_t dlPb=(zvac7-zPb)/2.;
877
b21a5bbd 878 parPb[ 3] = -dlPb;
879 parPb[ 4] = r2+(zPb-zvac4-10.) * TMath::Tan(thetaOpen2);
880 parPb[ 5] = zPb*TMath::Tan(accMin)-dRSteel2;
5aba2f60 881
b21a5bbd 882 parPb[ 6] = -dlPb+(zConeE-zPb);
883 parPb[ 7] = r2+(zConeE-zvac4-10.) * TMath::Tan(thetaOpen2);
884 parPb[ 8] = 26.;
885
886 parPb[ 9] = -dlPb+(zch32+4.-zPb);
887 parPb[10] = r2+(zch32+4.-zvac4-10.) * TMath::Tan(thetaOpen2);
77976fd8 888 parPb[11] = 26.;
a0cb6c86 889
b21a5bbd 890 parPb[12] = -dlPb+(zch32+4.-zPb);
891 parPb[13] = r2+(zch32+4.-zvac4-10.) * TMath::Tan(thetaOpen2);
892 parPb[14] = 30.;
893
894 parPb[15] = dlPb;
895 parPb[16] = r2+(zvac7-zvac4-10.) * TMath::Tan(thetaOpen2);
896 parPb[17] = 30.;
897
898 gMC->Gsvolu("YXO2", "PCON", idtmed[kPb], parPb, 18);
5aba2f60 899 gMC->Gspos("YXO2", 1, "YGO2", 0., 0., (zPb-zvac4)/2., 0, "ONLY");
a0cb6c86 900
77976fd8 901//
902// W cone
903//
904 Float_t parW[15];
905 parW[0] = 0.;
906 parW[1] = 360.;
907 parW[2] = 4.;
908 Float_t dlW=(zPb-zvac4)/2.;
a0cb6c86 909
77976fd8 910 parW[3] = -dlW;
911 parW[4] = r2;
912 parW[5] = R21-dRSteel2;
a0cb6c86 913
77976fd8 914 parW[6] = -dlW+(zvac6-zvac4)+dRSteel2;
915 parW[7] = r2+(zvac6-zvac4+dRSteel2) * TMath::Tan(thetaOpen2);
916 parW[8] = R21-dRSteel2;
917
918 parW[9] = -dlW+(zvac6-zvac4)+dRSteel2;
919 parW[10] = r2+(zvac6-zvac4+dRSteel2) * TMath::Tan(thetaOpen2);
920 parW[11] = (zvac6+dRSteel2)*TMath::Tan(accMin)-dRSteel2;
921
922 parW[12] = dlW;
923 parW[13] = r2+(zPb-zvac4) * TMath::Tan(thetaOpen2);
924 parW[14] = zPb*TMath::Tan(accMin)-dRSteel2;
a0cb6c86 925
77976fd8 926 gMC->Gsvolu("YYO2", "PCON", idtmed[kNiCuW], parW, 15);
927 gMC->Gspos("YYO2", 1, "YGO2", 0., 0., -(zvac7-zPb)/2., 0, "ONLY");
a0cb6c86 928
77976fd8 929 for (i=4; i<35; i+=3) par2[i] = 0;
5aba2f60 930
77976fd8 931 gMC->Gsvolu("YMO2", "PCON", idtmed[kVacuum+40], par2, 36);
5aba2f60 932 gMC->Gspos("YGO2", 1, "YMO2", 0., 0., 0., 0, "ONLY");
933 dZ+=dl;
934 gMC->Gspos("YMO2", 1, "YMOT", 0., 0., dZ, 0, "ONLY");
935 dZ+=dl;
936//
5aba2f60 937//
938// 2nd section: vacuum system
939//
940 cpar0[0]=(zvac7-zvac4)/2;
941 cpar0[1]=r2V;
942 cpar0[2]=r2V+dVacuS;
943 cpar0[3]=cpar0[1]+2.*cpar0[0]*TMath::Tan(thetaOpenB);
944 cpar0[4]=cpar0[2]+2.*cpar0[0]*TMath::Tan(thetaOpenB);
945 gMC->Gsvolu("YV21", "CONE", idtmed[kSteel+40], cpar0, 5);
946//
947// insulation
948 cpar[0]=cpar0[0];
949 cpar[1]=cpar0[1]+dTubeS;
950 cpar[2]=cpar0[1]+dTubeS+dInsuS;
951 cpar[3]=cpar0[3]+dTubeS;
952 cpar[4]=cpar0[3]+dTubeS+dInsuS;
953 gMC->Gsvolu("YI21", "CONE", idtmed[kInsulation+40], cpar, 5);
954 gMC->Gspos("YI21", 1, "YV21", 0., 0., 0., 0, "ONLY");
77976fd8 955 gMC->Gspos("YV21", 1, "YMO2", 0., 0., 0., 0, "ONLY");
5aba2f60 956
957//
958// Third Section: Bellows and Flange
959//
960 par3[0] = 0.;
961 par3[1] = 360.;
962 par3[2] = 8.;
963 dl=(zvac9-zvac7)/2.;
964
965 par3[3] = -dl;
966 par3[4] = r2+(zvac7-zvac3) * TMath::Tan(thetaOpen2);
967 par3[5] = 30.;
968
969 par3[6] = -dl+dr21;
970 par3[7] = par3[4]+dr21;
971 par3[8] = 30.;
972
973 par3[9] = par3[6]+dB2;
974 par3[10] = par3[7];
975 par3[11] = 30.;
976
977 par3[12] = par3[9]+dr22;
978 par3[13] = par3[10]+dr22;
979 par3[14] = 30.;
980
981 par3[15] = par3[12]+dF2;
982 par3[16] = par3[13];
983 par3[17] = 30.;
984
985 par3[18] = par3[15]+dr22;
986 par3[19] = par3[16]-dr22;
987 par3[20] = 30.;
988
989 par3[21] = par3[18]+dB2;
990 par3[22] = par3[19];
991 par3[23] = 30.;
992
993 par3[24] = par3[21]+dr23;
a0cb6c86 994 par3[25] = par3[22];
5aba2f60 995 par3[26] = 30.;
996//
997 rBox=par3[22]-0.1;
998 Float_t r3=par3[25];
999
1000 gMC->Gsvolu("YGO3", "PCON", idtmed[iHeavy+40], par3, 27);
1001
5aba2f60 1002// begin Fluka
b21a5bbd 1003 if (fWriteGeometry) {
77976fd8 1004 Float_t rfvacu0[15];
5aba2f60 1005 for (ifl=0; ifl<8; ifl++) {
1006 zfluka[ifl]=par3[3+3*ifl]+dl+zvac7;
5aba2f60 1007 rfluka1[ifl] = par3[4+3*ifl];
1008 rfluka2[ifl] = par3[5+3*ifl]-4.;
1009 rfluka3[ifl] = par3[5+3*ifl];
1010 rfvacu0[ifl] = 0.;
1011 }
3a685df6 1012 for (i=0; i<8; i++) rfluka0[i]=rBox;
5aba2f60 1013 rfluka0[0]=0.; rfluka0[7]=0.;
1014
1015 flukaGeom->Comment("3rd part: Shield");
77976fd8 1016 flukaGeom->PolyCone(rfluka1, rfluka2, zfluka, 8, posfluka, "LEAD", "MF", "$SHS");
5aba2f60 1017 flukaGeom->Comment("3rd part: Steel envelope");
1018 flukaGeom->PolyCone(rfluka2, rfluka3, zfluka, 8, posfluka, "STEEL", "MF", "$SHS");
1019 flukaGeom->Comment("3rd part: Vacuum");
1020 flukaGeom->PolyCone(rfluka0+1, rfluka1+1, zfluka+1, 6, posfluka, "AIR", "MF", "$SHH");
77976fd8 1021
5aba2f60 1022 flukaGeom->Comment("3rd part: Beam Pipe (left)");
1023
1024 rf1[0]=0.; rf2[0]=0.;
1025 rf1[1] = r3V;
1026 rf2[1] = rf1[1]+dr21*TMath::Tan(thetaOpenB);
77976fd8 1027 rf1[2] = rf1[1]+dTubeS; rf1[3]=rf1[2]+dInsuS; rf1[4]=rf1[3]+dEnveS;
1028 rf1[5] = par3[4];
1029 rf2[2] = rf2[1]+dTubeS; rf2[3]=rf2[2]+dInsuS; rf2[4]=rf2[3]+dEnveS;
1030 rf2[5] = rf1[5]+dr21;
1031 flukaGeom->OnionCone(rf1, rf2, 6 , zvac7, zvac7+dr21, posfluka, materialsB, fieldsB, cutsB);
5aba2f60 1032
1033
1034 flukaGeom->Comment("3rd part: Beam Pipe (right)");
1035
77976fd8 1036 rf1[0] = 0.;
1037 rf1[1] = rf2[1];
1038 rf1[2] = rf1[1]+dTubeS; rf1[3]=rf1[2]+dInsuS; rf1[4]=rf1[3]+dEnveS;
1039 rf1[5] = par3[25];
1040 flukaGeom->OnionCylinder(rf1, 6 , zvac9-dr23, zvac9, posfluka, materialsA, fieldsA, cutsA);
5aba2f60 1041
1042//
1043 flukaGeom->Comment("First Bellow");
1044 z1=zvac7+dr21;
1045
3a685df6 1046 for (i=0; i<7; i++) {
5aba2f60 1047 z2=z1+eB2;
1048 flukaGeom->Cylinder(0., rB2, z1, z2, posfluka, "VACUUM", "MF", "$SHH");
1049 flukaGeom->Cylinder(rB2, rB2+hB2, z1, z2, posfluka, "STEEL", "MF", "$SHH");
1050
1051 z1=z2;
1052 z2+=lB2/2.-eB2;
1053 flukaGeom->Cylinder(0., rB2+hB2-eB2, z1, z2, posfluka, "VACUUM", "MF", "$SHH");
1054 flukaGeom->Cylinder(rB2+hB2-eB2, rB2+hB2, z1, z2, posfluka, "STEEL", "MF", "$SHH");
1055 z1=z2;
1056 z2=z1+eB2;
1057 flukaGeom->Cylinder(0., rB2, z1, z2, posfluka, "VACUUM", "MF", "$SHH");
1058 flukaGeom->Cylinder(rB2, rB2+hB2, z1, z2, posfluka, "STEEL", "MF", "$SHH");
1059 z1=z2;
1060 z2+=lB2/2.-eB2;
1061 flukaGeom->Cylinder(0., rB2, z1, z2, posfluka, "VACUUM", "MF", "$SHH");
1062 flukaGeom->Cylinder(rB2, rB2+eB2, z1, z2, posfluka, "STEEL", "MF", "$SHH");
1063 flukaGeom->Cylinder(rB2+eB2, rB2+hB2, z1, z2, posfluka, "AIR", "MF", "$SHH");
1064 z1=z2;
1065 }
1066 flukaGeom->Cylinder(rB2+hB2, rB2+hB2+0.2, zvac7+dr21, z1, posfluka, "AIR", "MF", "$SHH");
1067 flukaGeom->Cylinder(rB2+hB2+0.2, rBox, zvac7+dr21, z1, posfluka, "AIR", "MF", "$SHH");
1068 zcy1=z1;
1069
1070
1071 flukaGeom->Comment("Second Bellow");
1072 z1=zvac9-dr23;
3a685df6 1073 for (i=0; i<7; i++) {
5aba2f60 1074 z2=z1-eB2;
1075 flukaGeom->Cylinder(0., rB2, z2, z1, posfluka, "VACUUM", "MF", "$SHH");
1076 flukaGeom->Cylinder(rB2, rB2+hB2, z2, z1, posfluka, "STEEL", "MF", "$SHH");
1077 z1=z2;
1078 z2-=lB2/2.-eB2;
1079 flukaGeom->Cylinder(0., rB2+hB2-eB2, z2, z1, posfluka, "VACUUM", "MF", "$SHH");
1080 flukaGeom->Cylinder(rB2+hB2-eB2, rB2+hB2, z2, z1, posfluka, "STEEL", "MF", "$SHH");
1081 z1=z2;
1082 z2=z1-eB2;
1083 flukaGeom->Cylinder(0., rB2, z2, z1, posfluka, "VACUUM", "MF", "$SHH");
1084 flukaGeom->Cylinder(rB2, rB2+hB2, z2, z1, posfluka, "STEEL", "MF", "$SHH");
1085 z1=z2;
1086 z2-=lB2/2.-eB2;
1087 flukaGeom->Cylinder(0., rB2, z2, z1, posfluka, "VACUUM", "MF", "$SHH");
1088 flukaGeom->Cylinder(rB2, rB2+eB2, z2, z1, posfluka, "STEEL", "MF", "$SHH");
1089 flukaGeom->Cylinder(rB2+eB2, rB2+hB2, z2, z1, posfluka, "AIR", "MF", "$SHH");
1090 z1=z2;
1091 }
1092 flukaGeom->Cylinder(rB2+hB2, rB2+hB2+0.2, z1, zvac9-dr23, posfluka, "AIR", "MF", "$SHH");
1093 flukaGeom->Cylinder(rB2+hB2+0.2, rBox, z1, zvac9-dr23, posfluka, "AIR", "MF", "$SHH");
1094
1095 zcy2=z1;
1096 flukaGeom->Comment("Flange");
1097 zfl=(zcy1+zcy2)/2.;
1098
1099 z1=zfl-dF2/2.;
1100 z2=zfl+dF2/2.;
a0cb6c86 1101 flukaGeom->Cylinder(0.,rF2-2., z1, z2, posfluka, "VACUUM", "MF", "$SHH");
1102 flukaGeom->Cylinder(rF2-2., rF2, z1, z2, posfluka, "STEEL", "MF", "$SHH");
1103 flukaGeom->Cylinder(rF2, rF2+0.02 , z1, z2, posfluka, "AIR", "MF", "$SHH");
1104 flukaGeom->Cylinder(rF2+0.02, rBox , z1, z2, posfluka, "AIR", "MF", "$SHH");
5aba2f60 1105 z2=z1;
1106 z1=z2-dFlange;
1107 flukaGeom->Cylinder(0.,rB2 , z1, z2, posfluka, "VACUUM", "MF", "$SHH");
1108 flukaGeom->Cylinder(rB2, rF2 , z1, z2, posfluka, "STEEL", "MF", "$SHH");
1109 flukaGeom->Cylinder(rF2, rF2+0.2 , z1, z2, posfluka, "AIR", "MF", "$SHH");
1110 flukaGeom->Cylinder(rF2+0.2, rBox , z1, z2, posfluka, "AIR", "MF", "$SHH");
1111 z2=z1;
1112 z1=zcy1;
1113 flukaGeom->Cylinder(0.,rB2 , z1, z2, posfluka, "VACUUM", "MF", "$SHH");
1114 flukaGeom->Cylinder(rB2, rB2+0.1 , z1, z2, posfluka, "STEEL", "MF", "$SHH");
1115 flukaGeom->Cylinder(rB2+0.1, rB2+0.2 , z1, z2, posfluka, "AIR", "MF", "$SHH");
1116 flukaGeom->Cylinder(rB2+0.2, rBox , z1, z2, posfluka, "AIR", "MF", "$SHH");
1117
1118 z1=zfl+dF2/2.;
1119 z2=z1+dFlange;
1120 flukaGeom->Cylinder(0.,rB2 , z1, z2, posfluka, "VACUUM", "MF", "$SHH");
1121 flukaGeom->Cylinder(rB2, rF2 , z1, z2, posfluka, "STEEL", "MF", "$SHH");
1122 flukaGeom->Cylinder(rF2, rF2+0.2 , z1, z2, posfluka, "AIR", "MF", "$SHH");
1123 flukaGeom->Cylinder(rF2+0.2, rBox , z1, z2, posfluka, "AIR", "MF", "$SHH");
1124 z1=z2;
1125 z2=zcy2;
1126 flukaGeom->Cylinder(0.,rB2 , z1, z2, posfluka, "VACUUM", "MF", "$SHH");
1127 flukaGeom->Cylinder(rB2, rB2+0.1 , z1, z2, posfluka, "STEEL", "MF", "$SHH");
1128 flukaGeom->Cylinder(rB2+0.1, rB2+0.2 , z1, z2, posfluka, "AIR", "MF", "$SHH");
1129 flukaGeom->Cylinder(rB2+0.2, rBox , z1, z2, posfluka, "AIR", "MF", "$SHH");
b21a5bbd 1130 }
1131
5aba2f60 1132//
1133// end Fluka
b21a5bbd 1134
3a685df6 1135 for (i=4; i<26; i+=3) par3[i] = 0;
1136
5aba2f60 1137 gMC->Gsvolu("YMO3", "PCON", idtmed[kVacuum+40], par3, 27);
1138 gMC->Gspos("YGO3", 1, "YMO3", 0., 0., 0., 0, "ONLY");
1139
1140//
1141// Steel envelope
b21a5bbd 1142// tpar[0]=26;
1143// tpar[1]=30;
1144// tpar[2]=dl;
1145// gMC->Gsvolu("YS31", "TUBE", idtmed[kSteel], tpar, 3);
1146// gMC->Gspos("YS31", 1, "YGO3", 0., 0., 0., 0, "ONLY");
5aba2f60 1147 dZ+=dl;
1148 gMC->Gspos("YMO3", 1, "YMOT", 0., 0., dZ, 0, "ONLY");
1149 dZ+=dl;
1150
1151//
1152// 3rd section: vacuum system
1153//
1154//
1155// Bellow2
1156//
74b346fb 1157 Float_t eps = 0.;
b44de8e7 1158 Float_t lB2S = lB2-eps;
1159
5aba2f60 1160 tpar[0]=rB2;
1161 tpar[1]=rB2+hB2;
1162 tpar[2]=eB2/2.;
1163 gMC->Gsvolu("YB21", "TUBE", idtmed[kSteel+40], tpar, 3);
1164 dl1=tpar[2];
1165
1166 tpar[0]=rB2+hB2-eB2;
1167 tpar[1]=rB2+hB2;
b44de8e7 1168 tpar[2]=(lB2S/2.-2.*eB2)/2.;
5aba2f60 1169 gMC->Gsvolu("YB22", "TUBE", idtmed[kSteel+40], tpar, 3);
1170 dl2=tpar[2];
1171
1172 tpar[0]=rB2-eB2;
1173 tpar[1]=rB2;
b44de8e7 1174 tpar[2]=lB2S/8.;
5aba2f60 1175 gMC->Gsvolu("YB23", "TUBE", idtmed[kSteel+40], tpar, 3);
1176 dl3=tpar[2];
1177
1178
1179 tpar[0]=0;
1180 tpar[1]=rB2+hB2;
74b346fb 1181 tpar[2]= - lB2S/2.;
5aba2f60 1182 gMC->Gsvolu("YBU2", "TUBE", idtmed[kVacuum+40], tpar, 3);
1183
74b346fb 1184 tpar[0]=0;
1185 tpar[1]=rB2+hB2;
1186 tpar[2]=7.*lB2/2.;
1187
1188 gMC->Gsvolu("YBM2", "TUBE", idtmed[kVacuum+40], tpar, 3);
1189 gMC->Gsdvn("YBMS", "YBM2", 7, 3);
1190 gMC->Gspos("YBU2", 1, "YBMS", 0., 0., 0., 0, "ONLY");
1191
1192 dz=-lB2S/2.+dl3;
5aba2f60 1193 gMC->Gspos("YB23", 1, "YBU2", 0., 0., dz, 0, "ONLY");
1194 dz+=dl3;
1195 dz+=dl1;
1196 gMC->Gspos("YB21", 1, "YBU2", 0., 0., dz, 0, "ONLY");
1197 dz+=dl1;
1198 dz+=dl2;
1199 gMC->Gspos("YB22", 1, "YBU2", 0., 0., dz, 0, "ONLY");
1200 dz+=dl2;
1201 dz+=dl1;
1202 gMC->Gspos("YB21", 2, "YBU2", 0., 0., dz, 0, "ONLY");
1203 dz+=dl1;
1204 dz+=dl3;
1205 gMC->Gspos("YB23", 2, "YBU2", 0., 0., dz, 0, "ONLY");
3a685df6 1206
5aba2f60 1207 dz=-dl+dr21+tpar[2];
1208 gMC->Gspos("YBM2", 1, "YMO3", 0., 0., dz, 0, "ONLY");
1209
1210 dz=dl-dr23-tpar[2];
1211 gMC->Gspos("YBM2", 2, "YMO3", 0., 0., dz, 0, "ONLY");
1212
1213//
1214// Flange
1215
1216 tpar[0]=0;
1217 tpar[1]=rF2;
1218 tpar[2]=dF2/2.;
1219 gMC->Gsvolu("YFM2", "TUBE", idtmed[kVacuum+40], tpar, 3);
1220
a0cb6c86 1221 tpar[0]=rF2-2.;
5aba2f60 1222 tpar[1]=rF2;
1223 tpar[2]=dF2/2.;
1224 gMC->Gsvolu("YF21", "TUBE", idtmed[kSteel+40], tpar, 3);
1225 gMC->Gspos("YF21", 1, "YFM2", 0., 0., 0., 0, "ONLY");
1226
1227 tpar[0]=rB2;
a0cb6c86 1228 tpar[1]=rF2-2.;
5aba2f60 1229 tpar[2]=dFlange/2.;
1230 gMC->Gsvolu("YF22", "TUBE", idtmed[kSteel+40], tpar, 3);
1231 dz=-dF2/2.+tpar[2];
1232 gMC->Gspos("YF22", 1, "YFM2", 0., 0., dz, 0, "ONLY");
1233 dz= dF2/2.-tpar[2];
1234 gMC->Gspos("YF22", 2, "YFM2", 0., 0., dz, 0, "ONLY");
1235
1236 dz=dr21/2.-dr23/2.;
1237 gMC->Gspos("YFM2", 2, "YMO3", 0., 0., dz, 0, "ONLY");
1238
1239
1240//
1241// pipe between flange and bellows
1242 tpar[0]=rB2-dTubeS;
1243 tpar[1]=rB2;
1244 tpar[2]=2.*(dB2+dr22-7.*lB2)/4.;
1245 gMC->Gsvolu("YPF2", "TUBE", idtmed[kSteel+40], tpar, 3);
1246 dz=dr21/2.-dr23/2.-dF2/2.-tpar[2];
1247 gMC->Gspos("YPF2", 1, "YMO3", 0., 0., dz, 0, "ONLY");
1248 dz=dr21/2.-dr23/2.+dF2/2.+tpar[2];
1249 gMC->Gspos("YPF2", 2, "YMO3", 0., 0., dz, 0, "ONLY");
1250
77976fd8 1251 Float_t dHorZ=20.;
a0cb6c86 1252
5aba2f60 1253//
1254// 4th section: rear shield and closing cone
1255//
1256 par4[0] = 0.;
1257 par4[1] = 360.;
a0cb6c86 1258 par4[2] = 7.;
5aba2f60 1259 dl=(zvac12-zvac9)/2.;
1260
1261 par4[3] = -dl;
1262 par4[4] = r3;
1263 par4[5] = 30.;
1264
a0cb6c86 1265 par4[6] = -dl+dHorZ;
1266 par4[7] = r3;
5aba2f60 1267 par4[8] = 30.;
1268
a0cb6c86 1269 par4[9] = -dl+(zvac10-zvac9);
1270 par4[10] = r3+(zvac10-zvac9-dHorZ) * TMath::Tan(thetaOpen3);
1271 par4[11] = 30.;
5aba2f60 1272
a0cb6c86 1273 par4[12] = par4[9];
1274 par4[13] = par4[10];
5aba2f60 1275 par4[14] = R42;
1276
a0cb6c86 1277 par4[15] = -dl+(zvac11-zvac9);
1278 par4[16] = r3+(zvac11-zvac9-dHorZ) * TMath::Tan(thetaOpen3);
1279 par4[17] = R42;
5aba2f60 1280
a0cb6c86 1281 par4[18] = par4[15];
1282 par4[19] = par4[16];
5aba2f60 1283 par4[20] = R43;
1284
a0cb6c86 1285 par4[21] = -dl+(zvac12-zvac9);
d6618b0d 1286 par4[22] = rVacu+dVacuS;
a0cb6c86 1287 par4[23] = R43;
1288
1289 gMC->Gsvolu("YGO4", "PCON", idtmed[iHeavy+40], par4, 24);
5aba2f60 1290
b21a5bbd 1291
34caa072 1292// parPb[0] = (zvac12-zvac10)/2.;
1293// parPb[1] = parPb[3];
1294// parPb[2] = 31.;
1295// parPb[3] = parPb[1]+2.*parPb[0]*TMath::Tan(thetaOpenPb);
1296// parPb[4] = 31.;
1297// gMC->Gsvolu("YXO5", "CONE", idtmed[kPb], parPb, 5);
1298// gMC->Gspos("YXO5", 1, "YGO4", 0., 0., -dl+(zvac10-zvac9)+parPb[0], 0, "ONLY");
3a685df6 1299
1300 for (i=4; i<23; i+=3) par4[i] = 0;
5aba2f60 1301
a0cb6c86 1302 gMC->Gsvolu("YMO4", "PCON", idtmed[kVacuum+40], par4, 24);
5aba2f60 1303 gMC->Gspos("YGO4", 1, "YMO4", 0., 0., 0., 0, "ONLY");
1304
1305
1306
1307 dZ+=dl;
1308 gMC->Gspos("YMO4", 1, "YMOT", 0., 0., dZ, 0, "ONLY");
1309 dZ+=dl;
1310//
1311// Closing concrete cone
1312//
1313 cpar[0]=(zvac12-zvac11)/2.;
a0cb6c86 1314 cpar[1] = r3+(zvac11-zvac9-dHorZ) * TMath::Tan(thetaOpen3);
5aba2f60 1315 cpar[2] = cpar[1]+0.001;
77976fd8 1316 cpar[3] = rVacu+dVacuS;
5aba2f60 1317 cpar[4] = cpar[2];
1318 gMC->Gsvolu("YCC4", "CONE", idtmed[kConcrete+40], cpar, 5);
1319 dz=dl-cpar[0];
1320 gMC->Gspos("YCC4", 1, "YGO4", 0., 0., dz, 0, "ONLY");
1321
1322//
1323// begin Fluka
b21a5bbd 1324 Float_t r10, r11;
1325
1326 if (fWriteGeometry) {
1327 r10=r3+(zvac10-zvac9-dHorZ) * TMath::Tan(thetaOpen3);
1328 r11=cpar[1];
a0cb6c86 1329
5aba2f60 1330 flukaGeom->Comment("4th part: Shield");
1331
77976fd8 1332 flukaGeom->Cone(r3, r3, 26.0, 26.0, zvac9, zvac9+dHorZ,
5aba2f60 1333 posfluka, "LEAD", "NF", "$SHH");
a0cb6c86 1334
77976fd8 1335 flukaGeom->Cone(r3, r10, 26.0, 26.0, zvac9+dHorZ, zvac10,
a0cb6c86 1336 posfluka, "LEAD", "NF", "$SHH");
77976fd8 1337 flukaGeom->Cone(r10, r11, 30.0, 30.0, zvac10, zvac11,
5aba2f60 1338 posfluka, "LEAD", "NF", "$SHH");
77976fd8 1339 flukaGeom->Cylinder( cpar[1], 30.0, zvac11, zvac12,
5aba2f60 1340 posfluka, "LEAD", "NF", "$SHH");
77976fd8 1341
5aba2f60 1342
1343 flukaGeom->Comment("4th part: Steel Envelope");
1344 flukaGeom->Cylinder(26.0, 30., zvac9, zvac10, posfluka, "STEEL", "NF", "$SHH");
1345 flukaGeom->Comment("4th part: Closing Cone");
1346 flukaGeom->Cone(cpar[1]-0.1, cpar[3], cpar[1], cpar[1], zvac11, zvac12,
1347 posfluka, "PORTLAND", "NF", "$SHH");
1348 flukaGeom->Comment("4th part: VACUUM");
1349 flukaGeom->Cone(0., 0., cpar[1]-0.1, cpar[3], zvac11, zvac12,
b21a5bbd 1350 posfluka, "VACUUM", "NF", "$SHH");
1351 }
1352
5aba2f60 1353//
1354// end Fluka
5aba2f60 1355//
1356// Steel envelope
1357//
1358 dz=-dl;
1359 tpar[0]=26.;
1360 tpar[1]=30.;
1361 tpar[2]=(zvac10-zvac9)/2.;
1362 gMC->Gsvolu("YS41", "TUBE", idtmed[kSteel], tpar, 3);
1363 dz+=tpar[2];
b21a5bbd 1364// gMC->Gspos("YS41", 1, "YGO4", 0., 0., dz, 0, "ONLY");
5aba2f60 1365 dz+=tpar[2];
77976fd8 1366
5aba2f60 1367 tpar[0]=R41-dRSteel2;
1368 tpar[1]=R41;
1369 tpar[2]=(zvac11-zvac10)/2.;
77976fd8 1370 gMC->Gsvolu("YS43", "TUBE", idtmed[kPb], tpar, 3);
5aba2f60 1371 dz+=tpar[2];
1372 gMC->Gspos("YS43", 1, "YGO4", 0., 0., dz, 0, "ONLY");
1373//
1374// rear lead shield
1375//
1376 tpar[0]=R41;
1377 tpar[1]=R42;
1378 tpar[2]=(zvac11-zvac10)/2.;
1379 gMC->Gsvolu("YPBI", "TUBE", idtmed[kPb+40], tpar, 3);
1380 dz-=0;
1381 gMC->Gspos("YPBI", 1, "YGO4", 0., 0., dz, 0, "ONLY");
1382
1383 tpar[0]=R42-5;
1384 tpar[1]=R42;
1385 tpar[2]=(zvac11-zvac10)/2.;
1386 gMC->Gsvolu("YPBO", "TUBE", idtmed[kPb], tpar, 3);
1387 gMC->Gspos("YPBO", 1, "YPBI", 0., 0., 0., 0, "ONLY");
1388
1389//
1390// rear Fe shield
1391//
1392
1393 tpar[0]=31.;
1394 tpar[1]=R43;
1395 tpar[2]=(zvac12-zvac11)/2.;
1396 gMC->Gsvolu("YFEI", "TUBE", idtmed[kFe+40], tpar, 3);
1397 dz=dl-tpar[2];
1398 gMC->Gspos("YFEI", 1, "YGO4", 0., 0., dz, 0, "ONLY");
1399
1400 tpar[0]=31.;
1401 tpar[1]=R43;
1402 tpar[2]=2.5;
1403 gMC->Gsvolu("YFEO", "TUBE", idtmed[kFe], tpar, 3);
1404 dz=-(zvac12-zvac11)/2.+tpar[2];
1405 gMC->Gspos("YFEO", 1, "YFEI", 0., 0., dz, 0, "ONLY");
1406//
1407// Magnet element
1408//
1409 tpar[0]=0.;
1410 tpar[1]=R43;
b21a5bbd 1411 tpar[2]=60.;
5aba2f60 1412 gMC->Gsvolu("YAEM", "TUBE", idtmed[kAir], tpar, 3);
1413 tpar[0]=rAbs;
1414 tpar[1]=R43;
b21a5bbd 1415 tpar[2]=60.;
5aba2f60 1416 gMC->Gsvolu("YFEM", "TUBE", idtmed[kFe], tpar, 3);
1417 gMC->Gspos("YFEM", 1, "YAEM", 0., 0., 0., 0, "ONLY");
1418
1419//
1420
fe713e43 1421 if (gAlice->GetModule("HALL")) {
b21a5bbd 1422 gMC->Gspos("YAEM", 1, "HUP2", 0., 0., 0., 0, "ONLY");
1423 } else {
1424 dz=zvac12+60.;
1425 gMC->Gspos("YAEM", 1, "ALIC", 0., 0., dz, 0, "ONLY");
1426 }
1427
5aba2f60 1428//
1429//
1430// 4th section: vacuum system
1431//
1432// up to closing cone
77976fd8 1433
1434 r3V=r3-dr23+dVacuS-1.6;
a0cb6c86 1435
5aba2f60 1436 cpar0[0]=(zvac11-zvac9)/2;
a0cb6c86 1437 cpar0[1]=r3V-dVacuS;
1438 cpar0[2]=r3V;
5aba2f60 1439 cpar0[3]=cpar0[1]+2.*cpar0[0]*TMath::Tan(thetaOpen3);
1440 cpar0[4]=cpar0[2]+2.*cpar0[0]*TMath::Tan(thetaOpen3);
1441 gMC->Gsvolu("YV31", "CONE", idtmed[kSteel+40], cpar0, 5);
1442//
1443// insulation
1444 cpar[0]=cpar0[0];
1445 cpar[1]=cpar0[1]+dTubeS;
1446 cpar[2]=cpar0[1]+dTubeS+dInsuS;
1447 cpar[3]=cpar0[3]+dTubeS;
1448 cpar[4]=cpar0[3]+dTubeS+dInsuS;
1449 gMC->Gsvolu("YI31", "CONE", idtmed[kInsulation+40], cpar, 5);
1450 gMC->Gspos("YI31", 1, "YV31", 0., 0., 0., 0, "ONLY");
5aba2f60 1451 dz=-dl+cpar[0];
1452 gMC->Gspos("YV31", 1, "YMO4", 0., 0., dz, 0, "ONLY");
1453
1454//
1455// begin Fluka
b21a5bbd 1456 if (fWriteGeometry) {
a0cb6c86 1457 flukaGeom->Comment("4th part: Beam pipe lateral structure");
3a685df6 1458 for (i=0; i<7; i++) fieldsA[i] = "NF";
a0cb6c86 1459
1460 rf1[0]=0.; rf2[0]=0.;
77976fd8 1461 rf1[1]=rf2[1]; rf2[1]=rf1[1]+dHorZ*TMath::Tan(thetaOpen3);
a0cb6c86 1462
1463 rf1[2]=rf1[1]+dTubeS; rf1[3]=rf1[2]+dInsuS; rf1[4]=rf1[3]+dEnveS;
77976fd8 1464 rf1[5]=r3;
a0cb6c86 1465
1466 rf2[2]=rf2[1]+dTubeS; rf2[3]=rf2[2]+dInsuS; rf2[4]=rf2[3]+dEnveS;
77976fd8 1467 rf2[5]=r3;
a0cb6c86 1468
77976fd8 1469 flukaGeom->OnionCone(rf1, rf2, 6 , zvac9 , zvac9+dHorZ, posfluka, materialsA, fieldsA, cutsA);
a0cb6c86 1470
5aba2f60 1471 rf1[0]=0.; rf2[0]=0.;
5aba2f60 1472
a0cb6c86 1473 rf1[1]=rf2[1]; rf2[1]=rf1[1]+(zvac10-zvac9-dHorZ)*TMath::Tan(thetaOpen3);
1474
5aba2f60 1475 rf1[2]=rf1[1]+dTubeS; rf1[3]=rf1[2]+dInsuS; rf1[4]=rf1[3]+dEnveS;
77976fd8 1476 rf1[5]=r3;
a0cb6c86 1477
5aba2f60 1478 rf2[2]=rf2[1]+dTubeS; rf2[3]=rf2[2]+dInsuS; rf2[4]=rf2[3]+dEnveS;
77976fd8 1479 rf2[5]=r10;
5aba2f60 1480
5aba2f60 1481
77976fd8 1482 flukaGeom->OnionCone(rf1, rf2, 6 , zvac9+dHorZ, zvac10, posfluka, materialsA, fieldsA, cutsA);
5aba2f60 1483
1484 rf1[0]=0.; rf2[0]=0.;
1485 rf1[1]=rf2[1]; rf2[1]=rf1[1]+(zvac11-zvac10)*TMath::Tan(thetaOpen3);
1486
1487 rf1[2]=rf1[1]+dTubeS; rf1[3]=rf1[2]+dInsuS; rf1[4]=rf1[3]+dEnveS;
77976fd8 1488 rf1[5]=r10;
5aba2f60 1489 rf2[2]=rf2[1]+dTubeS; rf2[3]=rf2[2]+dInsuS; rf2[4]=rf2[3]+dEnveS;
77976fd8 1490 rf2[5]=r11;
5aba2f60 1491
77976fd8 1492 flukaGeom->OnionCone(rf1, rf2, 6 , zvac10, zvac11, posfluka, materialsA, fieldsA, cutsA);
b21a5bbd 1493 }
1494
5aba2f60 1495//
1496// end Fluka
5aba2f60 1497//
1498// closing cone
1499 cpar0[0]=(zvac12-zvac11)/2;
a0cb6c86 1500 cpar0[1]=r3V-dVacuS+(zvac11-zvac9)*TMath::Tan(thetaOpen3);
1501 cpar0[2]=r3V +(zvac11-zvac9)*TMath::Tan(thetaOpen3);
5aba2f60 1502 cpar0[3]=rVacu;
12133ee7 1503 cpar0[4]=rVacu+dTubeS+dInsuS+dProtS+dFreeS;
5aba2f60 1504 gMC->Gsvolu("YV32", "CONE", idtmed[kSteel+40], cpar0, 5);
1505//
1506// insulation
1507 cpar[0]=cpar0[0];
1508 cpar[1]=cpar0[1]+dTubeS;
1509 cpar[2]=cpar0[1]+dTubeS+dInsuS;
1510 cpar[3]=cpar0[3]+dTubeS;
1511 cpar[4]=cpar0[3]+dTubeS+dInsuS;
1512 gMC->Gsvolu("YI32", "CONE", idtmed[kInsulation+40], cpar, 5);
1513 gMC->Gspos("YI32", 1, "YV32", 0., 0., 0., 0, "ONLY");
1514//
1515// clearance
9de2c2a2 1516// cpar[1]=cpar0[2]-dProtS-dFreeS;
1517// cpar[2]=cpar0[2]-dProtS;
1518// cpar[3]=cpar0[4]-dProtS-dFreeS;
1519// cpar[4]=cpar0[4]-dProtS;
1520// gMC->Gsvolu("YP32", "CONE", idtmed[kVacuum+40], cpar, 5);
1521// gMC->Gspos("YP32", 1, "YV32", 0., 0., 0., 0, "ONLY");
5aba2f60 1522 dz=dl-cpar[0];
1523 gMC->Gspos("YV32", 1, "YMO4", 0., 0., dz, 0, "ONLY");
1524//
1525//
1526// MUON trigger wall
1527//
1528 tpar[0] = 50.;
1529 tpar[1] = 310.;
1530 tpar[2] = (zFilterOut - zFilterIn) / 2.;
1531 gMC->Gsvolu("YFIM", "TUBE", idtmed[kFe+40], tpar, 3);
1532 dz = (zFilterIn + zFilterOut) / 2.;
1533 tpar[2] -= 10.;
1534 gMC->Gsvolu("YFII","TUBE", idtmed[kFe], tpar, 3);
1535 gMC->Gspos("YFII", 1, "YFIM", 0., 0., 0., 0, "ONLY");
1536 gMC->Gspos("YFIM", 1, "ALIC", 0., 0., dz, 0, "ONLY");
1537//
1538// Shielding close to chamber
1539//
a0cb6c86 1540//
1541 cpar[0]=(zch11-zRear)/2.;
5aba2f60 1542 cpar[1]=R11;
1543 cpar[2]=zRear*TMath::Tan(accMin);
1544 cpar[3]=R11;
1545 cpar[4]=(zRear+2.*cpar[0])*TMath::Tan(accMin);
1546 gMC->Gsvolu("YCS1", "CONE", idtmed[kNiCuW], cpar, 5);
77976fd8 1547 dz=-(zvac12-zstart)/2.+(zRear-zstart)+cpar[0];
1548 gMC->Gspos("YCS1", 1, "YMOT", 0., 0., dz, 0, "ONLY");
5aba2f60 1549
a0cb6c86 1550 cpar[0]=(zvac4-zch12)/2.;
5aba2f60 1551 cpar[1]=R11;
a0cb6c86 1552 cpar[2]=zch12*TMath::Tan(accMin);
5aba2f60 1553 cpar[3]=R11;
a0cb6c86 1554 cpar[4]=(zch12+2.*cpar[0])*TMath::Tan(accMin);
1555 gMC->Gsvolu("YCS3", "CONE", idtmed[kNiCuW], cpar, 5);
77976fd8 1556 dz=-(zvac12-zstart)/2.+(zch12-zstart)+cpar[0];
1557 gMC->Gspos("YCS3", 1, "YMOT", 0., 0., dz, 0, "ONLY");
a0cb6c86 1558
5aba2f60 1559
a0cb6c86 1560// Recess station 1
1561
1562 cpar[0]=(zch12-zch11)/2.;
5aba2f60 1563 cpar[1]=R11;
a0cb6c86 1564 cpar[2]=18.;
5aba2f60 1565 cpar[3]=R11;
e2e83b79 1566 cpar[4]=17.9;
a0cb6c86 1567 gMC->Gsvolu("YCS2", "CONE", idtmed[kAir], cpar, 5);
77976fd8 1568 dz=-(zvac12-zstart)/2.+(zch11-zstart)+cpar[0];
1569 gMC->Gspos("YCS2", 1, "YMOT", 0., 0., dz, 0, "ONLY");
a0cb6c86 1570
1571 Float_t ptubs[5];
1572 ptubs[0] = R11;
e2e83b79 1573 ptubs[1] = 17.9;
a0cb6c86 1574 ptubs[2] = 0.;
1575// phi_min, phi_max
1576 ptubs[3] = 0.;
1577 ptubs[4] = 90.;
1578 gMC->Gsvolu("YCR0", "TUBS", idtmed[kNiCuW], ptubs, 0);
1579 Int_t idrotm[1799];
1580
1581 AliMatrix(idrotm[1701],90., 0., 90., 90., 0., 0.);
1582 AliMatrix(idrotm[1702],90., 90., 90., 180., 0., 0.);
1583 AliMatrix(idrotm[1703],90., 180., 90., 270., 0., 0.);
1584 AliMatrix(idrotm[1704],90., 270., 90., 0., 0., 0.);
12133ee7 1585 // Int_t ipos;
a0cb6c86 1586
1587 dz=-cpar[0];
1588// 1.
1589 ptubs[2]=6.5/2.;
1590 dz+=ptubs[2];
1591 gMC->Gsposp("YCR0", 1, "YCS2", 0., 0., dz, idrotm[1701], "ONLY", ptubs, 5);
1592 gMC->Gsposp("YCR0", 2, "YCS2", 0., 0., dz, idrotm[1703], "ONLY", ptubs, 5);
1593 dz+=ptubs[2];
1594 dz+=1.5;
1595// 2.
1596 ptubs[2]=5.0/2.;
1597 dz+=ptubs[2];
1598 gMC->Gsposp("YCR0", 3, "YCS2", 0., 0., dz, idrotm[1702], "ONLY", ptubs, 5);
1599 gMC->Gsposp("YCR0", 4, "YCS2", 0., 0., dz, idrotm[1704], "ONLY", ptubs, 5);
1600 dz+=ptubs[2];
1601 dz+=1.5;
1602// 3.
1603 ptubs[2]=5.0/2.;
1604 dz+=ptubs[2];
1605 gMC->Gsposp("YCR0", 5, "YCS2", 0., 0., dz, idrotm[1701], "ONLY", ptubs, 5);
1606 gMC->Gsposp("YCR0", 6, "YCS2", 0., 0., dz, idrotm[1703], "ONLY", ptubs, 5);
1607 dz+=ptubs[2];
1608 dz+=1.5;
1609// 4.
1610 ptubs[2]=6.5/2.;
1611 dz+=ptubs[2];
1612 gMC->Gsposp("YCR0", 7, "YCS2", 0., 0., dz, idrotm[1702], "ONLY", ptubs, 5);
1613 gMC->Gsposp("YCR0", 8, "YCS2", 0., 0., dz, idrotm[1704], "ONLY", ptubs, 5);
1614 dz+=ptubs[2];
1615 dz+=1.5;
5aba2f60 1616
1617
a0cb6c86 1618
1619 cpar[0]=(zch21-zvac4)/2.;
5aba2f60 1620 cpar[1]=R21;
1621 cpar[2]=zvac4*TMath::Tan(accMin);
1622 cpar[3]=R21;
1623 cpar[4]=(zvac4+2.*cpar[0])*TMath::Tan(accMin);
1624 gMC->Gsvolu("YCS4", "CONE", idtmed[kNiCuW], cpar, 5);
77976fd8 1625 dz=-(zvac12-zstart)/2.+(zvac4-zstart)+cpar[0];
1626 gMC->Gspos("YCS4", 1, "YMOT", 0., 0., dz, 0, "ONLY");
5aba2f60 1627
a0cb6c86 1628 cpar[0]=(zvac6-zch22)/2.;
5aba2f60 1629 cpar[1]=R21;
a0cb6c86 1630 cpar[2]=zch22*TMath::Tan(accMin);
5aba2f60 1631 cpar[3]=R21;
a0cb6c86 1632 cpar[4]=(zch22+2.*cpar[0])*TMath::Tan(accMin);
1633 gMC->Gsvolu("YCS6", "CONE", idtmed[kNiCuW], cpar, 5);
77976fd8 1634 dz=-(zvac12-zstart)/2.+(zch22-zstart)+cpar[0];
1635 gMC->Gspos("YCS6", 1, "YMOT", 0., 0., dz, 0, "ONLY");
a0cb6c86 1636
1637// Recess station 2
1638
1639 cpar[0]=(zch22-zch21)/2.;
5aba2f60 1640 cpar[1]=R21;
a0cb6c86 1641 cpar[2]=23.;
5aba2f60 1642 cpar[3]=R21;
a0cb6c86 1643 cpar[4]=23.;
1644 gMC->Gsvolu("YCS5", "CONE", idtmed[kAir], cpar, 5);
77976fd8 1645 dz=-(zvac12-zstart)/2.+(zch21-zstart)+cpar[0];
1646 gMC->Gspos("YCS5", 1, "YMOT", 0., 0., dz, 0, "ONLY");
a0cb6c86 1647
1648 ptubs[0] = R21;
1649 ptubs[1] = 23;
1650 ptubs[2] = 0.;
1651 ptubs[3] = 0.;
1652 ptubs[4] = 90.;
1653 gMC->Gsvolu("YCR1", "TUBS", idtmed[kNiCuW], ptubs, 0);
1654
1655 dz=-cpar[0];
1656// 1.
1657 ptubs[2]=7.5/2.;
1658 dz+=ptubs[2];
1659 gMC->Gsposp("YCR1", 1, "YCS5", 0., 0., dz, idrotm[1701], "ONLY", ptubs, 5);
1660 gMC->Gsposp("YCR1", 2, "YCS5", 0., 0., dz, idrotm[1703], "ONLY", ptubs, 5);
1661 dz+=ptubs[2];
1662 dz+=1.5;
1663// 2.
1664 ptubs[2]=6.0/2.;
1665 dz+=ptubs[2];
1666 gMC->Gsposp("YCR1", 3, "YCS5", 0., 0., dz, idrotm[1702], "ONLY", ptubs, 5);
1667 gMC->Gsposp("YCR1", 4, "YCS5", 0., 0., dz, idrotm[1704], "ONLY", ptubs, 5);
1668 dz+=ptubs[2];
1669 dz+=1.5;
1670// 3.
1671 ptubs[2]=6.0/2.;
1672 dz+=ptubs[2];
1673 gMC->Gsposp("YCR1", 5, "YCS5", 0., 0., dz, idrotm[1701], "ONLY", ptubs, 5);
1674 gMC->Gsposp("YCR1", 6, "YCS5", 0., 0., dz, idrotm[1703], "ONLY", ptubs, 5);
1675 dz+=ptubs[2];
1676 dz+=1.5;
1677// 4.
1678 ptubs[2]=7.5/2.;
1679 dz+=ptubs[2];
1680 gMC->Gsposp("YCR1", 7, "YCS5", 0., 0., dz, idrotm[1702], "ONLY", ptubs, 5);
1681 gMC->Gsposp("YCR1", 8, "YCS5", 0., 0., dz, idrotm[1704], "ONLY", ptubs, 5);
1682 dz+=ptubs[2];
1683 dz+=1.5;
1684
1685
1686//
1687// begin Fluka
77976fd8 1688/*
a0cb6c86 1689 flukaGeom->Cone(R11, R11, -1., -1.,
1690 zRear, zch11, posfluka,"NIW", "MF", "$SHS");
1691
1692 flukaGeom->Cone(R11, R11, -1., -1.,
1693 zch11, zch12, posfluka,"AIR", "MF", "$SHS");
1694
1695 flukaGeom->Cone(R11, R11, -1., -1.,
1696 zch12, zvac4, posfluka,"NIW", "MF", "$SHS");
1697
1698 flukaGeom->Cone(R21, R21, -1., -1.,
1699 zvac4, zch21, posfluka,"NIW", "MF", "$SHS");
1700 flukaGeom->Cone(R21, R21, -1., -1.,
1701 zch21, zch22, posfluka,"AIR", "MF", "$SHS");
1702 flukaGeom->Cone(R21, R21, -1., -1.,
1703 zch22, zvac6, posfluka,"NIW", "MF", "$SHS");
1704
77976fd8 1705*/
b21a5bbd 1706 if (fWriteGeometry) flukaGeom->Finish();
a0cb6c86 1707
1708//
1709// end Fluka
5aba2f60 1710//
1711// Outer Pb Cone
a0cb6c86 1712
5aba2f60 1713 if (fPbCone) {
77976fd8 1714 dl = (zvac10-zch32)/2.;
1715 dz = dl+zch32;
1716
a0cb6c86 1717 par0[0] = 0.;
1718 par0[1] = 360.;
1719 par0[2] = 10.;
a0cb6c86 1720
77976fd8 1721 par0[ 3] = -dl;
a0cb6c86 1722 par0[ 4] = 30.;
1723 par0[ 5] = 30.+(zch32-zConeE)*TMath::Tan(thetaOpenPbO);
1724
1725// 4th station
77976fd8 1726 par0[ 6] = -dz + zch41;
a0cb6c86 1727 par0[ 7] = 30.;
1728 par0[ 8] = 30.+(zch41-zConeE)*TMath::Tan(thetaOpenPbO);
1729
77976fd8 1730 par0[ 9] = -dz + zch41;
a0cb6c86 1731 par0[10] = 30.;
1732 par0[11] = 37.5;
1733 // recess erice2000
77976fd8 1734 par0[12] = -dz + zch42;
a0cb6c86 1735 par0[13] = 30.;
1736 par0[14] = par0[11];
1737
77976fd8 1738 par0[15] = -dz + zch42;
a0cb6c86 1739 par0[16] = 30.;
1740 par0[17] = 30.+(zch42-zConeE)*TMath::Tan(thetaOpenPbO);
1741
1742// 5th station
77976fd8 1743 par0[18] = -dz + zch51;
a0cb6c86 1744 par0[19] = 30.;
1745 par0[20] = 30.+(zch51-zConeE)*TMath::Tan(thetaOpenPbO);
1746
77976fd8 1747 par0[21] = -dz + zch51;
a0cb6c86 1748 par0[22] = 30.;
77976fd8 1749 par0[23] = 37.5; // recess erice2000
a0cb6c86 1750
77976fd8 1751 par0[24] = -dz + zch52;
a0cb6c86 1752 par0[25] = 30.;
1753 par0[26] = par0[23];
1754
77976fd8 1755 par0[27] = -dz + zch52;
a0cb6c86 1756 par0[28] = 30.;
1757 par0[29] = 30.+(zch52-zConeE)*TMath::Tan(thetaOpenPbO);
1758// end of cone
77976fd8 1759 par0[30] = +dl;
a0cb6c86 1760 par0[31] = 30.;
1761 par0[32] = par0[29];
1762//
b21a5bbd 1763 Int_t ii;
1764
b21a5bbd 1765
a0cb6c86 1766 gMC->Gsvolu("YOPB", "PCON", idtmed[kPb], par0, 33);
b21a5bbd 1767 Float_t dzs = -(zvac12-zstart)/2. + (zch32-zstart) + dl;
1768 gMC->Gspos("YOPB", 1, "YMOT", 0., 0., dzs, 0, "ONLY");
1769
1770 par0[ 0] = 0.;
1771 par0[ 1] = 360.;
1772 par0[ 2] = 18.;
1773
1774 par0[ 3] = -dl;
1775 par0[ 5] = 30.+(zch32-zConeE)*TMath::Tan(thetaOpenPbO);
1776 par0[ 4] = par0[ 5] - 4.;
1777// 4th station
1778 par0[ 6] = -dz + zch41 - 4.;
1779 par0[ 8] = 30.+(zch41-4.-zConeE)*TMath::Tan(thetaOpenPbO);
1780 par0[ 7] = par0[ 8] -4.;
1781
1782 par0[ 9] = -dz + zch41 - 4.;
1783 par0[11] = par0[8];
1784 par0[10] = 33.5;
1785
1786 par0[12] = -dz + zch41;
1787 par0[14] = 30.+(zch41-zConeE)*TMath::Tan(thetaOpenPbO);
1788 par0[13] = 33.5;
1789
1790 par0[15] = -dz + zch41;
1791 par0[17] = 37.5;
1792 par0[16] = 33.5;
1793
1794 par0[18] = -dz + zch42;
1795 par0[20] = 37.5;
1796 par0[19] = 33.5;
1797
1798 par0[21] = -dz + zch42;
1799 par0[23] = 30.+(zch42-zConeE)*TMath::Tan(thetaOpenPbO);
1800 par0[22] = 33.5;
1801
1802 par0[24] = -dz + zch42 + 4.;
1803 par0[26] = 30.+(zch42+4.-zConeE)*TMath::Tan(thetaOpenPbO);
1804 par0[25] = 33.5;
1805
1806 par0[27] = -dz + zch42 + 4.;
1807 par0[29] = 30.+(zch42+4.-zConeE)*TMath::Tan(thetaOpenPbO);
1808 par0[28] = par0[29] - 4.;
1809
1810// 5th station
1811 par0[30] = -dz + zch51 - 4.;
1812 par0[32] = 30.+(zch51-4.-zConeE)*TMath::Tan(thetaOpenPbO);
1813 par0[31] = par0[32] - 4.;
b21a5bbd 1814
1815 par0[33] = -dz + zch51 - 4.;
1816 par0[35] = par0[32];
1817 par0[34] = 33.5;
1818
1819 par0[36] = -dz + zch51;
1820 par0[38] = 30.+(zch51-zConeE)*TMath::Tan(thetaOpenPbO);
1821 par0[37] = 33.5;
1822
1823 par0[39] = -dz + zch51;
1824 par0[41] = 37.5;
1825 par0[40] = 33.5;
1826
1827 par0[42] = -dz + zch52;
1828 par0[44] = 37.5;
1829 par0[43] = 33.5;
1830
1831 par0[45] = -dz + zch52;
1832 par0[47] = 30.+(zch52-zConeE)*TMath::Tan(thetaOpenPbO);
1833 par0[46] = 33.5;
1834
1835 par0[48] = -dz + zch52 + 4.;
1836 par0[50] = 30.+(zch52+4.-zConeE)*TMath::Tan(thetaOpenPbO);
1837 par0[49] = 33.5;
1838
1839 par0[51] = -dz + zch52 + 4.;
1840 par0[53] = 30.+(zch52+4.-zConeE)*TMath::Tan(thetaOpenPbO);
1841 par0[52] = par0[53] - 4.;
1842
1843 par0[54] = +dl;
1844 par0[56] = par0[53];
1845 par0[55] = par0[52];
1846
b21a5bbd 1847 gMC->Gsvolu("YOSE", "PCON", idtmed[kSteel], par0, 57);
1848 gMC->Gspos ("YOSE", 1, "YOPB", 0., 0., 0., 0, "ONLY");
5aba2f60 1849 }
1850}
1851
1852void AliSHILvF::Init()
1853{
1854 //
1855 // Initialise the muon shield after it has been built
1856 //
1857 Int_t i;
1858 //
12133ee7 1859 if(fDebug) {
1860 printf("\n%s: ",ClassName());
1861 for(i=0;i<35;i++) printf("*");
1862 printf(" SHILvF_INIT ");
1863 for(i=0;i<35;i++) printf("*");
1864 printf("\n%s: ",ClassName());
1865 //
1866 // Here the SHIL initialisation code (if any!)
1867 for(i=0;i<80;i++) printf("*");
1868 printf("\n");
1869 }
5aba2f60 1870}