]> 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 59729a7b3b08663c5614977c1c8476a5d046e6ca..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
+
 */
 
 ///////////////////////////////////////////////////////////////////////////////
@@ -38,6 +50,7 @@ $Log$
 #include "AliConst.h"
 #include "AliTPCD.h"
 #include "AliTPCParam.h"
+#include "AliPDG.h"
 
 ClassImp(AliTPCv3)
  
@@ -127,7 +140,7 @@ void AliTPCv3::CreateGeometry()
   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);
@@ -565,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.;
 
@@ -599,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);
 
@@ -788,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!
     }