1 #ifndef ALIPHOSCLUSTERIZER_H
2 #define ALIPHOSCLUSTERIZER_H
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
8 /* History of cvs commits:
11 * Revision 1.40 2006/08/25 16:56:30 kharlov
12 * Compliance with Effective C++
14 * Revision 1.39 2006/03/30 13:04:56 hristov
15 * AliRawReader is not persistent
17 * Revision 1.38 2005/07/25 15:53:09 kharlov
20 * Revision 1.37 2005/05/28 14:19:04 schutz
21 * Compilation warnings fixed by T.P.
25 //_________________________________________________________________________
26 // Base class for the clusterization algorithm
27 //*-- Author: Yves Schutz (SUBATECH) & Dmitri Peressounko (SUBATECH & Kurchatov Institute)
28 // --- ROOT system ---
34 // --- Standard library ---
36 // --- AliRoot header files ---
37 #include "AliConfig.h"
38 #include "AliRawReaderFile.h"
39 class AliPHOSQualAssDataMaker ;
41 class AliPHOSClusterizer : public TTask {
45 AliPHOSClusterizer() ; // default ctor
46 AliPHOSClusterizer(const TString alirunFileName, const TString eventFolderName = AliConfig::GetDefaultEventFolderName()) ;
47 AliPHOSClusterizer(const AliPHOSClusterizer & clusterizer);
48 virtual ~AliPHOSClusterizer() ; // dtor
49 virtual Float_t GetEmcClusteringThreshold()const {Warning("GetEmcClusteringThreshold", "Not Defined" ) ; return 0. ; }
50 virtual Float_t GetEmcLocalMaxCut()const {Warning("GetEmcLocalMaxCut", "Not Defined" ) ; return 0. ; }
51 virtual Float_t GetEmcLogWeight()const {Warning("GetEmcLogWeight", "Not Defined" ) ; return 0. ; }
52 virtual Float_t GetEmcTimeGate() const {Warning("GetEmcTimeGate", "Not Defined" ) ; return 0. ; } ;
53 virtual Float_t GetCpvClusteringThreshold()const {Warning("GetCpvClusteringThreshold", "Not Defined" ) ; return 0. ; }
54 virtual Float_t GetCpvLocalMaxCut()const {Warning("GetCpvLocalMaxCut", "Not Defined" ) ; return 0. ; }
55 virtual Float_t GetCpvLogWeight()const {Warning("GetCpvLogWeight", "Not Defined" ) ; return 0. ; }
56 virtual Int_t GetRecPointsInRun() const {Warning("GetRecPointsInRun", "Not Defined" ) ; return 0 ; }
58 virtual void MakeClusters() {Warning("MakeClusters", "Not Defined" ) ; }
59 virtual void Print(const Option_t * = "")const {Warning("Print", "Not Defined" ) ; }
61 virtual void SetEmcClusteringThreshold(Float_t) = 0;
62 virtual void SetEmcLocalMaxCut(Float_t ) = 0;
64 virtual void SetEmcLogWeight(Float_t) = 0;
65 virtual void SetEmcTimeGate(Float_t) = 0;
66 virtual void SetCpvClusteringThreshold(Float_t) = 0;
67 virtual void SetCpvLocalMaxCut(Float_t) = 0;
68 virtual void SetCpvLogWeight(Float_t) = 0;
69 virtual void SetUnfolding(Bool_t) = 0;
70 void SetEventRange(Int_t first=0, Int_t last=-1) {fFirstEvent=first; fLastEvent=last; }
71 void SetEventFolderName(TString name) { fEventFolderName = name ; }
72 void SetRawReader(AliRawReader *reader) {fRawReader = reader;}
74 TString GetEventFolderName() const {return fEventFolderName;}
75 Int_t GetFirstEvent() const {return fFirstEvent; }
76 Int_t GetLastEvent() const {return fLastEvent; }
77 AliRawReader *GetRawReader() const {return fRawReader; }
79 AliPHOSClusterizer & operator = (const AliPHOSClusterizer & /*rvalue*/) {return *this ;}
81 virtual const char * Version() const {Warning("Version", "Not Defined" ) ; return 0 ; }
84 AliPHOSQualAssDataMaker * GetQualAssDataMaker() const { return fQADM ; }
86 TString fEventFolderName ; // event folder name
87 Int_t fFirstEvent; // first event to process
88 Int_t fLastEvent; // last event to process
89 AliRawReader *fRawReader; //! reader of raw data
91 AliPHOSQualAssDataMaker * fQADM ; //!Quality Assurance Data Maker
93 ClassDef(AliPHOSClusterizer,4) // Clusterization algorithm class
97 #endif // AliPHOSCLUSTERIZER_H