d15a28e7 |
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 */ |
6ad0bfa0 |
5 | |
6 | /* $Id$ */ |
d15a28e7 |
7 | |
702ab87e |
8 | /* History of cvs commits: |
9 | * |
10 | * $Log$ |
0378398c |
11 | * Revision 1.39 2006/03/30 13:04:56 hristov |
12 | * AliRawReader is not persistent |
13 | * |
f33f704d |
14 | * Revision 1.38 2005/07/25 15:53:09 kharlov |
15 | * Set raw data reader |
16 | * |
75c4aeb4 |
17 | * Revision 1.37 2005/05/28 14:19:04 schutz |
18 | * Compilation warnings fixed by T.P. |
19 | * |
702ab87e |
20 | */ |
21 | |
b2a60966 |
22 | //_________________________________________________________________________ |
8d0f3f77 |
23 | // Base class for the clusterization algorithm |
9a1398dd |
24 | //*-- Author: Yves Schutz (SUBATECH) & Dmitri Peressounko (SUBATECH & Kurchatov Institute) |
d15a28e7 |
25 | // --- ROOT system --- |
26 | |
9a1398dd |
27 | #include "TTask.h" |
88cb7938 |
28 | #include "AliConfig.h" |
75c4aeb4 |
29 | #include "AliRawReaderFile.h" |
88cb7938 |
30 | |
3e357865 |
31 | class TFile ; |
d15a28e7 |
32 | |
33 | // --- Standard library --- |
34 | |
35 | // --- AliRoot header files --- |
36 | |
9a1398dd |
37 | class AliPHOSClusterizer : public TTask { |
d15a28e7 |
38 | |
39 | public: |
40 | |
7b7c1533 |
41 | AliPHOSClusterizer() ; // default ctor |
e191bb57 |
42 | AliPHOSClusterizer(const TString alirunFileName, const TString eventFolderName = AliConfig::GetDefaultEventFolderName()) ; |
0378398c |
43 | AliPHOSClusterizer(const AliPHOSClusterizer & clusterizer); |
d15a28e7 |
44 | virtual ~AliPHOSClusterizer() ; // dtor |
21cd0c07 |
45 | virtual Float_t GetEmcClusteringThreshold()const {Warning("GetEmcClusteringThreshold", "Not Defined" ) ; return 0. ; } |
46 | virtual Float_t GetEmcLocalMaxCut()const {Warning("GetEmcLocalMaxCut", "Not Defined" ) ; return 0. ; } |
47 | virtual Float_t GetEmcLogWeight()const {Warning("GetEmcLogWeight", "Not Defined" ) ; return 0. ; } |
48 | virtual Float_t GetEmcTimeGate() const {Warning("GetEmcTimeGate", "Not Defined" ) ; return 0. ; } ; |
49 | virtual Float_t GetCpvClusteringThreshold()const {Warning("GetCpvClusteringThreshold", "Not Defined" ) ; return 0. ; } |
50 | virtual Float_t GetCpvLocalMaxCut()const {Warning("GetCpvLocalMaxCut", "Not Defined" ) ; return 0. ; } |
51 | virtual Float_t GetCpvLogWeight()const {Warning("GetCpvLogWeight", "Not Defined" ) ; return 0. ; } |
44d15c99 |
52 | virtual Int_t GetRecPointsInRun() const {Warning("GetRecPointsInRun", "Not Defined" ) ; return 0 ; } |
21cd0c07 |
53 | |
54 | virtual void MakeClusters() {Warning("MakeClusters", "Not Defined" ) ; } |
702ab87e |
55 | virtual void Print(const Option_t * = "")const {Warning("Print", "Not Defined" ) ; } |
21cd0c07 |
56 | |
90cceaf6 |
57 | virtual void SetEmcClusteringThreshold(Float_t) = 0; |
58 | virtual void SetEmcLocalMaxCut(Float_t ) = 0; |
0bc3b8ed |
59 | |
90cceaf6 |
60 | virtual void SetEmcLogWeight(Float_t) = 0; |
61 | virtual void SetEmcTimeGate(Float_t) = 0; |
62 | virtual void SetCpvClusteringThreshold(Float_t) = 0; |
63 | virtual void SetCpvLocalMaxCut(Float_t) = 0; |
64 | virtual void SetCpvLogWeight(Float_t) = 0; |
65 | virtual void SetUnfolding(Bool_t) = 0; |
eabde521 |
66 | void SetEventRange(Int_t first=0, Int_t last=-1) {fFirstEvent=first; fLastEvent=last; } |
67 | void SetEventFolderName(TString name) { fEventFolderName = name ; } |
75c4aeb4 |
68 | void SetRawReader(AliRawReader *reader) {fRawReader = reader;} |
88cb7938 |
69 | |
0378398c |
70 | TString GetEventFolderName() const {return fEventFolderName;} |
71 | Int_t GetFirstEvent() const {return fFirstEvent; } |
72 | Int_t GetLastEvent() const {return fLastEvent; } |
73 | AliRawReader *GetRawReader() const {return fRawReader; } |
74 | |
8c140292 |
75 | AliPHOSClusterizer & operator = (const AliPHOSClusterizer & /*rvalue*/) {return *this ;} |
88cb7938 |
76 | |
21cd0c07 |
77 | virtual const char * Version() const {Warning("Version", "Not Defined" ) ; return 0 ; } |
9a1398dd |
78 | |
8d0f3f77 |
79 | protected: |
88cb7938 |
80 | TString fEventFolderName ; // event folder name |
eabde521 |
81 | Int_t fFirstEvent; // first event to process |
82 | Int_t fLastEvent; // last event to process |
f33f704d |
83 | AliRawReader *fRawReader; //! reader of raw data |
8d0f3f77 |
84 | |
eabde521 |
85 | ClassDef(AliPHOSClusterizer,4) // Clusterization algorithm class |
d15a28e7 |
86 | |
87 | } ; |
88 | |
89 | #endif // AliPHOSCLUSTERIZER_H |