65c0c07640bbae69cd4ff83f9b028820a0c34e93
[u/mrichter/AliRoot.git] / HLT / hough / AliL3HistogramAdaptive.h
1 #ifndef ALIL3_HISTOGRAMADAPTIVE
2 #define ALIL3_HISTOGRAMADAPTIVE
3
4 #include <stream.h>
5 #include "AliL3RootTypes.h"
6 #include "AliL3Histogram.h"
7
8 class AliL3HistogramAdaptive : public AliL3Histogram {
9   
10  private:
11   Double_t fPtres;
12   Double_t fMinPt;
13   Double_t fMaxPt;
14   Float_t fPtstep;
15   
16   Int_t InitPtBins();
17   
18  public:
19   AliL3HistogramAdaptive();
20   AliL3HistogramAdaptive(Char_t *name,Double_t minpt,Double_t maxpt,Double_t ptres,
21                          Int_t nybins,Double_t ymin,Double_t ymax);
22   ~AliL3HistogramAdaptive();
23
24   void Fill(Double_t x,Double_t y,Int_t weight=1);
25   Int_t FindBin(Double_t x,Double_t y);
26   Int_t FindXbin(Double_t x);
27   Int_t FindYbin(Double_t y);
28   void Draw(Char_t *option = "hist");
29   void Print();
30
31   Double_t GetBinCenterX(Int_t xbin);
32   Double_t GetBinCenterY(Int_t ybin);
33   
34   ClassDef(AliL3HistogramAdaptive,1) //2D histogram class
35     
36 };
37
38 #endif