// August 2002 Yves Schutz: clone PHOS as closely as possible and intoduction
// of new IO (à la PHOS)
// --- ROOT system ---
-
-#include "TTask.h"
-#include "AliConfig.h"
+#include "AliLog.h"
+#include "TObject.h"
+class TTree;
// --- Standard library ---
// --- AliRoot header files ---
-class AliEMCALClusterizer : public TTask {
+class AliEMCALClusterizer : public TObject {
public:
AliEMCALClusterizer() ; // default ctor
- AliEMCALClusterizer(const TString alirunFileName, const TString eventFolderName = AliConfig::fgkDefaultEventFolderName) ;
virtual ~AliEMCALClusterizer() ; // dtorEM
- virtual Float_t GetTowerClusteringThreshold()const {Warning("GetTowerClusteringThreshold", "Not Defined") ; return 0. ; }
- virtual Float_t GetTowerLocalMaxCut()const {Warning("GetTowerLocalMaxCut", "Not Defined") ; return 0. ; }
- virtual Float_t GetTowerLogWeight()const {Warning("GetTowerLogWeight", "Not Defined") ; return 0. ; }
- virtual Float_t GetTimeGate() const {Warning("GetTimeGate", "Not Defined") ; return 0. ; }
- virtual const char * GetRecPointsBranch() const {Warning("GetRecPointsBranch", "Not Defined") ; return 0 ; }
- virtual const Int_t GetRecPointsInRun() const {Warning("GetRecPointsInRun", "Not Defined") ; return 0 ; }
- virtual const char * GetDigitsBranch() const {Warning("GetDigitsBranch", "Not Defined") ; return 0 ; }
+ virtual void Digits2Clusters(Option_t *option) = 0;
- virtual void MakeClusters() const {Warning("MakeClusters", "Not Defined") ; }
- virtual void Print(Option_t * /*option*/)const {Warning("Print", "Not Defined") ; }
+ virtual Float_t GetTimeCut() const = 0;
virtual void SetECAClusteringThreshold(Float_t) = 0;
virtual void SetECALocalMaxCut(Float_t) = 0;
virtual void SetECALogWeight(Float_t) = 0;
- virtual void SetTimeGate(Float_t) = 0;
+ virtual void SetTimeCut(Float_t) = 0;
virtual void SetUnfolding(Bool_t) = 0;
- void SetEventRange(Int_t first=0, Int_t last=-1) {fFirstEvent=first; fLastEvent=last; }
- void SetEventFolderName(TString name) { fEventFolderName = name ; }
-
- AliEMCALClusterizer & operator = (const AliEMCALClusterizer & /*rvalue*/) {return *this ;}
virtual const char * Version() const {Warning("Version", "Not Defined") ; return 0 ; }
+ virtual void SetInput(TTree *digitsTree);
+ virtual void SetOutput(TTree *clustersTree);
+ virtual void InitParameters() { AliInfo("Overload this method."); }
+
protected:
- TString fEventFolderName ; // event folder name
- Int_t fFirstEvent; // first event to process
- Int_t fLastEvent; // last event to process
- ClassDef(AliEMCALClusterizer,4) // Clusterization algorithm class
+ virtual void MakeClusters() = 0;
+
+ TClonesArray *fDigitsArr; // Array with EMCAL digits
+ TTree *fTreeR; // Tree with output clusters
+ TObjArray *fRecPoints; // Array with EMCAL clusters
+
+private:
+ AliEMCALClusterizer(const AliEMCALClusterizer &); //copy ctor
+ AliEMCALClusterizer & operator = (const AliEMCALClusterizer &);
+ ClassDef(AliEMCALClusterizer,1) // Clusterization algorithm class
} ;
#endif // AliEMCALCLUSTERIZER_H