]> git.uio.no Git - u/mrichter/AliRoot.git/blob - HLT/hough/AliL3HoughTransformerRow.h
Proper variable names for hough transform variables. Removed unused method to create...
[u/mrichter/AliRoot.git] / HLT / hough / AliL3HoughTransformerRow.h
1 // @(#) $Id$
2
3 #ifndef ALIL3HOUGHTRANSFORMERROW_H
4 #define ALIL3HOUGHTRANSFORMERROW_H
5
6 #include "AliL3RootTypes.h"
7 #include "AliL3HoughBaseTransformer.h"
8
9 #define MAX_N_GAPS 4
10 #define MAX_GAP_SIZE 4
11 #define MIN_TRACK_LENGTH 70
12 #define MAX_MISS_ROWS 2
13
14 class AliL3Histogram;
15
16 class AliL3HoughTransformerRow : public AliL3HoughBaseTransformer {
17
18  public:
19   AliL3HoughTransformerRow(); 
20   AliL3HoughTransformerRow(Int_t slice,Int_t patch,Int_t netasegments,Bool_t DoMC=kFALSE,Float_t zvertex=0.0);
21   virtual ~AliL3HoughTransformerRow();
22
23   //void CreateHistograms(Float_t ptmin,Float_t ptmax,Float_t ptres,Int_t nybin,Float_t psi);
24   void CreateHistograms(Int_t nxbin,Float_t ptmin,Int_t nybin,Float_t phimin,Float_t phimax)
25   {STDCERR<<"This method for creation of parameter space histograms is not supported for this Transformer!"<<STDENDL;}
26   void CreateHistograms(Int_t nxbin,Float_t xmin,Float_t xmax,
27                         Int_t nybin,Float_t ymin,Float_t ymax);
28   void Reset();
29   void TransformCircle();
30
31   Int_t GetEtaIndex(Double_t eta) const;
32   AliL3Histogram *GetHistogram(Int_t etaindex);
33   Double_t GetEta(Int_t etaindex,Int_t slice) const;
34   Int_t GetTrackID(Int_t etaindex,Double_t alpha1,Double_t alpha2) const;
35   UChar_t *GetRowCount(Int_t etaindex);
36   UChar_t *GetGapCount(Int_t etaindex);
37   UChar_t *GetCurrentRowCount(Int_t etaindex);
38   static UChar_t *GetTrackNRows();
39   static UChar_t *GetTrackFirstRow();
40   static UChar_t *GetTrackLastRow();
41   static Float_t GetBeta1() {return fgBeta1;}
42   static Float_t GetBeta2() {return fgBeta2;}
43
44  private:
45   
46   AliL3Histogram **fParamSpace; //!
47
48 #ifdef do_mc
49   static AliL3TrackIndex **fgTrackID; //!
50 #endif
51   Bool_t fDoMC; // Do MC labels or not
52
53   void DeleteHistograms(); //Method to clean up the histograms containing Hough space
54
55   static UChar_t **fgRowCount; //!
56   static UChar_t **fgGapCount; //!
57   static UChar_t **fgCurrentRowCount; //!
58
59   static UChar_t *fgTrackNRows; //!
60   static UChar_t *fgTrackFirstRow; //!
61   static UChar_t *fgTrackLastRow; //!
62
63   Float_t *fLUTforwardZ; //!
64   Float_t *fLUTforwardZ2; //!
65   Float_t *fLUTbackwardZ; //!
66   Float_t *fLUTbackwardZ2; //!
67
68   static Float_t fgBeta1,fgBeta2; // Two curves which define the Hough space
69
70   ClassDef(AliL3HoughTransformerRow,1) //TPC Rows Hough transformation class
71
72 };
73
74 #endif
75
76
77
78