Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

HoughTrans.h

Go to the documentation of this file.
00001 
00003 //
00004 // HoughTrans
00005 //
00006 // Mark's hough transform.
00007 //
00008 // Created:  M. Dorman -- May, 2005
00009 //
00010 // $Author: kordosky $ 
00011 //
00012 // $Revision: 1.3 $
00013 // 
00014 // $Name:  $
00015 //
00016 // $Id: HoughTrans.h,v 1.3 2005/08/02 11:22:56 kordosky Exp $
00017 //
00019 
00020 
00021 
00022 #ifndef houghtrans_h
00023 #define houghtrans_h
00024 
00025 #include "TH2F.h"
00026 #include "MadBase.h"
00027 
00028 class HoughTrans {
00029 
00030  public:
00031   ~HoughTrans();
00032   HoughTrans();
00033   HoughTrans(Int_t numSamps,Float_t lowGrad,Float_t highGrad);
00034   HoughTrans(Int_t numSamps,Float_t lowGrad,Float_t highGrad,Float_t lowIcept,Float_t highIcept);
00035   void SetVtxz(Float_t vertz);
00036   void FillHough(NtpSRStrip* stp);
00037   void FillHough(Float_t zPos, Float_t tPos);
00038   void ResetHough();
00039   void DeleteHough();
00040   Int_t GetPeakHeight();
00041   Int_t GetPeakGradBin();
00042   Int_t GetPeakIceptBin();
00043   Float_t GetPeakGradVal();
00044   Float_t GetPeakIceptVal();
00045   Float_t GetRms(Float_t frac);
00046 
00047   // the arguement frac should take values from [0,1] and
00048   // represents the fraction of fullness a bin must have
00049   // relative to the peak to be included in the RMS 
00050   // calculation (I use 0.75)
00051 
00052   // before calling GetRms() it is worth checking that the
00053   // peak height in Hough space is not zero, in fact 'low'
00054   // values for the peak height mean that the hits that 
00055   // contribute to the peak (and hence the 'track' found)
00056   // may not actually be a track at all
00057 
00058   TH2F* houghSpace;
00059   Float_t vtxz;
00060 
00061  private:
00062 
00063   //TH2F houghSpace;
00064   //Float_t vtxz;
00065 
00066 };
00067 
00068 #endif

Generated on Mon Feb 15 11:06:47 2010 for loon by  doxygen 1.3.9.1