X-Git-Url: http://git.uio.no/git/?p=u%2Fmrichter%2FAliRoot.git;a=blobdiff_plain;f=TPC%2FAliTPCv3.cxx;h=9df064f30a32504a35d3097b062eb2cf7f7252c0;hp=cacd8aff0403ab3ffea27f7d754d28353367c810;hb=69e40cce3788b0eef9bf708c74f7210ba8cc0da1;hpb=cdde5b1e9b470e3e99d75f79a8548c5334dc9ffb diff --git a/TPC/AliTPCv3.cxx b/TPC/AliTPCv3.cxx index cacd8aff040..9df064f30a3 100644 --- a/TPC/AliTPCv3.cxx +++ b/TPC/AliTPCv3.cxx @@ -15,6 +15,12 @@ /* $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 + Revision 1.7 1999/09/29 09:24:34 fca Introduction of the Copyright and cvs Log @@ -41,6 +47,7 @@ Introduction of the Copyright and cvs Log #include "AliConst.h" #include "AliTPCD.h" #include "AliTPCParam.h" +#include "AliPDG.h" ClassImp(AliTPCv3) @@ -568,7 +575,7 @@ void AliTPCv3::CreateGeometry() dm[7] = 50.; dm[8] = 76.; - dm[9] = -64.5; + dm[9] = 64.5; dm[10] = 50.; dm[11] = 76.; @@ -791,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! }