1 /**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
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 **************************************************************************/
18 Revision 1.18 2000/11/02 07:24:11 kowal2
19 Correction in the TPC geometry.
20 Changes due to the new hit structure.
22 Revision 1.17 2000/07/10 20:57:39 hristov
23 Update of TPC code and macros by M.Kowalski
25 Revision 1.16 2000/06/30 12:07:50 kowal2
26 Updated from the TPC-PreRelease branch
28 Revision 1.15.2.4 2000/06/26 07:39:42 kowal2
29 Changes to obey the coding rules
31 Revision 1.15.2.3 2000/06/25 08:38:41 kowal2
32 Splitted from AliTPCtracking
34 Revision 1.15.2.2 2000/06/16 12:58:13 kowal2
35 Changed parameter settings
37 Revision 1.15.2.1 2000/06/09 07:15:07 kowal2
39 Defaults loaded automatically (hard-wired)
40 Optional parameters can be set via macro called in the constructor
42 Revision 1.15 2000/05/15 10:00:30 kowal2
43 Corrected bug in the TPC geometry, thanks to Ivana Hrivnacova
45 Revision 1.14 2000/04/17 09:37:33 kowal2
46 removed obsolete AliTPCDigitsDisplay.C
48 Revision 1.13.8.2 2000/04/10 08:33:44 kowal2
50 Updated readout chambers
52 Revision 1.13.8.1 2000/04/10 07:56:53 kowal2
53 Not used anymore - removed
55 Revision 1.13 1999/11/04 17:28:06 fca
56 Correct barrel part of HV Degrader
58 Revision 1.12 1999/10/08 06:27:23 fca
59 Corrected bug in the HV degrader geometry, thanks to G.Tabary
61 Revision 1.11 1999/10/04 13:39:54 fca
62 Correct array index problem
64 Revision 1.10 1999/09/29 09:24:34 fca
65 Introduction of the Copyright and cvs Log
70 ///////////////////////////////////////////////////////////////////////////////
72 // Time Projection Chamber version 0 -- "coarse" TPC //
76 <img src="picts/AliTPCv0Class.gif">
81 ///////////////////////////////////////////////////////////////////////////////
84 #include <TGeometry.h>
94 #include "AliTPCParamSR.h"
95 #include "AliTPCDigitsArray.h"
99 //_____________________________________________________________________________
100 AliTPCv0::AliTPCv0(const char *name, const char *title)
104 // Standard creator for TPC version 0
107 SetGasMixt(2,20,10,-1,0.9,0.1,0.);
110 fTPCParam->Write(fTPCParam->GetTitle());
113 //_____________________________________________________________________________
114 void AliTPCv0::CreateGeometry()
117 // Creation of the TPC version 0, i.e. no sensitive volumes,
118 // only the material distribution
122 <img src="picts/AliTPC.gif">
127 <img src="picts/AliTPCv0Tree.gif">
131 //---------------------------------------------------------------
134 // Origin: Marek Kowalski, INP Cracow
135 // Marek.Kowalski@ifj.edu.pl
136 //---------------------------------------------------------------
140 Int_t *idtmed = fIdtmed->GetArray(); // TPC media
142 Int_t idrotm[120]; // rotation matrices
144 Int_t nRotMat = 0; // actual number of rotation matrices
148 // Mother volume (Air) - all volumes will be positioned in it
228 gMC->Gsvolu("TPC ","PCON",idtmed[0],dm,39);
231 //-------------------------------------------------------------------
232 // Tpc Outer INsulator (CO2)
233 //-------------------------------------------------------------------
272 gMC->Gsvolu("TOIN","PCON",idtmed[3],dm,21);
274 //---------------------------------------------------------------
275 // shreds (G10) - TPC Rings
276 //---------------------------------------------------------------
278 gMC->Gsvolu("TPCR","TUBE",idtmed[12],dm,0);
284 gMC->Gsposp("TPCR",1,"TOIN",0.,0.,-253.3,0,"ONLY",dm,3); // left bottom
292 gMC->Gsposp("TPCR",2,"TOIN",0.,0.,253.3,0,"ONLY",dm,3); // right
300 gMC->Gsposp("TPCR",3,"TOIN",0.,0.,-250.7,0,"ONLY",dm,3); // left top
302 //----------------------------------------------------------------
303 // Tpc Outer Contaiment Vessel
304 // mother volume - Al, daughters - composite (sandwich)
305 //----------------------------------------------------------------
341 gMC->Gsvolu("TOCV","PCON",idtmed[4],dm,18);
345 // Tpc SAndwich 1 - Al
351 gMC->Gsvolu("TSA1","TUBE",idtmed[4],dm,3);
353 // Tpc SAndwich 2 - Tedlar
358 gMC->Gsvolu("TSA2","TUBE",idtmed[9],dm,3);
360 // Tpc SAndwich 3 - Kevlar
365 gMC->Gsvolu("TSA3","TUBE",idtmed[5],dm,3);
367 // Tpc SAndwich 4 - NOMEX honeycomb
372 gMC->Gsvolu("TSA4","TUBE",idtmed[5],dm,3);
376 gMC->Gspos("TSA4",1,"TSA3",0.,0.,0.,0,"ONLY");
377 gMC->Gspos("TSA3",1,"TSA2",0.,0.,0.,0,"ONLY");
378 gMC->Gspos("TSA2",1,"TSA1",0.,0.,0.,0,"ONLY");
380 gMC->Gspos("TSA1",1,"TOCV",0.,0.,2.6,0,"ONLY");
384 gMC->Gspos("TOCV",1,"TOIN",0.,0.,0.,0,"ONLY");
386 //-------------------------------------------------------
387 // Tpc Outer Field Cage
388 // mother volume - Al, daughters - composite (sandwich)
389 //-------------------------------------------------------
429 gMC->Gsvolu("TOFC","PCON",idtmed[4],dm,21);
433 // Tpc SAndwich 5 - Tedlar
439 gMC->Gsvolu("TSA5","TUBE",idtmed[9],dm,3);
441 // Tpc SAndwich 6 - Kevlar
446 gMC->Gsvolu("TSA6","TUBE",idtmed[5],dm,3);
449 // Tpc SAndwich 7 - NOMEX
454 gMC->Gsvolu("TSA7","TUBE",idtmed[6],dm,3);
458 gMC->Gspos("TSA7",1,"TSA6",0.,0.,0.,0,"ONLY");
459 gMC->Gspos("TSA6",1,"TSA5",0.,0.,0.,0,"ONLY");
461 gMC->Gspos("TSA5",1,"TOFC",0.,0.,0.,0,"ONLY");
465 gMC->Gspos("TOFC",1,"TOIN",0.,0.,0.,0,"ONLY");
469 gMC->Gspos("TOIN",1,"TPC ",0.,0.,0.,0,"ONLY");
471 //--------------------------------------------------------------------
472 // Tpc Inner INsulator (CO2)
473 //--------------------------------------------------------------------
488 Float_t tanL = (66.2-59.0)/(255.6-73.3); // tangent of the left cone part
491 dm[7]= 59.0+ (253.6-73.3)*tanL;
572 gMC->Gsvolu("TIIN","PCON",idtmed[3],dm,48);
575 //--------------------------------------------------------------------
576 // Tpc Inner Containment vessel, Left part
577 // mother volume - Al, daughter - composite (sandwich)
578 //--------------------------------------------------------------------
592 Float_t cosL = 1./TMath::Sqrt(1.+tanL*tanL);
593 Float_t sandThick = 2.14; // cone composite thickness
599 dm[7]= 59.0 + (253.6-73.3)*tanL;
606 dm[11]= dm[7]+sandThick/cosL;
611 dm[13]= 59.0+(75.6-73.3)*tanL;
612 dm[14]= dm[13]+sandThick/cosL;
638 gMC->Gsvolu("TICL","PCON",idtmed[4],dm,27);
642 // Tpc SAndwich 9 - Al
651 dm[4]= 59.0+(254.3-73.3)*tanL;
652 dm[5]= dm[4]+sandThick/cosL;
657 dm[7]= 59.0+(78.3-73.3)*tanL;
658 dm[8]= dm[7]+sandThick/cosL;
662 gMC->Gsvolu("TSA9","PCON",idtmed[4],dm,9);
664 // Tpc SAndwich 10 - Tedlar
674 gMC->Gsvolu("TS10","PCON",idtmed[9],dm,9);
676 // Tpc SAndwich 11 - Kevlar
686 gMC->Gsvolu("TS11","PCON",idtmed[5],dm,9);
688 // Tpc SAndwich 12 - NOMEX
698 gMC->Gsvolu("TS12","PCON",idtmed[6],dm,9);
702 gMC->Gspos("TS12",1,"TS11",0.,0.,0.,0,"ONLY");
703 gMC->Gspos("TS11",1,"TS10",0.,0.,0.,0,"ONLY");
704 gMC->Gspos("TS10",1,"TSA9",0.,0.,0.,0,"ONLY");
708 gMC->Gspos("TSA9",1,"TICL",0.,0.,0.,0,"ONLY");
710 //--------------------------------------------------------------------
711 // Tpc Inner Containment vessel, Right part
712 // mother volume - Al, daughter - composite (sandwich)
713 //--------------------------------------------------------------------
739 Float_t tanR = (66.0-59.0)/(250.5-73.3); // to avoid accuracy problems
740 Float_t cosR = 1./TMath::Sqrt(1.+tanR*tanR); //as above
745 dm[13]= 59.0+(75.6-73.3)*tanR;
752 dm[17]= dm[16]+sandThick/cosR;
757 dm[19]= 59.0+(248.4-73.3)*tanR;
758 dm[20]= dm[19]+sandThick/cosR;
772 gMC->Gsvolu("TICR","PCON",idtmed[4],dm,27);
778 // Tpc SAndwich 13 - Al
787 dm[4]= 59.0+(78.3-73.3)*tanR;
788 dm[5]= dm[4]+sandThick/cosR;
793 dm[7]= 59.0+(249.1-73.3)*tanR;
794 dm[8]= dm[7]+sandThick/cosR;
798 gMC->Gsvolu("TS13","PCON",idtmed[4],dm,9);
800 // Tpc SAndwich 14 - Tedlar
810 gMC->Gsvolu("TS14","PCON",idtmed[9],dm,9);
812 // Tpc SAndwich 15 - Kevlar
822 gMC->Gsvolu("TS15","PCON",idtmed[5],dm,9);
824 // Tpc SAndwich 16 - NOMEX
834 gMC->Gsvolu("TS16","PCON",idtmed[6],dm,9);
838 gMC->Gspos("TS16",1,"TS15",0.,0.,0.,0,"ONLY");
839 gMC->Gspos("TS15",1,"TS14",0.,0.,0.,0,"ONLY");
840 gMC->Gspos("TS14",1,"TS13",0.,0.,0.,0,"ONLY");
844 gMC->Gspos("TS13",1,"TICR",0.,0.,0.,0,"ONLY");
846 //------------------------------------------------------
847 // Tpc Inner Field Cage
848 // mother volume - Al, daughters - composite (sandwich)
849 //------------------------------------------------------
891 gMC->Gsvolu("TIFC","PCON",idtmed[4],dm,21);
895 // Tpc Sandwich 17 - Tedlar
901 gMC->Gsvolu("TS17","TUBE",idtmed[9],dm,3);
903 // Tpc Sandwich 18 - Kevlar
908 gMC->Gsvolu("TS18","TUBE",idtmed[5],dm,3);
911 // Tpc Sandwich 19 - NOMEX
916 gMC->Gsvolu("TS19","TUBE",idtmed[6],dm,3);
920 gMC->Gspos("TS19",1,"TS18",0.,0.,0.,0,"ONLY");
921 gMC->Gspos("TS18",1,"TS17",0.,0.,0.,0,"ONLY");
925 gMC->Gspos("TS17",1,"TIFC",0.,0.,0.,0,"ONLY");
933 gMC->Gsposp("TPCR",4,"TIIN",0.,0.,-253.3,0,"ONLY",dm,3);
938 gMC->Gsposp("TPCR",5,"TIIN",0.,0.,250.7,0,"ONLY",dm,3);
943 gMC->Gsposp("TPCR",6,"TIIN",0.,0.,253.3,0,"ONLY",dm,3);
947 gMC->Gspos("TICL",1,"TIIN",0.,0.,0.,0,"ONLY");
951 gMC->Gspos("TICR",1,"TIIN",0.,0.,0.,0,"ONLY");
955 gMC->Gspos("TIFC",1,"TIIN",0.,0.,0.,0,"ONLY");
957 // Tpc Sandwich 21 - Al (central barrel)
963 gMC->Gsvolu("TS21","TUBE",idtmed[4],dm,3);
965 // Tpc Sandwich 22 - Tedlar (central barrel)
970 gMC->Gsvolu("TS22","TUBE",idtmed[9],dm,3);
972 // Tpc Sandwich 23 - Kevlar (central barrel)
977 gMC->Gsvolu("TS23","TUBE",idtmed[5],dm,3);
979 // Tpc Sandwich 24 - NOMEX (central barrel)
984 gMC->Gsvolu("TS24","TUBE",idtmed[6],dm,3);
988 gMC->Gspos("TS24",1,"TS23",0.,0.,0.,0,"ONLY");
989 gMC->Gspos("TS23",1,"TS22",0.,0.,0.,0,"ONLY");
990 gMC->Gspos("TS22",1,"TS21",0.,0.,0.,0,"ONLY");
992 gMC->Gspos("TS21",1,"TIIN",0.,0.,0.,0,"ONLY");
994 // put everything into the TPC
996 gMC->Gspos("TIIN",1,"TPC ",0.,0.,0.,0,"ONLY");
999 //---------------------------------------------------------
1000 // Tpc Dift Gas volume Nonsensitive (Ne-CO2 90/10)
1001 // and its daughters (HV membrane, rods, readout chambers)
1002 //---------------------------------------------------------
1008 gMC->Gsvolu("TDGN","TUBE",idtmed[1],dm,3);
1010 // sector opening angles
1012 Float_t innerOpenAngle = fTPCParam->GetInnerAngle();
1014 // sector angle shift
1016 Float_t innerAngleShift = fTPCParam->GetInnerAngleShift();
1018 // number of sectors
1020 Int_t nInnerSector = fTPCParam->GetNInnerSector()/2;
1021 Int_t nOuterSector = fTPCParam->GetNOuterSector()/2;
1023 // All above parameters are identical for inner and outer
1024 // sectors. The distinction is kept for the historical reasons
1025 // and eventually will disappear.
1027 Float_t tanAlpha = TMath::Tan(0.5*innerOpenAngle);
1028 Float_t cosAlpha = TMath::Sqrt(1.+tanAlpha*tanAlpha);
1031 //-------------------------------------------------------------------------
1032 // Tpc Inner Readout Chambers
1033 //-------------------------------------------------------------------------
1037 dm[2]= 1.6; // thickness
1040 gMC->Gsvolu("TIRC","TRD1",idtmed[4],dm,4);
1042 // this volume will be positioned in the empty space
1043 // of the end-cap to avoid overlaps
1050 gMC->Gsvolu("TIC1","TRD1",idtmed[4],dm,4);
1053 //------------------------------------------------
1054 // Tpc Inner readout chamber Pad Plane
1055 //------------------------------------------------
1062 gMC->Gsvolu("TIPP","TRD1",idtmed[12],dm,4);
1066 dm[0] -= 1.218511934;
1067 dm[1] -= 1.218511934;
1070 gMC->Gsvolu("TIC3","TRD1",idtmed[1],dm,4);
1072 gMC->Gspos("TIC3",1,"TIPP",0.,0.15,0.,0,"ONLY");
1074 gMC->Gspos("TIPP",1,"TIRC",0.,1.1,0.,0,"ONLY");
1077 //----------------------------------------------
1078 // Tpc Readout Chambers Empty spaces - for both
1079 // inner and outer sectors
1080 //----------------------------------------------
1082 gMC->Gsvolu("TRCE","TRD1",idtmed[0],dm,0);
1084 // Inner sector - 4 spaces
1095 space = rr*tanAlpha-dm[0];
1097 for(Int_t nsLow=0;nsLow<4;nsLow++){
1100 dm[1]= rr*tanAlpha - space;
1104 gMC->Gsposp("TRCE",nsLow+1,"TIRC",0.,-0.8,zz,0,"ONLY",dm,4);
1110 gMC->Gsposp("TRCE",nsLow+5,"TIC1",0.,1.05,zz-2.1,0,"ONLY",dm,4);
1113 dm[0] = rr*tanAlpha - space;
1119 // dm[1] - this is the dm[1] from the previous TRCE
1123 gMC->Gsposp("TRCE",9,"TIC1",0.,-1.2,0.,0,"ONLY",dm,4);
1126 // TPc Space for Connectors
1133 gMC->Gsvolu("TPSC","BOX ",idtmed[0],dm,3);
1141 gMC->Gsvolu("TPCC","BOX ",idtmed[13],dm,3);
1143 gMC->Gspos("TPCC",1,"TPSC",0.,0.15,0.,0,"ONLY");
1151 Float_t phi1,phi2,phi3,theta1,theta2,theta3; // rotation angles
1153 // inner part of the inner sector - 2 x 20 holes
1155 astep = 20.00096874/19.;
1157 alpha = 10.00048437-astep;
1169 for(ncon=0;ncon<20;ncon++){
1175 phi3 = (alpha>0) ? 0. : 180.;
1176 theta3 = TMath::Abs(alpha);
1178 AliMatrix(idrotm[nRotMat], theta1, phi1, theta2, phi2, theta3, phi3);
1182 gMC->Gspos("TPSC",ncon+1,"TIRC",x1,0.3,-12.7875,idrotm[nRotMat],"ONLY");
1183 gMC->Gspos("TPSC",ncon+21,"TIRC",x2,0.3,-2.8625,idrotm[nRotMat],"ONLY");
1194 // outer part of the inner sector - 2 x 25 holes
1196 astep = 20.00096874/24.;
1197 alpha = 10.00048437-astep;
1205 for(ncon=0;ncon<25;ncon++){
1211 phi3 = (alpha>0) ? 0. : 180.;
1212 theta3 = TMath::Abs(alpha);
1214 AliMatrix(idrotm[nRotMat], theta1, phi1, theta2, phi2, theta3, phi3);
1218 gMC->Gspos("TPSC",ncon+41,"TIRC",x1,0.3,7.0625,idrotm[nRotMat],"ONLY");
1219 gMC->Gspos("TPSC",ncon+66,"TIRC",x2,0.3,16.9875,idrotm[nRotMat],"ONLY");
1230 //--------------------------------------------------------------------------
1231 // TPC Outer Readout Chambers
1232 // this is NOT a final design
1233 //--------------------------------------------------------------------------
1237 dm[2]= 1.5; //thickness
1240 gMC->Gsvolu("TORC","TRD1",idtmed[4],dm,4);
1242 //------------------------------------------------
1243 // Tpc Outer readout chamber Pad Plane
1244 //------------------------------------------------
1248 gMC->Gsvolu("TOPP","TRD1",idtmed[12],dm,4);
1250 dm[0] -= 1.218511934;
1251 dm[1] -= 1.218511934;
1254 gMC->Gsvolu("TOC3","TRD1",idtmed[1],dm,4);
1256 gMC->Gspos("TOC3",1,"TOPP",0.,0.15,0.,0,"ONLY");
1258 gMC->Gspos("TOPP",1,"TORC",0.,1.0,0.,0,"ONLY");
1267 gMC->Gsposp("TRCE",10,"TORC",0.,-0.8,-2.15,0,"ONLY",dm,4);
1274 gMC->Gsvolu("TOC1","TRD1",idtmed[4],dm,4);
1281 gMC->Gsposp("TRCE",11,"TOC1",0.,0.,0.,0,"ONLY",dm,4);
1283 //-----------------------------------------------
1284 // Tpc Services Support Wheel
1285 //-----------------------------------------------
1300 gMC->Gsvolu("TSSW","PGON",idtmed[4],dm,10);
1302 // Tpc Services Wheel Cover
1307 gMC->Gsvolu("TSWC","PGON",idtmed[4],dm,10);
1309 // Tpc Service wheel Cover Empty space
1316 gMC->Gsvolu("TSCE","TRD1",idtmed[0],dm,4);
1318 // Tpc services Wheel Empty Spaces
1325 gMC->Gsvolu("TWES","TRD1",idtmed[0],dm,4);
1327 // Tpc Services Wheel Bars
1329 gMC->Gsvolu("TSWB","TRD1",idtmed[4],dm,0);
1339 gMC->Gsposp("TSWB",1,"TWES",0.,0.,-85.125,0,"ONLY",dm,4);
1344 gMC->Gsposp("TSWB",2,"TWES",0.,0.,85.125,0,"ONLY",dm,4);
1346 // TPc ELectronics - right now 30% X0 Si
1353 gMC->Gsvolu("TPEL","TRD1",idtmed[11],dm,4);
1354 gMC->Gspos("TPEL",1,"TWES",0.,0.,0.,0,"ONLY");
1356 //--------------------------------------------------------------------------
1358 //--------------------------------------------------------------------------
1360 // TPc Main Wheel - Al
1366 gMC->Gsvolu("TPMW","TUBE",idtmed[4],dm,3);
1368 // TPc Extra Wheel (to avoid overlapping) - Al
1374 gMC->Gsvolu("TPEW","TUBE",idtmed[4],dm,3);
1376 //--------------------------------------------------------------------------
1377 // Tpc Empty Space for the Readout chambers
1378 //--------------------------------------------------------------------------
1382 Float_t dR = 0.5*(rUp-rLow);
1384 space= 1.4/cosAlpha; // wheel ribs are 2.8 cm wide
1386 dm[0]= rLow*tanAlpha-space;
1387 dm[1]= rUp*tanAlpha-space;
1391 gMC->Gsvolu("TESR","TRD1",idtmed[0],dm,4);
1395 gMC->Gspos("TIC1",1,"TESR",0.,0.75,-dR+23.97,0,"ONLY");
1399 gMC->Gspos("TOC1",1,"TESR",0.,0.75,dR-55.02,0,"ONLY");
1401 // Tpc Empty Space Bars - Al (daughters of TESR)
1405 gMC->Gsvolu("TESB","TRD1",idtmed[4],dm,0);
1409 dm[0]= rLow*tanAlpha-space;
1410 dm[1]= 88.7*tanAlpha-space;
1416 gMC->Gsposp("TESB",1,"TESR",0.,2.05,zBar,0,"ONLY",dm,4);
1420 dm[0]= 131.65*tanAlpha-space;
1421 dm[1]= 136.5*tanAlpha-space;
1424 zBar = -dR +131.65+dm[3]-rLow;
1426 gMC->Gsposp("TESB",2,"TESR",0.,2.05,zBar,0,"ONLY",dm,4);
1430 dm[0]= 240.4*tanAlpha-space;
1431 dm[1]= rUp*tanAlpha-space;
1436 gMC->Gsposp("TESB",3,"TESR",0.,2.05,zBar,0,"ONLY",dm,4);
1438 // positioning of the empty spaces into the main wheel
1442 Float_t rCenter,xc,yc;
1443 Float_t rInner,rOuter; // center of the inner and outer chamber
1451 for(Int_t ns=0; ns<nInnerSector;ns++){
1453 phi1 = ns * innerOpenAngle + innerAngleShift;
1454 phi1 *= kRaddeg; // in degrees
1456 phi1 = (Float_t)TMath::Nint(phi1) + 270.;
1458 if (phi1 > 360.) phi1 -= 360.;
1463 phi3 = ns * innerOpenAngle + innerAngleShift;
1464 phi3 *= kRaddeg; // in degrees
1466 phi3 = (Float_t)TMath::Nint(phi3);
1468 if(phi3 > 360.) phi3 -= 360.;
1472 // "holes"->End plate
1474 xc = rCenter*TMath::Cos(phi3*kDegrad);
1475 yc = rCenter*TMath::Sin(phi3*kDegrad);
1477 AliMatrix(idrotm[nRotMat], theta1, phi1, theta2, phi2, theta3, phi3);
1479 gMC->Gspos("TESR",ns+1,"TPMW",xc,yc,0.,idrotm[nRotMat],"ONLY");
1481 // TSCE->TSWC (services wheel volumes)
1483 xc = 166.142*TMath::Cos(phi3*kDegrad);
1484 yc = 166.142*TMath::Sin(phi3*kDegrad);
1486 gMC->Gspos("TSCE",ns+1,"TSWC",xc,yc,0.,idrotm[nRotMat],"ONLY");
1487 gMC->Gspos("TWES",ns+1,"TSSW",xc,yc,0.,idrotm[nRotMat],"ONLY");
1490 // readout chambers->TDGN (drift gas)
1492 xc = rInner*TMath::Cos(phi3*kDegrad);
1493 yc = rInner*TMath::Sin(phi3*kDegrad);
1495 gMC->Gspos("TIRC",ns+1,"TDGN",xc,yc,252.,idrotm[nRotMat],"ONLY");
1497 xc = rOuter*TMath::Cos(phi3*kDegrad);
1498 yc = rOuter*TMath::Sin(phi3*kDegrad);
1500 gMC->Gspos("TORC",ns+1,"TDGN",xc,yc,252.1,idrotm[nRotMat],"ONLY");
1504 theta2 = 0.; // reflection
1506 AliMatrix(idrotm[nRotMat], theta1, phi1, theta2, phi2, theta3, phi3);
1508 xc = rInner*TMath::Cos(phi3*kDegrad);
1509 yc = rInner*TMath::Sin(phi3*kDegrad);
1511 gMC->Gspos("TIRC",ns+nInnerSector+1,"TDGN",xc,yc,-252.,idrotm[nRotMat],"ONLY");
1513 xc = rOuter*TMath::Cos(phi3*kDegrad);
1514 yc = rOuter*TMath::Sin(phi3*kDegrad);
1516 gMC->Gspos("TORC",ns+nOuterSector+1,"TDGN",xc,yc,-252.1,idrotm[nRotMat],"ONLY");
1522 // reflection matrix
1531 AliMatrix(idrotm[nRotMat], theta1, phi1, theta2, phi2, theta3, phi3);
1536 gMC->Gspos("TPMW",1,"TPC ",0.,0.,256.6,0,"ONLY");
1537 gMC->Gspos("TPMW",2,"TPC ",0.,0.,-256.6,idrotm[nRotMat],"ONLY");
1538 gMC->Gspos("TPEW",1,"TPC ",0.,0.,257.65,0,"ONLY");
1539 gMC->Gspos("TPEW",2,"TPC ",0.,0.,-257.65,0,"ONLY");
1543 //-------------------------------------------------------
1544 // Tpc High Voltage Membrane - NOMEX honeycomb
1545 //-------------------------------------------------------
1564 gMC->Gsvolu("THVM","PGON",idtmed[6],dm,10);
1566 gMC->Gspos("THVM",1,"TDGN",0.,0.,0.,0,"ONLY");
1568 //----------------------------------------------------------
1569 // TPc Support Rods - MAKROLON
1570 //----------------------------------------------------------
1576 gMC->Gsvolu("TPSR","TUBE",idtmed[7],dm,3);
1578 for(Int_t nrod=1;nrod<18;nrod++){
1579 Float_t angle=innerOpenAngle*(Float_t)nrod;
1581 xc=82.4*TMath::Cos(angle);
1582 yc=82.4*TMath::Sin(angle);
1584 gMC->Gspos("TPSR",nrod,"TDGN",xc,yc,126.95,0,"ONLY");
1585 gMC->Gspos("TPSR",nrod+17,"TDGN",xc,yc,-126.95,0,"ONLY");
1587 xc=254.2*TMath::Cos(angle);
1588 yc=254.2*TMath::Sin(angle);
1590 gMC->Gspos("TPSR",nrod+34,"TDGN",xc,yc,126.95,0,"ONLY");
1591 gMC->Gspos("TPSR",nrod+51,"TDGN",xc,yc,-126.95,0,"ONLY");
1595 //----------------------------------------------------------
1596 // Tpc High Voltage rod - MAKROLON + Copper cable
1597 //----------------------------------------------------------
1599 // rod with cable (Left)
1605 gMC->Gsvolu("THVL","TUBE",idtmed[7],dm,3);
1613 gMC->Gsvolu("THVC","TUBE",idtmed[10],dm,3);
1621 gMC->Gsvolu("THVE","TUBE",idtmed[1],dm,3);
1623 gMC->Gspos("THVC",1,"THVL",0.,0.,0.,0,"ONLY");
1624 gMC->Gspos("THVE",1,"THVL",0.,0.,0.,0,"ONLY");
1626 // rod without cable
1632 gMC->Gsvolu("THVR","TUBE",idtmed[7],dm,3);
1636 gMC->Gspos("THVL",1,"TDGN",82.4,0.,-126.95,0,"ONLY");
1637 gMC->Gspos("THVL",2,"TDGN",254.2,0.,-126.95,0,"ONLY");
1639 gMC->Gspos("THVR",1,"TDGN",82.4,0.,126.95,0,"ONLY");
1640 gMC->Gspos("THVR",2,"TDGN",254.2,0.,126.95,0,"ONLY");
1644 gMC->Gspos("TDGN",1,"TPC ",0.,0.,0.,0,"ONLY");
1647 // services wheel cover -> wheel
1650 gMC->Gspos("TSWC",1,"TSSW",0.,0.,4.5,0,"ONLY");
1651 gMC->Gspos("TSWC",2,"TSSW",0.,0.,-4.5,0,"ONLY");
1654 // put the wheel into the TPC
1656 gMC->Gspos("TSSW",1,"TPC ",0.,0.,278.7,0,"ONLY");
1657 gMC->Gspos("TSSW",2,"TPC ",0.,0.,-278.7,0,"ONLY");
1661 gMC->Gsord("TPMW",6);
1662 gMC->Gsord("TSSW",6);
1663 gMC->Gsord("TSWC",6);
1665 // put the TPC into ALIC (main mother volume)
1667 gMC->Gspos("TPC ",1,"ALIC",0.,0.,0.,0,"ONLY");
1669 } // end of function
1672 //_____________________________________________________________________________
1673 void AliTPCv0::CreateMaterials()
1676 // Define materials for the TPC
1678 AliTPC::CreateMaterials();
1681 //_____________________________________________________________________________
1682 void AliTPCv0::DrawDetector()
1685 // Draw a shaded view of the Time Projection Chamber version 0
1688 // Set everything unseen
1689 gMC->Gsatt("*", "seen", -1);
1691 // Set ALIC mother transparent
1692 gMC->Gsatt("ALIC","SEEN",0);
1694 // Set the volumes visible
1695 gMC->Gsatt("TPC ","SEEN",0);
1696 gMC->Gsatt("TOIN","SEEN",1);
1697 gMC->Gsatt("TOIN","COLO",7);
1698 gMC->Gsatt("TPCR","SEEN",0);
1699 gMC->Gsatt("TOCV","SEEN",1);
1700 gMC->Gsatt("TOCV","COLO",4);
1701 gMC->Gsatt("TSA1","SEEN",0);
1702 gMC->Gsatt("TSA2","SEEN",0);
1703 gMC->Gsatt("TSA3","SEEN",0);
1704 gMC->Gsatt("TSA4","SEEN",0);
1705 gMC->Gsatt("TOFC","SEEN",1);
1706 gMC->Gsatt("TOFC","COLO",4);
1707 gMC->Gsatt("TSA5","SEEN",0);
1708 gMC->Gsatt("TSA6","SEEN",0);
1709 gMC->Gsatt("TSA7","SEEN",0);
1710 gMC->Gsatt("TIIN","COLO",7);
1711 gMC->Gsatt("TIIN","SEEN",1);
1712 gMC->Gsatt("TICL","SEEN",0);
1713 gMC->Gsatt("TSA9","SEEN",0);
1714 gMC->Gsatt("TS10","SEEN",0);
1715 gMC->Gsatt("TS11","SEEN",0);
1716 gMC->Gsatt("TS12","SEEN",0);
1717 gMC->Gsatt("TICR","SEEN",0);
1718 gMC->Gsatt("TS13","SEEN",0);
1719 gMC->Gsatt("TS14","SEEN",0);
1720 gMC->Gsatt("TS15","SEEN",0);
1721 gMC->Gsatt("TS16","SEEN",0);
1722 gMC->Gsatt("TIFC","SEEN",1);
1723 gMC->Gsatt("TIFC","COLO",4);
1724 gMC->Gsatt("TS17","SEEN",0);
1725 gMC->Gsatt("TS18","SEEN",0);
1726 gMC->Gsatt("TS19","SEEN",0);
1727 gMC->Gsatt("TS21","SEEN",0);
1728 gMC->Gsatt("TS22","SEEN",0);
1729 gMC->Gsatt("TS23","SEEN",0);
1730 gMC->Gsatt("TS24","SEEN",0);
1731 gMC->Gsatt("TDGN","SEEN",0);
1732 gMC->Gsatt("TIRC","SEEN",0);
1733 gMC->Gsatt("TIC1","SEEN",1);
1734 gMC->Gsatt("TIPP","SEEN",0);
1735 gMC->Gsatt("TIC3","SEEN",0);
1736 gMC->Gsatt("TRCE","SEEN",0);
1737 gMC->Gsatt("TPSC","SEEN",0);
1738 gMC->Gsatt("TPCC","SEEN",0);
1739 gMC->Gsatt("TORC","SEEN",0);
1740 gMC->Gsatt("TOPP","SEEN",0);
1741 gMC->Gsatt("TOC3","SEEN",0);
1742 gMC->Gsatt("TOC1","SEEN",1);
1743 gMC->Gsatt("TSSW","SEEN",1);
1744 gMC->Gsatt("TSWC","SEEN",1);
1745 gMC->Gsatt("TSCE","SEEN",1);
1746 gMC->Gsatt("TSSW","COLO",3);
1747 gMC->Gsatt("TSWC","COLO",3);
1748 gMC->Gsatt("TSCE","COLO",6);
1749 gMC->Gsatt("TWES","SEEN",0);
1750 gMC->Gsatt("TSWB","SEEN",0);
1751 gMC->Gsatt("TPEL","SEEN",0);
1752 gMC->Gsatt("TPMW","SEEN",1);
1753 gMC->Gsatt("TPEW","SEEN",1);
1754 gMC->Gsatt("TESR","SEEN",1);
1755 gMC->Gsatt("TPMW","COLO",12);
1756 gMC->Gsatt("TPEW","COLO",12);
1757 gMC->Gsatt("TWES","COLO",5);
1758 gMC->Gsatt("TIC1","COLO",5);
1759 gMC->Gsatt("TOC1","COLO",5);
1760 gMC->Gsatt("TESB","SEEN",0);
1761 gMC->Gsatt("THVM","SEEN",1);
1762 gMC->Gsatt("THVM","COLO",11);
1763 gMC->Gsatt("TPSR","SEEN",0);
1764 gMC->Gsatt("THVL","SEEN",0);
1765 gMC->Gsatt("THVC","SEEN",0);
1766 gMC->Gsatt("THVE","SEEN",0);
1767 gMC->Gsatt("THVR","SEEN",0);
1769 gMC->Gdopt("hide", "on");
1770 gMC->Gdopt("shad", "on");
1771 gMC->Gsatt("*", "fill", 7);
1772 gMC->SetClipBox(".");
1773 gMC->SetClipBox("TPMW",-300,300,-300,300,254.,270.);
1774 gMC->SetClipBox("TESR",-300,300,-300,300,254.,270.);
1775 gMC->SetClipBox("TSSW",-300,300,-300,300,283.,284.);
1776 gMC->SetClipBox("TSWC",-300,300,-300,300,283.,284.);
1777 gMC->SetClipBox("*", 0, 300, -300, 300, -290, 290);
1778 gMC->DefaultRange();
1779 gMC->Gdraw("alic", 40, 30, 0, 12, 9.5, .025, .025);
1780 gMC->Gdhead(1111, "Time Projection Chamber");
1781 gMC->Gdman(18, 4, "MAN");
1782 gMC->Gdopt("hide","off");
1785 //_____________________________________________________________________________
1786 void AliTPCv0::Init()
1789 // Initialise Time Projection Chamber version 0
1791 printf("TPC version 0 initialized\n");
1794 //_____________________________________________________________________________
1795 void AliTPCv0::StepManager()
1798 // Procedure called at each step in the TPC