]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PHOS/AliPHOSClusterizer.h
Fixing coding violations
[u/mrichter/AliRoot.git] / PHOS / AliPHOSClusterizer.h
index ff9a0ba1afa236f68f22c83942c708051030852a..8b135209cff56493bc773a7fd75b90fdf6c90336 100644 (file)
@@ -6,54 +6,61 @@
 /* $Id$ */
 
 //_________________________________________________________________________
-//  Base class for the clusterization algorithm (pure abstract)
+//  Base class for the clusterization algorithm 
 //*-- Author: Yves Schutz (SUBATECH) & Dmitri Peressounko (SUBATECH & Kurchatov Institute)
 // --- ROOT system ---
 
 #include "TTask.h" 
+#include "AliConfig.h"
+
+class TFile ; 
 
 // --- Standard library ---
 
 // --- AliRoot header files ---
 
-//#include "AliPHOSDigit.h"
-
 class AliPHOSClusterizer : public TTask {
 
 public:
 
-  AliPHOSClusterizer() ;          // ctor
-  AliPHOSClusterizer(const char * headerFile,const char * digitsBrancheTitle);
+  AliPHOSClusterizer() ;        // default ctor
+  AliPHOSClusterizer(const TString alirunFileName, const TString eventFolderName = AliConfig::GetDefaultEventFolderName()) ;
+  AliPHOSClusterizer(const AliPHOSClusterizer & clusterizer) : TTask(clusterizer) { ; }
   virtual ~AliPHOSClusterizer() ; // dtor
+  virtual Float_t GetEmcClusteringThreshold()const {Warning("GetEmcClusteringThreshold", "Not Defined" ) ; return 0. ; }  
+  virtual Float_t GetEmcLocalMaxCut()const {Warning("GetEmcLocalMaxCut", "Not Defined" ) ; return 0. ; } 
+  virtual Float_t GetEmcLogWeight()const {Warning("GetEmcLogWeight", "Not Defined" ) ; return 0. ; } 
+  virtual Float_t GetEmcTimeGate() const {Warning("GetEmcTimeGate", "Not Defined" ) ; return 0. ; }  ;
+  virtual Float_t GetCpvClusteringThreshold()const {Warning("GetCpvClusteringThreshold", "Not Defined" ) ; return 0. ; } 
+  virtual Float_t GetCpvLocalMaxCut()const {Warning("GetCpvLocalMaxCut", "Not Defined" ) ; return 0. ; } 
+  virtual Float_t GetCpvLogWeight()const {Warning("GetCpvLogWeight", "Not Defined" ) ; return 0. ; } 
+  virtual const Int_t GetRecPointsInRun()  const {Warning("GetRecPointsInRun", "Not Defined" ) ; return 0 ; } 
+
+  virtual void MakeClusters() {Warning("MakeClusters", "Not Defined" ) ; } 
+  virtual void Print()const {Warning("Print", "Not Defined" ) ; } 
+
+  virtual void SetEmcClusteringThreshold(Float_t) = 0;
+  virtual void SetEmcLocalMaxCut(Float_t )        = 0;
+    
+  virtual void SetEmcLogWeight(Float_t)           = 0;
+  virtual void SetEmcTimeGate(Float_t)            = 0;
+  virtual void SetCpvClusteringThreshold(Float_t) = 0;
+  virtual void SetCpvLocalMaxCut(Float_t)         = 0;
+  virtual void SetCpvLogWeight(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 ; }
+
+  AliPHOSClusterizer & operator = (const AliPHOSClusterizer & /*rvalue*/)  {return *this ;} 
+  virtual const char * Version() const {Warning("Version", "Not Defined" ) ; return 0 ; }  
 
-  virtual Float_t GetEmcClusteringThreshold()const = 0 ; 
-  virtual Float_t GetEmcLocalMaxCut()const = 0 ; 
-  virtual Float_t GetEmcLogWeight()const = 0 ; 
-  virtual Float_t GetCpvClusteringThreshold()const = 0 ; 
-  virtual Float_t GetCpvLocalMaxCut()const = 0 ; 
-  virtual Float_t GetCpvLogWeight()const = 0 ; 
-  virtual Float_t GetPpsdClusteringThreshold()const = 0 ; 
-  virtual char *  GetRecPointsBranch() const = 0 ;
-  virtual char *  GetDigitsBranch() const = 0 ;
-
-  virtual void MakeClusters() = 0 ; 
-  virtual void Print(Option_t * option)const = 0;
-
-  virtual void SetEmcClusteringThreshold(Float_t cluth) = 0 ; 
-  virtual void SetEmcLocalMaxCut(Float_t cut) = 0 ; 
-  virtual void SetEmcLogWeight(Float_t w) = 0 ; 
-  virtual void SetCpvClusteringThreshold(Float_t cluth) = 0 ; 
-  virtual void SetCpvLocalMaxCut(Float_t cut) = 0 ; 
-  virtual void SetCpvLogWeight(Float_t w) = 0 ; 
-  virtual void SetPpsdClusteringThreshold(Float_t cluth) = 0 ; 
-
-  virtual void SetDigitsBranch(const char * title) = 0 ;
-  virtual void SetRecPointsBranch(const char *title) = 0 ;
-
-  virtual void SetUnfolding(Bool_t toUnfold ) = 0 ;
+protected:
+  TString fEventFolderName ;  // event folder name
+  Int_t   fFirstEvent;        // first event to process
+  Int_t   fLastEvent;         // last  event to process
 
-  ClassDef(AliPHOSClusterizer,1)  // Clusterization algorithm class 
+  ClassDef(AliPHOSClusterizer,4)  // Clusterization algorithm class 
 
 } ;