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.17.2.4 2000/06/26 07:39:42 kowal2
19 Changes to obey the coding rules
21 Revision 1.17.2.3 2000/06/25 08:38:41 kowal2
22 Splitted from AliTPCtracking
24 Revision 1.17.2.2 2000/06/16 12:58:13 kowal2
25 Changed parameter settings
27 Revision 1.17.2.1 2000/06/09 07:15:07 kowal2
29 Defaults loaded automatically (hard-wired)
30 Optional parameters can be set via macro called in the constructor
32 Revision 1.17 2000/05/15 10:00:30 kowal2
33 Corrected bug in the TPC geometry, thanks to Ivana Hrivnacova
35 Revision 1.16 2000/04/17 09:37:33 kowal2
36 removed obsolete AliTPCDigitsDisplay.C
38 Revision 1.15.8.2 2000/04/10 08:29:48 kowal2
40 Different pad geometry for different sectors
41 Updated readouch chambers geometry
43 Revision 1.15.8.1 2000/04/10 07:56:53 kowal2
44 Not used anymore - removed
46 Revision 1.15 1999/11/04 17:28:07 fca
47 Correct barrel part of HV Degrader
49 Revision 1.14 1999/10/08 06:27:23 fca
50 Corrected bug in the HV degrader geometry, thanks to G.Tabary
52 Revision 1.13 1999/10/04 13:39:54 fca
53 Correct array index problem
55 Revision 1.12 1999/09/29 09:24:34 fca
56 Introduction of the Copyright and cvs Log
61 ///////////////////////////////////////////////////////////////////////////////
63 // Time Projection Chamber version 1 -- detailed TPC and fast simulation //
67 <img src="picts/AliTPCv1Class.gif">
72 ///////////////////////////////////////////////////////////////////////////////
75 #include <TGeometry.h>
87 #include "AliTPCParam.h"
88 #include "AliTPCParamSR.h"
89 #include "AliTPCDigitsArray.h"
90 #include <TInterpreter.h>
94 //_____________________________________________________________________________
95 AliTPCv1::AliTPCv1(const char *name, const char *title)
96 :AliTPC(name, title) {
98 // Standard constructor for Time Projection Chamber
102 SetGasMixt(2,20,10,-1,0.9,0.1,0.);
105 fTPCParam->Write(fTPCParam->GetTitle());
108 //_____________________________________________________________________________
109 void AliTPCv1::CreateGeometry()
112 // Creates geometry for Time Projection Chamber version 1
113 // Detailed geometry -- Fast simulation
118 <img src="picts/AliTPCv1.gif">
123 <img src="picts/AliTPCv1Tree.gif">
128 Int_t *idtmed = fIdtmed->GetArray();
136 // ----------------------------------------------------
137 // FIELD CAGE WITH ENDCAPS - G10
138 // THIS IS ALSO A TPC MOTHER VOLUME
139 // ----------------------------------------------------
145 gMC->Gsvolu("TPC ", "TUBE", idtmed[8], dm, 3);
147 //-----------------------------------------------------
148 // Endcap cover c-fibre 0.86% X0
149 //-----------------------------------------------------
155 gMC->Gsvolu("TPEC","TUBE",idtmed[10],dm,3);
157 //-----------------------------------------------------
158 // Drift gas , leave 2 cm at the outer radius
160 //-----------------------------------------------------
166 gMC->Gsvolu("TGAS", "TUBE", idtmed[3], dm, 3);
169 //------------------------------------------------------
170 // membrane holder - carbon fiber
171 //------------------------------------------------------
174 gMC->Gsvolu("TPMH","TUBE",idtmed[6],dm,0);
180 gMC->Gsposp("TPMH",1,"TGAS",0.,0.,0.,0,"ONLY",dm,3);
186 gMC->Gsposp("TPMH",2,"TGAS",0.,0.,0.,0,"ONLY",dm,3);
188 //----------------------------------------------------------
189 // HV membrane - 25 microns of mylar
190 //----------------------------------------------------------
196 gMC->Gsvolu("TPHV","TUBE",idtmed[5],dm,3);
198 gMC->Gspos("TPHV",1,"TGAS",0.,0.,0.,0,"ONLY");
200 gMC->Gspos("TGAS",1,"TPC ",0.,0.,0.,0,"ONLY");
202 //----------------------------------------------------------
203 // "side" gas volume, the same as the drift gas
204 // the readout chambers are placed there.
205 //----------------------------------------------------------
209 dm[2] = 0.5*(275. - 250.);
211 gMC->Gsvolu("TPSG", "TUBE", idtmed[2], dm, 3);
213 Float_t zSide = dm[2]; // 1/2 of the side gas thickness
215 //-----------------------------------------------------------
216 // Readout chambers , 25% of X0, I use Al as the material
217 //-----------------------------------------------------------
219 Float_t innerOpenAngle = fTPCParam->GetInnerAngle();
220 Float_t outerOpenAngle = fTPCParam->GetOuterAngle();
222 Float_t innerAngleShift = fTPCParam->GetInnerAngleShift();
223 Float_t outerAngleShift = fTPCParam->GetOuterAngleShift();
226 Int_t nInnerSector = fTPCParam->GetNInnerSector()/2;
227 Int_t nOuterSector = fTPCParam->GetNOuterSector()/2;
230 Float_t inSecLowEdge = fTPCParam->GetInnerRadiusLow();
231 Float_t inSecUpEdge = fTPCParam->GetInnerRadiusUp();
233 Float_t ouSecLowEdge = fTPCParam->GetOuterRadiusLow();
234 Float_t ouSecUpEdge = fTPCParam->GetOuterRadiusUp();
236 Float_t secThick = 2.225; // Al
240 Float_t lowEdge = fTPCParam->GetInnerFrameSpace();
242 dm[0] = inSecLowEdge*TMath::Tan(0.5*innerOpenAngle)-lowEdge;
243 dm[1] = inSecUpEdge*TMath::Tan(0.5*innerOpenAngle)-lowEdge;
244 dm[2] = 0.5*secThick;
245 dm[3] = 0.5*(inSecUpEdge-inSecLowEdge);
247 Float_t xCenterS = inSecLowEdge+dm[3];
249 gMC->Gsvolu("TRCS", "TRD1", idtmed[0], dm, 4);
253 Float_t upEdge = fTPCParam->GetOuterFrameSpace();
255 dm[0] = ouSecLowEdge*TMath::Tan(0.5*outerOpenAngle)-upEdge;
256 dm[1] = ouSecUpEdge*TMath::Tan(0.5*outerOpenAngle)-upEdge;
257 dm[2] = 0.5*secThick;
258 dm[3] = 0.5*(ouSecUpEdge-ouSecLowEdge);
260 Float_t xCenterL = ouSecLowEdge+dm[3];
262 gMC->Gsvolu("TRCL", "TRD1", idtmed[0], dm, 4);
264 Float_t z1 = -zSide + secThick*0.5;
266 //------------------------------------------------------------------
267 // S sectors - "gas sectors" (TRD1)
268 //------------------------------------------------------------------
270 dm[0] = inSecLowEdge*TMath::Tan(0.5*innerOpenAngle)-0.01;
271 dm[1] = inSecUpEdge*TMath::Tan(0.5*innerOpenAngle)-0.01;
272 dm[2] = 0.5*(250. - 0.001);
273 dm[3] = 0.5*(inSecUpEdge-inSecLowEdge);
275 gMC->Gsvolu("TSGA", "TRD1", idtmed[3], dm, 4); // nonsensitive
277 //------------------------------------------------------------------
278 // sensitive strips - "pad rows"
279 //------------------------------------------------------------------
284 Float_t stripThick = 0.01; // 100 microns
287 gMC->Gsvolu("TSST", "TRD1", idtmed[4], dm, 0);
289 dm[2] = 0.5*(250. - 0.002);
290 dm[3] = 0.5 * stripThick;
295 dead = fTPCParam->GetInnerWireMount();
297 for (ns = 0; ns < fTPCParam->GetNRowLow(); ns++) {
299 r1 = fTPCParam->GetPadRowRadiiLow(ns);
300 r2 = r1 + stripThick;
301 dm[0] = r1 * TMath::Tan(0.5*innerOpenAngle) - dead;
302 dm[1] = r2 * TMath::Tan(0.5*innerOpenAngle) - dead;
304 zz = -inSecLowEdge -0.5*(inSecUpEdge-inSecLowEdge);
308 gMC->Gsposp("TSST", ns+1, "TSGA", 0., 0., zz, 0, "ONLY", dm, 4);
313 //-----------------------------------------------------------------
314 // L sectors - "gas sectors" (PGON to avoid overlaps)
315 //-----------------------------------------------------------------
317 dm[0] = 360.*kDegrad - 0.5*outerOpenAngle;
319 dm[0] = (Float_t)TMath::Nint(dm[0]);
321 dm[1] = outerOpenAngle*kRaddeg;
322 dm[1] = (Float_t)TMath::Nint(dm[1]);
328 dm[5] = ouSecLowEdge;
329 dm[6] = 252.*TMath::Cos(0.5*outerOpenAngle)-0.002;
336 dm[11] = ouSecLowEdge;
337 dm[12] = ouSecUpEdge;
343 gMC->Gsvolu("TLGA","PGON",idtmed[3],dm,16);
345 //------------------------------------------------------------------
346 // sensitive strips - "pad rows"
347 //------------------------------------------------------------------
349 Float_t rmax = dm[6];
353 gMC->Gsvolu("TLST", "PGON", idtmed[4], dm, 0);
355 dm[0] = 360.*kDegrad - 0.5*outerOpenAngle;
357 dm[0] = (Float_t)TMath::Nint(dm[0]);
359 dm[1] = outerOpenAngle*kRaddeg;
360 dm[1] = (Float_t)TMath::Nint(dm[1]);
367 dead = fTPCParam->GetOuterWireMount();
369 Float_t xx = dead/TMath::Tan(0.5*outerOpenAngle);
371 for(ns=0;ns<fTPCParam->GetNRowUp();ns++){
373 r1 = fTPCParam->GetPadRowRadiiUp(ns)-xx;
374 r2 = r1 + stripThick;
389 gMC->Gsposp("TLST",ns+1,"TLGA",xx,0.,0.,0,"ONLY",dm,10);
393 //------------------------------------------------------------------
394 // Positioning of the S-sector readout chambers
395 //------------------------------------------------------------------
397 Float_t zs = 0.5*(250.+0.002);
399 Float_t theta1,theta2,theta3;
400 Float_t phi1,phi2,phi3;
404 for(ns=0;ns<nInnerSector;ns++){
406 phi1 = ns * innerOpenAngle + 270.*kDegrad + innerAngleShift;
407 phi1 *= kRaddeg; // in degrees
409 phi1 = (Float_t)TMath::Nint(phi1);
411 if (phi1 > 360.) phi1 -= 360.;
417 phi3 = ns * innerOpenAngle + innerAngleShift;
418 phi3 *= kRaddeg; // in degrees
420 phi3 = (Float_t)TMath::Nint(phi3);
422 if(phi3 > 360.) phi3 -= 360.;
426 alpha = phi3*kDegrad;
428 x = xCenterS * TMath::Cos(alpha);
429 y = xCenterS * TMath::Sin(alpha);
431 AliMatrix(idrotm[nRotMat], theta1, phi1, theta2, phi2, theta3, phi3);
433 gMC->Gspos("TRCS", ns+1, "TPSG", x, y, z1, idrotm[nRotMat], "ONLY");
435 gMC->Gspos("TSGA",ns+1,"TGAS",x,y,zs,idrotm[nRotMat], "ONLY");
436 gMC->Gspos("TSGA",ns+1+nInnerSector,"TGAS",x,y,-zs,idrotm[nRotMat], "ONLY");
442 //-------------------------------------------------------------------
443 // Positioning of the L-sectors readout chambers
444 //-------------------------------------------------------------------
446 for(ns=0;ns<nOuterSector;ns++){
447 phi1 = ns * outerOpenAngle + 270.*kDegrad + outerAngleShift;
448 phi1 *= kRaddeg; // in degrees
450 phi1 = (Float_t)TMath::Nint(phi1);
453 if (phi1 > 360.) phi1 -= 360.;
458 phi3 = ns * outerOpenAngle+outerAngleShift;
459 phi3 *= kRaddeg; // in degrees
461 phi3 = (Float_t)TMath::Nint(phi3);
464 if(phi3 > 360.) phi3 -= 360.;
468 alpha = phi3*kDegrad;
470 x = xCenterL * TMath::Cos(alpha);
471 y = xCenterL * TMath::Sin(alpha);
473 AliMatrix(idrotm[nRotMat], theta1, phi1, theta2, phi2, theta3, phi3);
476 gMC->Gspos("TRCL", ns+1, "TPSG", x, y, z1, idrotm[nRotMat], "ONLY");
482 //-------------------------------------------------------------------
483 // Positioning of the L-sectors (gas sectors)
484 //-------------------------------------------------------------------
486 for(ns=0;ns<nOuterSector;ns++){
488 phi1 = ns*outerOpenAngle + outerAngleShift;
491 phi1 = (Float_t)TMath::Nint(phi1);
492 if(phi1>360.) phi1 -= 360.;
497 if(phi2>360.) phi2 -= 360.;
504 alpha = phi1*kDegrad;
507 AliMatrix(idrotm[nRotMat], theta1, phi1, theta2, phi2, theta3, phi3);
510 gMC->Gspos("TLGA",ns+1,"TGAS" ,0.,0.,0.,idrotm[nRotMat],"ONLY");
519 AliMatrix(idrotm[nRotMat], theta1, phi1, theta2, phi2, theta3, phi3);
521 gMC->Gspos("TLGA",ns+1+nOuterSector,"TGAS" ,0.,0.,0.,idrotm[nRotMat],"ONLY");
526 Float_t z0 = zSide - 0.95;
528 gMC->Gspos("TPEC",1,"TPSG",0.,0.,z0,0,"ONLY");
530 // ==========================================================
532 // ==========================================================
535 // auxilary structures
539 gMC->Gsvolu("TPWI","TUBE",idtmed[24],dm,0); // "air"
541 // ----------------------------------------------------------
542 // Large wheel -> positioned in the TPC
543 // ----------------------------------------------------------
546 z0 = 263.5; // TPC length - 1/2 spoke wheel width
552 gMC->Gsvolu("TPWL", "TUBE", idtmed[0], dm, 3);
558 gMC->Gsposp("TPWI",1,"TPWL",0.,0.,0.,0,"ONLY",dm,3);
560 gMC->Gspos("TPWL", 1, "TPC ", 0, 0, z0, 0, "ONLY");
561 gMC->Gspos("TPWL", 2, "TPC ", 0, 0, -z0, 0, "ONLY");
564 // Outer vessel + CO2 HV degrader
571 gMC->Gsvolu("TPCO","TUBE",idtmed[12],dm,3);
576 gMC->Gsvolu("TPOV","TUBE",idtmed[10],dm,3);
578 gMC->Gspos("TPOV",1,"TPCO",0.,0.,0.,0,"ONLY");
583 gMC->Gspos("TPCO",1,"TPC ",0.,0.,0.,0,"ONLY");
586 //----------------------------------------------------------
587 // Small wheel -> positioned in "side gas
588 //----------------------------------------------------------
594 gMC->Gsvolu("TPWS", "TUBE", idtmed[0], dm, 3);
600 gMC->Gsvolu("TPW1", "TUBE", idtmed[2], dm, 3);
602 gMC->Gspos("TPW1", 1, "TPWS", 0., 0., 0., 0, "ONLY");
604 z0 = 1.; // spoke wheel is shifted w.r.t. center of the "side gas"
606 gMC->Gspos("TPWS", 1, "TPSG", 0, 0, z0, 0, "ONLY");
615 gMC->Gsvolu("TPS1","TUBE",idtmed[0],dm,3);
619 gMC->Gsvolu("TPS2","TUBE",idtmed[24],dm,3);
621 gMC->Gspos("TPS2",1,"TPS1",0.,0.,0.,0,"ONLY");
625 gMC->Gspos("TPS1",1,"TPC ",0.,0.,z0,0,"ONLY");
626 gMC->Gspos("TPS1",2,"TPC ",0.,0.,-z0,0,"ONLY");
634 gMC->Gsvolu("TPG2","TUBE",idtmed[8],dm,3);
638 gMC->Gspos("TPG2",1,"TPC ",0.,0.,z0,0,"ONLY");
639 gMC->Gspos("TPG2",2,"TPC ",0.,0.,-z0,0,"ONLY");
642 //---------------------------------------------------------
643 // central wheel 6 (radial direction) x 4 (along z) cm2
644 //---------------------------------------------------------
650 gMC->Gsvolu("TPWC","TUBE",idtmed[0],dm,3);
656 gMC->Gsposp("TPWI",2,"TPWC",0.,0.,0.,0,"ONLY",dm,3);
658 z0 = zSide - 1.9 - 2.;
660 gMC->Gspos("TPWC",1,"TPSG",0.,0.,z0,0,"ONLY");
664 gMC->Gsvolu("TPSE","BOX ",idtmed[24],dm,0); // "empty" part of the spoke
667 //---------------------------------------------------------
668 // inner spokes (nSectorInner)
669 //---------------------------------------------------------
671 dm[0] = 0.5*(139.9-82.1);
675 Float_t x1 = dm[0]+82.;
677 gMC->Gsvolu("TPSI","BOX",idtmed[0],dm,3);
682 gMC->Gsposp("TPSE",1,"TPSI",0.,0.,0.,0,"ONLY",dm,3);
684 for(ns=0;ns<nInnerSector;ns++){
686 phi1 = 0.5*innerOpenAngle + ns*innerOpenAngle + innerAngleShift;
690 phi1 = (Float_t)TMath::Nint(phi1);
691 if(phi1>360.) phi1 -= 360.;
694 if(phi2>360.) phi2 -= 360.;
699 alpha = phi1 * kDegrad;
700 x = x1 * TMath::Cos(alpha);
701 y = x1 * TMath::Sin(alpha);
703 AliMatrix(idrotm[nRotMat],theta1,phi1,theta2,phi2,theta3,phi3);
705 gMC->Gspos("TPSI",ns+1,"TPSG",x,y,z0,idrotm[nRotMat],"ONLY");
711 //-------------------------------------------------------------
712 // outer spokes (nSectorOuter)
713 //-------------------------------------------------------------
715 dm[0] = 0.5*(257.9-146.1);
721 gMC->Gsvolu("TPSO","BOX ",idtmed[0],dm,3);
726 gMC->Gsposp("TPSE",2,"TPSO",0.,0.,0.,0,"ONLY",dm,3);
728 for(ns=0;ns<nOuterSector;ns++){
730 phi1 = 0.5*outerOpenAngle + ns*outerOpenAngle + outerAngleShift;
734 phi1 = (Float_t)TMath::Nint(phi1);
735 if(phi1>360.) phi1 -= 360.;
738 if(phi2>360.) phi2 -= 360.;
743 alpha = phi1 * kDegrad;
744 x = x1 * TMath::Cos(alpha);
745 y = x1 * TMath::Sin(alpha);
747 AliMatrix(idrotm[nRotMat],theta1,phi1,theta2,phi2,theta3,phi3);
749 gMC->Gspos("TPSO",ns+1,"TPSG",x,y,z0,idrotm[nRotMat],"ONLY");
757 // --------------------------------------------------------
758 // put the readout chambers into the TPC
759 // --------------------------------------------------------
768 AliMatrix(idrotm[nRotMat], theta1, phi1, theta2, phi2, theta3, phi3);
772 gMC->Gspos("TPSG", 1, "TPC ", 0, 0, z0, 0, "ONLY");
773 gMC->Gspos("TPSG", 2, "TPC ", 0, 0, -z0, idrotm[nRotMat], "ONLY");
775 gMC->Gspos("TPC ", 1, "ALIC", 0, 0, 0, 0, "ONLY");
777 //----------------------------------------------------
778 // Inner vessel and HV degrader
779 //----------------------------------------------------
801 gMC->Gsvolu("TPVD", "PCON", idtmed[12], dm, 15); // CO2
818 gMC->Gsvolu("TIVC","PCON",idtmed[11],dm,9); // C-fibre
820 gMC->Gspos("TIVC",1,"TPVD",0.,0.,0.,0,"ONLY");
821 gMC->Gspos("TIVC",2,"TPVD",0.,0.,0.,idrotm[nRotMat],"ONLY");
829 gMC->Gsvolu("TIVB","TUBE",idtmed[9],dm,3);
831 gMC->Gspos("TIVB",1,"TPVD",0.,0.,0.,0,"ONLY");
833 gMC->Gspos("TPVD",1,"ALIC",0.,0.,0.,0,"ONLY");
839 // ---------------------------------------------------
841 // ---------------------------------------------------
842 gMC->Gsord("TGAS", 6);
843 gMC->Gsord("TPSG", 6);
844 gMC->Gsord("TSGA", 3);
845 gMC->Gsord("TLGA", 4);
850 //_____________________________________________________________________________
851 void AliTPCv1::DrawDetector()
854 // Draw a shaded view of the Time Projection Chamber version 1
857 // Set everything unseen
858 gMC->Gsatt("*", "seen", -1);
860 // Set ALIC mother transparent
861 gMC->Gsatt("ALIC","SEEN",0);
863 // Set the volumes visible
864 gMC->Gsatt("TPC","SEEN",0);
865 gMC->Gsatt("TGAS","SEEN",0);
866 gMC->Gsatt("TPSG","SEEN",0);
867 gMC->Gsatt("TPHV","SEEN",1);
868 gMC->Gsatt("TPMH","SEEN",1);
869 gMC->Gsatt("TPEC","SEEN",0);
870 gMC->Gsatt("TRCS","SEEN",1);
871 gMC->Gsatt("TRCL","SEEN",1);
872 gMC->Gsatt("TPWL","SEEN",1);
873 gMC->Gsatt("TPWI","SEEN",1);
874 gMC->Gsatt("TPWS","SEEN",1);
875 gMC->Gsatt("TPW1","SEEN",1);
876 gMC->Gsatt("TPS1","SEEN",1);
877 gMC->Gsatt("TPS2","SEEN",1);
878 gMC->Gsatt("TPG1","SEEN",1);
879 gMC->Gsatt("TPG2","SEEN",1);
880 gMC->Gsatt("TPWC","SEEN",1);
881 gMC->Gsatt("TPSI","SEEN",1);
882 gMC->Gsatt("TPSO","SEEN",1);
883 gMC->Gsatt("TPCO","SEEN",1);
884 gMC->Gsatt("TPOV","SEEN",1);
885 gMC->Gsatt("TPVD","SEEN",1);
887 gMC->Gdopt("hide", "on");
888 gMC->Gdopt("shad", "on");
889 gMC->Gsatt("*", "fill", 7);
890 gMC->SetClipBox(".");
891 gMC->SetClipBox("*", 0, 1000, -1000, 1000, -1000, 1000);
893 gMC->Gdraw("alic", 40, 30, 0, 12, 9.5, .025, .025);
894 gMC->Gdhead(1111, "Time Projection Chamber");
895 gMC->Gdman(18, 4, "MAN");
896 gMC->Gdopt("hide","off");
899 //_____________________________________________________________________________
900 void AliTPCv1::CreateMaterials()
903 // Define materials for Time Projection Chamber
905 AliTPC::CreateMaterials();
908 //_____________________________________________________________________________
909 void AliTPCv1::Init()
912 // Initialises TPC detector after it has been created
915 fIdSens1=gMC->VolId("TLST"); // L-sector
916 fIdSens2=gMC->VolId("TSST"); // S-sector
918 printf("TPC version 1 initialized\n");
921 //_____________________________________________________________________________
922 void AliTPCv1::StepManager()
925 // Called at every step in the Time Projection Chamber
931 TClonesArray &lhits = *fHits;
935 if(gMC->TrackCharge() && gMC->IsTrackEntering()) {
937 // Only entering charged tracks
939 if((id=gMC->CurrentVolID(copy))==fIdSens1) {
943 vol[1]=copy-1; // row
944 id=gMC->CurrentVolOffID(1,copy);
945 vol[0]=copy+fTPCParam->GetNInnerSector()-1; // sector
947 //I.Belikov's modification
949 gMC->TrackMomentum(p);
953 hits[3]=0.; // this hit has no energy loss
954 new(lhits[fNhits++]) AliTPChit(fIshunt,gAlice->CurrentTrack(),vol,hits);
956 gMC->TrackPosition(p);
960 hits[3]=0.; // this hit has no energy loss
961 new(lhits[fNhits++]) AliTPChit(fIshunt,gAlice->CurrentTrack(),vol,hits);
963 //end of I.Belikov's modification
964 } else if(id==fIdSens2) {
968 vol[1]=copy-1; // row
969 id=gMC->CurrentVolOffID(1,copy); // sector
972 //I.Belikov's modification
974 gMC->TrackMomentum(p);
978 hits[3]=0.; // this hit has no energy loss
979 new(lhits[fNhits++]) AliTPChit(fIshunt,gAlice->CurrentTrack(),vol,hits);
981 gMC->TrackPosition(p);
985 hits[3]=0.; // this hit has no energy loss
986 new(lhits[fNhits++]) AliTPChit(fIshunt,gAlice->CurrentTrack(),vol,hits);
988 //end of I.Belikov's modification
992 gMC->TrackPosition(p);
993 for(i=0;i<3;++i) hits[i]=p[i];
994 hits[3]=1; //I'd like to have something positive here (I.Belikov)
995 new(lhits[fNhits++]) AliTPChit(fIshunt,gAlice->CurrentTrack(),vol,hits);