]> git.uio.no Git - u/mrichter/AliRoot.git/blob - HLT/hough/AliHLTHistogramAdaptive.h
Fixing generation of trigger record structure.
[u/mrichter/AliRoot.git] / HLT / hough / AliHLTHistogramAdaptive.h
1 // @(#) $Id$
2
3 #ifndef ALIL3HISTOGRAMADAPTIVE_H
4 #define ALIL3HISTOGRAMADAPTIVE_H
5
6 #include "AliHLTRootTypes.h"
7 #include "AliHLTHistogram.h"
8
9 class AliHLTHistogramAdaptive : public AliHLTHistogram {
10   
11  public:
12   AliHLTHistogramAdaptive();
13   AliHLTHistogramAdaptive(Char_t *name,Double_t minpt,Double_t maxpt,Double_t ptres,
14                          Int_t nybins,Double_t ymin,Double_t ymax);
15   ~AliHLTHistogramAdaptive();
16
17   void Fill(Double_t x,Double_t y,Int_t weight=1);
18   void Fill(Double_t x,Int_t ybin,Int_t weight=1) {
19     AliHLTHistogram::Fill(x,ybin,weight);
20   }
21   void Fill(Int_t xbin,Double_t y,Int_t weight=1) {
22     AliHLTHistogram::Fill(xbin,y,weight);
23   }
24   void Fill(Int_t xbin,Int_t ybin,Int_t weight=1) {
25     AliHLTHistogram::Fill(xbin,ybin,weight);
26   }
27   Int_t FindBin(Double_t x,Double_t y) const;
28   Int_t FindXbin(Double_t x) const;
29   Int_t FindYbin(Double_t x) const;
30   void Draw(Char_t *option = "hist");
31   void Print() const;
32
33   Double_t GetBinCenterX(Int_t xbin) const;
34   Double_t GetBinCenterY(Int_t ybin) const;
35
36  private:
37   Double_t fPtres;//The desired Pt resolution
38   Double_t fMinPt;//Minimum Pt
39   Double_t fMaxPt;//Maximum Pt
40   Double_t *fKappaBins; //!
41   
42   Int_t InitKappaBins();
43   
44   ClassDef(AliHLTHistogramAdaptive,1) //2D histogram class
45     
46 };
47
48 typedef AliHLTHistogramAdaptive AliL3HistogramAdaptive; // for backward comaatibility 
49
50 #endif