]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TPC/AliTPCv3.cxx
Introduce standard Author and Modified fields
[u/mrichter/AliRoot.git] / TPC / AliTPCv3.cxx
index cacd8aff0403ab3ffea27f7d754d28353367c810..b907e4e9e3530268636e6b8c34f92c1d1d5207b7 100644 (file)
 
 /*
 $Log$
+Revision 1.10  1999/10/14 16:52:08  fca
+Only use PDG codes and not GEANT ones
+
+Revision 1.9  1999/10/08 06:27:23  fca
+Corrected bug in the HV degrader geometry, thanks to G.Tabary
+
+Revision 1.8  1999/10/04 13:39:55  fca
+Correct array index problem
+
 Revision 1.7  1999/09/29 09:24:34  fca
 Introduction of the Copyright and cvs Log
 
@@ -41,6 +50,7 @@ Introduction of the Copyright and cvs Log
 #include "AliConst.h"
 #include "AliTPCD.h"
 #include "AliTPCParam.h"
+#include "AliPDG.h"
 
 ClassImp(AliTPCv3)
  
@@ -568,7 +578,7 @@ void AliTPCv3::CreateGeometry()
   dm[7] = 50.;
   dm[8] = 76.;
 
-  dm[9] = -64.5;
+  dm[9] = 64.5;
   dm[10] = 50.;
   dm[11] = 76.;
 
@@ -602,7 +612,7 @@ void AliTPCv3::CreateGeometry()
 
   dm[0] = 50.;
   dm[1] = 50.5;
-  dm[2] = 32.25;
+  dm[2] = 64.5;
 
   gMC->Gsvolu("TIVB","TUBE",idtmed[9],dm,3);
 
@@ -791,7 +801,8 @@ void AliTPCv3::StepManager()
   Float_t ptot=mom.Rho();
   Float_t beta_gamma = ptot/gMC->TrackMass();
   
-  if(gMC->IdFromPDG(gMC->TrackPid()) <= 3 && ptot > 0.002)
+  Int_t pid=gMC->TrackPid();
+  if((pid==kElectron || pid==kPositron || pid==kGamma) && ptot > 0.002)
     { 
       pp = prim*1.58; // electrons above 20 MeV/c are on the plateau!
     }