From a68156e60ac4c4d84befa37f44fc4a576efa1b33 Mon Sep 17 00:00:00 2001 From: schutz Date: Fri, 16 Jul 2004 17:06:35 +0000 Subject: [PATCH] Preparing to reconstruct from raw data --- EMCAL/AliEMCALReconstructor.cxx | 23 +++++++++++++++++++++++ EMCAL/AliEMCALReconstructor.h | 4 +++- PHOS/AliPHOSReconstructor.cxx | 23 +++++++++++++++++++++++ PHOS/AliPHOSReconstructor.h | 2 ++ 4 files changed, 51 insertions(+), 1 deletion(-) diff --git a/EMCAL/AliEMCALReconstructor.cxx b/EMCAL/AliEMCALReconstructor.cxx index 9821aa9eff4..d5caaded9a3 100644 --- a/EMCAL/AliEMCALReconstructor.cxx +++ b/EMCAL/AliEMCALReconstructor.cxx @@ -31,6 +31,7 @@ #include "AliEMCALClusterizerv1.h" #include "AliEMCALPIDv1.h" #include "AliEMCALGetter.h" +#include "AliRawReaderFile.h" ClassImp(AliEMCALReconstructor) @@ -68,6 +69,28 @@ void AliEMCALReconstructor::Reconstruct(AliRunLoader* runLoader) const } +//____________________________________________________________________________ +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 { diff --git a/EMCAL/AliEMCALReconstructor.h b/EMCAL/AliEMCALReconstructor.h index 032f1cc5926..fad05183984 100644 --- a/EMCAL/AliEMCALReconstructor.h +++ b/EMCAL/AliEMCALReconstructor.h @@ -20,6 +20,7 @@ class AliEMCALClusterizer ; class AliEMCALPID ; class AliEMCALSDigitizer ; class AliESD ; +class AliRawReaderFile ; // --- Standard library --- @@ -41,7 +42,8 @@ public: 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 diff --git a/PHOS/AliPHOSReconstructor.cxx b/PHOS/AliPHOSReconstructor.cxx index 92c4af32567..69c4d623b8a 100644 --- a/PHOS/AliPHOSReconstructor.cxx +++ b/PHOS/AliPHOSReconstructor.cxx @@ -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 { diff --git a/PHOS/AliPHOSReconstructor.h b/PHOS/AliPHOSReconstructor.h index 35562fd023b..5026de02b4d 100644 --- a/PHOS/AliPHOSReconstructor.h +++ b/PHOS/AliPHOSReconstructor.h @@ -22,6 +22,7 @@ class AliPHOSTrackSegmentMaker ; class AliPHOSPID ; class AliPHOSSDigitizer ; class AliESD ; +class AliRawReaderFile ; // --- Standard library --- @@ -43,6 +44,7 @@ public: 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 -- 2.43.0