The magnetic field map is not anymore taken from gAlice. First steps toward construct...
[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
eeacf08b 16/* $Id$ */
6304e7d2 17
eeacf08b 18//------------------------------------------------------------------------
19// AliFRAMEv2.cxx
20// symmetric space frame with possibility for holes
21// Author: A.Morsch
22//------------------------------------------------------------------------
7e5caa00 23
88cb7938 24#include <TSystem.h>
5d12ce38 25#include <TVirtualMC.h>
3c976b4c 26#include <TString.h>
bb92d81d 27#include <TGeoManager.h>
7e5caa00 28#include "AliFRAMEv2.h"
29#include "AliMagF.h"
30#include "AliRun.h"
f2744db7 31#include "AliConst.h"
5d12ce38 32#include "AliMC.h"
4951e003 33#include "AliLog.h"
e6add757 34#include "AliTrackReference.h"
7e5caa00 35
36ClassImp(AliFRAMEv2)
6772b8d8 37
7e5caa00 38
39//_____________________________________________________________________________
6772b8d8 40AliFRAMEv2::AliFRAMEv2():
41 fHoles(0)
7e5caa00 42{
43// Constructor
7e5caa00 44}
45
46//_____________________________________________________________________________
47AliFRAMEv2::AliFRAMEv2(const char *name, const char *title)
6772b8d8 48 : AliFRAME(name,title),
49 fHoles(0)
7e5caa00 50{
51// Constructor
7e5caa00 52}
53
7e5caa00 54//___________________________________________
55void AliFRAMEv2::CreateGeometry()
56{
57//Begin_Html
58/*
59<img src="picts/frame.gif">
60*/
61//End_Html
62
63
64//Begin_Html
65/*
66<img src="picts/tree_frame.gif">
67*/
68//End_Html
69
4a8eca94 70 Int_t idrotm[2299];
7e5caa00 71 Int_t *idtmed = fIdtmed->GetArray()-1999;
72//
73// The Space frame
74//
75//
e16311cb 76 Float_t pbox[3], ptrap[11], ptrd1[4], ppgon[10];
7e5caa00 77
78 Float_t dx, dy, dz;
79 Int_t i, j, jmod;
d84d0b8c 80 jmod = 0;
7e5caa00 81//
82// Constants
83 const Float_t kEps = 0.01;
c2beaf42 84 const Int_t kAir = idtmed[2004];
85 const Int_t kSteel = idtmed[2064];
7e5caa00 86
c2beaf42 87 const Float_t krad2deg = 180. / TMath::Pi();
88 const Float_t kdeg2rad = 1. / krad2deg;
7e5caa00 89
c2beaf42 90 Float_t iFrH = 118.66; // Height of inner frame
91 Float_t ringH = 6.00; // Height of the ring bars
92 Float_t ringW = 9.00; // Width of the ring bars in z
6904b1c6 93 Float_t longH = 6.00;
94 Float_t longW = 4.00;
4c057bc8 95 Float_t dwl = 3.14;
96 Float_t dwh = 0.96;
7e5caa00 97
02e42643 98//
4a8eca94 99 Float_t dymodU[3] = {70.0, 224.0, 341.};
02e42643 100// new ?
4a8eca94 101 Float_t dymodL[3] = {54.0, 178.5, 341.};
af3fbbe1 102
7e5caa00 103//
104// Frame mother volume
105//
b35d7d26 106// ptube[0] = 280.;
107// ptube[1] = 430.;
108// ptube[2] = 376.;
109 ppgon[0] = 0.;
110 ppgon[1] = 360.;
111 ppgon[2] = 18.;
112
113 ppgon[3] = 2.;
b35d7d26 114 ppgon[4] = -376.;
115 ppgon[5] = 280.;
6904b1c6 116 ppgon[6] = 415.7;
b35d7d26 117
118 ppgon[7] = -ppgon[4];
119 ppgon[8] = ppgon[5];
120 ppgon[9] = ppgon[6];
121
122 gMC->Gsvolu("B077", "PGON", kAir, ppgon, 10);
7e5caa00 123 gMC->Gspos("B077", 1, "ALIC", 0., 0., 0., 0, "ONLY");
124//
55bdc695 125// Reference plane for TRD
126//
127 ppgon[6] = ppgon[5] + 0.1;
128 ppgon[9] = ppgon[6];
129 gMC->Gsvolu("BREF", "PGON", kAir, ppgon, 10);
130 gMC->Gspos("BREF", 1, "B077", 0., 0., 0., 0, "ONLY");
bb92d81d 131 gGeoManager->GetVolume("BREF")->SetVisibility(kFALSE);
55bdc695 132//
7e5caa00 133// The outer Frame
134//
135
c2beaf42 136 Float_t dol = 4.;
137 Float_t doh = 4.;
138 Float_t ds = 0.63;
7e5caa00 139//
140// Mother volume
141//
142 ppgon[0] = 0.;
143 ppgon[1] = 360.;
144 ppgon[2] = 18.;
145
146 ppgon[3] = 2.;
147
148 ppgon[4] = -350.;
7d03cffa 149 ppgon[5] = 401.35;
6904b1c6 150 ppgon[6] = 415.6;
151
7e5caa00 152 ppgon[7] = -ppgon[4];
153 ppgon[8] = ppgon[5];
154 ppgon[9] = ppgon[6];
155 gMC->Gsvolu("B076", "PGON", kAir, ppgon, 10);
156 gMC->Gspos("B076", 1, "B077", 0., 0., 0., 0, "ONLY");
157//
158// Rings
159//
160 dz = 2.*410.2*TMath::Sin(10.*kdeg2rad)-2.*dol*TMath::Cos(10.*kdeg2rad)-
161 2.*doh*TMath::Tan(10.*kdeg2rad);
162 Float_t l1 = dz/2.;
163 Float_t l2 = dz/2.+2.*doh*TMath::Tan(10.*kdeg2rad);
164
165 ptrd1[0] = l1;
166 ptrd1[1] = l2;
167
168 ptrd1[2] = dol;
169 ptrd1[3] = doh;
170 gMC->Gsvolu("B042", "TRD1", kSteel, ptrd1, 4);
171
172 ptrd1[0] = ptrd1[0]+ds*(l2-l1)/2./doh;
173 ptrd1[1] = ptrd1[1]-ds*(l2-l1)/2./doh;
174 ptrd1[2] = dol-ds;
175 ptrd1[3] = doh-ds;
176 gMC->Gsvolu("B043", "TRD1", kAir, ptrd1, 4);
177 gMC->Gspos("B043", 1, "B042", 0., 0., 0., 0, "ONLY");
178//
179// longitudinal bars
180//
c2beaf42 181// 80 x 80 x 6.3
7e5caa00 182//
183 pbox[0] = dol;
184 pbox[1] = doh;
185 pbox[2] = 350.;
186 gMC->Gsvolu("B033", "BOX", kSteel, pbox, 3);
187 pbox[0] = dol-ds;
188 pbox[1] = doh-ds;
189 gMC->Gsvolu("B034", "BOX", kAir, pbox, 3);
190 gMC->Gspos("B034", 1, "B033", 0., 0., 0., 0, "ONLY");
191
192 pbox[0] = 1.0;
193 pbox[1] = 5.0;
194 pbox[2] = 375.5;
195
196
197 gMC->Gsvolu("B080", "BOX", kSteel, pbox, 3);
7d03cffa 198 gMC->Gspos("B080", 1, "B077", 285.3, 0., 0., 0, "ONLY");
199 gMC->Gspos("B080", 2, "B077", -285.3, 0., 0., 0, "ONLY");
7e5caa00 200
201//
202// Diagonal bars (1)
203//
204 Float_t h, d, dq, x, theta;
205
4a8eca94 206 h = (dymodU[1]-dymodU[0]-2.*dol)*.999;
7e5caa00 207 d = 2.*dol;
208 dq = h*h+dz*dz;
209
210 x = TMath::Sqrt((dz*dz-d*d)/dq + d*d*h*h/dq/dq)+d*h/dq;
211
212
213 theta = krad2deg * TMath::ACos(x);
214
215 ptrap[0] = dz/2.;
216 ptrap[1] = theta;
217 ptrap[2] = 0.;
218 ptrap[3] = doh;
219 ptrap[4] = dol/x;
220 ptrap[5] = ptrap[4];
221 ptrap[6] = 0;
222 ptrap[7] = ptrap[3];
223 ptrap[8] = ptrap[4];
224 ptrap[9] = ptrap[4];
225 ptrap[10] = 0;
226
227 gMC->Gsvolu("B047", "TRAP", kSteel, ptrap, 11);
228 ptrap[3] = doh-ds;
229 ptrap[4] = (dol-ds)/x;
230 ptrap[5] = ptrap[4];
231 ptrap[7] = ptrap[3];
232 ptrap[8] = ptrap[4];
233 ptrap[9] = ptrap[4];
234 gMC->Gsvolu("B048", "TRAP", kAir, ptrap, 11);
235 gMC->Gspos("B048", 1, "B047", 0.0, 0.0, 0., 0, "ONLY");
236
237/*
238 Crosses (inner most)
239 \\ //
240 \\//
241 //\\
242 // \\
243*/
4a8eca94 244 h = (2.*dymodU[0]-2.*dol)*.999;
7e5caa00 245//
246// Mother volume
247//
248 pbox[0] = h/2;
249 pbox[1] = doh;
250 pbox[2] = dz/2.;
251 gMC->Gsvolu("BM49", "BOX ", kAir, pbox, 3);
252
253
254 dq = h*h+dz*dz;
255 x = TMath::Sqrt((dz*dz-d*d)/dq + d*d*h*h/dq/dq)+d*h/dq;
256 theta = krad2deg * TMath::ACos(x);
257
258 ptrap[0] = dz/2.-kEps;
259 ptrap[1] = theta;
260 ptrap[2] = 0.;
261 ptrap[3] = doh-kEps;
262 ptrap[4] = dol/x;
263 ptrap[5] = ptrap[4];
264 ptrap[7] = ptrap[3];
265 ptrap[8] = ptrap[4];
266 ptrap[9] = ptrap[4];
267
268 gMC->Gsvolu("B049", "TRAP", kSteel, ptrap, 11);
269 ptrap[0] = ptrap[0]-kEps;
270 ptrap[3] = (doh-ds);
271 ptrap[4] = (dol-ds)/x;
272 ptrap[5] = ptrap[4];
273 ptrap[7] = ptrap[3];
274 ptrap[8] = ptrap[4];
275 ptrap[9] = ptrap[4];
276 gMC->Gsvolu("B050", "TRAP", kAir, ptrap, 11);
277 gMC->Gspos("B050", 1, "B049", 0.0, 0.0, 0., 0, "ONLY");
278 gMC->Gspos("B049", 1, "BM49", 0.0, 0.0, 0., 0, "ONLY");
279
280
281 Float_t dd1 = d*TMath::Tan(theta*kdeg2rad);
282 Float_t dd2 = d/TMath::Tan(2.*theta*kdeg2rad);
283 Float_t theta2 = TMath::ATan(TMath::Abs(dd2-dd1)/d/2.);
284
285
286 ptrap[0] = dol;
287 ptrap[1] = theta2*krad2deg;
288 ptrap[2] = 0.;
289 ptrap[3] = doh;
290 ptrap[4] = (dz/2./x-dd1-dd2)/2.;
291 ptrap[5] = ptrap[4];
292 ptrap[6] = 0.;
293 ptrap[7] = ptrap[3];
294 ptrap[8] = dz/4./x;
295 ptrap[9] = ptrap[8];
296
297
298 gMC->Gsvolu("B051", "TRAP", kSteel, ptrap, 11);
299 Float_t ddx0 = ptrap[8];
300
301 Float_t dd1s = dd1*(1.-2.*ds/d);
302 Float_t dd2s = dd2*(1.-2.*ds/d);
303 Float_t theta2s = TMath::ATan(TMath::Abs(dd2s-dd1s)/(d-2.*ds)/2.);
304
305
306 ptrap[0] = dol-ds;
307 ptrap[1] = theta2s*krad2deg;
308 ptrap[2] = 0.;
309 ptrap[3] = doh-ds;
310 ptrap[4] = ptrap[4]+ds/d/2.*(dd1+dd2);
311 ptrap[5] = ptrap[4];
312 ptrap[6] = 0.;
313 ptrap[7] = ptrap[3];
314 ptrap[8] = ptrap[8]-ds/2./d*(dd1+dd2);
315 ptrap[9] = ptrap[8];
316
317 gMC->Gsvolu("B052", "TRAP", kAir, ptrap, 11);
318 gMC->Gspos("B052", 1, "B051", 0.0, 0.0, 0., 0, "ONLY");
319
320 Float_t ddx, ddz, drx, drz, rtheta;
321
4a8eca94 322 AliMatrix(idrotm[2001], -theta+180, 0.0, 90.0, 90.0, 90.-theta, 0.0);
7e5caa00 323 rtheta = (90.-theta)*kdeg2rad;
324 ddx = -ddx0-dol*TMath::Tan(theta2);
325 ddz = -dol;
326
327 drx = TMath::Cos(rtheta) * ddx +TMath::Sin(rtheta) *ddz+pbox[0];
328 drz = -TMath::Sin(rtheta) * ddx +TMath::Cos(rtheta) *ddz-pbox[2];
329 gMC->Gspos("B051", 1, "BM49",
330 drx, 0.0, drz,
4a8eca94 331 idrotm[2001], "ONLY");
7e5caa00 332
4a8eca94 333 AliMatrix(idrotm[2002], -theta, 0.0, 90.0, 90.0, 270.-theta, 0.0);
7e5caa00 334 rtheta = (270.-theta)*kdeg2rad;
335
336 drx = TMath::Cos(rtheta) * ddx + TMath::Sin(rtheta) * ddz-pbox[0];
337 drz = -TMath::Sin(rtheta) * ddx + TMath::Cos(rtheta) * ddz+pbox[2];
338 gMC->Gspos("B051", 2, "BM49",
339 drx, 0.0, drz,
4a8eca94 340 idrotm[2002], "ONLY");
7e5caa00 341
342//
343// Diagonal bars (3)
344//
4a8eca94 345 h = ((dymodU[2]-dymodU[1])-2.*dol)*.999;
7e5caa00 346 dq = h*h+dz*dz;
347 x = TMath::Sqrt((dz*dz-d*d)/dq + d*d*h*h/dq/dq)+d*h/dq;
348 theta = krad2deg * TMath::ACos(x);
349
350 ptrap[0] = dz/2.;
351 ptrap[1] = theta;
352 ptrap[3] = doh;
353 ptrap[4] = dol/x;
354 ptrap[5] = ptrap[4];
355 ptrap[7] = ptrap[3];
356 ptrap[8] = ptrap[4];
357 ptrap[9] = ptrap[4];
358
359 gMC->Gsvolu("B045", "TRAP", kSteel, ptrap, 11);
360 ptrap[3] = doh-ds;
361 ptrap[4] = (dol-ds)/x;
362 ptrap[5] = ptrap[4];
363 ptrap[7] = ptrap[3];
364 ptrap[8] = ptrap[4];
365 ptrap[9] = ptrap[4];
366 gMC->Gsvolu("B046", "TRAP", kAir, ptrap, 11);
367 gMC->Gspos("B046", 1, "B045", 0.0, 0.0, 0., 0, "ONLY");
368
369//
370// Positioning of diagonal bars
371//
372// Matrices have been imported from Euclid. Some simplification
373// seems possible
374//
4a8eca94 375 AliMatrix(idrotm[2003], 0.0, 0.0, 90.0, 130.0, 90.0, 40.0);
376 AliMatrix(idrotm[2004], 180.0, 0.0, 90.0, 130.0, 90.0, 40.0);
377 AliMatrix(idrotm[2005], 180.0, 0.0, 90.0, 150.0, 90.0, 240.0);
378 AliMatrix(idrotm[2006], 0.0, 0.0, 90.0, 150.0, 90.0, 240.0);
379 AliMatrix(idrotm[2007], 0.0, 0.0, 90.0, 170.0, 90.0, 80.0);
380 AliMatrix(idrotm[2008], 180.0, 0.0, 90.0, 190.0, 90.0, 280.0);
381 AliMatrix(idrotm[2009], 180.0, 0.0, 90.0, 170.0, 90.0, 80.0);
382 AliMatrix(idrotm[2010], 0.0, 0.0, 90.0, 190.0, 90.0, 280.0);
383 AliMatrix(idrotm[2011], 0.0, 0.0, 90.0, 350.0, 90.0, 260.0);
384 AliMatrix(idrotm[2012], 180.0, 0.0, 90.0, 350.0, 90.0, 260.0);
385 AliMatrix(idrotm[2013], 180.0, 0.0, 90.0, 10.0, 90.0, 100.0);
386 AliMatrix(idrotm[2014], 0.0, 0.0, 90.0, 10.0, 90.0, 100.0);
387 AliMatrix(idrotm[2015], 0.0, 0.0, 90.0, 30.0, 90.0, 300.0);
388 AliMatrix(idrotm[2016], 180.0, 0.0, 90.0, 30.0, 90.0, 300.0);
389 AliMatrix(idrotm[2017], 180.0, 0.0, 90.0, 50.0, 90.0, 140.0);
390 AliMatrix(idrotm[2018], 0.0, 0.0, 90.0, 50.0, 90.0, 140.0);
391
392 AliMatrix(idrotm[2019], 180.0, 0.0, 90.0, 130.0, 90.0, 220.0);
25918453 393 AliMatrix(idrotm[2020], 180.0, 0.0, 90.0, 50.0, 90.0, 320.0);
394 AliMatrix(idrotm[2021], 180.0, 0.0, 90.0, 150.0, 90.0, 60.0);
395 AliMatrix(idrotm[2022], 180.0, 0.0, 90.0, 30.0, 90.0, 120.0);
4a8eca94 396 AliMatrix(idrotm[2023], 180.0, 0.0, 90.0, 170.0, 90.0, 260.0);
397 AliMatrix(idrotm[2024], 180.0, 0.0, 90.0, 190.0, 90.0, 100.0);
25918453 398 AliMatrix(idrotm[2025], 180.0, 0.0, 90.0, 350.0, 90.0, 80.0);
399 AliMatrix(idrotm[2026], 180.0, 0.0, 90.0, 10.0, 90.0, 280.0);
4a8eca94 400
25918453 401 AliMatrix(idrotm[2027], 0.0, 0.0, 90.0, 50.0, 90.0, 320.0);
402 AliMatrix(idrotm[2028], 0.0, 0.0, 90.0, 150.0, 90.0, 60.0);
403 AliMatrix(idrotm[2029], 0.0, 0.0, 90.0, 30.0, 90.0, 120.0);
404 AliMatrix(idrotm[2030], 0.0, 0.0, 90.0, 10.0, 90.0, 280.0);
405 AliMatrix(idrotm[2031], 0.0, 0.0, 90.0, 170.0, 90.0, 260.0);
406 AliMatrix(idrotm[2032], 0.0, 0.0, 90.0, 190.0, 90.0, 100.0);
407 AliMatrix(idrotm[2033], 0.0, 0.0, 90.0, 350.0, 90.0, 80.0);
7e5caa00 408
7d03cffa 409 Float_t rd = 405.5;
4a8eca94 410 dz = (dymodU[1]+dymodU[0])/2.;
411 Float_t dz2 = (dymodU[1]+dymodU[2])/2.;
7e5caa00 412
413//
414// phi = 40
415//
416 Float_t phi = 40;
417 dx = rd * TMath::Sin(phi*kdeg2rad);
418 dy = rd * TMath::Cos(phi*kdeg2rad);
419
7e5caa00 420
4a8eca94 421 gMC->Gspos("B045", 1, "B076", -dx, dy, dz2, idrotm[2019], "ONLY");
422 gMC->Gspos("B045", 2, "B076", -dx, dy, -dz2, idrotm[2003], "ONLY"); // ?
423 gMC->Gspos("B045", 3, "B076", dx, dy, dz2, idrotm[2020], "ONLY");
424 gMC->Gspos("B045", 4, "B076", dx, dy, -dz2, idrotm[2027], "ONLY");
7e5caa00 425
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);
7e5caa00 434
4a8eca94 435 gMC->Gspos("B045", 5, "B076", -dx, dy, dz2, idrotm[2021], "ONLY");
436 gMC->Gspos("B045", 6, "B076", -dx, dy, -dz2, idrotm[2028], "ONLY");
437 gMC->Gspos("B045", 7, "B076", dx, dy, dz2, idrotm[2022], "ONLY");
438 gMC->Gspos("B045", 8, "B076", dx, dy, -dz2, idrotm[2029], "ONLY");
7e5caa00 439
7e5caa00 440//
441// phi = 80
442//
443
444 phi = 80;
445 dx = rd * TMath::Sin(phi*kdeg2rad);
446 dy = rd * TMath::Cos(phi*kdeg2rad);
7e5caa00 447
4a8eca94 448 gMC->Gspos("B047", 13, "B076", -dx, -dy, dz, idrotm[2008], "ONLY");
449 gMC->Gspos("B047", 14, "B076", -dx, -dy, -dz, idrotm[2010], "ONLY");
450 gMC->Gspos("B047", 15, "B076", dx, -dy, dz, idrotm[2012], "ONLY");
451 gMC->Gspos("B047", 16, "B076", dx, -dy, -dz, idrotm[2011], "ONLY");
7e5caa00 452
4a8eca94 453 gMC->Gspos("B045", 9, "B076", -dx, dy, dz2, idrotm[2023], "ONLY");
454 gMC->Gspos("B045", 10, "B076", -dx, dy, -dz2, idrotm[2031], "ONLY");
455 gMC->Gspos("B045", 11, "B076", dx, dy, dz2, idrotm[2026], "ONLY");
456 gMC->Gspos("B045", 12, "B076", dx, dy, -dz2, idrotm[2030], "ONLY");
7e5caa00 457
4a8eca94 458 gMC->Gspos("B045", 13, "B076", -dx, -dy, dz2, idrotm[2024], "ONLY");
459 gMC->Gspos("B045", 14, "B076", -dx, -dy, -dz2, idrotm[2032], "ONLY");
460 gMC->Gspos("B045", 15, "B076", dx, -dy, dz2, idrotm[2025], "ONLY");
461 gMC->Gspos("B045", 16, "B076", dx, -dy, -dz2, idrotm[2033], "ONLY");
7e5caa00 462
4a8eca94 463 gMC->Gspos("BM49", 7, "B076", dx, -dy, 0., idrotm[2025], "ONLY");
464 gMC->Gspos("BM49", 8, "B076", -dx, -dy, 0., idrotm[2024], "ONLY");
7e5caa00 465
466
467// The internal frame
468//
7e5caa00 469//
470//
471// Mother Volumes
472//
c2beaf42 473 ptrd1[0] = 49.8;
474 ptrd1[1] = 70.7;
1f0e2a33 475 ptrd1[2] = 376.0; // CBL 4/4/08
c2beaf42 476 ptrd1[3] = iFrH / 2.;
7e5caa00 477
c2beaf42 478 Float_t r = 342.0;
7d03cffa 479 Float_t rout1 = 405.5;
c2beaf42 480 Float_t rout2 = 411.5;
3c976b4c 481 TString module[18];
7e5caa00 482
d84d0b8c 483 for (i = 0; i < 18; i++) {
484 // Create volume i
8ce41745 485 char name[16];
9398db43 486 Int_t mod = i + 13;
487 if (mod > 17) mod -= 18;
488 sprintf(name, "BSEGMO%d", mod);
d84d0b8c 489 gMC->Gsvolu(name, "TRD1", kAir, ptrd1, 4);
bb92d81d 490 gGeoManager->GetVolume(name)->SetVisibility(kFALSE);
3c976b4c 491
d84d0b8c 492 module[i] = name;
493 // Place volume i
3b7df2c4 494 Float_t phi1 = i * 20.;
495 Float_t phi2 = 270 + phi1;
d84d0b8c 496 if (phi2 >= 360.) phi2 -= 360.;
7e5caa00 497
3b7df2c4 498 dx = TMath::Sin(phi1*kdeg2rad)*r;
499 dy = -TMath::Cos(phi1*kdeg2rad)*r;
7e5caa00 500
3b7df2c4 501 AliMatrix(idrotm[2034+i], 90.0, phi1, 0., 0., 90., phi2);
bb92d81d 502 gMC->Gspos(name, 1, "B077", dx, dy, 0., idrotm[2034+i], "ONLY");
7e5caa00 503//
504// Position elements of outer Frame
505//
3b7df2c4 506 dx = TMath::Sin(phi1*kdeg2rad)*rout1;
507 dy = -TMath::Cos(phi1*kdeg2rad)*rout1;
7e5caa00 508 for (j = 0; j < 3; j++)
509 {
4a8eca94 510 dz = dymodU[j];
511 gMC->Gspos("B042", 6*i+2*j+1, "B076", dx, dy, dz, idrotm[2034+i], "ONLY");
512 gMC->Gspos("B042", 6*i+2*j+2, "B076", dx, dy, -dz, idrotm[2034+i], "ONLY");
7e5caa00 513 }
514
3b7df2c4 515 phi1 = i*20.+10;
516 phi2 = 270+phi1;
517 AliMatrix(idrotm[2052+i], 90.0, phi1, 90., phi2, 0., 0.);
7e5caa00 518
3b7df2c4 519 dx = TMath::Sin(phi1*kdeg2rad)*rout2;
520 dy = -TMath::Cos(phi1*kdeg2rad)*rout2;
4a8eca94 521 gMC->Gspos("B033", i+1, "B076", dx, dy, 0., idrotm[2052+i], "ONLY");
7e5caa00 522//
523 }
524// Internal Frame rings
525//
526//
c2beaf42 527// new specs: 40x90x60 for inner rings
528// 30x135x60 for front and rear rings
7e5caa00 529//
530// currently no distinction between front/rear and inner rings
531//
532//
533//
c2beaf42 534 ptrd1[0] = 287. * TMath::Sin(10.* kdeg2rad) - 2.;
535 ptrd1[1] = 293. * TMath::Sin(10.* kdeg2rad) - 2.;
536 ptrd1[2] = ringW/2.;
537 ptrd1[3] = ringH/2.;
7e5caa00 538
c2beaf42 539 gMC->Gsvolu("B072", "TRD1", kSteel, ptrd1, 4);
7e5caa00 540
c2beaf42 541 ptrd1[0] = 287.5 * TMath::Sin(10. * kdeg2rad) - 2.;
542 ptrd1[1] = 292.5 * TMath::Sin(10. * kdeg2rad) - 2.;
543 ptrd1[2] = ringW / 2. - 0.5;
544 ptrd1[3] = ringH / 2. - 0.5;
545
546 gMC->Gsvolu("B073", "TRD1", kAir, ptrd1, 4);
7e5caa00 547 gMC->Gspos("B073", 1, "B072", 0., 0., 0., 0, "ONLY");
548
549// Web frame 0-degree
550//
551// h x w x s = 60x40x4
552// (attention: element is are half bars, "U" shaped)
553//
c2beaf42 554 dz = 114.5;
4a8eca94 555 d = 2.*dwl;
556 h = dymodU[0]-dymodL[0];
557 dq = h*h+dz*dz;
558
559 x = TMath::Sqrt((dz*dz-d*d)/dq + d*d*h*h/dq/dq)+d*h/dq;
7e5caa00 560
4a8eca94 561 theta = TMath::ACos(x);
562 Float_t thetaP = (TMath::Pi()-theta)*krad2deg;
563
564 ptrap[0] = dz/2.;
565 ptrap[1] = thetaP;
566 ptrap[2] = 0.;
567 ptrap[3] = dwh;
568 ptrap[4] = dwl/cos(theta);
569 ptrap[5] = ptrap[4];
570 ptrap[6] = 0;
571 ptrap[7] = ptrap[3];
572 ptrap[8] = ptrap[4];
573 ptrap[9] = ptrap[4];
574 ptrap[10] = 0;
575 gMC->Gsvolu("B063", "TRAP", kSteel, ptrap, 11);
576 ptrap[3] = dwh - 0.2;
577 ptrap[4] = (dwl-0.4)/cos(theta);
578 ptrap[5] = ptrap[4];
579 ptrap[7] = ptrap[3];
580 ptrap[8] = ptrap[4];
581 ptrap[9] = ptrap[4];
582 gMC->Gsvolu("B064", "TRAP", kAir, ptrap, 11);
583 gMC->Gspos("B064", 1, "B063", 0.0, -0.2, 0., 0, "ONLY");
584
585
c2beaf42 586 h = 114.5;
4a8eca94 587 d = 2.*dwl;
588 dz = dymodU[1]-dymodL[1];
589 dq = h*h+dz*dz;
590
591 x = TMath::Sqrt((dz*dz-d*d)/dq + d*d*h*h/dq/dq)+d*h/dq;
592
593
594 theta = krad2deg * TMath::ACos(x);
595
596 ptrap[0] = dz/2.;
597 ptrap[1] = theta;
598 ptrap[2] = 0.;
599 ptrap[3] = dwh;
600 ptrap[4] = dwl/x;
601 ptrap[5] = ptrap[4];
602 ptrap[6] = 0;
603 ptrap[7] = ptrap[3];
604 ptrap[8] = ptrap[4];
605 ptrap[9] = ptrap[4];
606 ptrap[10] = 0;
607 gMC->Gsvolu("B163", "TRAP", kSteel, ptrap, 11);
608 ptrap[3] = dwh - 0.2;
609 ptrap[4] = (dwl-0.4)/x;
610 ptrap[5] = ptrap[4];
611 ptrap[7] = ptrap[3];
612 ptrap[8] = ptrap[4];
613 ptrap[9] = ptrap[4];
614 gMC->Gsvolu("B164", "TRAP", kAir, ptrap, 11);
615 gMC->Gspos("B164", 1, "B163", 0.0, -0.2, 0., 0, "ONLY");
616
617
7e5caa00 618 pbox[0] = dwh;
619 pbox[1] = dwl;
c2beaf42 620 pbox[2] = 114.5 / 2.;
4a8eca94 621 gMC->Gsvolu("B263", "BOX ", kSteel, pbox, 3);
7e5caa00 622 pbox[0] = dwh-0.2;
623 pbox[1] = dwl-0.4;
624
4a8eca94 625 gMC->Gsvolu("B264", "BOX ", kAir, pbox, 3);
626 gMC->Gspos("B264", 1, "B263", 0.2, 0., 0., 0, "ONLY");
627
628
629 AliMatrix(idrotm[2070], 90.0, 0.0, 90.0, 270.0, 0.0, 0.0);
630//
631 AliMatrix(idrotm[2071], 100.0, 0.0, 90.0, 270.0, 10.0, 0.0);
632 AliMatrix(idrotm[2072], 100.0, 0.0, 90.0, 90.0, 10.0, 0.0);
633 AliMatrix(idrotm[2073], 100.0, 180.0, 90.0, 270.0, 10.0, 180.0);
25918453 634 AliMatrix(idrotm[2074], 100.0, 180.0, 90.0, 90.0, 10.0, 180.0);
4a8eca94 635//
636 AliMatrix(idrotm[2075], 10.0, 0.0, 80.0, 180.0, 90.0, 90.0);
637 AliMatrix(idrotm[2076], 10.0, 0.0, 80.0, 180.0, 90.0, 270.0);
638 AliMatrix(idrotm[2077], 10.0, 180.0, 80.0, 0.0, 90.0, 90.0);
639 AliMatrix(idrotm[2078], 10.0, 180.0, 80.0, 0.0, 90.0, 270.0);
640//
641 AliMatrix(idrotm[2079], 170.0, 180.0, 80.0, 180.0, 90.0, 90.0);
642 AliMatrix(idrotm[2080], 170.0, 180.0, 80.0, 180.0, 90.0, 270.0);
643 AliMatrix(idrotm[2081], 170.0, 0.0, 80.0, 0.0, 90.0, 90.0);
644 AliMatrix(idrotm[2082], 170.0, 0.0, 80.0, 0.0, 90.0, 270.0);
645
646//
647 AliMatrix(idrotm[2083], 170.0, 0.0, 90.0, 90.0, 80.0, 0.0);
648 AliMatrix(idrotm[2084], 170.0, 180.0, 90.0, 90.0, 80.0, 180.0);
649 AliMatrix(idrotm[2085], 90.0, 180.0, 90.0, 90.0, 0.0, 0.0);
650//
25918453 651 AliMatrix(idrotm[2086], 90.0, 90.0, 100.0, 0., 170.0, 180.0);
652 AliMatrix(idrotm[2087], 90.0, 90.0, 100.0, 0., 10.0, 0.0);
653 AliMatrix(idrotm[2088], 90.0, 90.0, 80.0, 0., 170.0, 0.0);
654 AliMatrix(idrotm[2089], 90.0, 90.0, 80.0, 0., -10.0, 0.0);
655//
656 AliMatrix(idrotm[2090], 90.0, 0.0, 0.0, 0., 90.0, 90.0);
657 AliMatrix(idrotm[2091], 0.0, 0.0, 90.0, 90., 90.0, 0.0);
7e5caa00 658//
659// web frame diagonal (outer)
660//
c2beaf42 661 h = 114.5;
7e5caa00 662 d = 2.*dwl;
4a8eca94 663 dz = dymodL[2]-dymodU[1]-dwl;
7e5caa00 664 dq = h*h+dz*dz;
665
666 x = TMath::Sqrt((dz*dz-d*d)/dq + d*d*h*h/dq/dq)+d*h/dq;
667
668
669 theta = krad2deg * TMath::ACos(x);
670
671 ptrap[0] = dz/2.;
672 ptrap[1] = theta;
673 ptrap[2] = 0.;
674 ptrap[3] = dwh;
675 ptrap[4] = dwl/x;
676 ptrap[5] = ptrap[4];
677 ptrap[6] = 0;
678 ptrap[7] = ptrap[3];
679 ptrap[8] = ptrap[4];
680 ptrap[9] = ptrap[4];
681 ptrap[10] = 0;
682 gMC->Gsvolu("B065", "TRAP", kSteel, ptrap, 11);
683 ptrap[3] = dwh - 0.2;
684 ptrap[4] = (dwl-0.4)/x;
685 ptrap[5] = ptrap[4];
686 ptrap[7] = ptrap[3];
687 ptrap[8] = ptrap[4];
688 ptrap[9] = ptrap[4];
689 gMC->Gsvolu("B066", "TRAP", kAir, ptrap, 11);
690 gMC->Gspos("B066", 1, "B065", 0.0, -0.2, 0., 0, "ONLY");
691
692//
693// web frame diagonal (inner)
694//
4a8eca94 695 dz = dymodL[1]-dymodU[0];
7e5caa00 696 dq = h*h+dz*dz;
4a8eca94 697 x = TMath::Sqrt((dz*dz-d*d)/dq + d*d*h*h/dq/dq)+d*h/dq;
7e5caa00 698
699
700 theta = krad2deg * TMath::ACos(x);
701
4a8eca94 702 ptrap[0] = (dymodL[1]-dymodU[0])/2.;
7e5caa00 703 ptrap[1] = theta;
704 ptrap[2] = 0.;
705 ptrap[3] = dwh;
706 ptrap[4] = dwl/x;
707 ptrap[5] = ptrap[4];
708 ptrap[6] = 0;
709 ptrap[7] = ptrap[3];
710 ptrap[8] = ptrap[4];
711 ptrap[9] = ptrap[4];
712 ptrap[10] = 0;
713 gMC->Gsvolu("B067", "TRAP", kSteel, ptrap, 11);
714 ptrap[3] = dwh-0.2;
715 ptrap[4] = (dwl-0.4)/x;
716 ptrap[5] = ptrap[4];
717 ptrap[7] = ptrap[3];
718 ptrap[8] = ptrap[4];
719 ptrap[9] = ptrap[4];
720 gMC->Gsvolu("B068", "TRAP", kAir, ptrap, 11);
721 gMC->Gspos("B068", 1, "B067", 0.0, -0.2, 0., 0, "ONLY");
722
723
724 dz = -iFrH/2.+ringH/2.+kEps;
c2beaf42 725 Float_t dz0 = 3. - 0.2;
726 Float_t dx0 = 60.82 - 1.0;
7e5caa00 727
bb92d81d 728 for (jmod = 0; jmod< 18; jmod++)
7e5caa00 729 {
730// ring bars
bb92d81d 731 for (i = 0; i < 3; i++) {
732 gMC->Gspos("B072", 6*jmod+i+1, module[jmod], 0, dymodL[i], dz, 0, "ONLY");
733 gMC->Gspos("B072", 6*jmod+i+4, module[jmod], 0, -dymodL[i], dz, idrotm[2070], "ONLY");
7e5caa00 734
735// 0-deg web
bb92d81d 736 if (i == 2) {
c2beaf42 737 gMC->Gspos("B263", 4*jmod+1, module[jmod], dx0, dymodU[2], dz0, idrotm[2072], "ONLY");
738 gMC->Gspos("B263", 4*jmod+2, module[jmod], dx0, -dymodU[2], dz0, idrotm[2071], "ONLY");
739 gMC->Gspos("B263", 4*jmod+3, module[jmod], -dx0, dymodU[2], dz0, idrotm[2074], "ONLY");
740 gMC->Gspos("B263", 4*jmod+4, module[jmod], -dx0, -dymodU[2], dz0, idrotm[2073], "ONLY");
4a8eca94 741 }
7e5caa00 742 }
743 }
744
745// outer diagonal web
746
4a8eca94 747 dy = (dymodU[0]+dymodL[0])/2.;
c2beaf42 748
749
d84d0b8c 750 for (jmod = 0; jmod < 18; jmod++) {
c2beaf42 751 gMC->Gspos("B063", 4*jmod+1, module[jmod], dx0, dy, dz0, idrotm[2086], "ONLY");
752 gMC->Gspos("B063", 4*jmod+2, module[jmod], dx0, -dy, dz0, idrotm[2087], "ONLY");
753 gMC->Gspos("B063", 4*jmod+3, module[jmod], -dx0, dy, dz0, idrotm[2088], "ONLY");
754 gMC->Gspos("B063", 4*jmod+4, module[jmod], -dx0, -dy, dz0, idrotm[2089], "ONLY");
4a8eca94 755 }
756
757 dy = (dymodU[1]+dymodL[1])/2.;
d84d0b8c 758 for (jmod = 0; jmod < 18; jmod++) {
c2beaf42 759 gMC->Gspos("B163", 4*jmod+1, module[jmod], dx0, dy, dz0, idrotm[2080], "ONLY");
760 gMC->Gspos("B163", 4*jmod+2, module[jmod], dx0, -dy, dz0, idrotm[2079], "ONLY");
761 gMC->Gspos("B163", 4*jmod+3, module[jmod], -dx0, dy, dz0, idrotm[2082], "ONLY");
762 gMC->Gspos("B163", 4*jmod+4, module[jmod], -dx0, -dy, dz0, idrotm[2081], "ONLY");
4a8eca94 763 }
764
765
766 dy = (dymodL[2]+dymodU[1])/2.-dwl/2.;
d84d0b8c 767 for (jmod = 0; jmod < 18; jmod++) {
c2beaf42 768 gMC->Gspos("B065", 4*jmod+1, module[jmod], dx0, dy, dz0, idrotm[2076], "ONLY");
769 gMC->Gspos("B065", 4*jmod+2, module[jmod], dx0, -dy, dz0, idrotm[2075], "ONLY");
770 gMC->Gspos("B065", 4*jmod+3, module[jmod], -dx0, dy, dz0, idrotm[2078], "ONLY");
771 gMC->Gspos("B065", 4*jmod+4, module[jmod], -dx0, -dy, dz0, idrotm[2077], "ONLY");
7e5caa00 772 }
773
774
4a8eca94 775 dy = (dymodL[1]+dymodU[0])/2.;
7e5caa00 776
d84d0b8c 777 for (jmod = 0; jmod < 18; jmod++) {
c2beaf42 778 gMC->Gspos("B067", 4*jmod+1, module[jmod], dx0, dy, dz0, idrotm[2076], "ONLY");
779 gMC->Gspos("B067", 4*jmod+2, module[jmod], dx0, -dy, dz0, idrotm[2075], "ONLY");
780 gMC->Gspos("B067", 4*jmod+3, module[jmod], -dx0, dy, dz0, idrotm[2078], "ONLY");
781 gMC->Gspos("B067", 4*jmod+4, module[jmod], -dx0, -dy, dz0, idrotm[2077], "ONLY");
7e5caa00 782 }
783
784// longitudinal bars (TPC rails attached)
785// new specs:
786// h x w x s = 100 x 75 x 6
787// current:
788// Attention: 2 "U" shaped half rods per cell
789//
790// not yet used
791//
792 ptrap[0] = 2.50;
793 ptrap[1] = 10.00;
794 ptrap[2] = 0.00;
795 ptrap[3] = 350.00;
796 ptrap[4] = 3.75;
797 ptrap[5] = ptrap[4];
798 ptrap[6] = 0;
799 ptrap[7] = ptrap[3];
800 ptrap[8] = ptrap[4];
801 ptrap[9] = ptrap[4];
802 ptrap[10] = 0;
f935f49e 803// gMC->Gsvolu("B059", "TRAP", kSteel, ptrap, 11);
7e5caa00 804 ptrap[0] = 2.2;
805 ptrap[4] = 2.15;
806 ptrap[5] = ptrap[4];
807 ptrap[7] = ptrap[3];
808 ptrap[8] = ptrap[4];
809 ptrap[9] = ptrap[4];
f935f49e 810 //gMC->Gsvolu("B062", "TRAP", kAir, ptrap, 11);
811 //gMC->Gspos("B062", 1, "B059", 0.0, 0., 0., 0, "ONLY");
812
7e5caa00 813//
814// longitudinal bars (no TPC rails attached)
815// new specs: h x w x s = 60 x 60 x 3
816// (was: 75 x 100 x 5?)
817//
818//
819//
820 ptrap[0] = longW/4.;
821 ptrap[4] = longH/2.;
822 ptrap[5] = ptrap[4];
823 ptrap[7] = ptrap[3];
824 ptrap[8] = ptrap[4];
825 ptrap[9] = ptrap[4];
826
827 gMC->Gsvolu("BA59", "TRAP", kSteel, ptrap, 11);
828 ptrap[0] = longW/4.-0.15;
829 ptrap[4] = longH/2.-0.30;
830 ptrap[5] = ptrap[4];
831 ptrap[7] = ptrap[3];
832 ptrap[8] = ptrap[4];
833 ptrap[9] = ptrap[4];
834 gMC->Gsvolu("BA62", "TRAP", kAir, ptrap, 11);
835 gMC->Gspos("BA62", 1, "BA59", 0.0, 0.0, -0.15, 0, "ONLY");
836
c2beaf42 837 dz = -iFrH/2. + longH/2.;
7e5caa00 838
d84d0b8c 839 for (jmod = 0; jmod < 18; jmod++) {
c2beaf42 840 gMC->Gspos("BA59", 2*jmod+1, module[jmod], 49.31, 0.0, dz, idrotm[2084], "ONLY");
841 gMC->Gspos("BA59", 2*jmod+2, module[jmod], -49.31, 0.0, dz, idrotm[2083], "ONLY");
7e5caa00 842 }
25918453 843
844
7e5caa00 845//
25918453 846// Thermal shield
7e5caa00 847//
e6add757 848
c2beaf42 849 Float_t dyM = 99.0 - 1.;
25918453 850 MakeHeatScreen("M", dyM, idrotm[2090], idrotm[2091]);
6904b1c6 851 Float_t dyAM = 119.5 - 5.;
25918453 852 MakeHeatScreen("AM", dyAM, idrotm[2090], idrotm[2091]);
23cb15ef 853 Float_t dyA = 128.0 - 4.;
25918453 854 MakeHeatScreen("A" , dyA, idrotm[2090], idrotm[2091]);
e6add757 855
25918453 856//
857//
858//
23cb15ef 859 dz = -57.2 + 0.6;
25918453 860 for (i = 0; i < 18; i++) {
861
862 char nameMo[16];
863 sprintf(nameMo, "BSEGMO%d",i);
864 // M
865 gMC->Gspos("BTSH_M" , i+1 , nameMo, 0., 0., dz, 0, "ONLY");
866 // AM, CM
23cb15ef 867 dy = dymodL[0] + dyAM / 2. + 4.5;
25918453 868 gMC->Gspos("BTSH_AM", i+ 1, nameMo, 0., dy, dz, 0, "ONLY");
869 gMC->Gspos("BTSH_AM", i+19, nameMo, 0., -dy, dz, 0, "ONLY");
870 // A, C
23cb15ef 871 dy = dymodL[1] + dyA / 2. + 6.0;
25918453 872 gMC->Gspos("BTSH_A" , i+ 1, nameMo, 0., dy, dz, 0, "ONLY");
873 gMC->Gspos("BTSH_A" , i+19, nameMo, 0., -dy, dz, 0, "ONLY");
874}
875
e6add757 876
774c288e 877 //
878 // TRD mother volumes
879 //
d84d0b8c 880
a621ccf6 881 ptrd1[0] = 47.4405; // CBL 28/6/2006
882 ptrd1[1] = 61.1765; // CBL
883 ptrd1[2] = 375.5; // CBL
884 ptrd1[3] = 38.95; // CBL
885
d84d0b8c 886 for (i = 0; i < 18; i++) {
8ce41745 887 char nameCh[16];
d84d0b8c 888 sprintf(nameCh, "BTRD%d",i);
8ce41745 889 char nameMo[16];
d84d0b8c 890 sprintf(nameMo, "BSEGMO%d",i);
891 gMC->Gsvolu(nameCh, "TRD1", kAir, ptrd1, 4);
bb92d81d 892 gGeoManager->GetVolume(nameCh)->SetVisibility(kFALSE);
c2beaf42 893 gMC->Gspos(nameCh, 1, nameMo, 0., 0., -12.62, 0, "ONLY"); // CBL 28/6/2006
d84d0b8c 894 }
4c057bc8 895
774c288e 896//
897// TOF mother volumes
898//
e2dab6e6 899 ptrd1[0] = 62.2500;
900 ptrd1[1] = 67.3631;
901 ptrd1[2] = 373.6;
a009d497 902 ptrd1[3] = 14.525; //AdC
d84d0b8c 903 for (i = 0; i < 18; i++) {
8ce41745 904 char nameCh[16];
d84d0b8c 905 sprintf(nameCh, "BTOF%d",i);
8ce41745 906 char nameMo[16];
d84d0b8c 907 sprintf(nameMo, "BSEGMO%d",i);
908 gMC->Gsvolu(nameCh, "TRD1", kAir, ptrd1, 4);
bb92d81d 909 gGeoManager->GetVolume(nameCh)->SetVisibility(kFALSE);
a009d497 910 gMC->Gspos(nameCh, 1, nameMo, 0., 0., 43.525, 0, "ONLY"); //AdC
d84d0b8c 911 }
d3507e34 912
b35d7d26 913//
914// Geometry of Rails starts here
915//
916//
917//
918// Rails for space-frame
919//
920 Float_t rbox[3];
921
922 rbox[0] = 25.00;
923 rbox[1] = 27.50;
924 rbox[2] = 600.00;
925 gMC->Gsvolu("BRS1", "BOX", kAir, rbox, 3);
926
927 rbox[0] = 25.00;
928 rbox[1] = 3.75;
929 gMC->Gsvolu("BRS2", "BOX", kSteel, rbox, 3);
930
931 rbox[0] = 3.00;
932 rbox[1] = 20.00;
933 gMC->Gsvolu("BRS3", "BOX", kSteel, rbox, 3);
934
935 gMC->Gspos("BRS2", 1, "BRS1", 0., -27.5+3.75, 0., 0, "ONLY");
936 gMC->Gspos("BRS2", 2, "BRS1", 0., 27.5-3.75, 0., 0, "ONLY");
937 gMC->Gspos("BRS3", 1, "BRS1", 0., 0., 0., 0, "ONLY");
85227d20 938 gMC->Gspos("BRS1", 1, "ALIC", -430.-3., -190., 0., 0, "ONLY");
939 gMC->Gspos("BRS1", 2, "ALIC", 430.+3., -190., 0., 0, "ONLY");
b35d7d26 940
941 rbox[0] = 3.0;
85227d20 942 rbox[1] = 145./4.;
b35d7d26 943 rbox[2] = 25.0;
944 gMC->Gsvolu("BRS4", "BOX", kSteel, rbox, 3);
945
85227d20 946 gMC->Gspos("BRS4", 1, "ALIC", 430.+3., -190.+55./2.+rbox[1], 224., 0, "ONLY");
947 gMC->Gspos("BRS4", 2, "ALIC", 430.+3., -190.+55./2.+rbox[1], -224., 0, "ONLY");
948// gMC->Gspos("BRS4", 3, "ALIC", -430.+3, -180.+55./2.+rbox[1], 224., 0, "ONLY");
949// gMC->Gspos("BRS4", 4, "ALIC", -430.+3, -180.+55./2.+rbox[1], -224., 0, "ONLY");
b35d7d26 950
f2744db7 951
952
953 //
954 // The Backframe
955 //
956 // Inner radius
957 Float_t kBFMRin = 270.0;
958 // Outer Radius
959 Float_t kBFMRou = 417.5;
960 // Width
961 Float_t kBFMdz = 118.0;
962 //
963 //
964 // Rings
965 Float_t kBFRdr = 7.5;
966 Float_t kBFRdz = 8.0;
967 //
968 //
969 // Bars and Spokes
970 //
971 Float_t kBFBd = 8.0;
972 Float_t kBFBdd = 0.6;
973
974
975 // The Mother volume
976 Float_t tpar[3];
977 tpar[0] = kBFMRin;
978 tpar[1] = kBFMRou;
979 tpar[2] = kBFMdz / 2.;
980 gMC->Gsvolu("BFMO", "TUBE", kAir, tpar, 3);
981
982 // Rings
983 //
984 // Inner Ring
985 tpar[0] = kBFMRin;
986 tpar[1] = tpar[0] + kBFRdr;
987 tpar[2] = kBFRdz / 2.;
988
989 gMC->Gsvolu("BFIR", "TUBE", kSteel, tpar, 3);
990
991 tpar[0] = tpar[0] + kBFBdd;
992 tpar[1] = tpar[1] - kBFBdd;
993 tpar[2] = (kBFRdz - 2. * kBFBdd) / 2.;
994
995 gMC->Gsvolu("BFII", "TUBE", kAir, tpar, 3);
996 gMC->Gspos("BFII", 1, "BFIR", 0., 0., 0., 0, "ONLY");
997
f2744db7 998 //
999 // Outer RING
1000 tpar[0] = kBFMRou - kBFRdr;
1001 tpar[1] = kBFMRou;
1002 tpar[2] = kBFRdz / 2.;
1003
1004 gMC->Gsvolu("BFOR", "TUBE", kSteel, tpar, 3);
1005
1006 tpar[0] = tpar[0] + kBFBdd;
1007 tpar[1] = tpar[1] - kBFBdd;
1008 tpar[2] = (kBFRdz - 2. * kBFBdd) / 2.;
1009
1010 gMC->Gsvolu("BFOO", "TUBE", kAir, tpar, 3);
1011 gMC->Gspos("BFOO", 1, "BFOR", 0., 0., 0., 0, "ONLY");
1012
1013
1014 dz = kBFMdz/2. - kBFRdz / 2.;
1015 gMC->Gspos("BFIR", 1, "BFMO", 0., 0., dz, 0, "ONLY");
1016 gMC->Gspos("BFIR", 2, "BFMO", 0., 0., -dz, 0, "ONLY");
1017 gMC->Gspos("BFOR", 1, "BFMO", 0., 0., dz, 0, "ONLY");
1018 gMC->Gspos("BFOR", 2, "BFMO", 0., 0., -dz, 0, "ONLY");
1019
1020 //
1021 // Longitudinal Bars
1022 //
1023 Float_t bpar[3];
1024
1025 bpar[0] = kBFBd/2;
1026 bpar[1] = bpar[0];
1027 bpar[2] = kBFMdz/2. - kBFBd;
1028 gMC->Gsvolu("BFLB", "BOX ", kSteel, bpar, 3);
1029
1030 bpar[0] = bpar[0] - kBFBdd;
1031 bpar[1] = bpar[1] - kBFBdd;
1032 bpar[2] = bpar[2] - kBFBdd;
1033 gMC->Gsvolu("BFLL", "BOX ", kAir, bpar, 3);
1034 gMC->Gspos("BFLL", 1, "BFLB", 0., 0., 0., 0, "ONLY");
1035
1036 for (i = 0; i < 18; i++)
1037 {
1038 Float_t ro = kBFMRou - kBFBd / 2.;
1039 Float_t ri = kBFMRin + kBFBd / 2.;
1040
3b7df2c4 1041 Float_t phi0 = Float_t(i) * 20.;
f2744db7 1042
3b7df2c4 1043 Float_t xb = ri * TMath::Cos(phi0 * kDegrad);
1044 Float_t yb = ri * TMath::Sin(phi0 * kDegrad);
1045 AliMatrix(idrotm[2090+i], 90.0, phi0, 90.0, phi0 + 270., 0., 0.);
f2744db7 1046
3b7df2c4 1047 gMC->Gspos("BFLB", i + 1, "BFMO", xb, yb, 0., idrotm[2090 + i], "ONLY");
f2744db7 1048
3b7df2c4 1049 xb = ro * TMath::Cos(phi0 * kDegrad);
1050 yb = ro * TMath::Sin(phi0 * kDegrad);
f2744db7 1051
3b7df2c4 1052 gMC->Gspos("BFLB", i + 19, "BFMO", xb, yb, 0., idrotm[2090 +i], "ONLY");
f2744db7 1053 }
1054
1055 //
1056 // Radial Bars
1057 //
1058 bpar[0] = (kBFMRou - kBFMRin - 2. * kBFRdr) / 2.;
1059 bpar[1] = kBFBd/2;
1060 bpar[2] = bpar[1];
1061 //
1062 // Avoid overlap with circle
1063 Float_t rr = kBFMRou - kBFRdr;
1064 Float_t delta = rr - TMath::Sqrt(rr * rr - kBFBd * kBFBd / 4.) + 0.01;
1065 bpar[0] -= delta /2.;
1066
1067
1068 gMC->Gsvolu("BFRB", "BOX ", kSteel, bpar, 3);
1069
1070 bpar[0] = bpar[0] - kBFBdd;
1071 bpar[1] = bpar[1] - kBFBdd;
1072 bpar[2] = bpar[2] - kBFBdd;
1073 gMC->Gsvolu("BFRR", "BOX ", kAir, bpar, 3);
1074 gMC->Gspos("BFRR", 1, "BFRB", 0., 0., 0., 0, "ONLY");
1075
1076 Int_t iphi[10] = {0, 1, 3, 6, 8, 9, 10, 12, 15, 17};
1077
1078 for (i = 0; i < 10; i++)
1079 {
1080
3b7df2c4 1081 Float_t rb = (kBFMRin + kBFMRou)/2.;
e99f0660 1082 Float_t phib = Float_t(iphi[i]) * 20.;
f2744db7 1083
e99f0660 1084 Float_t xb = rb * TMath::Cos(phib * kDegrad);
1085 Float_t yb = rb * TMath::Sin(phib * kDegrad);
f2744db7 1086
3b7df2c4 1087 gMC->Gspos("BFRB", i + 1, "BFMO", xb, yb, dz, idrotm[2034 + iphi[i]], "ONLY");
1088 gMC->Gspos("BFRB", i + 11, "BFMO", xb, yb, -dz, idrotm[2034 + iphi[i]], "ONLY");
f2744db7 1089
1090 }
1091
9cde95f3 1092 gMC->Gspos("BFMO", i + 19, "ALIC", 0, 0, - 376. - kBFMdz/2. - 0.5 , 0, "ONLY");
f2744db7 1093
1094
1095
b35d7d26 1096//
f2744db7 1097//
1098// The Baby Frame
1099//
1100//
1101 //
1102 // Inner radius
1103 Float_t kBBMRin = 278.0;
1104 // Outer Radius
1105 Float_t kBBMRou = 410.5;
1106 // Width
1107 Float_t kBBMdz = 223.0;
1108 Float_t kBBBdz = 6.0;
1109 Float_t kBBBdd = 0.6;
1110
b35d7d26 1111
f2744db7 1112 // The Mother volume
1113
1114 ppgon[0] = 0.;
1115 ppgon[1] = 360.;
1116 ppgon[2] = 18.;
b35d7d26 1117
f2744db7 1118 ppgon[3] = 2.;
1119 ppgon[4] = -kBBMdz / 2. ;
1120 ppgon[5] = kBBMRin;
1121 ppgon[6] = kBBMRou;
1122
1123 ppgon[7] = -ppgon[4];
1124 ppgon[8] = ppgon[5];
1125 ppgon[9] = ppgon[6];
1126
1127 gMC->Gsvolu("BBMO", "PGON", kAir, ppgon, 10);
1128 gMC->Gsdvn("BBCE", "BBMO", 18, 2);
1129
1130 // Longitudinal bars
1131 bpar[0] = kBBBdz/2.;
1132 bpar[1] = bpar[0];
1133 bpar[2] = kBBMdz/2. - kBBBdz;
1134 gMC->Gsvolu("BBLB", "BOX ", kSteel, bpar, 3);
1135 bpar[0] -= kBBBdd;
1136 bpar[1] -= kBBBdd;
1137 bpar[2] -= kBBBdd;
1138 gMC->Gsvolu("BBLL", "BOX ", kAir, bpar, 3);
1139 gMC->Gspos("BBLL", 1, "BBLB", 0., 0., 0., 0, "ONLY");
1140
65cb363f 1141 dx = kBBMRin + kBBBdz/2. + (bpar[1] + kBBBdd) * TMath::Sin(10. * kDegrad);
f2744db7 1142 dy = dx * TMath::Tan(10. * kDegrad) - kBBBdz/2./TMath::Cos(10. * kDegrad);
1143 gMC->Gspos("BBLB", 1, "BBCE", dx, dy, 0., idrotm[2052], "ONLY");
1144
65cb363f 1145 dx = kBBMRou - kBBBdz/2. - (bpar[1] + kBBBdd) * TMath::Sin(10. * kDegrad);
f2744db7 1146 dy = dx * TMath::Tan(10. * kDegrad) - kBBBdz/2./TMath::Cos(10. * kDegrad);
1147
1148 gMC->Gspos("BBLB", 2, "BBCE", dx, dy, 0., idrotm[2052], "ONLY");
1149
1150 //
1151 // Radial Bars
1152 //
1153 bpar[0] = (kBBMRou - kBBMRin) / 2. - kBBBdz;
1154 bpar[1] = kBBBdz/2;
1155 bpar[2] = bpar[1];
1156
1157 gMC->Gsvolu("BBRB", "BOX ", kSteel, bpar, 3);
1158 bpar[0] -= kBBBdd;
1159 bpar[1] -= kBBBdd;
1160 bpar[2] -= kBBBdd;
1161 gMC->Gsvolu("BBRR", "BOX ", kAir, bpar, 3);
1162 gMC->Gspos("BBRR", 1, "BBRB", 0., 0., 0., 0, "ONLY");
1163
1164
1165 dx = (kBBMRou + kBBMRin) / 2.;
1166 dy = ((kBBMRou + kBBMRin)/ 2) * TMath::Tan(10 * kDegrad) - kBBBdz / 2./ TMath::Cos(10 * kDegrad);
1167 dz = kBBMdz/2. - kBBBdz / 2.;
1168
1169 gMC->Gspos("BBRB", 1, "BBCE", dx, dy, dz, idrotm[2052], "ONLY");
1170 gMC->Gspos("BBRB", 2, "BBCE", dx, dy, - dz, idrotm[2052], "ONLY");
1171 gMC->Gspos("BBRB", 3, "BBCE", dx, dy, 0., idrotm[2052], "ONLY");
1172
1173 //
1174 // Circular bars
1175 //
1176 // Inner
1177
1178 bpar[1] = kBBMRin * TMath::Sin(10. * kDegrad);
1179 bpar[0] = kBBBdz/2;
1180 bpar[2] = bpar[0];
1181 gMC->Gsvolu("BBC1", "BOX ", kSteel, bpar, 3);
1182 bpar[0] -= kBBBdd;
1183 bpar[1] -= kBBBdd;
1184 bpar[2] -= kBBBdd;
1185 gMC->Gsvolu("BBC2", "BOX ", kAir, bpar, 3);
1186 gMC->Gspos("BBC2", 1, "BBC1", 0., 0., 0., 0, "ONLY");
1187 dx = kBBMRin + kBBBdz/2;
1188 dy = 0.;
1189 gMC->Gspos("BBC1", 1, "BBCE", dx, dy, dz, 0, "ONLY");
1190 gMC->Gspos("BBC1", 2, "BBCE", dx, dy, -dz, 0, "ONLY");
1191 //
1192 // Outer
1193 bpar[1] = (kBBMRou - kBBBdz) * TMath::Sin(10. * kDegrad);
1194 bpar[0] = kBBBdz/2;
1195 bpar[2] = bpar[0];
1196 gMC->Gsvolu("BBC3", "BOX ", kSteel, bpar, 3);
1197 bpar[0] -= kBBBdd;
1198 bpar[1] -= kBBBdd;
1199 bpar[2] -= kBBBdd;
1200 gMC->Gsvolu("BBC4", "BOX ", kAir, bpar, 3);
1201 gMC->Gspos("BBC4", 1, "BBC3", 0., 0., 0., 0, "ONLY");
1202 dx = kBBMRou - kBBBdz/2;
1203 dy = 0.;
1204 gMC->Gspos("BBC3", 1, "BBCE", dx, dy, dz, 0, "ONLY");
1205 gMC->Gspos("BBC3", 2, "BBCE", dx, dy, - dz, 0, "ONLY");
1206 //
1207 // Diagonal Bars
1208 //
1209 h = (kBBMRou - kBBMRin - 2. * kBBBdz);;
1210 d = kBBBdz;
1211 dz = kBBMdz/2. - 1.6 * kBBBdz;
1212 dq = h*h+dz*dz;
1213
1214 x = TMath::Sqrt((dz*dz-d*d)/dq + d*d*h*h/dq/dq)+d*h/dq;
1215
1216
1217 theta = kRaddeg * TMath::ACos(x);
1218
1219 ptrap[0] = dz/2.;
1220 ptrap[1] = theta;
1221 ptrap[2] = 0.;
1222 ptrap[3] = d/2;
1223 ptrap[4] = d/x/2;
1224 ptrap[5] = ptrap[4];
1225 ptrap[6] = 0;
1226 ptrap[7] = ptrap[3];
1227 ptrap[8] = ptrap[4];
1228 ptrap[9] = ptrap[4];
1229 ptrap[10] = 0;
1230 gMC->Gsvolu("BBD1", "TRAP", kSteel, ptrap, 11);
1231 ptrap[3] = d/2-kBBBdd;
1232 ptrap[4] = (d/2-kBBBdd)/x;
1233 ptrap[5] = ptrap[4];
1234 ptrap[7] = ptrap[3];
1235 ptrap[8] = ptrap[4];
1236 ptrap[9] = ptrap[4];
1237 gMC->Gsvolu("BBD3", "TRAP", kAir, ptrap, 11);
1238 gMC->Gspos("BBD3", 1, "BBD1", 0.0, 0.0, 0., 0, "ONLY");
1239 dx = (kBBMRou + kBBMRin) / 2.;
1240 dy = ((kBBMRou + kBBMRin)/ 2) * TMath::Tan(10 * kDegrad) - kBBBdz / 2./ TMath::Cos(10 * kDegrad);
1241 gMC->Gspos("BBD1", 1, "BBCE", dx, dy, dz/2. + kBBBdz/2., idrotm[2052], "ONLY");
1242
1243
1244 ptrap[0] = dz/2.;
1245 ptrap[1] = -theta;
1246 ptrap[2] = 0.;
1247 ptrap[3] = d/2;
1248 ptrap[4] = d/2/x;
1249 ptrap[5] = ptrap[4];
1250 ptrap[6] = 0;
1251 ptrap[7] = ptrap[3];
1252 ptrap[8] = ptrap[4];
1253 ptrap[9] = ptrap[4];
1254 ptrap[10] = 0;
1255 gMC->Gsvolu("BBD2", "TRAP", kSteel, ptrap, 11);
1256 ptrap[3] = d/2-kBBBdd;
1257 ptrap[4] = (d/2-kBBBdd)/x;
1258 ptrap[5] = ptrap[4];
1259 ptrap[7] = ptrap[3];
1260 ptrap[8] = ptrap[4];
1261 ptrap[9] = ptrap[4];
1262 gMC->Gsvolu("BBD4", "TRAP", kAir, ptrap, 11);
1263 gMC->Gspos("BBD4", 1, "BBD2", 0.0, 0.0, 0., 0, "ONLY");
1264 dx = (kBBMRou + kBBMRin) / 2.;
1265 dy = ((kBBMRou + kBBMRin)/ 2) * TMath::Tan(10 * kDegrad) - kBBBdz / 2./ TMath::Cos(10 * kDegrad);
1266 gMC->Gspos("BBD2", 1, "BBCE", dx, dy, -dz/2. - kBBBdz/2., idrotm[2052], "ONLY");
1267
1268
9cde95f3 1269 gMC->Gspos("BBMO", 1, "ALIC", 0., 0., + 376. + kBBMdz / 2. + 0.5, 0, "ONLY");
f2744db7 1270
1271
7e5caa00 1272}
f2744db7 1273
7e5caa00 1274
1275
1276//___________________________________________
1277void AliFRAMEv2::CreateMaterials()
1278{
eeacf08b 1279 // Creates the materials
7e5caa00 1280 Float_t epsil, stemax, tmaxfd, deemax, stmin;
1281
1282 epsil = 1.e-4; // Tracking precision,
25918453 1283 stemax = -0.01; // Maximum displacement for multiple scat
1284 tmaxfd = -20.; // Maximum angle due to field deflection
1285 deemax = -.3; // Maximum fractional energy loss, DLS
7e5caa00 1286 stmin = -.8;
1287 Int_t isxfld = gAlice->Field()->Integ();
1288 Float_t sxmgmx = gAlice->Field()->Max();
002b3738 1289
1290
7e5caa00 1291 Float_t asteel[4] = { 55.847,51.9961,58.6934,28.0855 };
1292 Float_t zsteel[4] = { 26.,24.,28.,14. };
1293 Float_t wsteel[4] = { .715,.18,.1,.005 };
6a894888 1294
1295 //Air
1296
1297 Float_t aAir[4]={12.0107,14.0067,15.9994,39.948};
1298 Float_t zAir[4]={6.,7.,8.,18.};
1299 Float_t wAir[4]={0.000124,0.755267,0.231781,0.012827};
1300 Float_t dAir = 1.20479E-3;
7e5caa00 1301
1302 AliMixture(65, "STAINLESS STEEL$", asteel, zsteel, 7.88, 4, wsteel);
002b3738 1303 AliMixture(5, "AIR$ ", aAir, zAir, dAir,4, wAir);
25918453 1304 AliMaterial(9, "ALU ", 26.98, 13., 2.7, 8.9, 37.2);
002b3738 1305
a260d998 1306 AliMedium(65, "Stainless Steel", 65, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
1307 AliMedium( 5, "Air", 5, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
25918453 1308 AliMedium( 9, "Aluminum", 9, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
a260d998 1309
7e5caa00 1310}
1311
1312//_____________________________________________________________________________
1313void AliFRAMEv2::Init()
1314{
1315 //
1316 // Initialise the module after the geometry has been defined
1317 //
4951e003 1318 if(AliLog::GetGlobalDebugLevel()>0) {
0a05c568 1319 printf("%s: **************************************"
1320 " FRAME "
1321 "**************************************\n",ClassName());
1322 printf("\n%s: Version 2 of FRAME initialised, symmetric FRAME\n\n",ClassName());
1323 printf("%s: **************************************"
1324 " FRAME "
1325 "**************************************\n",ClassName());
1326 }
55bdc695 1327//
1328// The reference volume id
1329 fRefVolumeId = gMC->VolId("BREF");
7e5caa00 1330}
1331
6304e7d2 1332Int_t AliFRAMEv2::IsVersion() const
1333{
eeacf08b 1334 // Returns the version of the FRAME (1 if no holes, 0 otherwise)
6304e7d2 1335 Int_t version = 0;
1336 if (fHoles == 0) version = 1;
1337 return version;
1338}
7e5caa00 1339
55bdc695 1340void AliFRAMEv2::StepManager()
1341{
1342//
1343// Stepmanager of AliFRAMEv2.cxx
1344// Used for recording of reference tracks entering the spaceframe mother volume
1345//
1346 Int_t copy, id;
1347
1348 //
1349 // Only charged tracks
1350 if( !(gMC->TrackCharge()) ) return;
1351 //
1352 // Only tracks entering mother volume
1353 //
1354
1355 id=gMC->CurrentVolID(copy);
1356
1357 if (id != fRefVolumeId) return;
1358 if(!gMC->IsTrackEntering()) return;
1359 //
1360 // Add the reference track
1361 //
e6add757 1362 AddTrackReference(gAlice->GetMCApp()->GetCurrentTrackNumber(), AliTrackReference::kFRAME);
55bdc695 1363}
7e5caa00 1364
55bdc695 1365
7e5caa00 1366
25918453 1367void AliFRAMEv2::MakeHeatScreen(char* name, Float_t dyP, Int_t rot1, Int_t rot2)
1368{
1369 // Heat screen panel
1370 //
1371 Int_t *idtmed = fIdtmed->GetArray()-1999;
1372 const Int_t kAir = idtmed[2004];
1373 const Int_t kAlu = idtmed[2008];
1374
1375 Float_t dx, dy;
1376 char mname [128];
1377 char cname [128];
1378 char t1name[128];
1379 char t2name[128];
1380 char t3name[128];
1381 char t4name[128];
1382 char t5name[128];
1383
1384 //
c2beaf42 1385 Float_t dxP = 2. * (287. * TMath::Sin(10.* TMath::Pi()/180.) - 2.);
23cb15ef 1386 Float_t dzP = 1.05;
25918453 1387 //
1388 // Mother volume
1389 Float_t thshM[3];
1390 thshM[0] = dxP / 2.;
1391 thshM[1] = dyP / 2.;
1392 thshM[2] = dzP / 2.;
1393 sprintf(mname, "BTSH_%s", name);
1394 gMC->Gsvolu(mname, "BOX ", kAir, thshM, 3);
1395 //
1396 // Aluminum sheet
23cb15ef 1397 thshM[2] = 0.025;
25918453 1398 sprintf(cname, "BTSHA_%s", name);
1399 gMC->Gsvolu(cname, "BOX ", kAlu, thshM, 3);
23cb15ef 1400 gMC->Gspos(cname, 1, mname, 0., 0., -0.5, 0);
25918453 1401 //
1402 // Tubes
1403 Float_t thshT[3];
1404 thshT[0] = 0.4;
1405 thshT[1] = 0.5;
c2beaf42 1406 thshT[2] = (dyP / 2. - 8.);
25918453 1407 //
1408 sprintf(t1name, "BTSHT1_%s", name);
1409 gMC->Gsvolu(t1name, "TUBE", kAlu, thshT, 3);
c2beaf42 1410 dx = - dxP / 2. + 8. - 0.5;
23cb15ef 1411 gMC->Gspos(t1name, 1, mname, dx, 0., 0.05, rot1);
25918453 1412 //
1413 sprintf(t2name, "BTSHT2_%s", name);
1414 sprintf(t3name, "BTSHT3_%s", name);
1415 sprintf(t4name, "BTSHT4_%s", name);
1416 sprintf(t5name, "BTSHT5_%s", name);
1417 thshT[2] = (thshM[1] - 12.);
1418 gMC->Gsvolu(t2name, "TUBE", kAlu, thshT, 3);
1419 thshT[2] = 7.9/2.;
1420 gMC->Gsvolu(t3name, "TUBE", kAlu, thshT, 3);
1421 thshT[2] = 23.9/2.;
1422 gMC->Gsvolu(t4name, "TUBE", kAlu, thshT, 3);
25918453 1423
1424 Int_t sig = 1;
1425 Int_t ipo = 1;
1426 for (Int_t i = 0; i < 5; i++) {
1427 sig *= -1;
1428 dx += 8.00;
1429 dy = 4. * sig;
1430 Float_t dy1 = - (thshM[1] - 15.5) * sig;
1431 Float_t dy2 = - (thshM[1] - 7.5) * sig;
1432
23cb15ef 1433 gMC->Gspos(t2name, ipo++, mname, dx, dy, 0.05, rot1);
25918453 1434 dx += 6.9;
23cb15ef 1435 gMC->Gspos(t2name, ipo++, mname, dx, dy, 0.05, rot1);
25918453 1436
23cb15ef 1437 gMC->Gspos(t3name, i+1, mname, dx - 3.45, dy1, 0.05, rot2);
1438 gMC->Gspos(t4name, i+1, mname, dx - 3.45, dy2, 0.05, rot2);
25918453 1439 }
c2beaf42 1440 dx += 8.;
1441 gMC->Gspos(t1name, 2, mname, dx, 0., 0.05, rot1);
1442 gMC->Gspos(t3name, 6, mname, dx - 3.45, -(thshM[1] - 7.5), 0.05, rot2);
25918453 1443}
7e5caa00 1444
1445
1446