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