]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PHOS/AliPHOSReconstructor.cxx
Preparing to reconstruct from raw data
[u/mrichter/AliRoot.git] / PHOS / AliPHOSReconstructor.cxx
index 92c4af32567b14da40ccf0ebc3cc57ba2ab7135e..69c4d623b8a3db039341107f8af8754e8ef715d1 100644 (file)
@@ -32,6 +32,7 @@
 #include "AliPHOSTrackSegmentMakerv1.h"
 #include "AliPHOSPIDv1.h"
 #include "AliPHOSGetter.h"
+#include "AliRawReaderFile.h"
 
  
 ClassImp(AliPHOSReconstructor)
@@ -72,6 +73,28 @@ void AliPHOSReconstructor::Reconstruct(AliRunLoader* runLoader) const
 
 }
 
+//____________________________________________________________________________
+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
 {