]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PHOS/AliPHOSClusterizer.h
Bug fix for CPV-EMC distance
[u/mrichter/AliRoot.git] / PHOS / AliPHOSClusterizer.h
index 8b135209cff56493bc773a7fd75b90fdf6c90336..f424056f30dbb6f86236224c5125f4ea34d44fd5 100644 (file)
@@ -5,6 +5,20 @@
                             
 /* $Id$ */
 
+/* History of cvs commits:
+ *
+ * $Log$
+ * Revision 1.39  2006/03/30 13:04:56  hristov
+ * AliRawReader is not persistent
+ *
+ * Revision 1.38  2005/07/25 15:53:09  kharlov
+ * Set raw data reader
+ *
+ * Revision 1.37  2005/05/28 14:19:04  schutz
+ * Compilation warnings fixed by T.P.
+ *
+ */
+
 //_________________________________________________________________________
 //  Base class for the clusterization algorithm 
 //*-- Author: Yves Schutz (SUBATECH) & Dmitri Peressounko (SUBATECH & Kurchatov Institute)
@@ -12,6 +26,7 @@
 
 #include "TTask.h" 
 #include "AliConfig.h"
+#include "AliRawReaderFile.h"
 
 class TFile ; 
 
@@ -25,7 +40,7 @@ public:
 
   AliPHOSClusterizer() ;        // default ctor
   AliPHOSClusterizer(const TString alirunFileName, const TString eventFolderName = AliConfig::GetDefaultEventFolderName()) ;
-  AliPHOSClusterizer(const AliPHOSClusterizer & clusterizer) : TTask(clusterizer) { ; }
+  AliPHOSClusterizer(const AliPHOSClusterizer & 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. ; } 
@@ -34,10 +49,10 @@ public:
   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 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 Print(const Option_t * = "")const {Warning("Print", "Not Defined" ) ; } 
 
   virtual void SetEmcClusteringThreshold(Float_t) = 0;
   virtual void SetEmcLocalMaxCut(Float_t )        = 0;
@@ -50,6 +65,12 @@ public:
   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 ; }
+  void SetRawReader(AliRawReader *reader) {fRawReader = reader;}
+
+  TString       GetEventFolderName() const {return fEventFolderName;}
+  Int_t         GetFirstEvent()      const {return fFirstEvent;     }
+  Int_t         GetLastEvent()       const {return fLastEvent;      }
+  AliRawReader *GetRawReader()       const {return fRawReader;      }
 
   AliPHOSClusterizer & operator = (const AliPHOSClusterizer & /*rvalue*/)  {return *this ;} 
  
@@ -59,6 +80,7 @@ protected:
   TString fEventFolderName ;  // event folder name
   Int_t   fFirstEvent;        // first event to process
   Int_t   fLastEvent;         // last  event to process
+  AliRawReader *fRawReader;   //! reader of raw data
 
   ClassDef(AliPHOSClusterizer,4)  // Clusterization algorithm class