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.24 2001/04/26 06:15:11 kowal2
19 Corrected bug in the inner containment vessel (cones)
21 Revision 1.23 2001/04/24 11:17:33 kowal2
24 Revision 1.22 2001/03/13 13:07:33 kowal2
25 Corrected bug in the TPC mother volume geometry.
28 Revision 1.21 2000/11/14 10:48:57 kowal2
29 Correct material used for TSA4. Thanks to J. Barbosa.
31 Revision 1.20 2000/11/06 17:24:10 kowal2
32 Corrected bug in the outer containment vessel and
33 the outer field cage geometry.
36 Revision 1.19 2000/11/02 16:55:24 kowal2
37 Corrected bug in the inner containment vessel geometry.
40 Revision 1.18 2000/11/02 07:24:11 kowal2
41 Correction in the TPC geometry.
42 Changes due to the new hit structure.
44 Revision 1.17 2000/07/10 20:57:39 hristov
45 Update of TPC code and macros by M.Kowalski
47 Revision 1.16 2000/06/30 12:07:50 kowal2
48 Updated from the TPC-PreRelease branch
50 Revision 1.15.2.4 2000/06/26 07:39:42 kowal2
51 Changes to obey the coding rules
53 Revision 1.15.2.3 2000/06/25 08:38:41 kowal2
54 Splitted from AliTPCtracking
56 Revision 1.15.2.2 2000/06/16 12:58:13 kowal2
57 Changed parameter settings
59 Revision 1.15.2.1 2000/06/09 07:15:07 kowal2
61 Defaults loaded automatically (hard-wired)
62 Optional parameters can be set via macro called in the constructor
64 Revision 1.15 2000/05/15 10:00:30 kowal2
65 Corrected bug in the TPC geometry, thanks to Ivana Hrivnacova
67 Revision 1.14 2000/04/17 09:37:33 kowal2
68 removed obsolete AliTPCDigitsDisplay.C
70 Revision 1.13.8.2 2000/04/10 08:33:44 kowal2
72 Updated readout chambers
74 Revision 1.13.8.1 2000/04/10 07:56:53 kowal2
75 Not used anymore - removed
77 Revision 1.13 1999/11/04 17:28:06 fca
78 Correct barrel part of HV Degrader
80 Revision 1.12 1999/10/08 06:27:23 fca
81 Corrected bug in the HV degrader geometry, thanks to G.Tabary
83 Revision 1.11 1999/10/04 13:39:54 fca
84 Correct array index problem
86 Revision 1.10 1999/09/29 09:24:34 fca
87 Introduction of the Copyright and cvs Log
92 ///////////////////////////////////////////////////////////////////////////////
94 // Time Projection Chamber version 0 -- "coarse" TPC //
98 <img src="picts/AliTPCv0Class.gif">
103 ///////////////////////////////////////////////////////////////////////////////
106 #include <TGeometry.h>
109 #include "AliTPCv0.h"
111 #include <iostream.h>
114 #include "AliConst.h"
116 #include "AliTPCParamSR.h"
117 #include "AliTPCDigitsArray.h"
121 //_____________________________________________________________________________
122 AliTPCv0::AliTPCv0(const char *name, const char *title)
126 // Standard creator for TPC version 0
129 SetGasMixt(2,20,10,-1,0.9,0.1,0.);
132 fTPCParam->Write(fTPCParam->GetTitle());
135 //_____________________________________________________________________________
136 void AliTPCv0::CreateGeometry()
140 // Creation of the TPC version 0, i.e. no sensitive volumes,
141 // only the material distribution
145 <img src="picts/AliTPC.gif">
150 <img src="picts/AliTPCv0Tree.gif">
154 //---------------------------------------------------------------
157 // Origin: Marek Kowalski, INP Cracow
158 // Marek.Kowalski@ifj.edu.pl
159 //---------------------------------------------------------------
162 Int_t *idtmed = fIdtmed->GetArray(); // TPC media
164 Int_t idrotm[120]; // rotation matrices
166 Int_t nRotMat = 0; // actual number of rotation matrices
170 // Mother volume TPC (Air) - all volumes will be positioned in it
225 gMC->Gsvolu("TPC ","PCON",idtmed[0],dm,27);
229 //-------------------------------------------------------------------
230 // Tpc Outer INsulator (CO2) - contains cont. vessel and field cage
231 //-------------------------------------------------------------------
273 gMC->Gsvolu("TOIN","PCON",idtmed[3],dm,21);
275 //----------------------------------------------------------------
276 // Tpc Outer Contaiment Vessel
277 // mother volume - Al, daughters - composite (sandwich)
278 //----------------------------------------------------------------
320 gMC->Gsvolu("TOCV","PCON",idtmed[4],dm,21);
322 // Daughter volumes - sandwich
324 // Tpc SAndwich 1 - Al
330 gMC->Gsvolu("TSA1","TUBE",idtmed[4],dm,3);
332 // Tpc SAndwich 2 - epoxy glue (I use Lexan)
337 gMC->Gsvolu("TSA2","TUBE",idtmed[14],dm,3);
339 // Tpc SAndwich 3 - Tedlar
344 gMC->Gsvolu("TSA3","TUBE",idtmed[9],dm,3);
347 // Tpc SAndwich 4 - fiber glass (G10)
352 gMC->Gsvolu("TSA4","TUBE",idtmed[12],dm,3);
354 // Tpc SAndwich 5 - NOMEX honeycomb
359 gMC->Gsvolu("TSA5","TUBE",idtmed[6],dm,3);
361 // 5->4->3->2->1->TCOV
364 gMC->Gspos("TSA5",1,"TSA4",0.,0.,0.,0,"ONLY");
365 gMC->Gspos("TSA4",1,"TSA3",0.,0.,0.,0,"ONLY");
366 gMC->Gspos("TSA3",1,"TSA2",0.,0.,0.,0,"ONLY");
367 gMC->Gspos("TSA2",1,"TSA1",0.,0.,0.,0,"ONLY");
369 gMC->Gspos("TSA1",1,"TOCV",0.,0.,3.,0,"ONLY");
373 gMC->Gspos("TOCV",1,"TOIN",0.,0.,0.,0,"ONLY");
375 //-------------------------------------------------------
376 // Tpc Outer Field Cage
377 // mother volume - Al, daughters - composite (sandwich)
378 //-------------------------------------------------------
420 gMC->Gsvolu("TOFC","PCON",idtmed[4],dm,21);
424 // Tpc SAndwich 6 - Tedlar
430 gMC->Gsvolu("TSA6","TUBE",idtmed[9],dm,3);
432 // Tpc SAndwich 7 - fiber glass
437 gMC->Gsvolu("TSA7","TUBE",idtmed[12],dm,3);
440 // Tpc SAndwich 8 - NOMEX
445 gMC->Gsvolu("TSA8","TUBE",idtmed[6],dm,3);
449 gMC->Gspos("TSA8",1,"TSA7",0.,0.,0.,0,"ONLY");
450 gMC->Gspos("TSA7",1,"TSA6",0.,0.,0.,0,"ONLY");
451 gMC->Gspos("TSA6",1,"TOFC",0.,0.,0.,0,"ONLY");
455 gMC->Gspos("TOFC",1,"TOIN",0.,0.,0.,0,"ONLY");
459 gMC->Gspos("TOIN",1,"TPC ",0.,0.,0.,0,"ONLY");
463 //--------------------------------------------------------------------
464 // Tpc Inner INsulator (CO2) - inner f.c. will be placed there
465 // Inner containment vessel will be placed directly in the TPC
466 //--------------------------------------------------------------------
496 gMC->Gsvolu("TIIN","PCON",idtmed[3],dm,15);
498 // the middle part of the F.C. is thinner - carve out the strip - Ne-CO2
504 gMC->Gsvolu("TII1","TUBE",idtmed[1],dm,3);
506 gMC->Gspos("TII1",1,"TIIN",0.,0.,0.,0,"ONLY");
508 //-----------------------------------------------------
509 // Tpc Inner Field Cage
510 // mother volume - Al, daughters - composite (sandwich)
511 //------------------------------------------------------
577 gMC->Gsvolu("TIFC","PCON",idtmed[4],dm,33);
579 // daughter volumes - central part
581 // Tpc Sandwich 9 -Tedlar
587 gMC->Gsvolu("TSA9","TUBE",idtmed[9],dm,3);
589 // Tpc Sandwich 10 - fiber glass (G10)
594 gMC->Gsvolu("TS10","TUBE",idtmed[12],dm,3);
596 // Tpc Sandwich 11 - NOMEX
601 gMC->Gsvolu("TS11","TUBE",idtmed[6],dm,3);
605 gMC->Gspos("TS11",1,"TS10",0.,0.,0.,0,"ONLY");
606 gMC->Gspos("TS10",1,"TSA9",0.,0.,0.,0,"ONLY");
608 gMC->Gspos("TSA9",1,"TIFC",0.,0.,0.,0,"ONLY");
610 // daughter volumes - outer parts (reinforced)
612 // Tpc Sandwich 12 -Tedlar
618 gMC->Gsvolu("TS12","TUBE",idtmed[9],dm,3);
620 // Tpc Sandwich 13 - fiber glass (G10)
625 gMC->Gsvolu("TS13","TUBE",idtmed[12],dm,3);
627 // Tpc Sandwich 14 - NOMEX
632 gMC->Gsvolu("TS14","TUBE",idtmed[6],dm,3);
636 gMC->Gspos("TS14",1,"TS13",0.,0.,0.,0,"ONLY");
637 gMC->Gspos("TS13",1,"TS12",0.,0.,0.,0,"ONLY");
639 gMC->Gspos("TS12",1,"TIFC",0.,0.,170.05,0,"ONLY");
640 gMC->Gspos("TS12",2,"TIFC",0.,0.,-170.05,0,"ONLY");
642 // place this inside the inner insulator
644 gMC->Gspos("TIFC",1,"TIIN",0.,0.,0.,0,"ONLY");
646 // and now in the TPC...
648 gMC->Gspos("TIIN",1,"TPC ",0.,0.,0.,0,"ONLY");
650 //---------------------------------------------------------
651 // Tpc Inner Containment vessel - Cones
652 //---------------------------------------------------------
706 gMC->Gsvolu("TICC","PCON",idtmed[4],dm,27);
708 Float_t phi1,phi2,phi3,theta1,theta2,theta3; // rotation angles
719 AliMatrix(idrotm[nRotMat], theta1, phi1, theta2, phi2, theta3, phi3);
721 gMC->Gspos("TICC",1,"TPC ",0.,0.,0.,0,"ONLY");
722 gMC->Gspos("TICC",2,"TPC ",0.,0.,0.,idrotm[nRotMat],"ONLY");
725 //---------------------------------------------------------
726 // Tpc Inner Containment vessel - Middle part -Al
727 //---------------------------------------------------------
769 gMC->Gsvolu("TICM","PCON",idtmed[4],dm,21);
771 // Tpc Sandwich 15 - Al
777 gMC->Gsvolu("TS15","TUBE",idtmed[4],dm,3);
779 // Tpc Sandwich 16 - epoxy glue
784 gMC->Gsvolu("TS16","TUBE",idtmed[14],dm,3);
786 // Tpc Sandwich 17 - Tedlar
791 gMC->Gsvolu("TS17","TUBE",idtmed[9],dm,3);
793 // Tpc Sandwich 18 - fiber glass
798 gMC->Gsvolu("TS18","TUBE",idtmed[12],dm,3);
800 // Tpc Sandwich 19 - Nomex
805 gMC->Gsvolu("TS19","TUBE",idtmed[6],dm,3);
807 // 19->18->17->16->15-> TICM
809 gMC->Gspos("TS19",1,"TS18",0.,0.,0.,0,"ONLY");
810 gMC->Gspos("TS18",1,"TS17",0.,0.,0.,0,"ONLY");
811 gMC->Gspos("TS17",1,"TS16",0.,0.,0.,0,"ONLY");
812 gMC->Gspos("TS16",1,"TS15",0.,0.,0.,0,"ONLY");
814 gMC->Gspos("TS15",1,"TICM ",0.,0.,0.,0,"ONLY");
817 // TPc inner cont. vessel Joints
823 gMC->Gsvolu("TPJ1","TUBE",idtmed[4],dm,3);
825 gMC->Gspos("TPJ1",1,"TPC ",0.,0.,72.3,0,"ONLY");
826 gMC->Gspos("TPJ1",2,"TPC ",0.,0.,-72.3,0,"ONLY");
858 gMC->Gsvolu("TPJ2","PCON",idtmed[4],dm,15);
860 gMC->Gspos("TPJ2",1,"TPC ",0.,0.,0.,0,"ONLY");
861 gMC->Gspos("TPJ2",2,"TPC ",0.,0.,0.,idrotm[nRotMat],"ONLY");
865 // Tpc Inner Containment vessel Seal (Viton, I use Lexan for a time being)
871 gMC->Gsvolu("TICS","TUBE",idtmed[14],dm,3);
873 gMC->Gspos("TICS",1,"TPC ",0.,0.,71.7,0,"ONLY");
874 gMC->Gspos("TICS",2,"TPC ",0.,0.,-71.7,0,"ONLY");
878 gMC->Gspos("TICM",1,"TPC ",0.,0.,0.,0,"ONLY");
882 nRotMat++; // prepare for the next rotation matrix
884 //---------------------------------------------------------
885 // Tpc Dift Gas volume Nonsensitive (Ne-CO2 90/10)
886 // and its daughters (HV membrane, rods, readout chambers)
887 //---------------------------------------------------------
893 gMC->Gsvolu("TDGN","TUBE",idtmed[1],dm,3);
895 // sector opening angles
897 Float_t innerOpenAngle = fTPCParam->GetInnerAngle();
899 // sector angle shift
901 Float_t innerAngleShift = fTPCParam->GetInnerAngleShift();
905 Int_t nInnerSector = fTPCParam->GetNInnerSector()/2;
906 Int_t nOuterSector = fTPCParam->GetNOuterSector()/2;
908 // All above parameters are identical for inner and outer
909 // sectors. The distinction is kept for the historical reasons
910 // and eventually will disappear.
912 Float_t tanAlpha = TMath::Tan(0.5*innerOpenAngle);
913 Float_t cosAlpha = TMath::Sqrt(1.+tanAlpha*tanAlpha);
916 //-------------------------------------------------------------------------
917 // Tpc Inner Readout Chambers
918 //-------------------------------------------------------------------------
922 dm[2]= 1.6; // thickness
925 gMC->Gsvolu("TIRC","TRD1",idtmed[4],dm,4);
927 // this volume will be positioned in the empty space
928 // of the end-cap to avoid overlaps
935 gMC->Gsvolu("TIC1","TRD1",idtmed[4],dm,4);
938 //------------------------------------------------
939 // Tpc Inner readout chamber Pad Plane
940 //------------------------------------------------
947 gMC->Gsvolu("TIPP","TRD1",idtmed[12],dm,4);
951 dm[0] -= 1.218511934;
952 dm[1] -= 1.218511934;
955 gMC->Gsvolu("TIC3","TRD1",idtmed[1],dm,4);
957 gMC->Gspos("TIC3",1,"TIPP",0.,0.15,0.,0,"ONLY");
959 gMC->Gspos("TIPP",1,"TIRC",0.,1.1,0.,0,"ONLY");
962 //----------------------------------------------
963 // Tpc Readout Chambers Empty spaces - for both
964 // inner and outer sectors
965 //----------------------------------------------
967 gMC->Gsvolu("TRCE","TRD1",idtmed[0],dm,0);
969 // Inner sector - 4 spaces
980 space = rr*tanAlpha-dm[0];
982 for(Int_t nsLow=0;nsLow<4;nsLow++){
985 dm[1]= rr*tanAlpha - space;
989 gMC->Gsposp("TRCE",nsLow+1,"TIRC",0.,-0.8,zz,0,"ONLY",dm,4);
995 gMC->Gsposp("TRCE",nsLow+5,"TIC1",0.,1.05,zz-2.1,0,"ONLY",dm,4);
998 dm[0] = rr*tanAlpha - space;
1004 // dm[1] - this is the dm[1] from the previous TRCE
1008 gMC->Gsposp("TRCE",9,"TIC1",0.,-1.2,0.,0,"ONLY",dm,4);
1011 // TPc Space for Connectors
1018 gMC->Gsvolu("TPSC","BOX ",idtmed[0],dm,3);
1026 gMC->Gsvolu("TPCC","BOX ",idtmed[13],dm,3);
1028 gMC->Gspos("TPCC",1,"TPSC",0.,0.15,0.,0,"ONLY");
1036 // inner part of the inner sector - 2 x 20 holes
1038 astep = 20.00096874/19.;
1040 alpha = 10.00048437-astep;
1052 for(ncon=0;ncon<20;ncon++){
1058 phi3 = (alpha>0) ? 0. : 180.;
1059 theta3 = TMath::Abs(alpha);
1061 AliMatrix(idrotm[nRotMat], theta1, phi1, theta2, phi2, theta3, phi3);
1065 gMC->Gspos("TPSC",ncon+1,"TIRC",x1,0.3,-12.7875,idrotm[nRotMat],"ONLY");
1066 gMC->Gspos("TPSC",ncon+21,"TIRC",x2,0.3,-2.8625,idrotm[nRotMat],"ONLY");
1077 // outer part of the inner sector - 2 x 25 holes
1079 astep = 20.00096874/24.;
1080 alpha = 10.00048437-astep;
1088 for(ncon=0;ncon<25;ncon++){
1094 phi3 = (alpha>0) ? 0. : 180.;
1095 theta3 = TMath::Abs(alpha);
1097 AliMatrix(idrotm[nRotMat], theta1, phi1, theta2, phi2, theta3, phi3);
1101 gMC->Gspos("TPSC",ncon+41,"TIRC",x1,0.3,7.0625,idrotm[nRotMat],"ONLY");
1102 gMC->Gspos("TPSC",ncon+66,"TIRC",x2,0.3,16.9875,idrotm[nRotMat],"ONLY");
1113 //--------------------------------------------------------------------------
1114 // TPC Outer Readout Chambers
1115 // this is NOT a final design
1116 //--------------------------------------------------------------------------
1120 dm[2]= 1.5; //thickness
1123 gMC->Gsvolu("TORC","TRD1",idtmed[4],dm,4);
1125 //------------------------------------------------
1126 // Tpc Outer readout chamber Pad Plane
1127 //------------------------------------------------
1131 gMC->Gsvolu("TOPP","TRD1",idtmed[12],dm,4);
1133 dm[0] -= 1.218511934;
1134 dm[1] -= 1.218511934;
1137 gMC->Gsvolu("TOC3","TRD1",idtmed[1],dm,4);
1139 gMC->Gspos("TOC3",1,"TOPP",0.,0.15,0.,0,"ONLY");
1141 gMC->Gspos("TOPP",1,"TORC",0.,1.0,0.,0,"ONLY");
1150 gMC->Gsposp("TRCE",10,"TORC",0.,-0.8,-2.15,0,"ONLY",dm,4);
1157 gMC->Gsvolu("TOC1","TRD1",idtmed[4],dm,4);
1164 gMC->Gsposp("TRCE",11,"TOC1",0.,0.,0.,0,"ONLY",dm,4);
1166 //-----------------------------------------------
1167 // Tpc Services Support Wheel
1168 //-----------------------------------------------
1183 gMC->Gsvolu("TSSW","PGON",idtmed[4],dm,10);
1185 // Tpc Services Wheel Cover
1190 gMC->Gsvolu("TSWC","PGON",idtmed[4],dm,10);
1192 // Tpc Service wheel Cover Empty space
1199 gMC->Gsvolu("TSCE","TRD1",idtmed[0],dm,4);
1201 // Tpc services Wheel Empty Spaces
1208 gMC->Gsvolu("TWES","TRD1",idtmed[0],dm,4);
1210 // Tpc Services Wheel Bars
1212 gMC->Gsvolu("TSWB","TRD1",idtmed[4],dm,0);
1222 gMC->Gsposp("TSWB",1,"TWES",0.,0.,-85.125,0,"ONLY",dm,4);
1227 gMC->Gsposp("TSWB",2,"TWES",0.,0.,85.125,0,"ONLY",dm,4);
1229 // TPc ELectronics - right now 30% X0 Si
1236 gMC->Gsvolu("TPEL","TRD1",idtmed[11],dm,4);
1237 gMC->Gspos("TPEL",1,"TWES",0.,0.,0.,0,"ONLY");
1239 //--------------------------------------------------------------------------
1241 //--------------------------------------------------------------------------
1243 // TPc Main Wheel - Al
1249 gMC->Gsvolu("TPMW","TUBE",idtmed[4],dm,3);
1251 //--------------------------------------------------------------------------
1252 // Tpc Empty Space for the Readout chambers
1253 //--------------------------------------------------------------------------
1257 Float_t dR = 0.5*(rUp-rLow);
1259 space= 1.5/cosAlpha; // wheel ribs are 3.0 cm wide
1261 dm[0]= rLow*tanAlpha-space;
1262 dm[1]= rUp*tanAlpha-space;
1266 gMC->Gsvolu("TESR","TRD1",idtmed[0],dm,4);
1270 gMC->Gspos("TIC1",1,"TESR",0.,0.75,-dR+23.97,0,"ONLY");
1274 gMC->Gspos("TOC1",1,"TESR",0.,0.75,dR-55.02,0,"ONLY");
1276 // Tpc Empty Space Bars - Al (daughters of TESR)
1280 gMC->Gsvolu("TESB","TRD1",idtmed[4],dm,0);
1284 dm[0]= rLow*tanAlpha-space;
1285 dm[1]= 88.7*tanAlpha-space;
1291 gMC->Gsposp("TESB",1,"TESR",0.,0.75,zBar,0,"ONLY",dm,4);
1295 dm[0]= 131.65*tanAlpha-space;
1296 dm[1]= 136.5*tanAlpha-space;
1299 zBar = -dR +131.65+dm[3]-rLow;
1301 gMC->Gsposp("TESB",2,"TESR",0.,0.75,zBar,0,"ONLY",dm,4);
1305 dm[0]= 240.4*tanAlpha-space;
1306 dm[1]= rUp*tanAlpha-space;
1311 gMC->Gsposp("TESB",3,"TESR",0.,0.75,zBar,0,"ONLY",dm,4);
1313 // positioning of the empty spaces into the main wheel
1315 Float_t rCenter,xc,yc;
1316 Float_t rInner,rOuter; // center of the inner and outer chamber
1324 for(Int_t ns=0; ns<nInnerSector;ns++){
1326 phi1 = ns * innerOpenAngle + innerAngleShift;
1327 phi1 *= kRaddeg; // in degrees
1329 phi1 = (Float_t)TMath::Nint(phi1) + 270.;
1331 if (phi1 > 360.) phi1 -= 360.;
1336 phi3 = ns * innerOpenAngle + innerAngleShift;
1337 phi3 *= kRaddeg; // in degrees
1339 phi3 = (Float_t)TMath::Nint(phi3);
1341 if(phi3 > 360.) phi3 -= 360.;
1345 // "holes"->End plate
1347 xc = rCenter*TMath::Cos(phi3*kDegrad);
1348 yc = rCenter*TMath::Sin(phi3*kDegrad);
1350 AliMatrix(idrotm[nRotMat], theta1, phi1, theta2, phi2, theta3, phi3);
1352 gMC->Gspos("TESR",ns+1,"TPMW",xc,yc,0.,idrotm[nRotMat],"ONLY");
1354 // TSCE->TSWC (services wheel volumes)
1356 xc = 166.142*TMath::Cos(phi3*kDegrad);
1357 yc = 166.142*TMath::Sin(phi3*kDegrad);
1359 gMC->Gspos("TSCE",ns+1,"TSWC",xc,yc,0.,idrotm[nRotMat],"ONLY");
1360 gMC->Gspos("TWES",ns+1,"TSSW",xc,yc,0.,idrotm[nRotMat],"ONLY");
1363 // readout chambers->TDGN (drift gas)
1365 xc = rInner*TMath::Cos(phi3*kDegrad);
1366 yc = rInner*TMath::Sin(phi3*kDegrad);
1368 gMC->Gspos("TIRC",ns+1,"TDGN",xc,yc,252.,idrotm[nRotMat],"ONLY");
1370 xc = rOuter*TMath::Cos(phi3*kDegrad);
1371 yc = rOuter*TMath::Sin(phi3*kDegrad);
1373 gMC->Gspos("TORC",ns+1,"TDGN",xc,yc,252.1,idrotm[nRotMat],"ONLY");
1377 theta2 = 0.; // reflection
1379 AliMatrix(idrotm[nRotMat], theta1, phi1, theta2, phi2, theta3, phi3);
1381 xc = rInner*TMath::Cos(phi3*kDegrad);
1382 yc = rInner*TMath::Sin(phi3*kDegrad);
1384 gMC->Gspos("TIRC",ns+nInnerSector+1,"TDGN",xc,yc,-252.,idrotm[nRotMat],"ONLY");
1386 xc = rOuter*TMath::Cos(phi3*kDegrad);
1387 yc = rOuter*TMath::Sin(phi3*kDegrad);
1389 gMC->Gspos("TORC",ns+nOuterSector+1,"TDGN",xc,yc,-252.1,idrotm[nRotMat],"ONLY");
1396 gMC->Gspos("TPMW",1,"TPC ",0.,0.,256.6,0,"ONLY");
1397 gMC->Gspos("TPMW",2,"TPC ",0.,0.,-256.6,idrotm[0],"ONLY");
1399 //---------------------------------------------------------
1400 // Tpc High Voltage Membrane - 100 microns of mylar
1401 //---------------------------------------------------------
1407 gMC->Gsvolu("THVM","TUBE",idtmed[8],dm,3);
1409 gMC->Gspos("THVM",1,"TDGN",0.,0.,0.,0,"ONLY");
1411 // Tpc High Voltage membrane Holders
1413 gMC->Gsvolu("THVH","TUBE",idtmed[4],dm,0);
1423 gMC->Gsposp("THVH",1,"TDGN",0.,0.,0.,0,"ONLY",dm,3);
1431 gMC->Gsposp("THVH",2,"TDGN",0.,0.,0.,0,"ONLY",dm,3);
1433 //----------------------------------------------------------
1434 // TPc Support Rods - MAKROLON
1435 //----------------------------------------------------------
1440 gMC->Gsvolu("TPSR","TUBE",idtmed[7],dm,0); // inner and outer rods differ
1443 for(Int_t nrod=0;nrod<18;nrod++){
1444 Float_t angle=innerOpenAngle*(Float_t)nrod;
1446 xc=81.5*TMath::Cos(angle);
1447 yc=81.5*TMath::Sin(angle);
1451 gMC->Gsposp("TPSR",nrod+1,"TDGN",xc,yc,126.9,0,"ONLY",dm,3);
1452 gMC->Gsposp("TPSR",nrod+19,"TDGN",xc,yc,-126.9,0,"ONLY",dm,3);
1456 xc=254.25*TMath::Cos(angle);
1457 yc=254.25*TMath::Sin(angle);
1459 // rod number 54 contans the HV cable
1462 gMC->Gsposp("TPSR",nrod+37,"TDGN",xc,yc,127.,0,"ONLY",dm,3);
1463 gMC->Gsposp("TPSR",nrod+54,"TDGN",xc,yc,-127.,0,"ONLY",dm,3);
1468 //----------------------------------------------------------
1469 // Tpc High Voltage Rod - MAKROLON + Copper cable
1470 //----------------------------------------------------------
1472 // rod with cable (Left)
1478 gMC->Gsvolu("THVL","TUBE",idtmed[7],dm,3);
1486 gMC->Gsvolu("THVC","TUBE",idtmed[10],dm,3);
1494 gMC->Gsvolu("THVE","TUBE",idtmed[1],dm,3);
1496 gMC->Gspos("THVC",1,"THVL",0.,0.,0.,0,"ONLY");
1497 gMC->Gspos("THVE",1,"THVL",0.,0.,0.,0,"ONLY");
1499 // rod without cable
1505 gMC->Gsvolu("THVR","TUBE",idtmed[7],dm,3);
1507 gMC->Gspos("THVL",1,"TDGN",xc,yc,-127.,0,"ONLY");
1508 gMC->Gspos("THVR",1,"TDGN",xc,yc,127.,0,"ONLY");
1510 gMC->Gspos("TDGN",1,"TPC ",0.,0.,0.,0,"ONLY");
1512 // services wheel cover -> wheel
1515 gMC->Gspos("TSWC",1,"TSSW",0.,0.,4.5,0,"ONLY");
1516 gMC->Gspos("TSWC",2,"TSSW",0.,0.,-4.5,0,"ONLY");
1519 // put the wheel into the TPC
1521 gMC->Gspos("TSSW",1,"TPC ",0.,0.,278.7,0,"ONLY");
1522 gMC->Gspos("TSSW",2,"TPC ",0.,0.,-278.7,0,"ONLY");
1526 gMC->Gsord("TPMW",6);
1527 gMC->Gsord("TSSW",6);
1528 gMC->Gsord("TSWC",6);
1530 // put the TPC into ALIC (main mother volume)
1532 gMC->Gspos("TPC ",1,"ALIC",0.,0.,0.,0,"ONLY");
1534 } // end of function
1537 //_____________________________________________________________________________
1538 void AliTPCv0::CreateMaterials()
1541 // Define materials for the TPC
1543 AliTPC::CreateMaterials();
1546 //_____________________________________________________________________________
1547 void AliTPCv0::DrawDetector()
1550 // Draw a shaded view of the Time Projection Chamber version 0
1553 // Set everything unseen
1554 gMC->Gsatt("*", "seen", -1);
1556 // Set ALIC mother transparent
1557 gMC->Gsatt("ALIC","SEEN",0);
1559 // Set the volumes visible
1560 gMC->Gsatt("TPC ","SEEN",0);
1561 gMC->Gsatt("TOIN","SEEN",1);
1562 gMC->Gsatt("TOIN","COLO",7);
1563 gMC->Gsatt("TOCV","SEEN",1);
1564 gMC->Gsatt("TOCV","COLO",4);
1565 gMC->Gsatt("TSA1","SEEN",0);
1566 gMC->Gsatt("TSA2","SEEN",0);
1567 gMC->Gsatt("TSA3","SEEN",0);
1568 gMC->Gsatt("TSA4","SEEN",0);
1569 gMC->Gsatt("TSA5","SEEN",0);
1570 gMC->Gsatt("TOFC","SEEN",1);
1571 gMC->Gsatt("TOFC","COLO",4);
1572 gMC->Gsatt("TSA6","SEEN",0);
1573 gMC->Gsatt("TSA7","SEEN",0);
1574 gMC->Gsatt("TSA8","SEEN",0);
1575 gMC->Gsatt("TIIN","SEEN",1);
1576 gMC->Gsatt("TIIN","COLO",7);
1577 gMC->Gsatt("TII1","SEEN",0);
1578 gMC->Gsatt("TIFC","SEEN",1);
1579 gMC->Gsatt("TIFC","COLO",4);
1580 gMC->Gsatt("TSA9","SEEN",0);
1581 gMC->Gsatt("TS10","SEEN",0);
1582 gMC->Gsatt("TS11","SEEN",0);
1583 gMC->Gsatt("TS12","SEEN",0);
1584 gMC->Gsatt("TS13","SEEN",0);
1585 gMC->Gsatt("TS14","SEEN",0);
1586 gMC->Gsatt("TICC","SEEN",0);
1587 gMC->Gsatt("TICM","SEEN",0);
1588 gMC->Gsatt("TS15","SEEN",0);
1589 gMC->Gsatt("TS16","SEEN",0);
1590 gMC->Gsatt("TS17","SEEN",0);
1591 gMC->Gsatt("TS18","SEEN",0);
1592 gMC->Gsatt("TS19","SEEN",0);
1593 gMC->Gsatt("TPJ1","SEEN",0);
1594 gMC->Gsatt("TPJ2","SEEN",0);
1595 gMC->Gsatt("TICS","SEEN",0);
1596 gMC->Gsatt("TDGN","SEEN",0);
1597 gMC->Gsatt("TIRC","SEEN",0);
1598 gMC->Gsatt("TIC1","SEEN",1);
1599 gMC->Gsatt("TIPP","SEEN",0);
1600 gMC->Gsatt("TIC3","SEEN",0);
1601 gMC->Gsatt("TRCE","SEEN",0);
1602 gMC->Gsatt("TPSC","SEEN",0);
1603 gMC->Gsatt("TPCC","SEEN",0);
1604 gMC->Gsatt("TORC","SEEN",0);
1605 gMC->Gsatt("TOPP","SEEN",0);
1606 gMC->Gsatt("TOC3","SEEN",0);
1607 gMC->Gsatt("TOC1","SEEN",1);
1608 gMC->Gsatt("TSSW","SEEN",1);
1609 gMC->Gsatt("TSWC","SEEN",1);
1610 gMC->Gsatt("TSSW","COLO",3);
1611 gMC->Gsatt("TSWC","COLO",3);
1612 gMC->Gsatt("TSCE","COLO",6);
1613 gMC->Gsatt("TSCE","SEEN",1);
1614 gMC->Gsatt("TWES","SEEN",0);
1615 gMC->Gsatt("TSWB","SEEN",0);
1616 gMC->Gsatt("TPEL","SEEN",0);
1617 gMC->Gsatt("TPMW","SEEN",1);
1618 gMC->Gsatt("TESR","SEEN",1);
1619 gMC->Gsatt("TPMW","COLO",12);
1620 gMC->Gsatt("TIC1","COLO",5);
1621 gMC->Gsatt("TOC1","COLO",5);
1622 gMC->Gsatt("TESB","SEEN",0);
1623 gMC->Gsatt("THVM","SEEN",1);
1624 gMC->Gsatt("THVM","COLO",11);
1625 gMC->Gsatt("THVH","SEEN",0);
1626 gMC->Gsatt("TPSR","SEEN",0);
1627 gMC->Gsatt("THVL","SEEN",0);
1628 gMC->Gsatt("THVC","SEEN",0);
1629 gMC->Gsatt("THVE","SEEN",0);
1630 gMC->Gsatt("THVR","SEEN",0);
1633 gMC->Gdopt("hide", "on");
1634 gMC->Gdopt("shad", "on");
1635 gMC->Gsatt("*", "fill", 7);
1636 gMC->SetClipBox(".");
1637 gMC->SetClipBox("TPMW",-300,300,-300,300,254.,270.);
1638 gMC->SetClipBox("TESR",-300,300,-300,300,254.,270.);
1639 gMC->SetClipBox("TSSW",-300,300,-300,300,283.,284.);
1640 gMC->SetClipBox("TSWC",-300,300,-300,300,283.,284.);
1641 gMC->SetClipBox("*", 0, 300, -300, 300, -290, 290);
1642 gMC->DefaultRange();
1643 gMC->Gdraw("alic", 40, 30, 0, 12, 9.5, .025, .025);
1644 gMC->Gdhead(1111, "Time Projection Chamber");
1645 gMC->Gdman(18, 4, "MAN");
1646 gMC->Gdopt("hide","off");
1649 //_____________________________________________________________________________
1650 void AliTPCv0::Init()
1653 // Initialise Time Projection Chamber version 0
1655 printf("TPC version 0 initialized\n");
1658 //_____________________________________________________________________________
1659 void AliTPCv0::StepManager()
1662 // Procedure called at each step in the TPC