]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - EMCAL/AliEMCALClusterizer.h
1. Style modifications to clone PHOS
[u/mrichter/AliRoot.git] / EMCAL / AliEMCALClusterizer.h
index 70f16a07a4e613b7b048aa771df8079366535d5f..a15fb7383eb982dab3993634f06748d2c0c0737e 100644 (file)
@@ -8,11 +8,15 @@
 //_________________________________________________________________________
 //  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" 
-class TFile ; 
+
 // --- Standard library ---
+#include <iostream.h> 
 
 // --- AliRoot header files ---
 
@@ -23,48 +27,41 @@ class AliEMCALClusterizer : public TTask {
 public:
 
   AliEMCALClusterizer() ;        // default ctor
-  AliEMCALClusterizer(const char * headerFile, const char * name) ;
+  AliEMCALClusterizer(const char * headerFile, const char * name, const Bool_t toSplit) ;
   virtual ~AliEMCALClusterizer() ; // dtor
 
-  const TString GetHitsFileName() const { return fHitsFileName ; }
-  const TString GetSDigitsFileName() const { return fSDigitsFileName ; }
-  const TString GetDigitsFileName() const { return fDigitsFileName ; }
-
-  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 Float_t GetTowerClusteringThreshold()const {cout << "Not Defined" << endl ; return 0. ; }
+  virtual Float_t GetTowerLocalMaxCut()const {cout << "Not Defined" << endl ; return 0. ; }
+  virtual Float_t GetTowerLogWeight()const {cout << "Not Defined" << endl ; return 0. ; }
+  virtual Float_t GetTimeGate() const {cout << "Not Defined" << endl ; return 0. ; }
+  virtual Float_t GetPreShoClusteringThreshold()const {cout << "Not Defined" << endl ; return 0. ; }
+  virtual Float_t GetPreShoLocalMaxCut()const {cout << "Not Defined" << endl ; return 0. ; }
+  virtual Float_t GetPreShoLogWeight()const {cout << "Not Defined" << endl ; return 0. ; }
+  virtual const char *  GetRecPointsBranch() const {cout << "Not Defined" << endl ; return 0 ; }
+  virtual const Int_t GetRecPointsInRun()  const {cout << "Not Defined" << endl ; return 0 ; }
+  virtual const char *  GetDigitsBranch() const  {cout << "Not Defined" << endl ; return 0 ; }
 
-  virtual void MakeClusters() = 0 ; 
-  virtual void Print(Option_t * option)const = 0;
+  virtual void MakeClusters() {cout << "Not Defined" << endl ; }
+  virtual void Print(Option_t * option)const {cout << "Not Defined" << endl ; }
 
-  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 ;
-  void SetSplitFile(const TString splitFileName = "EMCAL.RecPoints.root") ;
-  virtual void SetUnfolding(Bool_t toUnfold ) = 0 ;
-  virtual const char * Version() const = 0 ;  
+  virtual void SetTowerClusteringThreshold(Float_t cluth) {cout << "Not Defined" << endl ; }
+  virtual void SetTowerLocalMaxCut(Float_t cut) {cout << "Not Defined" << endl ; }
+  virtual void SetTowerLogWeight(Float_t w) {cout << "Not Defined" << endl ; }
+  virtual void SetTimeGate(Float_t gate) {cout << "Not Defined" << endl ; }
+  virtual void SetPreShoClusteringThreshold(Float_t cluth) {cout << "Not Defined" << endl ; }
+  virtual void SetPreShoLocalMaxCut(Float_t cut) {cout << "Not Defined" << endl ; }
+  virtual void SetPreShoLogWeight(Float_t w) {cout << "Not Defined" << endl ; }
+  virtual void SetDigitsBranch(const char * title) {cout << "Not Defined" << endl ; }
+  virtual void SetRecPointsBranch(const char *title) {cout << "Not Defined" << endl ; } 
+  virtual void SetUnfolding(Bool_t toUnfold ) {cout << "Not Defined" << endl ; }
+  virtual const char * Version() const {cout << "Not Defined" << endl ; return 0 ; } 
 
 protected:
   
-  TString fHitsFileName ;          // file name that contains the original hits
-  TString fSDigitsFileName ;       // file name that contains the original SDigits
-  TString fDigitsFileName ;        // file name that contains the original Digits
   TFile * fSplitFile ;             //! file in which RecPoints will eventually be stored
+  Bool_t  fToSplit ;               //! Should we write to splitted file
 
-  ClassDef(AliEMCALClusterizer,1)  // Clusterization algorithm class 
+  ClassDef(AliEMCALClusterizer,2)  // Clusterization algorithm class 
 
 } ;