]> git.uio.no Git - u/mrichter/AliRoot.git/blame - HLT/hough/AliL3HoughTransformerLUT.h
Fast Hough transformer using extensivle LUT for geometry and cos/sin functions.
[u/mrichter/AliRoot.git] / HLT / hough / AliL3HoughTransformerLUT.h
CommitLineData
d5d754e5 1#ifndef ALIL3_HOUGHTRANSFORMERLUT
2#define ALIL3_HOUGHTRANSFORMERLUT
3
4#include "AliL3RootTypes.h"
5#include "AliL3HoughBaseTransformer.h"
6
7class AliL3Histogram;
8
9class AliL3HoughTransformerLUT : public AliL3HoughBaseTransformer {
10
11 protected:
12 AliL3Histogram **fParamSpace; //!
13#ifdef do_mc
14 TrackIndex **fTrackID; //!
15#endif
16 Bool_t fDoMC;
17
18 void DeleteHistograms();
19
20 Int_t fMinRow;
21 Int_t fMaxRow;
22 Int_t fNRows;
23 Int_t fNEtas;
24 Int_t fNPhi0;
25 Int_t fSector;
26 Int_t fSectorRow;
27 Int_t fZSign;
28 Float_t fZLengthPlusOff;
29 Float_t fTimeWidth;
30 Float_t fPadPitch;
31 Float_t fEtaSlice;
32
33 Float_t *fLUTX; //!
34 Float_t *fLUTY; //!
35 Float_t *fLUTEta; //!
36 Float_t *fLUTphi0; //!
37 Float_t *fLUT2sinphi0; //!
38 Float_t *fLUT2cosphi0; //!
39
40 Float_t CalcRoverZ2(Float_t eta);
41 Float_t CalcEta(Float_t roverz2);
42 Float_t CalcX(Int_t row);
43 Float_t CalcY(Int_t pad, Int_t row);
44 Float_t CalcZ(Int_t time);
45
46 Int_t FindIndex(Double_t rz2);
47
48 public:
49
50 AliL3HoughTransformerLUT();
51 AliL3HoughTransformerLUT(Int_t slice,Int_t patch,Int_t n_eta_segments);
52 virtual ~AliL3HoughTransformerLUT();
53
54 void CreateHistograms(Int_t nxbin,Double_t ptmin,Int_t nybin,Double_t phimin,Double_t phimax);
55 void CreateHistograms(Int_t nxbin,Double_t xmin,Double_t xmax,Int_t nybin,Double_t ymin,Double_t ymax);
56 void Reset();
57
58 void TransformCircle();
59 void TransformCircleC(Int_t row_range){STDCERR<<"TransformCircleC is not defined for this transformer!"<<STDENDL;}
60 void TransformLine() {STDCERR<<"TransformLine is not defined for this transformer!"<<STDENDL;}
61
62 Int_t GetEtaIndex(Double_t eta);
63 AliL3Histogram *GetHistogram(Int_t eta_index);
64 Double_t GetEta(Int_t eta_index,Int_t slice);
65 Int_t GetTrackID(Int_t eta_index,Double_t kappa,Double_t psi);
66
67 void Print();
68 void Init(Int_t slice=0,Int_t patch=0,Int_t n_eta_segments=100);
69
70 ClassDef(AliL3HoughTransformerLUT,1) //Normal Hough transformation class
71
72};
73
74#endif
75
76
77
78