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