]>
Commit | Line | Data |
---|---|---|
3e87ef69 | 1 | // @(#) $Id$ |
2 | ||
bd2f8772 | 3 | #ifndef ALIL3HISTOGRAMADAPTIVE_H |
4 | #define ALIL3HISTOGRAMADAPTIVE_H | |
6b88e8ee | 5 | |
6b88e8ee | 6 | #include "AliL3RootTypes.h" |
7 | #include "AliL3Histogram.h" | |
8 | ||
9 | class AliL3HistogramAdaptive : public AliL3Histogram { | |
10 | ||
6b88e8ee | 11 | public: |
12 | AliL3HistogramAdaptive(); | |
6b9816d6 | 13 | AliL3HistogramAdaptive(Char_t *name,Double_t minpt,Double_t maxpt,Double_t ptres, |
6b88e8ee | 14 | Int_t nybins,Double_t ymin,Double_t ymax); |
15 | ~AliL3HistogramAdaptive(); | |
16 | ||
17 | void Fill(Double_t x,Double_t y,Int_t weight=1); | |
1f1942b8 | 18 | Int_t FindBin(Double_t x,Double_t y) const; |
19 | Int_t FindXbin(Double_t x) const; | |
20 | Int_t FindYbin(Double_t x) const; | |
6b88e8ee | 21 | void Draw(Char_t *option = "hist"); |
bd2f8772 | 22 | void Print() const; |
6b88e8ee | 23 | |
1f1942b8 | 24 | Double_t GetBinCenterX(Int_t xbin) const; |
25 | Double_t GetBinCenterY(Int_t ybin) const; | |
0a86fbb7 | 26 | |
bd2f8772 | 27 | private: |
28 | Double_t fPtres;//The desired Pt resolution | |
29 | Double_t fMinPt;//Minimum Pt | |
30 | Double_t fMaxPt;//Maximum Pt | |
31 | Double_t *fKappaBins; //! | |
32 | ||
33 | Int_t InitKappaBins(); | |
34 | ||
6b88e8ee | 35 | ClassDef(AliL3HistogramAdaptive,1) //2D histogram class |
36 | ||
37 | }; | |
38 | ||
39 | #endif |