1 /**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
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 **************************************************************************/
18 Revision 1.5 2000/06/12 19:39:01 morsch
19 New structure of beam pipe and heating jacket.
21 Revision 1.4 2000/04/03 08:13:40 fca
22 Introduce extra scope for non ANSI compliant C++ compilers
24 Revision 1.3 2000/01/18 17:49:56 morsch
25 Serious overlap of ABSM with shield corrected
26 Small error in ARPB parameters corrected
28 Revision 1.2 2000/01/13 11:23:59 morsch
29 Last layer of Pb outer angle corrected
31 Revision 1.1 2000/01/12 15:39:30 morsch
32 Standard version of ABSO
36 ///////////////////////////////////////////////////////////////////////////////
39 // This class contains the description of the muon absorber geometry //
43 <img src="picts/AliABSOClass.gif">
46 <font size=+2 color=red>
47 <p>The responsible person for this module is
48 <a href="mailto:andreas.morsch@cern.ch">Andreas Morsch</a>.
55 ///////////////////////////////////////////////////////////////////////////////
57 #include "AliABSOv0.h"
63 //_____________________________________________________________________________
64 AliABSOv0::AliABSOv0()
67 // Default constructor
71 //_____________________________________________________________________________
72 AliABSOv0::AliABSOv0(const char *name, const char *title)
76 // Standard constructor
83 //_____________________________________________________________________________
84 void AliABSOv0::CreateGeometry()
87 // Creation of the geometry of the muon absorber
91 <img src="picts/AliABSOv0Tree.gif">
96 <img src="picts/AliABSOv0.gif">
103 enum {kC=1605, kAl=1608, kFe=1609, kCu=1610, kW=1611, kPb=1612,
104 kNiCuW=1620, kVacuum=1615, kAir=1614, kConcrete=1616,
105 kPolyCH2=1617, kSteel=1609, kInsulation=1613};
107 Int_t *idtmed = fIdtmed->GetArray()-1599;
109 Float_t par[24], cpar[5], cpar0[5], pcpar[12], tpar[3], tpar0[3];
112 #include "ABSOSHILConst.h"
113 #include "ABSOConst.h"
114 Float_t dTube=0.1; // tube thickness
115 Float_t dInsu=0.5; // insulation thickness
116 Float_t dEnve=0.1; // protective envelope thickness
117 Float_t dFree=0.5; // clearance thickness
120 // Mother volume and outer shielding: Pb
125 par[3] = -(zRear-zAbsStart)/2.;
127 par[5] = zAbsStart * TMath::Tan(theta1);
129 par[6] = par[3]+(zNose-zAbsStart);
131 par[8] = zNose * TMath::Tan(theta1);
133 par[9] = par[3]+(zConeTPC-zAbsStart);
135 par[11] = par[8] + (par[9] - par[6]) * TMath::Tan(theta2);
137 par[12] = par[3]+(zOpen-zAbsStart);
139 par[14] = par[11] + (par[12] - par[9]) * TMath::Tan(accMax);
141 par[15] = par[3]+(zRear-dRear-zAbsStart);
142 par[16] = rAbs + (par[15] - par[12]) * TMath::Tan(thetaOpen1) ;
143 par[17] = par[14] + (par[15] - par[12]) * TMath::Tan(accMax);
145 par[18] = par[3]+(zRear-dRear-zAbsStart);
146 par[19] = (zRear-dRear) * TMath::Tan(accMin);
147 par[20] = par[14] + (par[18] - par[12]) * TMath::Tan(accMax);
150 par[22] = zRear* TMath::Tan(accMin);
151 par[23] = par[20] + (par[21] - par[18]) * TMath::Tan(accMax);
152 gMC->Gsvolu("ABSS", "PCON", idtmed[kPb], par, 24);
153 { // Begin local scope for i
154 for (Int_t i=4; i<18; i+=3) par[i] = 0;
155 } // End local scope for i
156 gMC->Gsvolu("ABSM", "PCON", idtmed[kVacuum+40], par, 24);
157 gMC->Gspos("ABSS", 1, "ABSM", 0., 0., 0., 0, "ONLY");
162 par[4] = par[5] -dSteel;
163 par[7] = par[8] -dSteel;
164 par[10]= par[11]-dSteel;
165 par[13]= par[14]-dSteel;
166 par[16]= par[17]-dSteel;
167 par[19]= par[20]-dSteel;
168 par[22]= par[23]-dSteel;
169 gMC->Gsvolu("ABST", "PCON", idtmed[kSteel], par, 24);
170 gMC->Gspos("ABST", 1, "ABSS", 0., 0., 0., 0, "ONLY");
172 // Polyethylene shield
174 cpar[0] = (zRear - zConeTPC) / 2.;
175 cpar[1] = zConeTPC * TMath::Tan(accMax);
176 cpar[2] = cpar[1] + dPoly;
177 cpar[3] = zRear * TMath::Tan(accMax);
178 cpar[4] = cpar[3] + dPoly;
179 gMC->Gsvolu("APOL", "CONE", idtmed[kPolyCH2+40], cpar, 5);
180 dz = (zRear-zAbsStart)/2.-cpar[0];
181 gMC->Gspos("APOL", 1, "ABSS", 0., 0., dz, 0, "ONLY");
184 // Tungsten nose to protect TPC
186 cpar[0] = (zNose - zAbsStart) / 2.;
187 cpar[1] = zAbsStart * TMath::Tan(accMax);
188 cpar[2] = zAbsStart * TMath::Tan(theta1)-dSteel;
189 cpar[3] = zNose * TMath::Tan(accMax);
190 cpar[4] = zNose * TMath::Tan(theta1)-dSteel;
191 gMC->Gsvolu("ANOS", "CONE", idtmed[kW], cpar, 5);
193 dz = -(zRear-zAbsStart)/2.+cpar[0];
194 gMC->Gspos("ANOS", 1, "ABSS", 0., 0., dz, 0, "ONLY");
196 // Tungsten inner shield
198 Float_t zW=zTwoDeg+.1;
199 Float_t dZ = zW+(zRear-dRear-zW)/2.;
206 pcpar[5] = zW * TMath::Tan(accMin);
209 pcpar[8] = zOpen * TMath::Tan(accMin);
210 pcpar[9] = zRear-dRear-dZ;
211 pcpar[10] = rAbs+(zRear-dRear-zOpen) * TMath::Tan(thetaOpen1);
212 pcpar[11] = (zRear-dRear) * TMath::Tan(accMin);
214 gMC->Gsvolu("AWIN", "PCON", idtmed[kNiCuW+40], pcpar, 12);
216 dz=(zW+zRear-dRear)/2-(zAbsStart+zRear)/2.;
217 gMC->Gspos("AWIN", 1, "ABSS", 0., 0., dz, 0, "ONLY");
219 // Inner tracking region
226 pcpar[3] = -(zRear-zAbsStart)/2.;
228 pcpar[5] = zAbsStart * TMath::Tan(accMax);
229 pcpar[6] = pcpar[3]+(zTwoDeg-zAbsStart);
231 pcpar[8] = zTwoDeg * TMath::Tan(accMax);
232 pcpar[9] = -pcpar[3];
233 pcpar[10] = zRear * TMath::Tan(accMin);
234 pcpar[11] = zRear * TMath::Tan(accMax);
235 gMC->Gsvolu("AITR", "PCON", idtmed[kPb], pcpar, 12);
237 // special Pb medium for last 5 cm of Pb
238 Float_t zr=zRear-2.-0.001;
240 cpar[1] = zr * TMath::Tan(thetaR);
241 cpar[2] = zr * TMath::Tan(accMax);
242 cpar[3] = cpar[1] + TMath::Tan(thetaR) * 2;
243 cpar[4] = cpar[2] + TMath::Tan(accMax) * 2;
244 gMC->Gsvolu("ARPB", "CONE", idtmed[kPb], cpar, 5);
245 dz=(zRear-zAbsStart)/2.-cpar[0]-0.001;
246 gMC->Gspos("ARPB", 1, "AITR", 0., 0., dz, 0, "ONLY");
248 // concrete cone: concrete
250 pcpar[9] = pcpar[3]+(zRear-dRear-zAbsStart);
251 pcpar[10] = (zRear-dRear) * TMath::Tan(accMin);
252 pcpar[11] = (zRear-dRear) * TMath::Tan(accMax);
253 gMC->Gsvolu("ACON", "PCON", idtmed[kConcrete+40], pcpar, 12);
254 gMC->Gspos("ACON", 1, "AITR", 0., 0., 0., 0, "ONLY");
256 // carbon cone: carbon
258 pcpar[9] = pcpar[3]+(zAbsCc-zAbsStart);
259 pcpar[10] = zAbsCc * TMath::Tan(accMin);
260 pcpar[11] = zAbsCc * TMath::Tan(accMax);
261 gMC->Gsvolu("ACAR", "PCON", idtmed[kC+40], pcpar, 12);
262 gMC->Gspos("ACAR", 1, "ACON", 0., 0., 0., 0, "ONLY");
264 // carbon cone outer region
268 cpar[2] = zAbsStart* TMath::Tan(accMax);
270 cpar[4] = cpar[2]+2. * cpar[0] * TMath::Tan(accMax);
272 gMC->Gsvolu("ACAO", "CONE", idtmed[kC], cpar, 5);
273 dz=-(zRear-zAbsStart)/2.+cpar[0];
274 gMC->Gspos("ACAO", 1, "ACAR", 0., 0., dz, 0, "ONLY");
280 zr=zRear-(dRear-epsi);
281 cpar[0] = (dRear-epsi)/2.;
282 cpar[1] = zr * TMath::Tan(accMin);
283 cpar[2] = zr * TMath::Tan(thetaR*repsi);
284 cpar[3] = cpar[1] + TMath::Tan(accMin) * (dRear-epsi);
285 cpar[4] = cpar[2] + TMath::Tan(thetaR*repsi) * (dRear-epsi);
286 gMC->Gsvolu("ARW0", "CONE", idtmed[kNiCuW+40], cpar, 5);
287 dz=(zRear-zAbsStart)/2.-cpar[0];
288 gMC->Gspos("ARW0", 1, "AITR", 0., 0., dz, 0, "ONLY");
290 // special W medium for last 5 cm of W
293 cpar[1] = zr * TMath::Tan(accMin);
294 cpar[2] = zr * TMath::Tan(thetaR*repsi);
295 cpar[3] = cpar[1] + TMath::Tan(accMin) * 5.;
296 cpar[4] = cpar[2] + TMath::Tan(thetaR*repsi) * 5.;
297 gMC->Gsvolu("ARW1", "CONE", idtmed[kNiCuW+20], cpar, 5);
298 dz=(dRear-epsi)/2.-cpar[0];
299 gMC->Gspos("ARW1", 1, "ARW0", 0., 0., dz, 0, "ONLY");
301 // PolyEthylene Layers
302 Float_t drMin=TMath::Tan(thetaR) * 5;
303 Float_t drMax=TMath::Tan(accMax) * 5;
304 gMC->Gsvolu("ARPE", "CONE", idtmed[kPolyCH2], cpar, 0);
306 { // Begin local scope for i
307 for (Int_t i=0; i<3; i++) {
308 zr=zRear-dRear+5+i*10.;
309 cpar[1] = zr * TMath::Tan(thetaR);
310 cpar[2] = zr * TMath::Tan(accMax);
311 cpar[3] = cpar[1] + drMin;
312 cpar[4] = cpar[2] + drMax;
313 dz=(zRear-zAbsStart)/2.-cpar[0]-5.-(2-i)*10;
314 gMC->Gsposp("ARPE", i+1, "AITR", 0., 0., dz, 0, "ONLY",cpar,5);
316 } // End local scope for i
317 gMC->Gspos("AITR", 1, "ABSS", 0., 0., 0., 0, "ONLY");
318 dz = (zRear-zAbsStart)/2.+zAbsStart;
319 gMC->Gspos("ABSM", 1, "ALIC", 0., 0., dz, 0, "ONLY");
324 // pipe and heating jackets
328 tpar0[2]=(zOpen-zAbsStart)/2;
331 gMC->Gsvolu("AV11", "TUBE", idtmed[kSteel+40], tpar0, 3);
337 tpar[1]=tpar[0]+dInsu;
338 gMC->Gsvolu("AI11", "TUBE", idtmed[kInsulation+40], tpar, 3);
339 gMC->Gspos("AI11", 1, "AV11", 0., 0., 0., 0, "ONLY");
342 tpar[0]=tpar[1]+dEnve;
343 tpar[1]=tpar[0]+dFree;
344 gMC->Gsvolu("AP11", "TUBE", idtmed[kAir+40], tpar, 3);
345 gMC->Gspos("AP11", 1, "AV11", 0., 0., 0., 0, "ONLY");
347 dz=-(zRear-zAbsStart)/2.+tpar0[2];
348 gMC->Gspos("AV11", 1, "ABSM", 0., 0., dz, 0, "ONLY");
352 cpar0[0]=(zRear-dRear-zOpen)/2;
355 Float_t dR=2.*cpar0[0]*TMath::Tan(thetaOpen1);
356 cpar0[3]=cpar0[1]+dR;
357 cpar0[4]=cpar0[2]+dR;
358 gMC->Gsvolu("AV21", "CONE", idtmed[kSteel+40], cpar0, 5);
364 cpar[1]=cpar0[1]+dTube;
365 cpar[2]=cpar0[1]+dTube+dInsu;
366 cpar[3]=cpar0[3]+dTube;
367 cpar[4]=cpar0[3]+dTube+dInsu;
368 gMC->Gsvolu("AI21", "CONE", idtmed[kInsulation+40], cpar, 5);
369 gMC->Gspos("AI21", 1, "AV21", 0., 0., 0., 0, "ONLY");
372 cpar[1]=cpar0[1]+dTube+dInsu+dEnve;
374 cpar[3]=cpar0[1]+dTube+dInsu+dEnve+dR;
377 gMC->Gsvolu("AP21", "CONE", idtmed[kAir+40], cpar, 5);
378 gMC->Gspos("AP21", 1, "AV21", 0., 0., 0., 0, "ONLY");
380 dz=(zRear-zAbsStart)/2.-cpar0[0]-dRear;
381 gMC->Gspos("AV21", 1, "ABSM", 0., 0., dz, 0, "ONLY");
384 //_____________________________________________________________________________
386 void AliABSOv0::Init()
389 // Initialisation of the muon absorber after it has been built
393 for(i=0;i<35;i++) printf("*");
394 printf(" ABSOv0_INIT ");
395 for(i=0;i<35;i++) printf("*");
398 for(i=0;i<80;i++) printf("*");