]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - HLT/hough/AliL3HoughTransformer.h
Some additional changes related to the previous changes. AliL3Transform
[u/mrichter/AliRoot.git] / HLT / hough / AliL3HoughTransformer.h
index 585056528d23b30cd8040d58e36a8264580785b4..9bd33be39432afa6752bb934730d9be2ba77a4e6 100644 (file)
@@ -2,30 +2,15 @@
 #define ALIL3_HOUGHTRANSFORMER
 
 #include "AliL3RootTypes.h"
+#include "AliL3HoughBaseTransformer.h"
 
-class AliL3Transform;
 class AliL3Histogram;
-class AliL3DigitRowData;
 
-class AliL3HoughTransformer {
+class AliL3HoughTransformer : public AliL3HoughBaseTransformer {
   
  private:
-
-  Int_t fSlice;
-  Int_t fPatch;
-  Int_t fNEtaSegments;
-  Double_t fEtaMin;
-  Double_t fEtaMax;
-  Int_t fThreshold;
-  AliL3Transform *fTransform; //!
   
-  //Pointers to histograms
   AliL3Histogram **fParamSpace; //!
-
-  //Data pointers
-  UInt_t fNDigitRowData;
-  AliL3DigitRowData *fDigitRowData; //!
-  
   void DeleteHistograms();
 
  public:
@@ -33,36 +18,25 @@ class AliL3HoughTransformer {
   AliL3HoughTransformer(Int_t slice,Int_t patch,Int_t n_eta_segments);
   virtual ~AliL3HoughTransformer();
   
-  void SetInputData(UInt_t ndigits,AliL3DigitRowData *ptr);
   void CreateHistograms(Int_t nxbin,Double_t ptmin,Int_t nybin,Double_t phimin,Double_t phimax);
-  void CreateHistograms(Int_t nxbin=64,Double_t xmin=-0.006,Double_t xmax=0.006,
-                       Int_t nybin=64,Double_t ymin=-0.26,Double_t ymax=0.26);
+  void CreateHistograms(Int_t nxbin,Double_t xmin,Double_t xmax,
+                       Int_t nybin,Double_t ymin,Double_t ymax);
   void Reset();
   void TransformCircle();
-  void TransformCircleC();
+  void TransformCircleC(Int_t row_range);
   void TransformLine();
 
-  //Getters
-  Int_t GetSlice() {return fSlice;}
-  Int_t GetPatch() {return fPatch;}
-  Int_t GetNEtaSegments() {return fNEtaSegments;}
-  Int_t GetThreshold() {return fThreshold;}
-  Double_t GetEtaMin() {return fEtaMin;}
-  Double_t GetEtaMax() {return fEtaMax;}
-  Double_t GetEtaSlice() {return (fEtaMax - fEtaMin)/fNEtaSegments;}
-  void *GetDataPointer() {return (void*)fDigitRowData;}
+  Int_t GetEtaIndex(Double_t eta);
   AliL3Histogram *GetHistogram(Int_t eta_index);
   
-  //setters
-  void SetThreshold(Int_t i) {fThreshold = i;}
 
-  ClassDef(AliL3HoughTransformer,1) //Hough transformation class
+  ClassDef(AliL3HoughTransformer,1) //Normal Hough transformation class
 
 };
 
 inline AliL3Histogram *AliL3HoughTransformer::GetHistogram(Int_t eta_index)
 {
-  if(!fParamSpace || eta_index >= fNEtaSegments || eta_index < 0)
+  if(!fParamSpace || eta_index >= GetNEtaSegments() || eta_index < 0)
     return 0;
   if(!fParamSpace[eta_index])
     return 0;