]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Only use PDG codes and not GEANT ones
authorfca <fca@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 14 Oct 1999 16:52:08 +0000 (16:52 +0000)
committerfca <fca@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 14 Oct 1999 16:52:08 +0000 (16:52 +0000)
TPC/AliTPCv2.cxx
TPC/AliTPCv3.cxx

index b948dda885b711e36c0e2a769e7feb51624ea066..c3240a84bb9229083c41745b9fa39c1517a15e75 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
 $Log$
+Revision 1.17  1999/10/08 06:27:23  fca
+Corrected bug in the HV degrader geometry, thanks to G.Tabary
+
 Revision 1.16  1999/10/04 13:39:54  fca
 Correct array index problem
 
@@ -43,6 +46,7 @@ Introduction of the Copyright and cvs Log
 #include "AliTPCD.h"
 #include "AliRun.h"
 #include "AliConst.h"
+#include "AliPDG.h"
 
 ClassImp(AliTPCv2)
  
@@ -1113,7 +1117,8 @@ void AliTPCv2::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!
     }
index fca33548b2b0cb5852e18fdf40d0d5154ac1dfc5..9df064f30a32504a35d3097b062eb2cf7f7252c0 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
 $Log$
+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
 
@@ -44,6 +47,7 @@ Introduction of the Copyright and cvs Log
 #include "AliConst.h"
 #include "AliTPCD.h"
 #include "AliTPCParam.h"
+#include "AliPDG.h"
 
 ClassImp(AliTPCv3)
  
@@ -794,7 +798,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!
     }