]>
Commit | Line | Data |
---|---|---|
4de874d1 | 1 | #ifndef ALIL3_HOUGH_MaxFinder |
2 | #define ALIL3_HOUGH_MaxFinder | |
3 | ||
4 | #include "AliL3RootTypes.h" | |
5 | ||
4cafa5fc | 6 | class AliL3Histogram; |
4de874d1 | 7 | class AliL3TrackArray; |
52a2a604 | 8 | class AliL3HoughTrack; |
4de874d1 | 9 | |
4fc9a6a4 | 10 | struct AxisWindow |
11 | { | |
12 | Int_t ymin; | |
13 | Int_t ymax; | |
14 | Int_t xbin; | |
15 | Int_t weight; | |
16 | }; | |
4cafa5fc | 17 | |
95a00d93 | 18 | class AliL3HoughMaxFinder { |
4de874d1 | 19 | |
20 | private: | |
21 | ||
22 | Int_t fThreshold; | |
4fc9a6a4 | 23 | AliL3Histogram *fCurrentHisto; //! |
4de874d1 | 24 | |
25 | Char_t fHistoType; | |
26 | ||
27 | public: | |
28 | AliL3HoughMaxFinder(); | |
4cafa5fc | 29 | AliL3HoughMaxFinder(Char_t *histotype,AliL3Histogram *hist=0); |
4de874d1 | 30 | virtual ~AliL3HoughMaxFinder(); |
31 | ||
4fc9a6a4 | 32 | void FindAbsMaxima(Int_t &max_xbin,Int_t &max_ybin); |
4cafa5fc | 33 | AliL3TrackArray *FindBigMaxima(AliL3Histogram *hist); |
34 | AliL3TrackArray *FindMaxima(AliL3Histogram *hist,Int_t *rowrange=0,Int_t ref_row=0); | |
35 | AliL3TrackArray *LookForPeaks(AliL3Histogram *hist,Int_t nbins); | |
4fc9a6a4 | 36 | |
b1886074 | 37 | void FindPeak(Int_t t1,Double_t t2,Int_t t3,Float_t &kappa,Float_t &phi0); |
4fc9a6a4 | 38 | AliL3HoughTrack *FindPeakLine(Double_t rho,Double_t theta); |
4cafa5fc | 39 | AliL3HoughTrack *CalculatePeakInWindow(Int_t *maxbin,Int_t t0,Int_t t1,Double_t t2,Int_t t3); |
b1886074 | 40 | void FindPeak1(Float_t *xpeaks,Float_t *ypeaks,Int_t *weight,Int_t &n,Int_t y_window=2,Int_t x_bin_sides=1); |
4fc9a6a4 | 41 | void SortPeaks(struct AxisWindow **a,Int_t first,Int_t last); |
42 | Int_t PeakCompare(struct AxisWindow *a,struct AxisWindow *b); | |
4cafa5fc | 43 | |
4de874d1 | 44 | void SetThreshold(Int_t f) {fThreshold = f;} |
e4c21048 | 45 | |
4cafa5fc | 46 | void SetHistogram(AliL3Histogram *hist) {fCurrentHisto = hist;} |
47 | ||
b1886074 | 48 | ClassDef(AliL3HoughMaxFinder,1) //Maximum finder class |
4de874d1 | 49 | |
50 | }; | |
51 | ||
52 | #endif |