]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PHOS/AliPHOSReconstructor.cxx
class is now linked to the central trigger classes in STEER
[u/mrichter/AliRoot.git] / PHOS / AliPHOSReconstructor.cxx
index 1ceef1a1fcf6b73a7bf0122840a7b60aa2080bc6..24824c599b34e70887955c2d094791a4966fe96a 100644 (file)
@@ -33,7 +33,7 @@
 #include "AliPHOSPIDv1.h"
 #include "AliPHOSGetter.h"
 #include "AliPHOSTracker.h"
-#include "AliRawReaderFile.h"
+#include "AliRawReader.h"
 
  
 ClassImp(AliPHOSReconstructor)
@@ -75,7 +75,7 @@ void AliPHOSReconstructor::Reconstruct(AliRunLoader* runLoader) const
 }
 
 //____________________________________________________________________________
-void AliPHOSReconstructor::Reconstruct(AliRunLoader* runLoader, AliRawReaderFile* rawreader) const 
+void AliPHOSReconstructor::Reconstruct(AliRunLoader* runLoader, AliRawReader* rawreader) const 
 {
   // method called by AliReconstruction; 
   // Only the clusterization is performed,; the rest of the reconstruction is done in FillESD because the track
@@ -89,10 +89,11 @@ void AliPHOSReconstructor::Reconstruct(AliRunLoader* runLoader, AliRawReaderFile
   
   AliPHOSClusterizerv1 clu(headerFile, branchName);
   clu.SetEventRange(0, -1) ; // do all the events
+  clu.SetRawReader(rawreader);
   if ( Debug() ) 
     clu.ExecuteTask("deb all") ; 
   else 
-    clu.ExecuteTask("") ;  
+    clu.ExecuteTask("") ;
 
 }
 
@@ -123,6 +124,7 @@ void AliPHOSReconstructor::FillESD(AliRunLoader* runLoader, AliESD* esd) const
     et->SetPHOSposition(xyz) ; 
     et->SetPHOSsignal  (rp->Energy()) ; 
     et->SetPHOSpid     (rp->GetPID()) ;
+    et->SetLabel       (rp->GetPrimaryIndex());
     // add the track to the esd object
     esd->AddTrack(et);
     delete et;