]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - EMCAL/AliEMCALClusterizer.h
control plots went to AliRICH
[u/mrichter/AliRoot.git] / EMCAL / AliEMCALClusterizer.h
index 04583eb802ba94ef59e9d47b35b117a2b0ef6b7a..bd61d21661d1905d11788baacbf7d79ca864f66e 100644 (file)
@@ -8,51 +8,55 @@
 //_________________________________________________________________________
 //  Base class for the clusterization algorithm (pure abstract)
 //*-- Author: Yves Schutz (SUBATECH) & Dmitri Peressounko (SUBATECH & Kurchatov Institute)
+// Modif: 
+//  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"
 
 // --- Standard library ---
 
 // --- AliRoot header files ---
 
-//#include "AliEMCALDigit.h"
-
 class AliEMCALClusterizer : public TTask {
 
 public:
 
   AliEMCALClusterizer() ;        // default ctor
-  AliEMCALClusterizer(const char * headerFile, const char * name) ;
-  virtual ~AliEMCALClusterizer() ; // dtor
-
-  virtual Float_t GetEmcClusteringThreshold()const = 0 ; 
-  virtual Float_t GetEmcLocalMaxCut()const = 0 ; 
-  virtual Float_t GetEmcLogWeight()const = 0 ; 
-  virtual Float_t GetTimeGate() const = 0 ;
-  virtual Float_t GetCpvClusteringThreshold()const = 0 ; 
-  virtual Float_t GetCpvLocalMaxCut()const = 0 ; 
-  virtual Float_t GetCpvLogWeight()const = 0 ; 
-  virtual char *  GetRecPointsBranch() const = 0 ;
-  virtual const Int_t GetRecPointsInRun()  const = 0 ; 
-  virtual char *  GetDigitsBranch() const = 0 ;
-
-  virtual void MakeClusters() = 0 ; 
-  virtual void Print(Option_t * option)const = 0;
-
-  virtual void SetTowerClusteringThreshold(Float_t cluth) = 0 ; 
-  virtual void SetTowerLocalMaxCut(Float_t cut) = 0 ; 
-  virtual void SetTowerLogWeight(Float_t w) = 0 ; 
-  virtual void SetTimeGate(Float_t gate) = 0 ;
-  virtual void SetPreShoClusteringThreshold(Float_t cluth) = 0 ; 
-  virtual void SetPreShoLocalMaxCut(Float_t cut) = 0 ; 
-  virtual void SetPreShoLogWeight(Float_t w) = 0 ; 
-  virtual void SetDigitsBranch(const char * title) = 0 ;
-  virtual void SetRecPointsBranch(const char *title) = 0 ;
-  virtual void SetUnfolding(Bool_t toUnfold ) = 0 ;
-  virtual const char * Version() const = 0 ;  
-
-  ClassDef(AliEMCALClusterizer,1)  // Clusterization algorithm class 
+  AliEMCALClusterizer(const TString alirunFileName, const TString eventFolderName = AliConfig::GetDefaultEventFolderName()) ;
+  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 MakeClusters() const {Warning("MakeClusters", "Not Defined") ; }
+  virtual void Print(Option_t * /*option*/)const {Warning("Print", "Not Defined") ; }
+
+  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 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 ; } 
+
+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 
 
 } ;