#include "AliPHOSTrackSegmentMakerv1.h"
#include "AliPHOSPIDv1.h"
#include "AliPHOSGetter.h"
+#include "AliRawReaderFile.h"
ClassImp(AliPHOSReconstructor)
}
+//____________________________________________________________________________
+void AliPHOSReconstructor::Reconstruct(AliRunLoader* runLoader, AliRawReaderFile* rawreader) const
+{
+ // method called by AliReconstruction;
+ // Only the clusterization is performed,; the rest of the reconstruction is done in FillESD because the track
+ // segment maker needs access to the AliESD object to retrieve the tracks reconstructed by
+ // the global tracking.
+ // Here we reconstruct from Raw Data
+
+ rawreader->Reset() ;
+ TString headerFile(runLoader->GetFileName()) ;
+ TString branchName(runLoader->GetEventFolder()->GetName()) ;
+
+ AliPHOSClusterizerv1 clu(headerFile, branchName);
+ clu.SetEventRange(0, -1) ; // do all the events
+ if ( Debug() )
+ clu.ExecuteTask("deb all") ;
+ else
+ clu.ExecuteTask("") ;
+
+}
+
//____________________________________________________________________________
void AliPHOSReconstructor::FillESD(AliRunLoader* runLoader, AliESD* esd) const
{