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