/*
$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
+
*/
///////////////////////////////////////////////////////////////////////////////
#include "AliConst.h"
#include "AliTPCD.h"
#include "AliTPCParam.h"
+#include "AliPDG.h"
ClassImp(AliTPCv3)
gMC->Gsposp("TPMH",1,"TGAS",0.,0.,0.,0,"ONLY",dm,3);
dm[0] = 78.;
- dm[2] = 82.;
+ dm[1] = 82.;
dm[2] = 0.1;
gMC->Gsposp("TPMH",2,"TGAS",0.,0.,0.,0,"ONLY",dm,3);
dm[7] = 50.;
dm[8] = 76.;
- dm[9] = -64.5;
+ dm[9] = 64.5;
dm[10] = 50.;
dm[11] = 76.;
dm[0] = 50.;
dm[1] = 50.5;
- dm[2] = 32.25;
+ dm[2] = 64.5;
gMC->Gsvolu("TIVB","TUBE",idtmed[9],dm,3);
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!
}