]>
Commit | Line | Data |
---|---|---|
4c039060 | 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$ | |
e94dd9ca | 18 | Revision 1.14 2000/04/17 09:37:33 kowal2 |
19 | removed obsolete AliTPCDigitsDisplay.C | |
20 | ||
cc80f89e | 21 | Revision 1.13.8.2 2000/04/10 08:33:44 kowal2 |
22 | ||
23 | Updated readout chambers | |
24 | ||
25 | Revision 1.13.8.1 2000/04/10 07:56:53 kowal2 | |
26 | Not used anymore - removed | |
27 | ||
28 | Revision 1.13 1999/11/04 17:28:06 fca | |
29 | Correct barrel part of HV Degrader | |
30 | ||
a5371c42 | 31 | Revision 1.12 1999/10/08 06:27:23 fca |
32 | Corrected bug in the HV degrader geometry, thanks to G.Tabary | |
33 | ||
d183a600 | 34 | Revision 1.11 1999/10/04 13:39:54 fca |
35 | Correct array index problem | |
36 | ||
cdde5b1e | 37 | Revision 1.10 1999/09/29 09:24:34 fca |
38 | Introduction of the Copyright and cvs Log | |
39 | ||
4c039060 | 40 | */ |
41 | ||
fe4da5cc | 42 | /////////////////////////////////////////////////////////////////////////////// |
43 | // // | |
44 | // Time Projection Chamber version 0 -- "coarse" TPC // | |
45 | // // | |
46 | //Begin_Html | |
47 | /* | |
1439f98e | 48 | <img src="picts/AliTPCv0Class.gif"> |
fe4da5cc | 49 | */ |
50 | //End_Html | |
51 | // // | |
52 | // // | |
53 | /////////////////////////////////////////////////////////////////////////////// | |
54 | ||
55 | #include <TMath.h> | |
56 | #include <TGeometry.h> | |
57 | #include <TNode.h> | |
58 | #include <TTUBE.h> | |
59 | #include "AliTPCv0.h" | |
60 | #include "AliRun.h" | |
61 | #include <iostream.h> | |
62 | #include <fstream.h> | |
fe4da5cc | 63 | #include "AliMC.h" |
64 | #include "AliConst.h" | |
65 | ||
1283eee5 | 66 | #include "AliTPCParam.h" |
cc80f89e | 67 | #include "AliTPCDigitsArray.h" |
1283eee5 | 68 | |
fe4da5cc | 69 | ClassImp(AliTPCv0) |
70 | ||
71 | //_____________________________________________________________________________ | |
72 | AliTPCv0::AliTPCv0(const char *name, const char *title) | |
73 | :AliTPC(name, title) | |
74 | { | |
75 | // | |
76 | // Standard creator for TPC version 0 | |
77 | // | |
78 | } | |
79 | ||
80 | //_____________________________________________________________________________ | |
81 | void AliTPCv0::CreateGeometry() | |
82 | { | |
83 | // | |
84 | // Creation of the TPC coarse geometry (version 0) | |
cc80f89e | 85 | // Origin Marek Kowalski Cracow |
fe4da5cc | 86 | // |
87 | //Begin_Html | |
88 | /* | |
1439f98e | 89 | <img src="picts/AliTPCv0.gif"> |
fe4da5cc | 90 | */ |
91 | //End_Html | |
92 | //Begin_Html | |
93 | /* | |
1439f98e | 94 | <img src="picts/AliTPCv0Tree.gif"> |
fe4da5cc | 95 | */ |
96 | //End_Html | |
97 | ||
fe4da5cc | 98 | |
1283eee5 | 99 | Int_t *idtmed = fIdtmed->GetArray(); |
100 | ||
101 | Float_t dm[21]; | |
62a73ee5 | 102 | Int_t idrotm[120]; |
1283eee5 | 103 | |
104 | Int_t nRotMat = 0; | |
105 | ||
106 | ||
fe4da5cc | 107 | // ---------------------------------------------------- |
1283eee5 | 108 | // FIELD CAGE WITH ENDCAPS - G10 |
fe4da5cc | 109 | // THIS IS ALSO A TPC MOTHER VOLUME |
110 | // ---------------------------------------------------- | |
1283eee5 | 111 | |
fe4da5cc | 112 | dm[0] = 76.; |
113 | dm[1] = 278.; | |
114 | dm[2] = 275.; | |
1283eee5 | 115 | |
116 | gMC->Gsvolu("TPC ", "TUBE", idtmed[8], dm, 3); | |
117 | ||
118 | //----------------------------------------------------- | |
119 | // Endcap cover c-fibre 0.86% X0 | |
120 | //----------------------------------------------------- | |
121 | ||
122 | dm[0] = 78.; | |
123 | dm[1] = 258.; | |
124 | dm[2] = 0.95; | |
125 | ||
126 | gMC->Gsvolu("TPEC","TUBE",idtmed[10],dm,3); | |
127 | ||
128 | //----------------------------------------------------- | |
129 | // Drift gas , leave 2 cm at the outer radius | |
130 | // and inner raddius | |
131 | //----------------------------------------------------- | |
132 | ||
133 | dm[0] = 78.; | |
134 | dm[1] = 258.; | |
fe4da5cc | 135 | dm[2] = 250.; |
136 | ||
1283eee5 | 137 | gMC->Gsvolu("TGAS", "TUBE", idtmed[3], dm, 3); |
138 | ||
139 | ||
140 | //------------------------------------------------------ | |
141 | // membrane holder - carbon fiber | |
142 | //------------------------------------------------------ | |
143 | ||
144 | ||
145 | gMC->Gsvolu("TPMH","TUBE",idtmed[6],dm,0); | |
146 | ||
147 | dm[0] = 252.; | |
148 | dm[1] = 258.; | |
149 | dm[2] = 0.2; | |
fe4da5cc | 150 | |
1283eee5 | 151 | gMC->Gsposp("TPMH",1,"TGAS",0.,0.,0.,0,"ONLY",dm,3); |
152 | ||
153 | dm[0] = 78.; | |
cdde5b1e | 154 | dm[1] = 82.; |
1283eee5 | 155 | dm[2] = 0.1; |
156 | ||
157 | gMC->Gsposp("TPMH",2,"TGAS",0.,0.,0.,0,"ONLY",dm,3); | |
158 | ||
159 | //---------------------------------------------------------- | |
160 | // HV membrane - 25 microns of mylar | |
161 | //---------------------------------------------------------- | |
162 | ||
163 | dm[0] = 82.; | |
164 | dm[1] = 252.; | |
165 | dm[2] = 0.00125; | |
166 | ||
167 | gMC->Gsvolu("TPHV","TUBE",idtmed[5],dm,3); | |
168 | ||
169 | gMC->Gspos("TPHV",1,"TGAS",0.,0.,0.,0,"ONLY"); | |
170 | ||
171 | gMC->Gspos("TGAS",1,"TPC ",0.,0.,0.,0,"ONLY"); | |
172 | ||
173 | //---------------------------------------------------------- | |
174 | // "side" gas volume, the same as the drift gas | |
175 | // the readout chambers are placed there. | |
176 | //---------------------------------------------------------- | |
177 | ||
178 | dm[0] = 78.; | |
179 | dm[1] = 258.; | |
180 | dm[2] = 0.5*(275. - 250.); | |
181 | ||
182 | gMC->Gsvolu("TPSG", "TUBE", idtmed[2], dm, 3); | |
183 | ||
184 | Float_t z_side = dm[2]; // 1/2 of the side gas thickness | |
185 | ||
186 | //----------------------------------------------------------- | |
187 | // Readout chambers , 25% of X0, I use Al as the material | |
188 | //----------------------------------------------------------- | |
189 | ||
190 | Float_t InnerOpenAngle = fTPCParam->GetInnerAngle(); | |
191 | Float_t OuterOpenAngle = fTPCParam->GetOuterAngle(); | |
192 | ||
193 | Float_t InnerAngleShift = fTPCParam->GetInnerAngleShift(); | |
194 | Float_t OuterAngleShift = fTPCParam->GetOuterAngleShift(); | |
195 | ||
196 | ||
197 | Int_t nInnerSector = fTPCParam->GetNInnerSector()/2; | |
198 | Int_t nOuterSector = fTPCParam->GetNOuterSector()/2; | |
199 | ||
200 | ||
cc80f89e | 201 | Float_t InSecLowEdge = fTPCParam->GetInnerRadiusLow(); |
202 | Float_t InSecUpEdge = fTPCParam->GetInnerRadiusUp(); | |
1283eee5 | 203 | |
cc80f89e | 204 | Float_t OuSecLowEdge = fTPCParam->GetOuterRadiusLow(); |
205 | Float_t OuSecUpEdge = fTPCParam->GetOuterRadiusUp(); | |
1283eee5 | 206 | |
207 | Float_t SecThick = 2.225; // Al | |
208 | ||
1283eee5 | 209 | |
210 | // S (Inner) sectors | |
211 | ||
cc80f89e | 212 | Float_t LowEdge = fTPCParam->GetInnerFrameSpace(); |
213 | ||
214 | dm[0] = InSecLowEdge*TMath::Tan(0.5*InnerOpenAngle)-LowEdge; | |
215 | dm[1] = InSecUpEdge*TMath::Tan(0.5*InnerOpenAngle)-LowEdge; | |
1283eee5 | 216 | dm[2] = SecThick; |
217 | dm[3] = 0.5*(InSecUpEdge-InSecLowEdge); | |
218 | ||
219 | Float_t xCenterS = InSecLowEdge+dm[3]; | |
220 | ||
221 | gMC->Gsvolu("TRCS", "TRD1", idtmed[0], dm, 4); | |
222 | ||
223 | // L (Outer) sectors | |
224 | ||
cc80f89e | 225 | Float_t UpEdge = fTPCParam->GetOuterFrameSpace(); |
226 | ||
227 | dm[0] = OuSecLowEdge*TMath::Tan(0.5*OuterOpenAngle)-UpEdge; | |
228 | dm[1] = OuSecUpEdge*TMath::Tan(0.5*OuterOpenAngle)-UpEdge; | |
1283eee5 | 229 | dm[2] = SecThick; |
230 | dm[3] = 0.5*(OuSecUpEdge-OuSecLowEdge); | |
231 | ||
232 | Float_t xCenterL = OuSecLowEdge+dm[3]; | |
233 | ||
234 | gMC->Gsvolu("TRCL", "TRD1", idtmed[0], dm, 4); | |
235 | ||
236 | Float_t z1 = -z_side + SecThick*0.5; | |
237 | ||
238 | //------------------------------------------------------------------ | |
239 | // Positioning of the S-sector readout chambers | |
240 | //------------------------------------------------------------------ | |
241 | ||
242 | Int_t ns; | |
243 | Float_t theta1,theta2,theta3; | |
244 | Float_t phi1,phi2,phi3; | |
245 | Float_t alpha; | |
246 | Float_t x,y; | |
247 | ||
248 | for(ns=0;ns<nInnerSector;ns++){ | |
249 | ||
250 | phi1 = ns * InnerOpenAngle + 270.*kDegrad + InnerAngleShift; | |
251 | phi1 *= kRaddeg; // in degrees | |
252 | ||
253 | phi1 = (Float_t)TMath::Nint(phi1); | |
254 | ||
255 | if (phi1 > 360.) phi1 -= 360.; | |
256 | ||
fe4da5cc | 257 | theta1 = 90.; |
258 | phi2 = 90.; | |
259 | theta2 = 180.; | |
1283eee5 | 260 | phi3 = ns * InnerOpenAngle + InnerAngleShift; |
261 | phi3 *= kRaddeg; // in degrees | |
262 | ||
263 | phi3 = (Float_t)TMath::Nint(phi3); | |
264 | ||
265 | if(phi3 > 360.) phi3 -= 360.; | |
266 | ||
fe4da5cc | 267 | theta3 = 90.; |
1283eee5 | 268 | |
269 | alpha = phi3*kDegrad; | |
270 | ||
271 | x = xCenterS * TMath::Cos(alpha); | |
272 | y = xCenterS * TMath::Sin(alpha); | |
273 | ||
274 | AliMatrix(idrotm[nRotMat], theta1, phi1, theta2, phi2, theta3, phi3); | |
275 | ||
276 | gMC->Gspos("TRCS", ns+1, "TPSG", x, y, z1, idrotm[nRotMat], "ONLY"); | |
277 | ||
278 | nRotMat++; | |
279 | ||
280 | } | |
fe4da5cc | 281 | |
1283eee5 | 282 | //------------------------------------------------------------------- |
283 | // Positioning of the L-sectors readout chambers | |
284 | //------------------------------------------------------------------- | |
fe4da5cc | 285 | |
1283eee5 | 286 | for(ns=0;ns<nOuterSector;ns++){ |
287 | phi1 = ns * OuterOpenAngle + 270.*kDegrad + OuterAngleShift; | |
288 | phi1 *= kRaddeg; // in degrees | |
289 | ||
290 | phi1 = (Float_t)TMath::Nint(phi1); | |
fe4da5cc | 291 | |
1283eee5 | 292 | |
293 | if (phi1 > 360.) phi1 -= 360.; | |
294 | ||
fe4da5cc | 295 | theta1 = 90.; |
296 | phi2 = 90.; | |
297 | theta2 = 180.; | |
1283eee5 | 298 | phi3 = ns * OuterOpenAngle+OuterAngleShift; |
299 | phi3 *= kRaddeg; // in degrees | |
300 | ||
301 | phi3 = (Float_t)TMath::Nint(phi3); | |
302 | ||
303 | ||
304 | if(phi3 > 360.) phi3 -= 360.; | |
305 | ||
fe4da5cc | 306 | theta3 = 90.; |
1283eee5 | 307 | |
308 | alpha = phi3*kDegrad; | |
309 | ||
310 | x = xCenterL * TMath::Cos(alpha); | |
311 | y = xCenterL * TMath::Sin(alpha); | |
312 | ||
313 | AliMatrix(idrotm[nRotMat], theta1, phi1, theta2, phi2, theta3, phi3); | |
314 | ||
315 | ||
316 | gMC->Gspos("TRCL", ns+1, "TPSG", x, y, z1, idrotm[nRotMat], "ONLY"); | |
317 | ||
318 | nRotMat++; | |
319 | ||
fe4da5cc | 320 | } |
1283eee5 | 321 | |
322 | Float_t z0 = z_side - 0.95; | |
323 | ||
324 | gMC->Gspos("TPEC",1,"TPSG",0.,0.,z0,0,"ONLY"); | |
325 | ||
fe4da5cc | 326 | // ========================================================== |
327 | // wheels | |
328 | // ========================================================== | |
1283eee5 | 329 | |
330 | // | |
331 | // auxilary structures | |
332 | // | |
333 | ||
334 | ||
335 | gMC->Gsvolu("TPWI","TUBE",idtmed[24],dm,0); // "air" | |
336 | ||
fe4da5cc | 337 | // ---------------------------------------------------------- |
338 | // Large wheel -> positioned in the TPC | |
339 | // ---------------------------------------------------------- | |
1283eee5 | 340 | |
341 | ||
342 | z0 = 263.5; // TPC length - 1/2 spoke wheel width | |
343 | ||
344 | dm[0] = 258.; | |
fe4da5cc | 345 | dm[1] = 278.; |
346 | dm[2] = 11.5; | |
fe4da5cc | 347 | |
1283eee5 | 348 | gMC->Gsvolu("TPWL", "TUBE", idtmed[0], dm, 3); |
349 | ||
350 | dm[0] = dm[0]+2.; | |
351 | dm[1] = 278.; | |
352 | dm[2] = dm[2]-2.; | |
353 | ||
354 | gMC->Gsposp("TPWI",1,"TPWL",0.,0.,0.,0,"ONLY",dm,3); | |
355 | ||
356 | gMC->Gspos("TPWL", 1, "TPC ", 0, 0, z0, 0, "ONLY"); | |
357 | gMC->Gspos("TPWL", 2, "TPC ", 0, 0, -z0, 0, "ONLY"); | |
358 | ||
359 | // | |
360 | // Outer vessel + CO2 HV degrader | |
361 | // | |
362 | ||
363 | dm[0] = 260.; | |
364 | dm[1] = 278.; | |
365 | dm[2] = 252.; | |
366 | ||
367 | gMC->Gsvolu("TPCO","TUBE",idtmed[12],dm,3); | |
368 | ||
369 | dm[0] = 275.; | |
fe4da5cc | 370 | dm[1] = 278.; |
fe4da5cc | 371 | |
1283eee5 | 372 | gMC->Gsvolu("TPOV","TUBE",idtmed[10],dm,3); |
373 | ||
374 | gMC->Gspos("TPOV",1,"TPCO",0.,0.,0.,0,"ONLY"); | |
375 | ||
e94dd9ca | 376 | |
1283eee5 | 377 | |
378 | gMC->Gspos("TPCO",1,"TPC ",0.,0.,0.,0,"ONLY"); | |
379 | ||
380 | ||
381 | //---------------------------------------------------------- | |
382 | // Small wheel -> positioned in "side gas | |
383 | //---------------------------------------------------------- | |
384 | ||
385 | dm[0] = 78.; | |
fe4da5cc | 386 | dm[1] = 82.; |
387 | dm[2] = 11.5; | |
1283eee5 | 388 | |
389 | gMC->Gsvolu("TPWS", "TUBE", idtmed[0], dm, 3); | |
390 | ||
391 | dm[0] = 78.; | |
392 | dm[1] = dm[1]-2; | |
393 | dm[2] = dm[2]-2.; | |
394 | ||
395 | gMC->Gsvolu("TPW1", "TUBE", idtmed[2], dm, 3); | |
fe4da5cc | 396 | |
1283eee5 | 397 | gMC->Gspos("TPW1", 1, "TPWS", 0., 0., 0., 0, "ONLY"); |
398 | ||
399 | z0 = 1.; // spoke wheel is shifted w.r.t. center of the "side gas" | |
400 | ||
401 | gMC->Gspos("TPWS", 1, "TPSG", 0, 0, z0, 0, "ONLY"); | |
402 | ||
403 | ||
404 | // to avoid overlaps | |
405 | ||
406 | dm[0] = 76.; | |
407 | dm[1] = 78.; | |
408 | dm[2] = 11.5; | |
409 | ||
410 | gMC->Gsvolu("TPS1","TUBE",idtmed[0],dm,3); | |
411 | ||
fe4da5cc | 412 | dm[2] = 9.5; |
1283eee5 | 413 | |
414 | gMC->Gsvolu("TPS2","TUBE",idtmed[24],dm,3); | |
415 | ||
416 | gMC->Gspos("TPS2",1,"TPS1",0.,0.,0.,0,"ONLY"); | |
417 | ||
418 | z0= 263.5; | |
fe4da5cc | 419 | |
1283eee5 | 420 | gMC->Gspos("TPS1",1,"TPC ",0.,0.,z0,0,"ONLY"); |
421 | gMC->Gspos("TPS1",2,"TPC ",0.,0.,-z0,0,"ONLY"); | |
422 | ||
423 | // G10 plug | |
424 | ||
425 | dm[0] = 76.; | |
7d7bb9e5 | 426 | dm[1] = 78.; |
427 | dm[2] = 1.; | |
1283eee5 | 428 | |
429 | gMC->Gsvolu("TPG2","TUBE",idtmed[8],dm,3); | |
430 | ||
431 | z0 = 251.; | |
432 | ||
433 | gMC->Gspos("TPG2",1,"TPC ",0.,0.,z0,0,"ONLY"); | |
434 | gMC->Gspos("TPG2",2,"TPC ",0.,0.,-z0,0,"ONLY"); | |
435 | ||
436 | ||
437 | //--------------------------------------------------------- | |
438 | // central wheel 6 (radial direction) x 4 (along z) cm2 | |
439 | //--------------------------------------------------------- | |
440 | ||
441 | dm[0] = 140.; | |
442 | dm[1] = 146.; | |
fe4da5cc | 443 | dm[2] = 2.; |
fe4da5cc | 444 | |
1283eee5 | 445 | gMC->Gsvolu("TPWC","TUBE",idtmed[0],dm,3); |
446 | ||
447 | dm[0] = dm[0] + 2.; | |
448 | dm[1] = dm[1] - 2.; | |
449 | dm[2] = dm[2] - 1.; | |
450 | ||
451 | gMC->Gsposp("TPWI",2,"TPWC",0.,0.,0.,0,"ONLY",dm,3); | |
452 | ||
453 | z0 = z_side - 1.9 - 2.; | |
454 | ||
455 | gMC->Gspos("TPWC",1,"TPSG",0.,0.,z0,0,"ONLY"); | |
456 | ||
457 | // | |
458 | ||
459 | gMC->Gsvolu("TPSE","BOX ",idtmed[24],dm,0); // "empty" part of the spoke | |
460 | ||
461 | ||
462 | //--------------------------------------------------------- | |
463 | // inner spokes (nSectorInner) | |
464 | //--------------------------------------------------------- | |
465 | ||
466 | dm[0] = 0.5*(139.9-82.1); | |
fe4da5cc | 467 | dm[1] = 3.; |
468 | dm[2] = 2.; | |
1283eee5 | 469 | |
470 | Float_t x1 = dm[0]+82.; | |
471 | ||
472 | gMC->Gsvolu("TPSI","BOX",idtmed[0],dm,3); | |
473 | ||
474 | dm[1] = dm[1]-1.; | |
475 | dm[2] = dm[2]-1.; | |
476 | ||
477 | gMC->Gsposp("TPSE",1,"TPSI",0.,0.,0.,0,"ONLY",dm,3); | |
478 | ||
479 | for(ns=0;ns<nInnerSector;ns++){ | |
480 | ||
481 | phi1 = 0.5*InnerOpenAngle + ns*InnerOpenAngle + InnerAngleShift; | |
482 | theta1=90.; | |
483 | phi1 *=kRaddeg; | |
484 | ||
485 | phi1 = (Float_t)TMath::Nint(phi1); | |
486 | ||
487 | phi2 = phi1+90.; | |
488 | if(phi2>360.) phi2 -= 360.; | |
489 | theta2=90.; | |
490 | phi3=0.; | |
491 | theta3=0.; | |
492 | ||
fe4da5cc | 493 | alpha = phi1 * kDegrad; |
494 | x = x1 * TMath::Cos(alpha); | |
1283eee5 | 495 | y = x1 * TMath::Sin(alpha); |
496 | ||
497 | AliMatrix(idrotm[nRotMat],theta1,phi1,theta2,phi2,theta3,phi3); | |
498 | ||
499 | gMC->Gspos("TPSI",ns+1,"TPSG",x,y,z0,idrotm[nRotMat],"ONLY"); | |
500 | ||
501 | nRotMat++; | |
502 | ||
fe4da5cc | 503 | } |
1283eee5 | 504 | |
505 | //------------------------------------------------------------- | |
506 | // outer spokes (nSectorOuter) | |
507 | //------------------------------------------------------------- | |
508 | ||
509 | dm[0] = 0.5*(257.9-146.1); | |
510 | dm[1] = 3.; | |
511 | dm[2] = 2.; | |
512 | ||
513 | x1 = dm[0] + 146.; | |
514 | ||
515 | gMC->Gsvolu("TPSO","BOX ",idtmed[0],dm,3); | |
516 | ||
517 | dm[1] = dm[1] - 1.; | |
518 | dm[2] = dm[2] - 1.; | |
519 | ||
520 | gMC->Gsposp("TPSE",2,"TPSO",0.,0.,0.,0,"ONLY",dm,3); | |
521 | ||
522 | for(ns=0;ns<nOuterSector;ns++){ | |
523 | ||
524 | phi1 = 0.5*OuterOpenAngle + ns*OuterOpenAngle + OuterAngleShift; | |
525 | theta1=90.; | |
526 | phi1 *=kRaddeg; | |
527 | ||
528 | phi1 = (Float_t)TMath::Nint(phi1); | |
529 | ||
530 | phi2 = phi1+90.; | |
531 | if(phi2>360.) phi2 -= 360.; | |
532 | theta2=90.; | |
533 | phi3=0.; | |
534 | theta3=0.; | |
535 | ||
fe4da5cc | 536 | alpha = phi1 * kDegrad; |
1283eee5 | 537 | x = x1 * TMath::Cos(alpha); |
538 | y = x1 * TMath::Sin(alpha); | |
539 | ||
540 | AliMatrix(idrotm[nRotMat],theta1,phi1,theta2,phi2,theta3,phi3); | |
541 | ||
542 | gMC->Gspos("TPSO",ns+1,"TPSG",x,y,z0,idrotm[nRotMat],"ONLY"); | |
543 | ||
544 | nRotMat++; | |
545 | ||
546 | } | |
fe4da5cc | 547 | |
1283eee5 | 548 | |
fe4da5cc | 549 | |
fe4da5cc | 550 | // -------------------------------------------------------- |
551 | // put the readout chambers into the TPC | |
552 | // -------------------------------------------------------- | |
1283eee5 | 553 | |
fe4da5cc | 554 | theta1 = 90.; |
555 | phi1 = 0.; | |
556 | theta2 = 90.; | |
557 | phi2 = 270.; | |
558 | theta3 = 180.; | |
559 | phi3 = 0.; | |
560 | ||
1283eee5 | 561 | AliMatrix(idrotm[nRotMat], theta1, phi1, theta2, phi2, theta3, phi3); |
fe4da5cc | 562 | |
563 | z0 = z_side + 250.; | |
564 | ||
cfce8870 | 565 | gMC->Gspos("TPSG", 1, "TPC ", 0, 0, z0, 0, "ONLY"); |
1283eee5 | 566 | gMC->Gspos("TPSG", 2, "TPC ", 0, 0, -z0, idrotm[nRotMat], "ONLY"); |
fe4da5cc | 567 | |
cfce8870 | 568 | gMC->Gspos("TPC ", 1, "ALIC", 0, 0, 0, 0, "ONLY"); |
1283eee5 | 569 | |
570 | //---------------------------------------------------- | |
571 | // Inner vessel and HV degrader | |
572 | //---------------------------------------------------- | |
573 | ||
fe4da5cc | 574 | dm[0] = 0.; |
575 | dm[1] = 360.; | |
576 | dm[2] = 4.; | |
577 | ||
578 | dm[3] = -250.; | |
1283eee5 | 579 | dm[4] = 74.4; |
fe4da5cc | 580 | dm[5] = 76.; |
1283eee5 | 581 | |
fe4da5cc | 582 | dm[6] = -64.5; |
583 | dm[7] = 50.; | |
584 | dm[8] = 76.; | |
1283eee5 | 585 | |
d183a600 | 586 | dm[9] = 64.5; |
fe4da5cc | 587 | dm[10] = 50.; |
588 | dm[11] = 76.; | |
1283eee5 | 589 | |
fe4da5cc | 590 | dm[12] = 250.; |
1283eee5 | 591 | dm[13] = 74.4; |
fe4da5cc | 592 | dm[14] = 76.; |
1283eee5 | 593 | |
594 | gMC->Gsvolu("TPVD", "PCON", idtmed[12], dm, 15); // CO2 | |
595 | ||
596 | // cone parts | |
597 | ||
fe4da5cc | 598 | dm[0] = 0.; |
599 | dm[1] = 360.; | |
1283eee5 | 600 | dm[2] = 2.; |
601 | ||
602 | dm[3] = 64.5; | |
603 | dm[4] = 50.; | |
604 | dm[5] = 51.6; | |
605 | ||
606 | dm[6] = 250.; | |
607 | dm[7] = 74.4; | |
608 | dm[8] = 76.; | |
609 | ||
610 | ||
611 | gMC->Gsvolu("TIVC","PCON",idtmed[11],dm,9); // C-fibre | |
612 | ||
613 | gMC->Gspos("TIVC",1,"TPVD",0.,0.,0.,0,"ONLY"); | |
614 | gMC->Gspos("TIVC",2,"TPVD",0.,0.,0.,idrotm[nRotMat],"ONLY"); | |
615 | ||
616 | // barrel part | |
617 | ||
618 | dm[0] = 50.; | |
619 | dm[1] = 50.5; | |
a5371c42 | 620 | dm[2] = 64.5; |
1283eee5 | 621 | |
622 | gMC->Gsvolu("TIVB","TUBE",idtmed[9],dm,3); | |
623 | ||
624 | gMC->Gspos("TIVB",1,"TPVD",0.,0.,0.,0,"ONLY"); | |
625 | ||
626 | gMC->Gspos("TPVD",1,"ALIC",0.,0.,0.,0,"ONLY"); | |
627 | ||
fe4da5cc | 628 | |
1283eee5 | 629 | |
fe4da5cc | 630 | |
1283eee5 | 631 | |
fe4da5cc | 632 | // --------------------------------------------------- |
633 | // volumes ordering | |
634 | // --------------------------------------------------- | |
cfce8870 | 635 | gMC->Gsord("TPSG", 6); |
1283eee5 | 636 | |
637 | } // end of function | |
638 | ||
fe4da5cc | 639 | |
640 | //_____________________________________________________________________________ | |
641 | void AliTPCv0::CreateMaterials() | |
642 | { | |
643 | // | |
644 | // Define materials for the TPC | |
645 | // | |
646 | AliTPC::CreateMaterials(); | |
647 | } | |
648 | ||
649 | //_____________________________________________________________________________ | |
8c555625 | 650 | void AliTPCv0::DrawDetector() |
fe4da5cc | 651 | { |
652 | // | |
653 | // Draw a shaded view of the Time Projection Chamber version 0 | |
654 | // | |
655 | ||
fe4da5cc | 656 | // Set everything unseen |
cfce8870 | 657 | gMC->Gsatt("*", "seen", -1); |
fe4da5cc | 658 | // |
659 | // Set ALIC mother transparent | |
cfce8870 | 660 | gMC->Gsatt("ALIC","SEEN",0); |
fe4da5cc | 661 | // |
662 | // Set the volumes visible | |
cfce8870 | 663 | gMC->Gsatt("TPC","SEEN",0); |
664 | gMC->Gsatt("TGAS","SEEN",0); | |
665 | gMC->Gsatt("TPSG","SEEN",0); | |
666 | gMC->Gsatt("TPHV","SEEN",1); | |
1283eee5 | 667 | gMC->Gsatt("TPMH","SEEN",1); |
668 | gMC->Gsatt("TPEC","SEEN",0); | |
cfce8870 | 669 | gMC->Gsatt("TRCS","SEEN",1); |
670 | gMC->Gsatt("TRCL","SEEN",1); | |
1283eee5 | 671 | gMC->Gsatt("TPWL","SEEN",1); |
672 | gMC->Gsatt("TPWI","SEEN",1); | |
673 | gMC->Gsatt("TPWS","SEEN",1); | |
cfce8870 | 674 | gMC->Gsatt("TPW1","SEEN",1); |
1283eee5 | 675 | gMC->Gsatt("TPS1","SEEN",1); |
676 | gMC->Gsatt("TPS2","SEEN",1); | |
677 | gMC->Gsatt("TPG1","SEEN",1); | |
678 | gMC->Gsatt("TPG2","SEEN",1); | |
679 | gMC->Gsatt("TPWC","SEEN",1); | |
680 | gMC->Gsatt("TPSI","SEEN",1); | |
681 | gMC->Gsatt("TPSO","SEEN",1); | |
682 | gMC->Gsatt("TPCO","SEEN",1); | |
683 | gMC->Gsatt("TPOV","SEEN",1); | |
cfce8870 | 684 | gMC->Gsatt("TPVD","SEEN",1); |
fe4da5cc | 685 | // |
cfce8870 | 686 | gMC->Gdopt("hide", "on"); |
687 | gMC->Gdopt("shad", "on"); | |
688 | gMC->Gsatt("*", "fill", 7); | |
689 | gMC->SetClipBox("."); | |
690 | gMC->SetClipBox("*", 0, 1000, -1000, 1000, -1000, 1000); | |
691 | gMC->DefaultRange(); | |
692 | gMC->Gdraw("alic", 40, 30, 0, 12, 9.5, .025, .025); | |
693 | gMC->Gdhead(1111, "Time Projection Chamber"); | |
694 | gMC->Gdman(18, 4, "MAN"); | |
695 | gMC->Gdopt("hide","off"); | |
fe4da5cc | 696 | } |
697 | ||
698 | //_____________________________________________________________________________ | |
699 | void AliTPCv0::Init() | |
700 | { | |
701 | // | |
702 | // Initialise Time Projection Chamber version 0 | |
703 | // | |
704 | printf("TPC version 0 initialized\n"); | |
705 | } | |
706 | ||
707 | //_____________________________________________________________________________ | |
708 | void AliTPCv0::StepManager() | |
709 | { | |
710 | // | |
711 | // Procedure called at each step in the TPC | |
712 | // | |
713 | } |