]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PHOS/AliPHOSClusterizer.h
Use Riostream.h to resolve the std namespace (Alpha, HP)
[u/mrichter/AliRoot.git] / PHOS / AliPHOSClusterizer.h
index 938bf19eb80f1423d954a9e86ad5c848b3bf384e..5cd8953610dc3f2cb3dabe17b85b58132cf09885 100644 (file)
@@ -2,41 +2,63 @@
 #define ALIPHOSCLUSTERIZER_H
 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
  * See cxx source for full Copyright notice                               */
+                            
+/* $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.h> 
 
 // --- 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 char * headerFile, const char * name, const Bool_t toSplit) ;
   virtual ~AliPHOSClusterizer() ; // dtor
 
-  virtual Float_t Calibrate(Int_t Amp) = 0 ; 
-  virtual void  GetNumberOfClustersFound(Int_t * numb) = 0 ; 
-  virtual void  MakeClusters(const DigitsList * dl, RecPointsList * emccl, RecPointsList * ppsdl) = 0 ; 
+  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 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() {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 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
+  Bool_t  fToSplit ;               //! Should we write to splitted file
 
-  ClassDef(AliPHOSClusterizer,1)  // clusterization interface, version 1
+  ClassDef(AliPHOSClusterizer,2)  // Clusterization algorithm class 
 
 } ;