#include "AliEMCALClusterizerv1.h"
#include "AliEMCALPIDv1.h"
#include "AliEMCALGetter.h"
+#include "AliRawReaderFile.h"
ClassImp(AliEMCALReconstructor)
}
+//____________________________________________________________________________
+void AliEMCALReconstructor::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()) ;
+
+ AliEMCALClusterizerv1 clu(headerFile, branchName);
+ clu.SetEventRange(0, -1) ; // do all the events
+ if ( Debug() )
+ clu.ExecuteTask("deb all") ;
+ else
+ clu.ExecuteTask("") ;
+
+}
+
//____________________________________________________________________________
void AliEMCALReconstructor::FillESD(AliRunLoader* runLoader, AliESD* esd) const
{
class AliEMCALPID ;
class AliEMCALSDigitizer ;
class AliESD ;
+class AliRawReaderFile ;
// --- Standard library ---
Bool_t Debug() const { return fDebug ; }
virtual void FillESD(AliRunLoader* runLoader, AliESD* esd) const ;
virtual void Reconstruct(AliRunLoader* runLoader) const ;
-
+ virtual void Reconstruct(AliRunLoader* runLoader, AliRawReaderFile * rawreader) const ;
+
AliEMCALReconstructor & operator = (const AliEMCALReconstructor & /*rvalue*/) {
// assignement operator requested by coding convention but not needed
#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
{
class AliPHOSPID ;
class AliPHOSSDigitizer ;
class AliESD ;
+class AliRawReaderFile ;
// --- Standard library ---
static Bool_t Debug() { return fgDebug ; }
virtual void FillESD(AliRunLoader* runLoader, AliESD* esd) const ;
virtual void Reconstruct(AliRunLoader* runLoader) const ;
+ virtual void Reconstruct(AliRunLoader* runLoader, AliRawReaderFile * rawreader) const ;
AliPHOSReconstructor & operator = (const AliPHOSReconstructor & /*rvalue*/) {
// assignement operator requested by coding convention but not needed