Some additional changes related to the previous changes. AliL3Transform
[u/mrichter/AliRoot.git] / HLT / hough / AliL3HoughEval.h
index 8dfaf514b52f8c6d301aa777a61cdb35faf44b83..f88d7f0fd1ba3a018d2231fa0de56b7a772c307a 100644 (file)
@@ -3,13 +3,15 @@
 
 #include "AliL3RootTypes.h"
 
 
 #include "AliL3RootTypes.h"
 
-class AliL3HoughTransformer;
+
+class AliL3HoughBaseTransformer;
 class AliL3Transform;
 class AliL3HoughTrack;
 class AliL3DigitRowData;
 class AliL3Histogram;
 class AliL3Transform;
 class AliL3HoughTrack;
 class AliL3DigitRowData;
 class AliL3Histogram;
+class AliL3Histogram1D;
 
 
-class AliL3HoughEval : public TObject {
+class AliL3HoughEval {
   
  private:
 
   
  private:
 
@@ -21,27 +23,37 @@ class AliL3HoughEval : public TObject {
   Double_t fEtaMax;
   Int_t fNumOfPadsToLook;
   Int_t fNumOfRowsToMiss;
   Double_t fEtaMax;
   Int_t fNumOfPadsToLook;
   Int_t fNumOfRowsToMiss;
-  
+  AliL3Histogram1D **fEtaHistos; //!
+
   //Flags
   Bool_t fRemoveFoundTracks;
   
   AliL3Transform *fTransform; //!
   //Flags
   Bool_t fRemoveFoundTracks;
   
   AliL3Transform *fTransform; //!
-  AliL3HoughTransformer *fHoughTransformer; //!
+  AliL3HoughBaseTransformer *fHoughTransformer; //!
   AliL3DigitRowData **fRowPointers; //!
   
  public:
   AliL3HoughEval(); 
   AliL3DigitRowData **fRowPointers; //!
   
  public:
   AliL3HoughEval(); 
-  AliL3HoughEval(AliL3HoughTransformer *transform);
   virtual ~AliL3HoughEval();
   
   virtual ~AliL3HoughEval();
   
+  void InitTransformer(AliL3HoughBaseTransformer *transformer);
   void GenerateLUT();
   void DisplayEtaSlice(Int_t eta_index,AliL3Histogram *hist);
   Bool_t LookInsideRoad(AliL3HoughTrack *track,Int_t eta_index,Bool_t remove=kFALSE);
   void GenerateLUT();
   void DisplayEtaSlice(Int_t eta_index,AliL3Histogram *hist);
   Bool_t LookInsideRoad(AliL3HoughTrack *track,Int_t eta_index,Bool_t remove=kFALSE);
+#ifdef use_root
+  void CompareMC(AliL3TrackArray *tracks,Char_t *goodtracks="good_tracks",Int_t treshold=0);
+#endif
+  void FindEta(AliL3TrackArray *tracks);
   
   
+  //Getters
+  AliL3Histogram1D *GetEtaHisto(Int_t i) {if(!fEtaHistos) return 0; if(!fEtaHistos[i]) return 0; return fEtaHistos[i];}
+
   //Setters:
   void RemoveFoundTracks() {fRemoveFoundTracks = kTRUE;}
   //Setters:
   void RemoveFoundTracks() {fRemoveFoundTracks = kTRUE;}
-  
-  ClassDef(AliL3HoughEval,1)
+  void SetNumOfRowsToMiss(Int_t i) {fNumOfRowsToMiss = i;}
+  void SetNumOfPadsToLook(Int_t i) {fNumOfPadsToLook = i;}
+
+  ClassDef(AliL3HoughEval,1) //Hough transform verfication class
 
 };
 
 
 };