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