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

HoughTransNCPi0.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: rhatcher $ 
00011 //
00012 // $Revision: 1.2 $
00013 // 
00014 // $Name:  $
00015 //
00016 // $Id: HoughTransNCPi0.h,v 1.2 2008/05/02 15:46:25 rhatcher Exp $
00017 //
00019 
00020 
00021 
00022 #ifndef houghtransNCPi0_h
00023 #define houghtransNCPi0_h
00024 
00025 #include "TH2F.h"
00026 #include "CandNtupleSR/NtpSRStrip.h"
00027 
00028 class HoughTransNCPi0 {
00029 
00030  public:
00031   ~HoughTransNCPi0();
00032   HoughTransNCPi0();
00033   HoughTransNCPi0(Int_t numSamps,Float_t lowGrad,Float_t highGrad);
00034   HoughTransNCPi0(Int_t numSamps,Float_t lowGrad,Float_t highGrad,Float_t lowIcept,Float_t highIcept);
00035   void SetVtxz(Float_t vertz);
00036   Float_t GetVtxz();
00037   void FillHough(NtpSRStrip* stp);
00038   void FillHough(Float_t zPos, Float_t tPos);
00039  // void FillHoughfixed(Float_t zPos, Float_t tPos);
00040   void FillHoughweight(Float_t zPos, Float_t tPos, Float_t energy);
00041   void DrawHough();
00042   Int_t EntriesHough();
00043   void ResetHough();
00044   void DeleteHough();
00045   Int_t GetPeakHeight();
00046   Int_t GetPeakGradBin();
00047   Int_t GetPeakIceptBin();
00048   Float_t GetPeakGradVal();
00049   Float_t GetPeakIceptVal();
00050   Float_t GetCos();
00051   Float_t GetGradientweight();
00052   Float_t GetTransverseVtxCoord();
00053   Float_t GetIntercept();
00054   Float_t GetRms(Float_t frac);
00055 
00056   // the arguement frac should take values from [0,1] and
00057   // represents the fraction of fullness a bin must have
00058   // relative to the peak to be included in the RMS 
00059   // calculation (I use 0.75)
00060 
00061   // before calling GetRms() it is worth checking that the
00062   // peak height in Hough space is not zero, in fact 'low'
00063   // values for the peak height mean that the hits that 
00064   // contribute to the peak (and hence the 'track' found)
00065   // may not actually be a track at all
00066 
00067   TH2F* houghSpace;
00068   Float_t vtxz;
00069 
00070  private:
00071 
00072   //TH2F houghSpace;
00073   //Float_t vtxz;
00074 
00075 };
00076 
00077 #endif

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