]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PHOS/AliPHOSv3.cxx
ITS geometry using test Euclid files
[u/mrichter/AliRoot.git] / PHOS / AliPHOSv3.cxx
index ac85d4eeb0ff498ec96e2d10f9453a38d5bf816b..49877304ede3d2254ef5afbf5b1f7d551228d51a 100644 (file)
@@ -44,6 +44,7 @@
 #include "AliPHOSDigit.h"
 #include "AliRun.h"
 #include "AliConst.h"
+#include "AliMC.h"
 
 ClassImp(AliPHOSv3)
 
@@ -111,6 +112,7 @@ void AliPHOSv3::StepManager(void)
 
   Int_t tracknumber =  gAlice->CurrentTrack() ; 
   Int_t primary =  gAlice->GetPrimary( gAlice->CurrentTrack() ); 
+  Int_t trackpid    =  gMC->TrackPid() ; 
 
   if ( name == "GPS2" ) { // the CPV is a PPSD
     if( gMC->CurrentVolID(copy) == gMC->VolId("GCEL") ) // We are inside a gas cell 
@@ -136,7 +138,7 @@ void AliPHOSv3::StepManager(void)
                fGeom->RelToAbsNumbering(relid,absid) ; 
        
 
-       AddHit(fIshunt, primary, tracknumber, absid, xyze);
+       AddHit(fIshunt, primary, tracknumber, absid, xyze, trackpid);
 
       } // there is deposited energy 
      } // We are inside the gas of the CPV  
@@ -174,7 +176,7 @@ void AliPHOSv3::StepManager(void)
 
          xyze[3] = nElectrons * fRecalibrationFactor ;
          // add current hit to the hit list
-         AddHit(fIshunt, primary, tracknumber, absid, xyze);
+         AddHit(fIshunt, primary, tracknumber, absid, xyze, trackpid);
 
        } // there is deposited energy
     } // we are inside a PHOS Xtal
@@ -204,7 +206,7 @@ void AliPHOSv3::StepManager(void)
          xyze[3] = nElectrons * fRecalibrationFactor ;
 
          // add current hit to the hit list
-         AddHit(fIshunt, primary, tracknumber, absid, xyze);
+         AddHit(fIshunt, primary, tracknumber, absid, xyze, trackpid);
          //printf("PIN volume is  %d, %d, %d, %d \n",relid[0],relid[1],relid[2],relid[3]);
          //printf("Lost energy in the PIN is %f \n",lostenergy) ;
        } // there is deposited energy