cut included
[u/mrichter/AliRoot.git] / STRUCT / AliFRAMEv2.cxx
CommitLineData
7e5caa00 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$
4c057bc8 18Revision 1.7 2001/10/16 14:50:59 morsch
19... or better use modified IsVersion() method.
20
6304e7d2 21Revision 1.6 2001/10/16 14:33:04 morsch
22Hole() method needed by TRD to find out wheter frame has holes.
23
d03c72a2 24Revision 1.5 2001/08/28 15:54:29 morsch
25Web frame and inner rings pointing.
26
4a8eca94 27Revision 1.4 2001/06/22 14:11:17 morsch
28Back to official z-positions of rings.
29
02e42643 30Revision 1.3 2001/06/22 12:02:20 morsch
31Ring locations matching TRD module positions.
32
af3fbbe1 33Revision 1.2 2001/05/25 07:59:54 morsch
34Initialization print-out in debug mode only.
35
0a05c568 36Revision 1.1 2001/05/11 13:18:05 morsch
37C++ version of spaceframe with specs according to Jan Bielski Feb. 2001
38
7e5caa00 39*/
40
41////////////////////////////////////////////////
42// space frame class /
43///////////////////////////////////////////////
44
45#include "AliFRAMEv2.h"
46#include "AliMagF.h"
47#include "AliRun.h"
48#include "AliMC.h"
49#include "TSystem.h"
50
51ClassImp(AliFRAMEv2)
52
53//_____________________________________________________________________________
54AliFRAMEv2::AliFRAMEv2()
55{
56// Constructor
57 SetHoles(0);
58}
59
60//_____________________________________________________________________________
61AliFRAMEv2::AliFRAMEv2(const char *name, const char *title)
62 : AliFRAME(name,title)
63{
64// Constructor
65 SetHoles(0);
66}
67
68
69//___________________________________________
70void AliFRAMEv2::CreateGeometry()
71{
72//Begin_Html
73/*
74<img src="picts/frame.gif">
75*/
76//End_Html
77
78
79//Begin_Html
80/*
81<img src="picts/tree_frame.gif">
82*/
83//End_Html
84
4a8eca94 85 Int_t idrotm[2299];
7e5caa00 86 Int_t *idtmed = fIdtmed->GetArray()-1999;
87//
88// The Space frame
89//
90//
91 Float_t pbox[3], ptrap[11], ptrd1[4], ptube[3], ppgon[10];
92
93 Float_t dx, dy, dz;
94 Int_t i, j, jmod;
95//
96// Constants
97 const Float_t kEps = 0.01;
98 const Int_t kAir = idtmed[2004];
99 const Int_t kSteel = idtmed[2064];
100
101 const Float_t krad2deg = 180./TMath::Pi();
102 const Float_t kdeg2rad = 1./krad2deg;
103
4c057bc8 104 Float_t iFrH = 114.40;
105 Float_t ringH = 4.00;
106 Float_t ringW = 10.00;
107 Float_t longH = 5.39;
108 Float_t longW = 6.00;
109 Float_t dwl = 3.14;
110 Float_t dwh = 0.96;
7e5caa00 111
02e42643 112//
4a8eca94 113 Float_t dymodU[3] = {70.0, 224.0, 341.};
02e42643 114// new ?
4a8eca94 115 Float_t dymodL[3] = {54.0, 178.5, 341.};
af3fbbe1 116
7e5caa00 117//
118// Frame mother volume
119//
120 ptube[0] = 280.;
121// ptube[1] = 428.2;
122 ptube[1] = 430.;
123 ptube[2] = 376.;
124 gMC->Gsvolu("B077", "TUBE", kAir, ptube, 3);
125 gMC->Gspos("B077", 1, "ALIC", 0., 0., 0., 0, "ONLY");
126//
127// The outer Frame
128//
129
130 Float_t dol = 8.75;
131 Float_t doh = 5.;
132 Float_t ds = 0.35;
133//
134// Mother volume
135//
136 ppgon[0] = 0.;
137 ppgon[1] = 360.;
138 ppgon[2] = 18.;
139
140 ppgon[3] = 2.;
141
142 ppgon[4] = -350.;
143 ppgon[5] = 399.;
144 ppgon[6] = 420.7122;
145
146 ppgon[7] = -ppgon[4];
147 ppgon[8] = ppgon[5];
148 ppgon[9] = ppgon[6];
149 gMC->Gsvolu("B076", "PGON", kAir, ppgon, 10);
150 gMC->Gspos("B076", 1, "B077", 0., 0., 0., 0, "ONLY");
151//
152// Rings
153//
154 dz = 2.*410.2*TMath::Sin(10.*kdeg2rad)-2.*dol*TMath::Cos(10.*kdeg2rad)-
155 2.*doh*TMath::Tan(10.*kdeg2rad);
156 Float_t l1 = dz/2.;
157 Float_t l2 = dz/2.+2.*doh*TMath::Tan(10.*kdeg2rad);
158
159 ptrd1[0] = l1;
160 ptrd1[1] = l2;
161
162 ptrd1[2] = dol;
163 ptrd1[3] = doh;
164 gMC->Gsvolu("B042", "TRD1", kSteel, ptrd1, 4);
165
166 ptrd1[0] = ptrd1[0]+ds*(l2-l1)/2./doh;
167 ptrd1[1] = ptrd1[1]-ds*(l2-l1)/2./doh;
168 ptrd1[2] = dol-ds;
169 ptrd1[3] = doh-ds;
170 gMC->Gsvolu("B043", "TRD1", kAir, ptrd1, 4);
171 gMC->Gspos("B043", 1, "B042", 0., 0., 0., 0, "ONLY");
172//
173// longitudinal bars
174//
175// 170x200x5
176//
177 pbox[0] = dol;
178 pbox[1] = doh;
179 pbox[2] = 350.;
180 gMC->Gsvolu("B033", "BOX", kSteel, pbox, 3);
181 pbox[0] = dol-ds;
182 pbox[1] = doh-ds;
183 gMC->Gsvolu("B034", "BOX", kAir, pbox, 3);
184 gMC->Gspos("B034", 1, "B033", 0., 0., 0., 0, "ONLY");
185
186 pbox[0] = 1.0;
187 pbox[1] = 5.0;
188 pbox[2] = 375.5;
189
190
191 gMC->Gsvolu("B080", "BOX", kSteel, pbox, 3);
192 gMC->Gspos("B080", 1, "B077", 281.01, 0., 0., 0, "ONLY");
193 gMC->Gspos("B080", 2, "B077", -281.01, 0., 0., 0, "ONLY");
194
195//
196// Diagonal bars (1)
197//
198 Float_t h, d, dq, x, theta;
199
4a8eca94 200 h = (dymodU[1]-dymodU[0]-2.*dol)*.999;
7e5caa00 201 d = 2.*dol;
202 dq = h*h+dz*dz;
203
204 x = TMath::Sqrt((dz*dz-d*d)/dq + d*d*h*h/dq/dq)+d*h/dq;
205
206
207 theta = krad2deg * TMath::ACos(x);
208
209 ptrap[0] = dz/2.;
210 ptrap[1] = theta;
211 ptrap[2] = 0.;
212 ptrap[3] = doh;
213 ptrap[4] = dol/x;
214 ptrap[5] = ptrap[4];
215 ptrap[6] = 0;
216 ptrap[7] = ptrap[3];
217 ptrap[8] = ptrap[4];
218 ptrap[9] = ptrap[4];
219 ptrap[10] = 0;
220
221 gMC->Gsvolu("B047", "TRAP", kSteel, ptrap, 11);
222 ptrap[3] = doh-ds;
223 ptrap[4] = (dol-ds)/x;
224 ptrap[5] = ptrap[4];
225 ptrap[7] = ptrap[3];
226 ptrap[8] = ptrap[4];
227 ptrap[9] = ptrap[4];
228 gMC->Gsvolu("B048", "TRAP", kAir, ptrap, 11);
229 gMC->Gspos("B048", 1, "B047", 0.0, 0.0, 0., 0, "ONLY");
230
231/*
232 Crosses (inner most)
233 \\ //
234 \\//
235 //\\
236 // \\
237*/
4a8eca94 238 h = (2.*dymodU[0]-2.*dol)*.999;
7e5caa00 239//
240// Mother volume
241//
242 pbox[0] = h/2;
243 pbox[1] = doh;
244 pbox[2] = dz/2.;
245 gMC->Gsvolu("BM49", "BOX ", kAir, pbox, 3);
246
247
248 dq = h*h+dz*dz;
249 x = TMath::Sqrt((dz*dz-d*d)/dq + d*d*h*h/dq/dq)+d*h/dq;
250 theta = krad2deg * TMath::ACos(x);
251
252 ptrap[0] = dz/2.-kEps;
253 ptrap[1] = theta;
254 ptrap[2] = 0.;
255 ptrap[3] = doh-kEps;
256 ptrap[4] = dol/x;
257 ptrap[5] = ptrap[4];
258 ptrap[7] = ptrap[3];
259 ptrap[8] = ptrap[4];
260 ptrap[9] = ptrap[4];
261
262 gMC->Gsvolu("B049", "TRAP", kSteel, ptrap, 11);
263 ptrap[0] = ptrap[0]-kEps;
264 ptrap[3] = (doh-ds);
265 ptrap[4] = (dol-ds)/x;
266 ptrap[5] = ptrap[4];
267 ptrap[7] = ptrap[3];
268 ptrap[8] = ptrap[4];
269 ptrap[9] = ptrap[4];
270 gMC->Gsvolu("B050", "TRAP", kAir, ptrap, 11);
271 gMC->Gspos("B050", 1, "B049", 0.0, 0.0, 0., 0, "ONLY");
272 gMC->Gspos("B049", 1, "BM49", 0.0, 0.0, 0., 0, "ONLY");
273
274
275 Float_t dd1 = d*TMath::Tan(theta*kdeg2rad);
276 Float_t dd2 = d/TMath::Tan(2.*theta*kdeg2rad);
277 Float_t theta2 = TMath::ATan(TMath::Abs(dd2-dd1)/d/2.);
278
279
280 ptrap[0] = dol;
281 ptrap[1] = theta2*krad2deg;
282 ptrap[2] = 0.;
283 ptrap[3] = doh;
284 ptrap[4] = (dz/2./x-dd1-dd2)/2.;
285 ptrap[5] = ptrap[4];
286 ptrap[6] = 0.;
287 ptrap[7] = ptrap[3];
288 ptrap[8] = dz/4./x;
289 ptrap[9] = ptrap[8];
290
291
292 gMC->Gsvolu("B051", "TRAP", kSteel, ptrap, 11);
293 Float_t ddx0 = ptrap[8];
294
295 Float_t dd1s = dd1*(1.-2.*ds/d);
296 Float_t dd2s = dd2*(1.-2.*ds/d);
297 Float_t theta2s = TMath::ATan(TMath::Abs(dd2s-dd1s)/(d-2.*ds)/2.);
298
299
300 ptrap[0] = dol-ds;
301 ptrap[1] = theta2s*krad2deg;
302 ptrap[2] = 0.;
303 ptrap[3] = doh-ds;
304 ptrap[4] = ptrap[4]+ds/d/2.*(dd1+dd2);
305 ptrap[5] = ptrap[4];
306 ptrap[6] = 0.;
307 ptrap[7] = ptrap[3];
308 ptrap[8] = ptrap[8]-ds/2./d*(dd1+dd2);
309 ptrap[9] = ptrap[8];
310
311 gMC->Gsvolu("B052", "TRAP", kAir, ptrap, 11);
312 gMC->Gspos("B052", 1, "B051", 0.0, 0.0, 0., 0, "ONLY");
313
314 Float_t ddx, ddz, drx, drz, rtheta;
315
4a8eca94 316 AliMatrix(idrotm[2001], -theta+180, 0.0, 90.0, 90.0, 90.-theta, 0.0);
7e5caa00 317 rtheta = (90.-theta)*kdeg2rad;
318 ddx = -ddx0-dol*TMath::Tan(theta2);
319 ddz = -dol;
320
321 drx = TMath::Cos(rtheta) * ddx +TMath::Sin(rtheta) *ddz+pbox[0];
322 drz = -TMath::Sin(rtheta) * ddx +TMath::Cos(rtheta) *ddz-pbox[2];
323 gMC->Gspos("B051", 1, "BM49",
324 drx, 0.0, drz,
4a8eca94 325 idrotm[2001], "ONLY");
7e5caa00 326
4a8eca94 327 AliMatrix(idrotm[2002], -theta, 0.0, 90.0, 90.0, 270.-theta, 0.0);
7e5caa00 328 rtheta = (270.-theta)*kdeg2rad;
329
330 drx = TMath::Cos(rtheta) * ddx + TMath::Sin(rtheta) * ddz-pbox[0];
331 drz = -TMath::Sin(rtheta) * ddx + TMath::Cos(rtheta) * ddz+pbox[2];
332 gMC->Gspos("B051", 2, "BM49",
333 drx, 0.0, drz,
4a8eca94 334 idrotm[2002], "ONLY");
7e5caa00 335
336//
337// Diagonal bars (3)
338//
4a8eca94 339 h = ((dymodU[2]-dymodU[1])-2.*dol)*.999;
7e5caa00 340 dq = h*h+dz*dz;
341 x = TMath::Sqrt((dz*dz-d*d)/dq + d*d*h*h/dq/dq)+d*h/dq;
342 theta = krad2deg * TMath::ACos(x);
343
344 ptrap[0] = dz/2.;
345 ptrap[1] = theta;
346 ptrap[3] = doh;
347 ptrap[4] = dol/x;
348 ptrap[5] = ptrap[4];
349 ptrap[7] = ptrap[3];
350 ptrap[8] = ptrap[4];
351 ptrap[9] = ptrap[4];
352
353 gMC->Gsvolu("B045", "TRAP", kSteel, ptrap, 11);
354 ptrap[3] = doh-ds;
355 ptrap[4] = (dol-ds)/x;
356 ptrap[5] = ptrap[4];
357 ptrap[7] = ptrap[3];
358 ptrap[8] = ptrap[4];
359 ptrap[9] = ptrap[4];
360 gMC->Gsvolu("B046", "TRAP", kAir, ptrap, 11);
361 gMC->Gspos("B046", 1, "B045", 0.0, 0.0, 0., 0, "ONLY");
362
363//
364// Positioning of diagonal bars
365//
366// Matrices have been imported from Euclid. Some simplification
367// seems possible
368//
4a8eca94 369 AliMatrix(idrotm[2003], 0.0, 0.0, 90.0, 130.0, 90.0, 40.0);
370 AliMatrix(idrotm[2004], 180.0, 0.0, 90.0, 130.0, 90.0, 40.0);
371 AliMatrix(idrotm[2005], 180.0, 0.0, 90.0, 150.0, 90.0, 240.0);
372 AliMatrix(idrotm[2006], 0.0, 0.0, 90.0, 150.0, 90.0, 240.0);
373 AliMatrix(idrotm[2007], 0.0, 0.0, 90.0, 170.0, 90.0, 80.0);
374 AliMatrix(idrotm[2008], 180.0, 0.0, 90.0, 190.0, 90.0, 280.0);
375 AliMatrix(idrotm[2009], 180.0, 0.0, 90.0, 170.0, 90.0, 80.0);
376 AliMatrix(idrotm[2010], 0.0, 0.0, 90.0, 190.0, 90.0, 280.0);
377 AliMatrix(idrotm[2011], 0.0, 0.0, 90.0, 350.0, 90.0, 260.0);
378 AliMatrix(idrotm[2012], 180.0, 0.0, 90.0, 350.0, 90.0, 260.0);
379 AliMatrix(idrotm[2013], 180.0, 0.0, 90.0, 10.0, 90.0, 100.0);
380 AliMatrix(idrotm[2014], 0.0, 0.0, 90.0, 10.0, 90.0, 100.0);
381 AliMatrix(idrotm[2015], 0.0, 0.0, 90.0, 30.0, 90.0, 300.0);
382 AliMatrix(idrotm[2016], 180.0, 0.0, 90.0, 30.0, 90.0, 300.0);
383 AliMatrix(idrotm[2017], 180.0, 0.0, 90.0, 50.0, 90.0, 140.0);
384 AliMatrix(idrotm[2018], 0.0, 0.0, 90.0, 50.0, 90.0, 140.0);
385
386 AliMatrix(idrotm[2019], 180.0, 0.0, 90.0, 130.0, 90.0, 220.0);
387 AliMatrix(idrotm[2020], 180.0, 0.0, 90.0, 50.0, 90.0, 320.0);
388 AliMatrix(idrotm[2021], 180.0, 0.0, 90.0, 150.0, 90.0, 60.0);
389 AliMatrix(idrotm[2022], 180.0, 0.0, 90.0, 30.0, 90.0, 120.0);
390 AliMatrix(idrotm[2023], 180.0, 0.0, 90.0, 170.0, 90.0, 260.0);
391 AliMatrix(idrotm[2024], 180.0, 0.0, 90.0, 190.0, 90.0, 100.0);
392 AliMatrix(idrotm[2025], 180.0, 0.0, 90.0, 350.0, 90.0, 80.0);
393 AliMatrix(idrotm[2026], 180.0, 0.0, 90.0, 10.0, 90.0, 280.0);
394
395 AliMatrix(idrotm[2027], 0.0, 0.0, 90.0, 50.0, 90.0, 320.0);
396 AliMatrix(idrotm[2028], 0.0, 0.0, 90.0, 150.0, 90.0, 60.0);
397 AliMatrix(idrotm[2029], 0.0, 0.0, 90.0, 30.0, 90.0, 120.0);
398 AliMatrix(idrotm[2030], 0.0, 0.0, 90.0, 10.0, 90.0, 280.0);
399 AliMatrix(idrotm[2031], 0.0, 0.0, 90.0, 170.0, 90.0, 260.0);
400 AliMatrix(idrotm[2032], 0.0, 0.0, 90.0, 190.0, 90.0, 100.0);
401 AliMatrix(idrotm[2033], 0.0, 0.0, 90.0, 350.0, 90.0, 80.0);
7e5caa00 402
403 Float_t rd = 410.56;
4a8eca94 404 dz = (dymodU[1]+dymodU[0])/2.;
405 Float_t dz2 = (dymodU[1]+dymodU[2])/2.;
7e5caa00 406
407//
408// phi = 40
409//
410 Float_t phi = 40;
411 dx = rd * TMath::Sin(phi*kdeg2rad);
412 dy = rd * TMath::Cos(phi*kdeg2rad);
413
4a8eca94 414 gMC->Gspos("B047", 1, "B076", -dx, dy, dz, idrotm[2004], "ONLY");
415 gMC->Gspos("B047", 2, "B076", -dx, dy, -dz, idrotm[2003], "ONLY");
416 gMC->Gspos("B047", 3, "B076", dx, dy, dz, idrotm[2017], "ONLY");
417 gMC->Gspos("B047", 4, "B076", dx, dy, -dz, idrotm[2018], "ONLY");
7e5caa00 418
4a8eca94 419 gMC->Gspos("B045", 1, "B076", -dx, dy, dz2, idrotm[2019], "ONLY");
420 gMC->Gspos("B045", 2, "B076", -dx, dy, -dz2, idrotm[2003], "ONLY"); // ?
421 gMC->Gspos("B045", 3, "B076", dx, dy, dz2, idrotm[2020], "ONLY");
422 gMC->Gspos("B045", 4, "B076", dx, dy, -dz2, idrotm[2027], "ONLY");
7e5caa00 423
4a8eca94 424 gMC->Gspos("BM49", 1, "B076", dx, dy, 0., idrotm[2020], "ONLY");
425 gMC->Gspos("BM49", 2, "B076", -dx, dy, 0., idrotm[2019], "ONLY");
7e5caa00 426
427//
428// phi = 60
429//
430
431 phi = 60;
432 dx = rd * TMath::Sin(phi*kdeg2rad);
433 dy = rd * TMath::Cos(phi*kdeg2rad);
4a8eca94 434 gMC->Gspos("B047", 5, "B076", -dx, dy, dz, idrotm[2005], "ONLY");
435 gMC->Gspos("B047", 6, "B076", -dx, dy, -dz, idrotm[2006], "ONLY");
436 gMC->Gspos("B047", 7, "B076", dx, dy, dz, idrotm[2016], "ONLY");
437 gMC->Gspos("B047", 8, "B076", dx, dy, -dz, idrotm[2015], "ONLY");
7e5caa00 438
4a8eca94 439 gMC->Gspos("B045", 5, "B076", -dx, dy, dz2, idrotm[2021], "ONLY");
440 gMC->Gspos("B045", 6, "B076", -dx, dy, -dz2, idrotm[2028], "ONLY");
441 gMC->Gspos("B045", 7, "B076", dx, dy, dz2, idrotm[2022], "ONLY");
442 gMC->Gspos("B045", 8, "B076", dx, dy, -dz2, idrotm[2029], "ONLY");
7e5caa00 443
4a8eca94 444 gMC->Gspos("BM49", 3, "B076", dx, dy, 0., idrotm[2022], "ONLY");
445 gMC->Gspos("BM49", 4, "B076", -dx, dy, 0., idrotm[2021], "ONLY");
7e5caa00 446//
447// phi = 80
448//
449
450 phi = 80;
451 dx = rd * TMath::Sin(phi*kdeg2rad);
452 dy = rd * TMath::Cos(phi*kdeg2rad);
4a8eca94 453 gMC->Gspos("B047", 9, "B076", -dx, dy, dz, idrotm[2009], "ONLY");
454 gMC->Gspos("B047", 10, "B076", -dx, dy, -dz, idrotm[2007], "ONLY");
455 gMC->Gspos("B047", 11, "B076", dx, dy, dz, idrotm[2013], "ONLY");
456 gMC->Gspos("B047", 12, "B076", dx, dy, -dz, idrotm[2014], "ONLY");
7e5caa00 457
4a8eca94 458 gMC->Gspos("B047", 13, "B076", -dx, -dy, dz, idrotm[2008], "ONLY");
459 gMC->Gspos("B047", 14, "B076", -dx, -dy, -dz, idrotm[2010], "ONLY");
460 gMC->Gspos("B047", 15, "B076", dx, -dy, dz, idrotm[2012], "ONLY");
461 gMC->Gspos("B047", 16, "B076", dx, -dy, -dz, idrotm[2011], "ONLY");
7e5caa00 462
4a8eca94 463 gMC->Gspos("B045", 9, "B076", -dx, dy, dz2, idrotm[2023], "ONLY");
464 gMC->Gspos("B045", 10, "B076", -dx, dy, -dz2, idrotm[2031], "ONLY");
465 gMC->Gspos("B045", 11, "B076", dx, dy, dz2, idrotm[2026], "ONLY");
466 gMC->Gspos("B045", 12, "B076", dx, dy, -dz2, idrotm[2030], "ONLY");
7e5caa00 467
4a8eca94 468 gMC->Gspos("B045", 13, "B076", -dx, -dy, dz2, idrotm[2024], "ONLY");
469 gMC->Gspos("B045", 14, "B076", -dx, -dy, -dz2, idrotm[2032], "ONLY");
470 gMC->Gspos("B045", 15, "B076", dx, -dy, dz2, idrotm[2025], "ONLY");
471 gMC->Gspos("B045", 16, "B076", dx, -dy, -dz2, idrotm[2033], "ONLY");
7e5caa00 472
4a8eca94 473 gMC->Gspos("BM49", 5, "B076", dx, dy, 0., idrotm[2026], "ONLY");
474 gMC->Gspos("BM49", 6, "B076", -dx, dy, 0., idrotm[2023], "ONLY");
475 gMC->Gspos("BM49", 7, "B076", dx, -dy, 0., idrotm[2025], "ONLY");
476 gMC->Gspos("BM49", 8, "B076", -dx, -dy, 0., idrotm[2024], "ONLY");
7e5caa00 477
478
479// The internal frame
480//
481 char* module[3] = {"B071\0", "B074\0", "B075\0"};
482//
483//
484// Mother Volumes
485//
486 ptrd1[0] = 50.18;
487 ptrd1[1] = 70.35;
488// ptrd1[0] = 50.10;
489// ptrd1[1] = 70.20;
490
491 ptrd1[2] = 375.5;
492 ptrd1[3] = 57.2;
493 for (jmod = 0; jmod < 3; jmod++)
494 {
495 gMC->Gsvolu(module[jmod], "TRD1", kAir, ptrd1, 4);
496 }
497
498 Int_t mod[18] = {1, 1, 1, 0, 0, 0, 0, 0, 2, 2, 2, 0, 0, 0, 0, 0, 1, 1};
7e5caa00 499
500
501 Float_t r = 341.8;
502 Float_t rout1 = 410.564;
503 Float_t rout2 = 415.2;
504 Int_t modcount[3] = {0, 0, 0};
505
506 for (i=0; i<18; i++) {
507 Float_t phi = i*20.;
508 Float_t phi2 = 270+phi;
509 if (phi2 >= 360.) phi2-=360.;
510
511 dx = TMath::Sin(phi*kdeg2rad)*r;
512 dy = -TMath::Cos(phi*kdeg2rad)*r;
513 modcount[mod[i]]++;
514
4a8eca94 515 AliMatrix(idrotm[2034+i], 90.0, phi, 0., 0., 90., phi2);
516 gMC->Gspos(module[mod[i]], modcount[mod[i]], "B077", dx, dy, 0., idrotm[2034+i], "ONLY");
7e5caa00 517//
518// Position elements of outer Frame
519//
520 dx = TMath::Sin(phi*kdeg2rad)*rout1;
521 dy = -TMath::Cos(phi*kdeg2rad)*rout1;
522 for (j = 0; j < 3; j++)
523 {
4a8eca94 524 dz = dymodU[j];
525 gMC->Gspos("B042", 6*i+2*j+1, "B076", dx, dy, dz, idrotm[2034+i], "ONLY");
526 gMC->Gspos("B042", 6*i+2*j+2, "B076", dx, dy, -dz, idrotm[2034+i], "ONLY");
7e5caa00 527 }
528
529 phi = i*20.+10;
530 phi2 = 270+phi;
4a8eca94 531 AliMatrix(idrotm[2052+i], 90.0, phi, 90., phi2, 0., 0.);
7e5caa00 532
533 dx = TMath::Sin(phi*kdeg2rad)*rout2;
534 dy = -TMath::Cos(phi*kdeg2rad)*rout2;
4a8eca94 535 gMC->Gspos("B033", i+1, "B076", dx, dy, 0., idrotm[2052+i], "ONLY");
7e5caa00 536//
537 }
538// Internal Frame rings
539//
540//
541// new specs: 40x100x6 for inner rings
542// 30x135x6 for front and rear rings
543//
544// currently no distinction between front/rear and inner rings
545//
546//
547//
548 pbox[0] = 50.;
549 pbox[1] = ringW/2.;
550 pbox[2] = ringH/2.;
551
552 gMC->Gsvolu("B072", "BOX ", kSteel, pbox, 3);
553
554 pbox[1] = pbox[1] - 0.6;
555 pbox[2] = pbox[2] - 0.6;
556 gMC->Gsvolu("B073", "BOX ", kAir, pbox, 3);
557 gMC->Gspos("B073", 1, "B072", 0., 0., 0., 0, "ONLY");
558
559// Web frame 0-degree
560//
561// h x w x s = 60x40x4
562// (attention: element is are half bars, "U" shaped)
563//
4a8eca94 564 dz = 106.2;
565 d = 2.*dwl;
566 h = dymodU[0]-dymodL[0];
567 dq = h*h+dz*dz;
568
569 x = TMath::Sqrt((dz*dz-d*d)/dq + d*d*h*h/dq/dq)+d*h/dq;
7e5caa00 570
4a8eca94 571 theta = TMath::ACos(x);
572 Float_t thetaP = (TMath::Pi()-theta)*krad2deg;
573
574 ptrap[0] = dz/2.;
575 ptrap[1] = thetaP;
576 ptrap[2] = 0.;
577 ptrap[3] = dwh;
578 ptrap[4] = dwl/cos(theta);
579 ptrap[5] = ptrap[4];
580 ptrap[6] = 0;
581 ptrap[7] = ptrap[3];
582 ptrap[8] = ptrap[4];
583 ptrap[9] = ptrap[4];
584 ptrap[10] = 0;
585 gMC->Gsvolu("B063", "TRAP", kSteel, ptrap, 11);
586 ptrap[3] = dwh - 0.2;
587 ptrap[4] = (dwl-0.4)/cos(theta);
588 ptrap[5] = ptrap[4];
589 ptrap[7] = ptrap[3];
590 ptrap[8] = ptrap[4];
591 ptrap[9] = ptrap[4];
592 gMC->Gsvolu("B064", "TRAP", kAir, ptrap, 11);
593 gMC->Gspos("B064", 1, "B063", 0.0, -0.2, 0., 0, "ONLY");
594
595
596 h = 106.2;
597 d = 2.*dwl;
598 dz = dymodU[1]-dymodL[1];
599 dq = h*h+dz*dz;
600
601 x = TMath::Sqrt((dz*dz-d*d)/dq + d*d*h*h/dq/dq)+d*h/dq;
602
603
604 theta = krad2deg * TMath::ACos(x);
605
606 ptrap[0] = dz/2.;
607 ptrap[1] = theta;
608 ptrap[2] = 0.;
609 ptrap[3] = dwh;
610 ptrap[4] = dwl/x;
611 ptrap[5] = ptrap[4];
612 ptrap[6] = 0;
613 ptrap[7] = ptrap[3];
614 ptrap[8] = ptrap[4];
615 ptrap[9] = ptrap[4];
616 ptrap[10] = 0;
617 gMC->Gsvolu("B163", "TRAP", kSteel, ptrap, 11);
618 ptrap[3] = dwh - 0.2;
619 ptrap[4] = (dwl-0.4)/x;
620 ptrap[5] = ptrap[4];
621 ptrap[7] = ptrap[3];
622 ptrap[8] = ptrap[4];
623 ptrap[9] = ptrap[4];
624 gMC->Gsvolu("B164", "TRAP", kAir, ptrap, 11);
625 gMC->Gspos("B164", 1, "B163", 0.0, -0.2, 0., 0, "ONLY");
626
627
7e5caa00 628 pbox[0] = dwh;
629 pbox[1] = dwl;
630 pbox[2] = (iFrH-ringH-longH)/2.;
4a8eca94 631 gMC->Gsvolu("B263", "BOX ", kSteel, pbox, 3);
7e5caa00 632 pbox[0] = dwh-0.2;
633 pbox[1] = dwl-0.4;
634
4a8eca94 635 gMC->Gsvolu("B264", "BOX ", kAir, pbox, 3);
636 gMC->Gspos("B264", 1, "B263", 0.2, 0., 0., 0, "ONLY");
637
638
639 AliMatrix(idrotm[2070], 90.0, 0.0, 90.0, 270.0, 0.0, 0.0);
640//
641 AliMatrix(idrotm[2071], 100.0, 0.0, 90.0, 270.0, 10.0, 0.0);
642 AliMatrix(idrotm[2072], 100.0, 0.0, 90.0, 90.0, 10.0, 0.0);
643 AliMatrix(idrotm[2073], 100.0, 180.0, 90.0, 270.0, 10.0, 180.0);
644 AliMatrix(idrotm[2074], 100.0, 180.0, 90.0, 90.0, 10.0, 180.0);
645//
646 AliMatrix(idrotm[2075], 10.0, 0.0, 80.0, 180.0, 90.0, 90.0);
647 AliMatrix(idrotm[2076], 10.0, 0.0, 80.0, 180.0, 90.0, 270.0);
648 AliMatrix(idrotm[2077], 10.0, 180.0, 80.0, 0.0, 90.0, 90.0);
649 AliMatrix(idrotm[2078], 10.0, 180.0, 80.0, 0.0, 90.0, 270.0);
650//
651 AliMatrix(idrotm[2079], 170.0, 180.0, 80.0, 180.0, 90.0, 90.0);
652 AliMatrix(idrotm[2080], 170.0, 180.0, 80.0, 180.0, 90.0, 270.0);
653 AliMatrix(idrotm[2081], 170.0, 0.0, 80.0, 0.0, 90.0, 90.0);
654 AliMatrix(idrotm[2082], 170.0, 0.0, 80.0, 0.0, 90.0, 270.0);
655
656//
657 AliMatrix(idrotm[2083], 170.0, 0.0, 90.0, 90.0, 80.0, 0.0);
658 AliMatrix(idrotm[2084], 170.0, 180.0, 90.0, 90.0, 80.0, 180.0);
659 AliMatrix(idrotm[2085], 90.0, 180.0, 90.0, 90.0, 0.0, 0.0);
660//
661 AliMatrix(idrotm[2086], 90.0, 90.0, 100.0, 0., 170.0, 180.0);
662 AliMatrix(idrotm[2087], 90.0, 90.0, 100.0, 0., 10.0, 0.0);
663 AliMatrix(idrotm[2088], 90.0, 90.0, 80.0, 0., 170.0, 0.0);
664 AliMatrix(idrotm[2089], 90.0, 90.0, 80.0, 0., -10.0, 0.0);
665
7e5caa00 666//
667// web frame diagonal (outer)
668//
669 h = 106.2;
670 d = 2.*dwl;
4a8eca94 671 dz = dymodL[2]-dymodU[1]-dwl;
7e5caa00 672 dq = h*h+dz*dz;
673
674 x = TMath::Sqrt((dz*dz-d*d)/dq + d*d*h*h/dq/dq)+d*h/dq;
675
676
677 theta = krad2deg * TMath::ACos(x);
678
679 ptrap[0] = dz/2.;
680 ptrap[1] = theta;
681 ptrap[2] = 0.;
682 ptrap[3] = dwh;
683 ptrap[4] = dwl/x;
684 ptrap[5] = ptrap[4];
685 ptrap[6] = 0;
686 ptrap[7] = ptrap[3];
687 ptrap[8] = ptrap[4];
688 ptrap[9] = ptrap[4];
689 ptrap[10] = 0;
690 gMC->Gsvolu("B065", "TRAP", kSteel, ptrap, 11);
691 ptrap[3] = dwh - 0.2;
692 ptrap[4] = (dwl-0.4)/x;
693 ptrap[5] = ptrap[4];
694 ptrap[7] = ptrap[3];
695 ptrap[8] = ptrap[4];
696 ptrap[9] = ptrap[4];
697 gMC->Gsvolu("B066", "TRAP", kAir, ptrap, 11);
698 gMC->Gspos("B066", 1, "B065", 0.0, -0.2, 0., 0, "ONLY");
699
700//
701// web frame diagonal (inner)
702//
4a8eca94 703 dz = dymodL[1]-dymodU[0];
7e5caa00 704 dq = h*h+dz*dz;
4a8eca94 705 x = TMath::Sqrt((dz*dz-d*d)/dq + d*d*h*h/dq/dq)+d*h/dq;
7e5caa00 706
707
708 theta = krad2deg * TMath::ACos(x);
709
4a8eca94 710 ptrap[0] = (dymodL[1]-dymodU[0])/2.;
7e5caa00 711 ptrap[1] = theta;
712 ptrap[2] = 0.;
713 ptrap[3] = dwh;
714 ptrap[4] = dwl/x;
715 ptrap[5] = ptrap[4];
716 ptrap[6] = 0;
717 ptrap[7] = ptrap[3];
718 ptrap[8] = ptrap[4];
719 ptrap[9] = ptrap[4];
720 ptrap[10] = 0;
721 gMC->Gsvolu("B067", "TRAP", kSteel, ptrap, 11);
722 ptrap[3] = dwh-0.2;
723 ptrap[4] = (dwl-0.4)/x;
724 ptrap[5] = ptrap[4];
725 ptrap[7] = ptrap[3];
726 ptrap[8] = ptrap[4];
727 ptrap[9] = ptrap[4];
728 gMC->Gsvolu("B068", "TRAP", kAir, ptrap, 11);
729 gMC->Gspos("B068", 1, "B067", 0.0, -0.2, 0., 0, "ONLY");
730
731
732 dz = -iFrH/2.+ringH/2.+kEps;
733
734 for (i = 0; i< 3; i++)
735 {
736// ring bars
737 for (jmod = 0; jmod<3; jmod++) {
4a8eca94 738 gMC->Gspos("B072", 6*i+jmod+1, module[jmod], 0, dymodL[i], dz, 0, "ONLY");
739 gMC->Gspos("B072", 6*i+jmod+4, module[jmod], 0, -dymodL[i], dz, idrotm[2070], "ONLY");
7e5caa00 740
741// 0-deg web
4a8eca94 742 if (i==2) {
743 gMC->Gspos("B263", 12*i+jmod+1, module[jmod], 60.0732, dymodU[i], 4.6669, idrotm[2072], "ONLY");
744 gMC->Gspos("B263", 12*i+jmod+4, module[jmod], 60.0732, -dymodU[i], 4.6669, idrotm[2071], "ONLY");
745 gMC->Gspos("B263", 12*i+jmod+7, module[jmod], -60.0732, dymodU[i], 4.6669, idrotm[2074], "ONLY");
746 gMC->Gspos("B263", 12*i+jmod+10, module[jmod], -60.0732, -dymodU[i], 4.6669, idrotm[2073], "ONLY");
747 }
7e5caa00 748 }
749 }
750
751// outer diagonal web
752
4a8eca94 753 dy = (dymodU[0]+dymodL[0])/2.;
754 for (jmod = 0; jmod<3; jmod++) {
755 gMC->Gspos("B063", 4*jmod+1, module[jmod], 60.0732, dy, 4.6669, idrotm[2086], "ONLY");
756 gMC->Gspos("B063", 4*jmod+2, module[jmod], 60.0732, -dy, 4.6669, idrotm[2087], "ONLY");
757 gMC->Gspos("B063", 4*jmod+3, module[jmod], -60.0732, dy, 4.6669, idrotm[2088], "ONLY");
758 gMC->Gspos("B063", 4*jmod+4, module[jmod], -60.0732, -dy, 4.6669, idrotm[2089], "ONLY");
759 }
760
761 dy = (dymodU[1]+dymodL[1])/2.;
762 for (jmod = 0; jmod<3; jmod++) {
763 gMC->Gspos("B163", 4*jmod+1, module[jmod], 60.0732, dy, 4.6669, idrotm[2080], "ONLY");
764 gMC->Gspos("B163", 4*jmod+2, module[jmod], 60.0732, -dy, 4.6669, idrotm[2079], "ONLY");
765 gMC->Gspos("B163", 4*jmod+3, module[jmod], -60.0732, dy, 4.6669, idrotm[2082], "ONLY");
766 gMC->Gspos("B163", 4*jmod+4, module[jmod], -60.0732, -dy, 4.6669, idrotm[2081], "ONLY");
767 }
768
769
770 dy = (dymodL[2]+dymodU[1])/2.-dwl/2.;
7e5caa00 771 for (jmod = 0; jmod<3; jmod++) {
4a8eca94 772 gMC->Gspos("B065", 4*jmod+1, module[jmod], 60.0732, dy, 4.6669, idrotm[2076], "ONLY");
773 gMC->Gspos("B065", 4*jmod+2, module[jmod], 60.0732, -dy, 4.6669, idrotm[2075], "ONLY");
774 gMC->Gspos("B065", 4*jmod+3, module[jmod], -60.0732, dy, 4.6669, idrotm[2078], "ONLY");
775 gMC->Gspos("B065", 4*jmod+4, module[jmod], -60.0732, -dy, 4.6669, idrotm[2077], "ONLY");
7e5caa00 776 }
777
778
4a8eca94 779 dy = (dymodL[1]+dymodU[0])/2.;
7e5caa00 780
781 for (jmod = 0; jmod<3; jmod++) {
4a8eca94 782 gMC->Gspos("B067", 4*jmod+1, module[jmod], 60.0732, dy, 4.6669, idrotm[2076], "ONLY");
783 gMC->Gspos("B067", 4*jmod+2, module[jmod], 60.0732, -dy, 4.6669, idrotm[2075], "ONLY");
784 gMC->Gspos("B067", 4*jmod+3, module[jmod], -60.0732, dy, 4.6669, idrotm[2078], "ONLY");
785 gMC->Gspos("B067", 4*jmod+4, module[jmod], -60.0732, -dy, 4.6669, idrotm[2077], "ONLY");
7e5caa00 786 }
787
788// longitudinal bars (TPC rails attached)
789// new specs:
790// h x w x s = 100 x 75 x 6
791// current:
792// Attention: 2 "U" shaped half rods per cell
793//
794// not yet used
795//
796 ptrap[0] = 2.50;
797 ptrap[1] = 10.00;
798 ptrap[2] = 0.00;
799 ptrap[3] = 350.00;
800 ptrap[4] = 3.75;
801 ptrap[5] = ptrap[4];
802 ptrap[6] = 0;
803 ptrap[7] = ptrap[3];
804 ptrap[8] = ptrap[4];
805 ptrap[9] = ptrap[4];
806 ptrap[10] = 0;
807 gMC->Gsvolu("B059", "TRAP", kSteel, ptrap, 11);
808 ptrap[0] = 2.2;
809 ptrap[4] = 2.15;
810 ptrap[5] = ptrap[4];
811 ptrap[7] = ptrap[3];
812 ptrap[8] = ptrap[4];
813 ptrap[9] = ptrap[4];
814 gMC->Gsvolu("B062", "TRAP", kAir, ptrap, 11);
815 gMC->Gspos("B062", 1, "B059", 0.0, -0.3, 0., 0, "ONLY");
816//
817// longitudinal bars (no TPC rails attached)
818// new specs: h x w x s = 60 x 60 x 3
819// (was: 75 x 100 x 5?)
820//
821//
822//
823 ptrap[0] = longW/4.;
824 ptrap[4] = longH/2.;
825 ptrap[5] = ptrap[4];
826 ptrap[7] = ptrap[3];
827 ptrap[8] = ptrap[4];
828 ptrap[9] = ptrap[4];
829
830 gMC->Gsvolu("BA59", "TRAP", kSteel, ptrap, 11);
831 ptrap[0] = longW/4.-0.15;
832 ptrap[4] = longH/2.-0.30;
833 ptrap[5] = ptrap[4];
834 ptrap[7] = ptrap[3];
835 ptrap[8] = ptrap[4];
836 ptrap[9] = ptrap[4];
837 gMC->Gsvolu("BA62", "TRAP", kAir, ptrap, 11);
838 gMC->Gspos("BA62", 1, "BA59", 0.0, 0.0, -0.15, 0, "ONLY");
839
840 dz = -iFrH/2.+ringH+longH/2.;
841
842 for (jmod = 0; jmod<3; jmod++) {
4a8eca94 843 gMC->Gspos("BA59", 2*jmod+1, module[jmod], 49.6476, 0.0, dz, idrotm[2084], "ONLY");
844 gMC->Gspos("BA59", 2*jmod+2, module[jmod], -49.6476, 0.0, dz, idrotm[2083], "ONLY");
7e5caa00 845 }
846//
847//
848// Spacer between TRD and TOF modules
849 ptrap[0] = 0.99;
850 ptrap[1] = 10.00;
851 ptrap[2] = 0.00;
852 ptrap[3] = 350.00;
853 ptrap[4] = 0.9;
854 ptrap[5] = ptrap[4];
855 ptrap[6] = 0;
856 ptrap[7] = ptrap[3];
857 ptrap[8] = ptrap[4];
858 ptrap[9] = ptrap[4];
859 ptrap[10] = 0;
860 gMC->Gsvolu("B056", "TRAP", kSteel, ptrap, 11);
861 for (jmod = 0; jmod<3; jmod++) {
862 gMC->Gspos("B056", 2*jmod+1, module[jmod], 61.9607, 0.0, 27.2, 0 , "ONLY");
4a8eca94 863 gMC->Gspos("B056", 2*jmod+2, module[jmod], -61.9607, 0.0, 27.2, idrotm[2085], "ONLY");
7e5caa00 864 }
865//
866// Mother volumes for TRD and TOF
867//
868 if (!fHoles) {
d03c72a2 869 printf("\n FRAME Version without Holes !");
7e5caa00 870 ptrd1[0] = 49.8065;
871 ptrd1[1] = 62.8535;
872 ptrd1[2] = 375.5;
873 ptrd1[3] = 37.;
874 gMC->Gsvolu("BTR1", "TRD1", kAir, ptrd1, 4);
875 gMC->Gsvolu("BTR2", "TRD1", kAir, ptrd1, 4);
876 gMC->Gsvolu("BTR3", "TRD1", kAir, ptrd1, 4);
877
878 ptrd1[0] = 63.2061;
879 ptrd1[1] = 68.3192;
880 ptrd1[2] = 375.5;
881 ptrd1[3] = 14.5;
882 gMC->Gsvolu("BTO1", "TRD1", kAir, ptrd1, 4);
883 gMC->Gsvolu("BTO2", "TRD1", kAir, ptrd1, 4);
884 gMC->Gsvolu("BTO3", "TRD1", kAir, ptrd1, 4);
885
886 gMC->Gspos("BTR1", 1, "B071", 0., 0., -10.8, 0, "ONLY");
887 gMC->Gspos("BTR2", 1, "B074", 0., 0., -10.8, 0, "ONLY");
888 gMC->Gspos("BTR3", 1, "B075", 0., 0., -10.8, 0, "ONLY");
889
890 gMC->Gspos("BTO1", 1, "B071", 0., 0., 42.69, 0, "ONLY");
891 gMC->Gspos("BTO2", 1, "B074", 0., 0., 42.69, 0, "ONLY");
892 gMC->Gspos("BTO3", 1, "B075", 0., 0., 42.69, 0, "ONLY");
893 } else {
d03c72a2 894 printf("\n FRAME Version with Holes !");
7e5caa00 895 ptrd1[0] = 49.8065;
896 ptrd1[1] = 62.8535;
897 ptrd1[2] = 375.5;
898 ptrd1[3] = 37;
899 gMC->Gsvolu("BTR1", "TRD1", kAir, ptrd1, 4);
900 ptrd1[2] = 156.75;
901 gMC->Gsvolu("BTR2", "TRD1", kAir, ptrd1, 4);
902 ptrd1[2] = 79.75;
903 gMC->Gsvolu("BTR3", "TRD1", kAir, ptrd1, 4);
904
905 ptrd1[0] = 63.2061;
906 ptrd1[1] = 68.3192;
907 ptrd1[2] = 375.5;
908 ptrd1[3] = 14.5;
909 gMC->Gsvolu("BTO1", "TRD1", kAir, ptrd1, 4);
910 ptrd1[2] = 156.75;
911 gMC->Gsvolu("BTO2", "TRD1", kAir, ptrd1, 4);
912 ptrd1[2] = 79.75;
913 gMC->Gsvolu("BTO3", "TRD1", kAir, ptrd1, 4);
914
7e5caa00 915
4c057bc8 916 gMC->Gspos("BTR1", 1, "B071", 0., 0.00, -10.8, 0, "ONLY");
917 gMC->Gspos("BTR2", 1, "B074", 0., -218.75, -10.8, idrotm[2070], "ONLY");
918 gMC->Gspos("BTR2", 2, "B074", 0., 218.75, -10.8, 0, "ONLY");
919 gMC->Gspos("BTR3", 1, "B075", 0., -295.75, -10.8, idrotm[2070], "ONLY");
920 gMC->Gspos("BTR3", 2, "B075", 0., 295.75, -10.8, 0, "ONLY");
921
922 gMC->Gspos("BTO1", 1, "B071", 0., 0.00, 42.69, 0, "ONLY");
923 gMC->Gspos("BTO2", 1, "B074", 0., -218.75, 42.69, idrotm[2070], "ONLY");
924 gMC->Gspos("BTO2", 2, "B074", 0., 218.75, 42.69, 0, "ONLY");
925 gMC->Gspos("BTO3", 1, "B075", 0., -295.75, 42.69, idrotm[2070], "ONLY");
926 gMC->Gspos("BTO3", 2, "B075", 0., 295.75, 42.69, 0, "ONLY");
7e5caa00 927 }
928}
929
930
931//___________________________________________
932void AliFRAMEv2::CreateMaterials()
933{
934
935 Float_t epsil, stemax, tmaxfd, deemax, stmin;
936
937 epsil = 1.e-4; // Tracking precision,
938 stemax = -0.01; // Maximum displacement for multiple scat
939 tmaxfd = -20.; // Maximum angle due to field deflection
940 deemax = -.3; // Maximum fractional energy loss, DLS
941 stmin = -.8;
942 Int_t isxfld = gAlice->Field()->Integ();
943 Float_t sxmgmx = gAlice->Field()->Max();
944
945 Float_t asteel[4] = { 55.847,51.9961,58.6934,28.0855 };
946 Float_t zsteel[4] = { 26.,24.,28.,14. };
947 Float_t wsteel[4] = { .715,.18,.1,.005 };
948
949 AliMixture(65, "STAINLESS STEEL$", asteel, zsteel, 7.88, 4, wsteel);
950 AliMaterial(5, "AIR$ ", 14.61, 7.3, .001205, 30423.24, 67500.);
951 AliMedium(65, "Stainless Steel", 65, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
952 AliMedium( 5, "Air ", 5, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
953}
954
955//_____________________________________________________________________________
956void AliFRAMEv2::Init()
957{
958 //
959 // Initialise the module after the geometry has been defined
960 //
0a05c568 961 if(fDebug) {
962 printf("%s: **************************************"
963 " FRAME "
964 "**************************************\n",ClassName());
965 printf("\n%s: Version 2 of FRAME initialised, symmetric FRAME\n\n",ClassName());
966 printf("%s: **************************************"
967 " FRAME "
968 "**************************************\n",ClassName());
969 }
7e5caa00 970}
971
6304e7d2 972Int_t AliFRAMEv2::IsVersion() const
973{
974 Int_t version = 0;
975 if (fHoles == 0) version = 1;
976 return version;
977}
7e5caa00 978
979
980
981
982
983