]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PHOS/AliPHOSClusterizer.h
Fixing coding violations
[u/mrichter/AliRoot.git] / PHOS / AliPHOSClusterizer.h
index 3f220f756a9757dd81487035dbe2cf472cc2aa1a..8b135209cff56493bc773a7fd75b90fdf6c90336 100644 (file)
@@ -5,58 +5,62 @@
                             
 /* $Id$ */
 
-////////////////////////////////////////////////
-//  Algorithme class for the clusterization   //
-//  interface class                           //
-//  Version SUBATECH                          //
-//  Author Yves Schutz     SUBATECH           //
-//                                            //  
-//   pABC                                     //
-////////////////////////////////////////////////
-
+//_________________________________________________________________________
+//  Base class for the clusterization algorithm 
+//*-- Author: Yves Schutz (SUBATECH) & Dmitri Peressounko (SUBATECH & Kurchatov Institute)
 // --- ROOT system ---
 
-#include "TObject.h" 
-#include "TClonesArray.h"
+#include "TTask.h" 
+#include "AliConfig.h"
+
+class TFile ; 
 
 // --- Standard library ---
 
 // --- AliRoot header files ---
 
-#include "AliPHOSDigit.h"
-
-typedef TClonesArray    RecPointsList ; // a cluster has a variable size (see ROOT FAQ)  
-typedef TClonesArray    DigitsList ; //for digits saved on disk
-
-class AliPHOSClusterizer : public TObject {
+class AliPHOSClusterizer : public TTask {
 
 public:
 
-  AliPHOSClusterizer() ;          // ctor            
+  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 Float_t Calibrate(Int_t Amp) = 0 ; 
-  virtual Bool_t IsInEmc(AliPHOSDigit * digit)= 0 ;   
-  virtual void GetNumberOfClustersFound(Int_t * numb) = 0 ; 
-  virtual void GetCalibrationParameters(Float_t & A, Float_t &B) = 0 ; 
-  virtual void GetEmcClusteringThreshold(Float_t & cluth) = 0 ; 
-  virtual void GetEmcEnergyThreshold(Float_t & enth) = 0 ;  
-  virtual void GetLocalMaxCut(Float_t & cut) = 0 ; 
-  virtual void GetLogWeightCut(Float_t & w) = 0 ; 
-  virtual void GetPpsdClusteringThreshold(Float_t & cluth) = 0 ; 
-  virtual void GetPpsdEnergyThreshold(Float_t & enth) = 0 ; 
-
-  virtual void  MakeClusters(const DigitsList * dl, RecPointsList * emccl, RecPointsList * ppsdl) = 0 ; 
-  virtual void PrintParameters() = 0 ;  
-  virtual void SetCalibrationParameters(Float_t A, Float_t B) = 0 ; 
-  virtual void SetEmcClusteringThreshold(Float_t cluth) = 0 ; 
-  virtual void SetEmcEnergyThreshold(Float_t enth) = 0 ;  
-  virtual void SetLocalMaxCut(Float_t cut) = 0 ; 
-  virtual void SetLogWeightCut(Float_t w) = 0 ; 
-  virtual void SetPpsdClusteringThreshold(Float_t cluth) = 0 ; 
-  virtual void SetPpsdEnergyThreshold(Float_t enth) = 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 ;} 
  
-  ClassDef(AliPHOSClusterizer,1)  // clusterization interface, version 1
+  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(AliPHOSClusterizer,4)  // Clusterization algorithm class 
 
 } ;