1 #ifndef ALIL3_HOUGH_MaxFinder
2 #define ALIL3_HOUGH_MaxFinder
4 #include "AliL3RootTypes.h"
18 class AliL3HoughMaxFinder {
23 AliL3Histogram *fCurrentHisto; //!
28 AliL3HoughMaxFinder();
29 AliL3HoughMaxFinder(Char_t *histotype,AliL3Histogram *hist=0);
30 virtual ~AliL3HoughMaxFinder();
32 void FindAbsMaxima(Int_t &max_xbin,Int_t &max_ybin);
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);
37 void FindPeak(Int_t t1,Double_t t2,Int_t t3,Float_t &kappa,Float_t &phi0);
38 AliL3HoughTrack *FindPeakLine(Double_t rho,Double_t theta);
39 AliL3HoughTrack *CalculatePeakInWindow(Int_t *maxbin,Int_t t0,Int_t t1,Double_t t2,Int_t t3);
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);
41 void SortPeaks(struct AxisWindow **a,Int_t first,Int_t last);
42 Int_t PeakCompare(struct AxisWindow *a,struct AxisWindow *b);
44 void SetThreshold(Int_t f) {fThreshold = f;}
46 void SetHistogram(AliL3Histogram *hist) {fCurrentHisto = hist;}
48 ClassDef(AliL3HoughMaxFinder,1) //Maximum finder class