]> git.uio.no Git - u/mrichter/AliRoot.git/blob - HLT/hough/AliL3HistogramAdaptive.h
Moved to hlt-cern branch, containing fixes since August 03 and upcoming changes for...
[u/mrichter/AliRoot.git] / HLT / hough / AliL3HistogramAdaptive.h
1 // @(#) $Id$
2
3 #ifndef ALIL3_HISTOGRAMADAPTIVE
4 #define ALIL3_HISTOGRAMADAPTIVE
5
6 #include "AliL3RootTypes.h"
7 #include "AliL3Histogram.h"
8
9 class AliL3HistogramAdaptive : public AliL3Histogram {
10   
11  private:
12   Double_t fPtres;
13   Double_t fMinPt;
14   Double_t fMaxPt;
15   Double_t *fKappaBins; //!
16   
17   Int_t InitKappaBins();
18   
19  public:
20   AliL3HistogramAdaptive();
21   AliL3HistogramAdaptive(Char_t *name,Double_t minpt,Double_t maxpt,Double_t ptres,
22                          Int_t nybins,Double_t ymin,Double_t ymax);
23   ~AliL3HistogramAdaptive();
24
25   void Fill(Double_t x,Double_t y,Int_t weight=1);
26   Int_t FindBin(Double_t x,Double_t y);
27   Int_t FindXbin(Double_t x);
28   Int_t FindYbin(Double_t x);
29   void Draw(Char_t *option = "hist");
30   void Print();
31
32   Double_t GetBinCenterX(Int_t xbin);
33   Double_t GetBinCenterY(Int_t ybin);
34
35   ClassDef(AliL3HistogramAdaptive,1) //2D histogram class
36     
37 };
38
39 #endif