]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PHOS/AliPHOSClusterizer.h
Added a protection in the dtor. When the tasks is created by default ctor (to access...
[u/mrichter/AliRoot.git] / PHOS / AliPHOSClusterizer.h
index 3f220f756a9757dd81487035dbe2cf472cc2aa1a..4f5dfc89578d2b560e69580e1e3461ff860e1c27 100644 (file)
@@ -5,58 +5,60 @@
                             
 /* $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" 
 
 // --- Standard library ---
+#include <iostream> 
 
 // --- 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
+//#include "AliPHOSDigit.h"
 
-class AliPHOSClusterizer : public TObject {
+class AliPHOSClusterizer : public TTask {
 
 public:
 
-  AliPHOSClusterizer() ;          // ctor            
+  AliPHOSClusterizer() ;        // default ctor
+  AliPHOSClusterizer(const char * headerFile, const char * name) ;
   virtual ~AliPHOSClusterizer() ; // dtor
 
-  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 ; 
-  ClassDef(AliPHOSClusterizer,1)  // clusterization interface, version 1
+  virtual Float_t GetEmcClusteringThreshold()const {cout << "Not Defined" << endl ; return 0. ; }  
+  virtual Float_t GetEmcLocalMaxCut()const {cout << "Not Defined" << endl ; return 0. ; } 
+  virtual Float_t GetEmcLogWeight()const {cout << "Not Defined" << endl ; return 0. ; } 
+  virtual Float_t GetEmcTimeGate() const {cout << "Not Defined" << endl ; return 0. ; }  ;
+  virtual Float_t GetCpvClusteringThreshold()const {cout << "Not Defined" << endl ; return 0. ; } 
+  virtual Float_t GetCpvLocalMaxCut()const {cout << "Not Defined" << endl ; return 0. ; } 
+  virtual Float_t GetCpvLogWeight()const {cout << "Not Defined" << endl ; return 0. ; } 
+  virtual char *  GetRecPointsBranch() const {cout << "Not Defined" << endl ; return 0 ; }  ;
+  virtual const Int_t GetRecPointsInRun()  const {cout << "Not Defined" << endl ; return 0 ; } 
+  virtual char *  GetDigitsBranch() const{cout << "Not Defined" << endl ; return 0 ; }   ;
+
+  virtual void MakeClusters() {cout << "Not Defined" << endl ; } 
+  virtual void Print(Option_t * option)const {cout << "Not Defined" << endl ; } 
+
+  virtual void SetEmcClusteringThreshold(Float_t cluth) {cout << "Not Defined" << endl ; } 
+  virtual void SetEmcLocalMaxCut(Float_t cut) {cout << "Not Defined" << endl ; } 
+  virtual void SetEmcLogWeight(Float_t w) {cout << "Not Defined" << endl ; } 
+  virtual void SetEmcTimeGate(Float_t gate) {cout << "Not Defined" << endl ; } 
+  virtual void SetCpvClusteringThreshold(Float_t cluth) {cout << "Not Defined" << endl ; } 
+  virtual void SetCpvLocalMaxCut(Float_t cut) {cout << "Not Defined" << endl ; } 
+  virtual void SetCpvLogWeight(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 SetSplitFile(const TString splitFileName = "PHOS.RecData.root") ; 
+  virtual void SetUnfolding(Bool_t toUnfold ){cout << "Not Defined" << endl ;}  
+  virtual const char * Version() const {cout << "Not Defined" << endl ; return 0 ; }  
+
+protected:
+
+  TFile * fSplitFile ;             //! file in which RecPoints will eventually be stored
+
+  ClassDef(AliPHOSClusterizer,2)  // Clusterization algorithm class 
 
 } ;