]> git.uio.no Git - u/mrichter/AliRoot.git/blob - HLT/hough/AliHLTHoughTransformerNew.h
Completely updated version (Guillermo)
[u/mrichter/AliRoot.git] / HLT / hough / AliHLTHoughTransformerNew.h
1 // @(#) $Id$
2
3 #ifndef ALIL3HOUGHTRANSFORMERNEW_H
4 #define ALIL3HOUGHTRANSFORMERNEW_H
5
6 #include "AliHLTRootTypes.h"
7 #include "AliHLTHoughTransformer.h"
8
9 #include <TH3.h>
10
11 class AliHLTTrackArray;
12 class AliHLTHoughTrack;
13  
14 class AliHLTHoughTransformerNew : public AliHLTHoughTransformer {
15
16  public:
17   AliHLTHoughTransformerNew(); 
18   AliHLTHoughTransformerNew(Int_t slice,Int_t patch,Int_t netasegments);
19   virtual ~AliHLTHoughTransformerNew();
20   
21   void Reset();
22   void CreateHistograms(Float_t ptmin,Float_t ptmax,Float_t pres,Int_t nybin,Float_t psi) {
23     AliHLTHoughTransformer::CreateHistograms(ptmin,ptmax,pres,nybin,psi);
24   }
25   void CreateHistograms(Int_t nxbin,Float_t ptmin,Int_t nybin,Float_t phimin,Float_t phimax) {
26     AliHLTHoughTransformer::CreateHistograms(nxbin,ptmin,nybin,phimin,phimax);
27   }
28   void CreateHistograms(Int_t nxbin,Float_t xmin,Float_t xmax,Int_t nybin,Float_t ymin,Float_t ymax) {
29     AliHLTHoughTransformer::CreateHistograms(nxbin,xmin,xmax,nybin,ymin,ymax);
30   }
31   void CreateHistograms(Int_t nxbins,Float_t xlow,Float_t xup,
32                         Int_t nybins,Float_t ylow,Float_t yup,
33                         Int_t nzbins,Float_t zlow,Float_t zup);
34   void TransformLine(Int_t *rowrange,Float_t *phirange);
35   void TransformLineC(Int_t *rowrange,Float_t *phirange);
36   
37   TH3 *GetHistogram() {return fParamSpace3D;}
38   AliHLTHistogram *GetHistogram(Int_t etaindex){
39     return AliHLTHoughTransformer::GetHistogram(etaindex);
40   }
41   
42  private:
43   
44   TH3 *fParamSpace3D;//Histogram containing the hough space
45   
46   ClassDef(AliHLTHoughTransformerNew,1) //Normal Hough transformation class
47
48 };
49
50 typedef AliHLTHoughTransformerNew AliL3HoughTransformerNew; // for backward comaptibility
51
52 #endif
53
54
55
56