]> git.uio.no Git - u/mrichter/AliRoot.git/blame - HLT/TPCLib/Ref/AliHLTTPCHistogramAdaptive.h
Added data members to the track segment data structure to make
[u/mrichter/AliRoot.git] / HLT / TPCLib / Ref / AliHLTTPCHistogramAdaptive.h
CommitLineData
78001a73 1// @(#) $Id$
2
3#ifndef ALIHLTTPCHISTOGRAMADAPTIVE_H
4#define ALIHLTTPCHISTOGRAMADAPTIVE_H
5
6#include "AliHLTTPCRootTypes.h"
7#include "AliHLTTPCHistogram.h"
8
9class AliHLTTPCHistogramAdaptive : public AliHLTTPCHistogram {
10
11 public:
12 AliHLTTPCHistogramAdaptive();
13 AliHLTTPCHistogramAdaptive(Char_t *name,Double_t minpt,Double_t maxpt,Double_t ptres,
14 Int_t nybins,Double_t ymin,Double_t ymax);
15 ~AliHLTTPCHistogramAdaptive();
16
17 void Fill(Double_t x,Double_t y,Int_t weight=1);
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;
21 void Draw(Char_t *option = "hist");
22 void Print() const;
23
24 Double_t GetBinCenterX(Int_t xbin) const;
25 Double_t GetBinCenterY(Int_t ybin) const;
26
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
35 ClassDef(AliHLTTPCHistogramAdaptive,1) //2D histogram class
36
37};
38
39#endif