/* $Id$ */
+/* History of cvs commits:
+ *
+ * $Log$
+ * 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)
#include "TTask.h"
#include "AliConfig.h"
+#include "AliRawReaderFile.h"
class TFile ;
public:
AliPHOSClusterizer() ; // default ctor
- AliPHOSClusterizer(const TString alirunFileName, const TString eventFolderName = AliConfig::fgkDefaultEventFolderName) ;
- AliPHOSClusterizer(const AliPHOSClusterizer & clusterizer) { ; }
+ 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 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 char * GetRecPointsBranch() const {Warning("GetRecPointsBranch", "Not Defined" ) ; return 0 ; } ;
- virtual const Int_t GetRecPointsInRun() const {Warning("GetRecPointsInRun", "Not Defined" ) ; return 0 ; }
- virtual const char * GetDigitsBranch() const{Warning("GetDigitsBranch", "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 cluth) {Warning("SetEmcClusteringThreshold", "Not Defined" ) ; }
- virtual void SetEmcLocalMaxCut(Float_t cut) {Warning("SetEmcLocalMaxCut", "Not Defined" ) ; }
+ virtual void SetEmcClusteringThreshold(Float_t) = 0;
+ virtual void SetEmcLocalMaxCut(Float_t ) = 0;
- virtual void SetEmcLogWeight(Float_t w) {Warning("SetEmcLogWeight", "Not Defined" ) ; }
- virtual void SetEmcTimeGate(Float_t gate) {Warning("SetEmcTimeGate", "Not Defined" ) ; }
- virtual void SetCpvClusteringThreshold(Float_t cluth) {Warning("SetCpvClusteringThreshold", "Not Defined" ) ; }
- virtual void SetCpvLocalMaxCut(Float_t cut) {Warning("SetCpvLocalMaxCut", "Not Defined" ) ; }
- virtual void SetCpvLogWeight(Float_t w) {Warning("SetCpvLogWeight", "Not Defined" ) ; }
- virtual void SetDigitsBranch(const char * title) {Warning("SetDigitsBranch", "Not Defined" ) ; }
- virtual void SetRecPointsBranch(const char *title) {Warning("SetRecPointsBranch", "Not Defined" ) ; }
- virtual void SetUnfolding(Bool_t toUnfold ){Warning("SetUnfolding", "Not Defined" ) ;}
- void SetEventFolderName(TString name) { fEventFolderName = name ; }
-
- AliPHOSClusterizer & operator = (const AliPHOSClusterizer & rvalue) {return *this ;}
+ 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 ; }
+ void SetRawReader(AliRawReader *reader) {fRawReader = reader;}
+
+ AliPHOSClusterizer & operator = (const AliPHOSClusterizer & /*rvalue*/) {return *this ;}
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
+ AliRawReader *fRawReader; //! reader of raw data
-
- ClassDef(AliPHOSClusterizer,3) // Clusterization algorithm class
+ ClassDef(AliPHOSClusterizer,4) // Clusterization algorithm class
} ;