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 **************************************************************************/
19 ///////////////////////////////////////////////////////////////////////////////
21 // Time Projection Chamber version 0 -- "coarse" TPC //
25 <img src="picts/AliTPCv0Class.gif">
30 ///////////////////////////////////////////////////////////////////////////////
32 #include <Riostream.h>
34 #include <TGeometry.h>
38 #include <TVirtualMC.h>
42 #include "AliTPCDigitsArray.h"
43 #include "AliTPCParamSR.h"
48 //_____________________________________________________________________________
49 AliTPCv0::AliTPCv0(const char *name, const char *title)
53 // Standard creator for TPC version 0
56 SetGasMixt(2,20,10,-1,0.9,0.1,0.);
59 fTPCParam->Write(fTPCParam->GetTitle());
62 //_____________________________________________________________________________
63 void AliTPCv0::CreateGeometry()
67 // Creation of the TPC version 0, i.e. no sensitive volumes,
68 // only the material distribution
72 <img src="picts/AliTPC.gif">
77 <img src="picts/AliTPCv0Tree.gif">
81 //---------------------------------------------------------------
84 // Origin: Marek Kowalski, INP Cracow
85 // Marek.Kowalski@ifj.edu.pl
86 //---------------------------------------------------------------
89 Int_t *idtmed = fIdtmed->GetArray(); // TPC media
91 Int_t idrotm[120]; // rotation matrices
93 Int_t nRotMat = 0; // actual number of rotation matrices
97 // Mother volume TPC (Air) - all volumes will be positioned in it
152 gMC->Gsvolu("TPC ","PCON",idtmed[0],dm,27);
156 //-------------------------------------------------------------------
157 // Tpc Outer INsulator (CO2) - contains cont. vessel and field cage
158 //-------------------------------------------------------------------
200 gMC->Gsvolu("TOIN","PCON",idtmed[3],dm,21);
202 //----------------------------------------------------------------
203 // Tpc Outer Contaiment Vessel
204 // mother volume - Al, daughters - composite (sandwich)
205 //----------------------------------------------------------------
247 gMC->Gsvolu("TOCV","PCON",idtmed[4],dm,21);
249 // Daughter volumes - sandwich
251 // Tpc SAndwich 1 - Al
257 gMC->Gsvolu("TSA1","TUBE",idtmed[4],dm,3);
259 // Tpc SAndwich 2 - epoxy glue (I use Lexan)
264 gMC->Gsvolu("TSA2","TUBE",idtmed[14],dm,3);
266 // Tpc SAndwich 3 - Tedlar
271 gMC->Gsvolu("TSA3","TUBE",idtmed[9],dm,3);
274 // Tpc SAndwich 4 - fiber glass (G10)
279 gMC->Gsvolu("TSA4","TUBE",idtmed[12],dm,3);
281 // Tpc SAndwich 5 - NOMEX honeycomb
286 gMC->Gsvolu("TSA5","TUBE",idtmed[6],dm,3);
288 // 5->4->3->2->1->TCOV
291 gMC->Gspos("TSA5",1,"TSA4",0.,0.,0.,0,"ONLY");
292 gMC->Gspos("TSA4",1,"TSA3",0.,0.,0.,0,"ONLY");
293 gMC->Gspos("TSA3",1,"TSA2",0.,0.,0.,0,"ONLY");
294 gMC->Gspos("TSA2",1,"TSA1",0.,0.,0.,0,"ONLY");
296 gMC->Gspos("TSA1",1,"TOCV",0.,0.,3.,0,"ONLY");
300 gMC->Gspos("TOCV",1,"TOIN",0.,0.,0.,0,"ONLY");
302 //-------------------------------------------------------
303 // Tpc Outer Field Cage
304 // mother volume - Al, daughters - composite (sandwich)
305 //-------------------------------------------------------
347 gMC->Gsvolu("TOFC","PCON",idtmed[4],dm,21);
351 // Tpc SAndwich 6 - Tedlar
357 gMC->Gsvolu("TSA6","TUBE",idtmed[9],dm,3);
359 // Tpc SAndwich 7 - fiber glass
364 gMC->Gsvolu("TSA7","TUBE",idtmed[12],dm,3);
367 // Tpc SAndwich 8 - NOMEX
372 gMC->Gsvolu("TSA8","TUBE",idtmed[6],dm,3);
376 gMC->Gspos("TSA8",1,"TSA7",0.,0.,0.,0,"ONLY");
377 gMC->Gspos("TSA7",1,"TSA6",0.,0.,0.,0,"ONLY");
378 gMC->Gspos("TSA6",1,"TOFC",0.,0.,0.,0,"ONLY");
382 gMC->Gspos("TOFC",1,"TOIN",0.,0.,0.,0,"ONLY");
386 gMC->Gspos("TOIN",1,"TPC ",0.,0.,0.,0,"ONLY");
390 //--------------------------------------------------------------------
391 // Tpc Inner INsulator (CO2) - inner f.c. will be placed there
392 // Inner containment vessel will be placed directly in the TPC
393 //--------------------------------------------------------------------
423 gMC->Gsvolu("TIIN","PCON",idtmed[3],dm,15);
425 // the middle part of the F.C. is thinner - carve out the strip - Ne-CO2
431 gMC->Gsvolu("TII1","TUBE",idtmed[1],dm,3);
433 gMC->Gspos("TII1",1,"TIIN",0.,0.,0.,0,"ONLY");
435 //-----------------------------------------------------
436 // Tpc Inner Field Cage
437 // mother volume - Al, daughters - composite (sandwich)
438 //------------------------------------------------------
504 gMC->Gsvolu("TIFC","PCON",idtmed[4],dm,33);
506 // daughter volumes - central part
508 // Tpc Sandwich 9 -Tedlar
514 gMC->Gsvolu("TSA9","TUBE",idtmed[9],dm,3);
516 // Tpc Sandwich 10 - fiber glass (G10)
521 gMC->Gsvolu("TS10","TUBE",idtmed[12],dm,3);
523 // Tpc Sandwich 11 - NOMEX
528 gMC->Gsvolu("TS11","TUBE",idtmed[6],dm,3);
532 gMC->Gspos("TS11",1,"TS10",0.,0.,0.,0,"ONLY");
533 gMC->Gspos("TS10",1,"TSA9",0.,0.,0.,0,"ONLY");
535 gMC->Gspos("TSA9",1,"TIFC",0.,0.,0.,0,"ONLY");
537 // daughter volumes - outer parts (reinforced)
539 // Tpc Sandwich 12 -Tedlar
545 gMC->Gsvolu("TS12","TUBE",idtmed[9],dm,3);
547 // Tpc Sandwich 13 - fiber glass (G10)
552 gMC->Gsvolu("TS13","TUBE",idtmed[12],dm,3);
554 // Tpc Sandwich 14 - NOMEX
559 gMC->Gsvolu("TS14","TUBE",idtmed[6],dm,3);
563 gMC->Gspos("TS14",1,"TS13",0.,0.,0.,0,"ONLY");
564 gMC->Gspos("TS13",1,"TS12",0.,0.,0.,0,"ONLY");
566 gMC->Gspos("TS12",1,"TIFC",0.,0.,170.05,0,"ONLY");
567 gMC->Gspos("TS12",2,"TIFC",0.,0.,-170.05,0,"ONLY");
569 // place this inside the inner insulator
571 gMC->Gspos("TIFC",1,"TIIN",0.,0.,0.,0,"ONLY");
573 // and now in the TPC...
575 gMC->Gspos("TIIN",1,"TPC ",0.,0.,0.,0,"ONLY");
577 //---------------------------------------------------------
578 // Tpc Inner Containment vessel - Cones
579 //---------------------------------------------------------
633 gMC->Gsvolu("TICC","PCON",idtmed[4],dm,27);
635 Float_t phi1,phi2,phi3,theta1,theta2,theta3; // rotation angles
646 AliMatrix(idrotm[nRotMat], theta1, phi1, theta2, phi2, theta3, phi3);
648 gMC->Gspos("TICC",1,"TPC ",0.,0.,0.,0,"ONLY");
649 gMC->Gspos("TICC",2,"TPC ",0.,0.,0.,idrotm[nRotMat],"ONLY");
652 //---------------------------------------------------------
653 // Tpc Inner Containment vessel - Middle part -Al
654 //---------------------------------------------------------
696 gMC->Gsvolu("TICM","PCON",idtmed[4],dm,21);
698 // Tpc Sandwich 15 - Al
704 gMC->Gsvolu("TS15","TUBE",idtmed[4],dm,3);
706 // Tpc Sandwich 16 - epoxy glue
711 gMC->Gsvolu("TS16","TUBE",idtmed[14],dm,3);
713 // Tpc Sandwich 17 - Tedlar
718 gMC->Gsvolu("TS17","TUBE",idtmed[9],dm,3);
720 // Tpc Sandwich 18 - carbon fiber
725 gMC->Gsvolu("TS18","TUBE",idtmed[15],dm,3);
727 // Tpc Sandwich 19 - Nomex
732 gMC->Gsvolu("TS19","TUBE",idtmed[6],dm,3);
734 // 19->18->17->16->15-> TICM
736 gMC->Gspos("TS19",1,"TS18",0.,0.,0.,0,"ONLY");
737 gMC->Gspos("TS18",1,"TS17",0.,0.,0.,0,"ONLY");
738 gMC->Gspos("TS17",1,"TS16",0.,0.,0.,0,"ONLY");
739 gMC->Gspos("TS16",1,"TS15",0.,0.,0.,0,"ONLY");
741 gMC->Gspos("TS15",1,"TICM ",0.,0.,0.,0,"ONLY");
744 // TPc inner cont. vessel Joints
750 gMC->Gsvolu("TPJ1","TUBE",idtmed[4],dm,3);
752 gMC->Gspos("TPJ1",1,"TPC ",0.,0.,72.3,0,"ONLY");
753 gMC->Gspos("TPJ1",2,"TPC ",0.,0.,-72.3,0,"ONLY");
785 gMC->Gsvolu("TPJ2","PCON",idtmed[4],dm,15);
787 gMC->Gspos("TPJ2",1,"TPC ",0.,0.,0.,0,"ONLY");
788 gMC->Gspos("TPJ2",2,"TPC ",0.,0.,0.,idrotm[nRotMat],"ONLY");
792 // Tpc Inner Containment vessel Seal (Viton, I use Lexan for a time being)
798 gMC->Gsvolu("TICS","TUBE",idtmed[14],dm,3);
800 gMC->Gspos("TICS",1,"TPC ",0.,0.,71.7,0,"ONLY");
801 gMC->Gspos("TICS",2,"TPC ",0.,0.,-71.7,0,"ONLY");
805 gMC->Gspos("TICM",1,"TPC ",0.,0.,0.,0,"ONLY");
809 nRotMat++; // prepare for the next rotation matrix
811 //---------------------------------------------------------
812 // Tpc Dift Gas volume Nonsensitive (Ne-CO2 90/10)
813 // and its daughters (HV membrane, rods, readout chambers)
814 //---------------------------------------------------------
820 gMC->Gsvolu("TDGN","TUBE",idtmed[1],dm,3);
822 // sector opening angles
824 Float_t innerOpenAngle = fTPCParam->GetInnerAngle();
826 // sector angle shift
828 Float_t innerAngleShift = fTPCParam->GetInnerAngleShift();
832 Int_t nInnerSector = fTPCParam->GetNInnerSector()/2;
833 Int_t nOuterSector = fTPCParam->GetNOuterSector()/2;
835 // All above parameters are identical for inner and outer
836 // sectors. The distinction is kept for the historical reasons
837 // and eventually will disappear.
839 Float_t tanAlpha = TMath::Tan(0.5*innerOpenAngle);
840 Float_t cosAlpha = TMath::Sqrt(1.+tanAlpha*tanAlpha);
843 //-------------------------------------------------------------------------
844 // Tpc Inner Readout Chambers
845 //-------------------------------------------------------------------------
849 dm[2]= 1.6; // thickness
852 gMC->Gsvolu("TIRC","TRD1",idtmed[4],dm,4);
854 // this volume will be positioned in the empty space
855 // of the end-cap to avoid overlaps
862 gMC->Gsvolu("TIC1","TRD1",idtmed[4],dm,4);
865 //------------------------------------------------
866 // Tpc Inner readout chamber Pad Plane
867 //------------------------------------------------
874 gMC->Gsvolu("TIPP","TRD1",idtmed[12],dm,4);
878 dm[0] -= 1.218511934;
879 dm[1] -= 1.218511934;
882 gMC->Gsvolu("TIC3","TRD1",idtmed[1],dm,4);
884 gMC->Gspos("TIC3",1,"TIPP",0.,0.15,0.,0,"ONLY");
886 gMC->Gspos("TIPP",1,"TIRC",0.,1.1,0.,0,"ONLY");
889 //----------------------------------------------
890 // Tpc Readout Chambers Empty spaces - for both
891 // inner and outer sectors
892 //----------------------------------------------
894 gMC->Gsvolu("TRCE","TRD1",idtmed[0],dm,0);
896 // Inner sector - 4 spaces
907 space = rr*tanAlpha-dm[0];
909 for(Int_t nsLow=0;nsLow<4;nsLow++){
912 dm[1]= rr*tanAlpha - space;
916 gMC->Gsposp("TRCE",nsLow+1,"TIRC",0.,-0.8,zz,0,"ONLY",dm,4);
922 gMC->Gsposp("TRCE",nsLow+5,"TIC1",0.,1.05,zz-2.1,0,"ONLY",dm,4);
925 dm[0] = rr*tanAlpha - space;
931 // dm[1] - this is the dm[1] from the previous TRCE
935 gMC->Gsposp("TRCE",9,"TIC1",0.,-1.2,0.,0,"ONLY",dm,4);
938 // TPc Space for Connectors
945 gMC->Gsvolu("TPSC","BOX ",idtmed[0],dm,3);
953 gMC->Gsvolu("TPCC","BOX ",idtmed[13],dm,3);
955 gMC->Gspos("TPCC",1,"TPSC",0.,0.15,0.,0,"ONLY");
963 // inner part of the inner sector - 2 x 20 holes
965 astep = 20.00096874/19.;
967 alpha = 10.00048437-astep;
979 for(ncon=0;ncon<20;ncon++){
985 phi3 = (alpha>0) ? 0. : 180.;
986 theta3 = TMath::Abs(alpha);
988 AliMatrix(idrotm[nRotMat], theta1, phi1, theta2, phi2, theta3, phi3);
992 gMC->Gspos("TPSC",ncon+1,"TIRC",x1,0.3,-12.7875,idrotm[nRotMat],"ONLY");
993 gMC->Gspos("TPSC",ncon+21,"TIRC",x2,0.3,-2.8625,idrotm[nRotMat],"ONLY");
1004 // outer part of the inner sector - 2 x 25 holes
1006 astep = 20.00096874/24.;
1007 alpha = 10.00048437-astep;
1015 for(ncon=0;ncon<25;ncon++){
1021 phi3 = (alpha>0) ? 0. : 180.;
1022 theta3 = TMath::Abs(alpha);
1024 AliMatrix(idrotm[nRotMat], theta1, phi1, theta2, phi2, theta3, phi3);
1028 gMC->Gspos("TPSC",ncon+41,"TIRC",x1,0.3,7.0625,idrotm[nRotMat],"ONLY");
1029 gMC->Gspos("TPSC",ncon+66,"TIRC",x2,0.3,16.9875,idrotm[nRotMat],"ONLY");
1040 //--------------------------------------------------------------------------
1041 // TPC Outer Readout Chambers
1042 // this is NOT a final design
1043 //--------------------------------------------------------------------------
1047 dm[2]= 1.5; //thickness
1050 gMC->Gsvolu("TORC","TRD1",idtmed[4],dm,4);
1052 //------------------------------------------------
1053 // Tpc Outer readout chamber Pad Plane
1054 //------------------------------------------------
1058 gMC->Gsvolu("TOPP","TRD1",idtmed[12],dm,4);
1060 dm[0] -= 1.218511934;
1061 dm[1] -= 1.218511934;
1064 gMC->Gsvolu("TOC3","TRD1",idtmed[1],dm,4);
1066 gMC->Gspos("TOC3",1,"TOPP",0.,0.15,0.,0,"ONLY");
1068 gMC->Gspos("TOPP",1,"TORC",0.,1.0,0.,0,"ONLY");
1077 gMC->Gsposp("TRCE",10,"TORC",0.,-0.8,-2.15,0,"ONLY",dm,4);
1084 gMC->Gsvolu("TOC1","TRD1",idtmed[4],dm,4);
1091 gMC->Gsposp("TRCE",11,"TOC1",0.,0.,0.,0,"ONLY",dm,4);
1093 //-----------------------------------------------
1094 // Tpc Services Support Wheel
1095 //-----------------------------------------------
1110 gMC->Gsvolu("TSSW","PGON",idtmed[4],dm,10);
1112 // Tpc Services Wheel Cover
1117 gMC->Gsvolu("TSWC","PGON",idtmed[4],dm,10);
1119 // Tpc Service wheel Cover Empty space
1126 gMC->Gsvolu("TSCE","TRD1",idtmed[0],dm,4);
1128 // Tpc services Wheel Empty Spaces
1135 gMC->Gsvolu("TWES","TRD1",idtmed[0],dm,4);
1137 // Tpc Services Wheel Bars
1139 gMC->Gsvolu("TSWB","TRD1",idtmed[4],dm,0);
1149 gMC->Gsposp("TSWB",1,"TWES",0.,0.,-85.125,0,"ONLY",dm,4);
1154 gMC->Gsposp("TSWB",2,"TWES",0.,0.,85.125,0,"ONLY",dm,4);
1156 // TPc ELectronics - right now 30% X0 Si
1163 gMC->Gsvolu("TPEL","TRD1",idtmed[11],dm,4);
1164 gMC->Gspos("TPEL",1,"TWES",0.,0.,0.,0,"ONLY");
1166 //--------------------------------------------------------------------------
1168 //--------------------------------------------------------------------------
1170 // TPc Main Wheel - Al
1176 gMC->Gsvolu("TPMW","TUBE",idtmed[4],dm,3);
1178 //--------------------------------------------------------------------------
1179 // Tpc Empty Space for the Readout chambers
1180 //--------------------------------------------------------------------------
1184 Float_t dR = 0.5*(rUp-rLow);
1186 space= 1.5/cosAlpha; // wheel ribs are 3.0 cm wide
1188 dm[0]= rLow*tanAlpha-space;
1189 dm[1]= rUp*tanAlpha-space;
1193 gMC->Gsvolu("TESR","TRD1",idtmed[0],dm,4);
1197 gMC->Gspos("TIC1",1,"TESR",0.,0.75,-dR+23.97,0,"ONLY");
1201 gMC->Gspos("TOC1",1,"TESR",0.,0.75,dR-55.02,0,"ONLY");
1203 // Tpc Empty Space Bars - Al (daughters of TESR)
1207 gMC->Gsvolu("TESB","TRD1",idtmed[4],dm,0);
1211 dm[0]= rLow*tanAlpha-space;
1212 dm[1]= 88.7*tanAlpha-space;
1218 gMC->Gsposp("TESB",1,"TESR",0.,0.75,zBar,0,"ONLY",dm,4);
1222 dm[0]= 131.65*tanAlpha-space;
1223 dm[1]= 136.5*tanAlpha-space;
1226 zBar = -dR +131.65+dm[3]-rLow;
1228 gMC->Gsposp("TESB",2,"TESR",0.,0.75,zBar,0,"ONLY",dm,4);
1232 dm[0]= 240.4*tanAlpha-space;
1233 dm[1]= rUp*tanAlpha-space;
1238 gMC->Gsposp("TESB",3,"TESR",0.,0.75,zBar,0,"ONLY",dm,4);
1240 // positioning of the empty spaces into the main wheel
1242 Float_t rCenter,xc,yc;
1243 Float_t rInner,rOuter; // center of the inner and outer chamber
1251 for(Int_t ns=0; ns<nInnerSector;ns++){
1253 phi1 = ns * innerOpenAngle + innerAngleShift;
1254 phi1 *= kRaddeg; // in degrees
1256 phi1 = (Float_t)TMath::Nint(phi1) + 270.;
1258 if (phi1 > 360.) phi1 -= 360.;
1263 phi3 = ns * innerOpenAngle + innerAngleShift;
1264 phi3 *= kRaddeg; // in degrees
1266 phi3 = (Float_t)TMath::Nint(phi3);
1268 if(phi3 > 360.) phi3 -= 360.;
1272 // "holes"->End plate
1274 xc = rCenter*TMath::Cos(phi3*kDegrad);
1275 yc = rCenter*TMath::Sin(phi3*kDegrad);
1277 AliMatrix(idrotm[nRotMat], theta1, phi1, theta2, phi2, theta3, phi3);
1279 gMC->Gspos("TESR",ns+1,"TPMW",xc,yc,0.,idrotm[nRotMat],"ONLY");
1281 // TSCE->TSWC (services wheel volumes)
1283 xc = 166.142*TMath::Cos(phi3*kDegrad);
1284 yc = 166.142*TMath::Sin(phi3*kDegrad);
1286 gMC->Gspos("TSCE",ns+1,"TSWC",xc,yc,0.,idrotm[nRotMat],"ONLY");
1287 gMC->Gspos("TWES",ns+1,"TSSW",xc,yc,0.,idrotm[nRotMat],"ONLY");
1290 // readout chambers->TDGN (drift gas)
1292 xc = rInner*TMath::Cos(phi3*kDegrad);
1293 yc = rInner*TMath::Sin(phi3*kDegrad);
1295 gMC->Gspos("TIRC",ns+1,"TDGN",xc,yc,252.,idrotm[nRotMat],"ONLY");
1297 xc = rOuter*TMath::Cos(phi3*kDegrad);
1298 yc = rOuter*TMath::Sin(phi3*kDegrad);
1300 gMC->Gspos("TORC",ns+1,"TDGN",xc,yc,252.1,idrotm[nRotMat],"ONLY");
1304 theta2 = 0.; // reflection
1306 AliMatrix(idrotm[nRotMat], theta1, phi1, theta2, phi2, theta3, phi3);
1308 xc = rInner*TMath::Cos(phi3*kDegrad);
1309 yc = rInner*TMath::Sin(phi3*kDegrad);
1311 gMC->Gspos("TIRC",ns+nInnerSector+1,"TDGN",xc,yc,-252.,idrotm[nRotMat],"ONLY");
1313 xc = rOuter*TMath::Cos(phi3*kDegrad);
1314 yc = rOuter*TMath::Sin(phi3*kDegrad);
1316 gMC->Gspos("TORC",ns+nOuterSector+1,"TDGN",xc,yc,-252.1,idrotm[nRotMat],"ONLY");
1323 gMC->Gspos("TPMW",1,"TPC ",0.,0.,256.6,0,"ONLY");
1324 gMC->Gspos("TPMW",2,"TPC ",0.,0.,-256.6,idrotm[0],"ONLY");
1326 //---------------------------------------------------------
1327 // Tpc High Voltage Membrane - 100 microns of mylar
1328 //---------------------------------------------------------
1334 gMC->Gsvolu("THVM","TUBE",idtmed[8],dm,3);
1336 gMC->Gspos("THVM",1,"TDGN",0.,0.,0.,0,"ONLY");
1338 // Tpc High Voltage membrane Holders
1340 gMC->Gsvolu("THVH","TUBE",idtmed[4],dm,0);
1350 gMC->Gsposp("THVH",1,"TDGN",0.,0.,0.,0,"ONLY",dm,3);
1358 gMC->Gsposp("THVH",2,"TDGN",0.,0.,0.,0,"ONLY",dm,3);
1360 //----------------------------------------------------------
1361 // TPc Support Rods - MAKROLON
1362 //----------------------------------------------------------
1367 gMC->Gsvolu("TPSR","TUBE",idtmed[7],dm,0); // inner and outer rods differ
1370 for(Int_t nrod=0;nrod<18;nrod++){
1371 Float_t angle=innerOpenAngle*(Float_t)nrod;
1373 xc=81.5*TMath::Cos(angle);
1374 yc=81.5*TMath::Sin(angle);
1378 gMC->Gsposp("TPSR",nrod+1,"TDGN",xc,yc,126.9,0,"ONLY",dm,3);
1379 gMC->Gsposp("TPSR",nrod+19,"TDGN",xc,yc,-126.9,0,"ONLY",dm,3);
1383 xc=254.25*TMath::Cos(angle);
1384 yc=254.25*TMath::Sin(angle);
1386 // rod number 54 contans the HV cable
1389 gMC->Gsposp("TPSR",nrod+37,"TDGN",xc,yc,127.,0,"ONLY",dm,3);
1390 gMC->Gsposp("TPSR",nrod+54,"TDGN",xc,yc,-127.,0,"ONLY",dm,3);
1395 //----------------------------------------------------------
1396 // Tpc High Voltage Rod - MAKROLON + Copper cable
1397 //----------------------------------------------------------
1399 // rod with cable (Left)
1405 gMC->Gsvolu("THVL","TUBE",idtmed[7],dm,3);
1413 gMC->Gsvolu("THVC","TUBE",idtmed[10],dm,3);
1421 gMC->Gsvolu("THVE","TUBE",idtmed[1],dm,3);
1423 gMC->Gspos("THVC",1,"THVL",0.,0.,0.,0,"ONLY");
1424 gMC->Gspos("THVE",1,"THVL",0.,0.,0.,0,"ONLY");
1426 // rod without cable
1432 gMC->Gsvolu("THVR","TUBE",idtmed[7],dm,3);
1434 gMC->Gspos("THVL",1,"TDGN",xc,yc,-127.,0,"ONLY");
1435 gMC->Gspos("THVR",1,"TDGN",xc,yc,127.,0,"ONLY");
1437 gMC->Gspos("TDGN",1,"TPC ",0.,0.,0.,0,"ONLY");
1439 // services wheel cover -> wheel
1442 gMC->Gspos("TSWC",1,"TSSW",0.,0.,4.5,0,"ONLY");
1443 gMC->Gspos("TSWC",2,"TSSW",0.,0.,-4.5,0,"ONLY");
1446 // put the wheel into the TPC
1448 gMC->Gspos("TSSW",1,"TPC ",0.,0.,278.7,0,"ONLY");
1449 gMC->Gspos("TSSW",2,"TPC ",0.,0.,-278.7,0,"ONLY");
1453 gMC->Gsord("TPMW",6);
1454 gMC->Gsord("TSSW",6);
1455 gMC->Gsord("TSWC",6);
1457 // put the TPC into ALIC (main mother volume)
1459 gMC->Gspos("TPC ",1,"ALIC",0.,0.,0.,0,"ONLY");
1461 } // end of function
1464 //_____________________________________________________________________________
1465 void AliTPCv0::CreateMaterials()
1468 // Define materials for the TPC
1470 AliTPC::CreateMaterials();
1473 //_____________________________________________________________________________
1474 void AliTPCv0::DrawDetector()
1477 // Draw a shaded view of the Time Projection Chamber version 0
1480 // Set everything unseen
1481 gMC->Gsatt("*", "seen", -1);
1483 // Set ALIC mother transparent
1484 gMC->Gsatt("ALIC","SEEN",0);
1486 // Set the volumes visible
1487 gMC->Gsatt("TPC ","SEEN",0);
1488 gMC->Gsatt("TOIN","SEEN",1);
1489 gMC->Gsatt("TOIN","COLO",7);
1490 gMC->Gsatt("TOCV","SEEN",1);
1491 gMC->Gsatt("TOCV","COLO",4);
1492 gMC->Gsatt("TSA1","SEEN",0);
1493 gMC->Gsatt("TSA2","SEEN",0);
1494 gMC->Gsatt("TSA3","SEEN",0);
1495 gMC->Gsatt("TSA4","SEEN",0);
1496 gMC->Gsatt("TSA5","SEEN",0);
1497 gMC->Gsatt("TOFC","SEEN",1);
1498 gMC->Gsatt("TOFC","COLO",4);
1499 gMC->Gsatt("TSA6","SEEN",0);
1500 gMC->Gsatt("TSA7","SEEN",0);
1501 gMC->Gsatt("TSA8","SEEN",0);
1502 gMC->Gsatt("TIIN","SEEN",1);
1503 gMC->Gsatt("TIIN","COLO",7);
1504 gMC->Gsatt("TII1","SEEN",0);
1505 gMC->Gsatt("TIFC","SEEN",1);
1506 gMC->Gsatt("TIFC","COLO",4);
1507 gMC->Gsatt("TSA9","SEEN",0);
1508 gMC->Gsatt("TS10","SEEN",0);
1509 gMC->Gsatt("TS11","SEEN",0);
1510 gMC->Gsatt("TS12","SEEN",0);
1511 gMC->Gsatt("TS13","SEEN",0);
1512 gMC->Gsatt("TS14","SEEN",0);
1513 gMC->Gsatt("TICC","SEEN",0);
1514 gMC->Gsatt("TICM","SEEN",0);
1515 gMC->Gsatt("TS15","SEEN",0);
1516 gMC->Gsatt("TS16","SEEN",0);
1517 gMC->Gsatt("TS17","SEEN",0);
1518 gMC->Gsatt("TS18","SEEN",0);
1519 gMC->Gsatt("TS19","SEEN",0);
1520 gMC->Gsatt("TPJ1","SEEN",0);
1521 gMC->Gsatt("TPJ2","SEEN",0);
1522 gMC->Gsatt("TICS","SEEN",0);
1523 gMC->Gsatt("TDGN","SEEN",0);
1524 gMC->Gsatt("TIRC","SEEN",0);
1525 gMC->Gsatt("TIC1","SEEN",1);
1526 gMC->Gsatt("TIPP","SEEN",0);
1527 gMC->Gsatt("TIC3","SEEN",0);
1528 gMC->Gsatt("TRCE","SEEN",0);
1529 gMC->Gsatt("TPSC","SEEN",0);
1530 gMC->Gsatt("TPCC","SEEN",0);
1531 gMC->Gsatt("TORC","SEEN",0);
1532 gMC->Gsatt("TOPP","SEEN",0);
1533 gMC->Gsatt("TOC3","SEEN",0);
1534 gMC->Gsatt("TOC1","SEEN",1);
1535 gMC->Gsatt("TSSW","SEEN",1);
1536 gMC->Gsatt("TSWC","SEEN",1);
1537 gMC->Gsatt("TSSW","COLO",3);
1538 gMC->Gsatt("TSWC","COLO",3);
1539 gMC->Gsatt("TSCE","COLO",6);
1540 gMC->Gsatt("TSCE","SEEN",1);
1541 gMC->Gsatt("TWES","SEEN",0);
1542 gMC->Gsatt("TSWB","SEEN",0);
1543 gMC->Gsatt("TPEL","SEEN",0);
1544 gMC->Gsatt("TPMW","SEEN",1);
1545 gMC->Gsatt("TESR","SEEN",1);
1546 gMC->Gsatt("TPMW","COLO",12);
1547 gMC->Gsatt("TIC1","COLO",5);
1548 gMC->Gsatt("TOC1","COLO",5);
1549 gMC->Gsatt("TESB","SEEN",0);
1550 gMC->Gsatt("THVM","SEEN",1);
1551 gMC->Gsatt("THVM","COLO",11);
1552 gMC->Gsatt("THVH","SEEN",0);
1553 gMC->Gsatt("TPSR","SEEN",0);
1554 gMC->Gsatt("THVL","SEEN",0);
1555 gMC->Gsatt("THVC","SEEN",0);
1556 gMC->Gsatt("THVE","SEEN",0);
1557 gMC->Gsatt("THVR","SEEN",0);
1560 gMC->Gdopt("hide", "on");
1561 gMC->Gdopt("shad", "on");
1562 gMC->Gsatt("*", "fill", 7);
1563 gMC->SetClipBox(".");
1564 gMC->SetClipBox("TPMW",-300,300,-300,300,254.,270.);
1565 gMC->SetClipBox("TESR",-300,300,-300,300,254.,270.);
1566 gMC->SetClipBox("TSSW",-300,300,-300,300,283.,284.);
1567 gMC->SetClipBox("TSWC",-300,300,-300,300,283.,284.);
1568 gMC->SetClipBox("*", 0, 300, -300, 300, -290, 290);
1569 gMC->DefaultRange();
1570 gMC->Gdraw("alic", 40, 30, 0, 12, 9.5, .025, .025);
1571 gMC->Gdhead(1111, "Time Projection Chamber");
1572 gMC->Gdman(18, 4, "MAN");
1573 gMC->Gdopt("hide","off");
1576 //_____________________________________________________________________________
1577 void AliTPCv0::Init()
1580 // Initialise Time Projection Chamber version 0
1583 printf("%s: *** TPC version 0 initialized***\n",ClassName());
1585 // printf("TPC version 0 initialized\n");
1588 //_____________________________________________________________________________
1589 void AliTPCv0::StepManager()
1592 // Procedure called at each step in the TPC