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