00001 #ifndef HOUGHVIEW_H
00002 #define HOUGHVIEW_H
00003
00004 #include "NueAna/ParticlePID/ParticleFinder/Display/Page.h"
00005 #include "TH2.h"
00006 #include "TPad.h"
00007
00008 #include "NueAna/ParticlePID/ParticleFinder/ParticleObjectHolder.h"
00009 #include "NueAna/ParticlePID/ParticleFinder/ChainHelper.h"
00010 #include "NueAna/ParticlePID/ParticleFinder/PrimaryShowerFinder.h"
00011 #include "TLatex.h"
00012
00013 class HoughView : public Page
00014 {
00015
00016 public:
00017 HoughView();
00018 ~HoughView();
00019
00020 virtual void BuildDisplay(TCanvas *c);
00021 virtual void DrawEvent(ParticleObjectHolder * poh=0, NtpStRecord *ntp=0,int ntpEvt=-1);
00022
00023 void DrawChains(int view);
00024 void DrawTrueVertex(int view);
00025 void DrawVertex(int view);
00026 void DrawClusters(int view, TH2 * h);
00027
00028
00029 void DrawHough(int view, TH2 * h);
00030
00031 private:
00032 TPad * padU;
00033 TPad * padV;
00034
00035
00036 TH2D * viewU;
00037 TH2D * viewV;
00038
00039 TH2D * houghviewU;
00040 TH2D * houghviewV;
00041
00042 ParticleObjectHolder * mypoh;
00043
00044
00045 void ClearHit(TH2D * his, double below_val, int curx, int cury);
00046 void SaveHitGroup(TH2D * his, TH2D * saver, double save_val,double with_val, int curx, int cury);
00047 void GetPeakAreaAverage(double &x, double &y,double &val, int & cnt, int curx, int cury, TH2D * hist);
00048 };
00049
00050 #endif
00051