// Author: David Lawrence June 25, 2004 // // // MyProcessor.h // /// Example program for a Hall-D analyzer which uses DANA /// #include "DApplication.h" #include "DEventProcessor.h" #include "DEventLoop.h" #include #include #include #include #include #include #include #include #include "../TRACKING/Dtrk_hit.h" #include "DQuickFit.h" class DMagneticFieldMap; class DFactory_DTrackCandidate; class MyProcessor:public DEventProcessor { public: MyProcessor(); derror_t init(void); ///< Called once at program start. derror_t evnt(DEventLoop *eventLoop, int eventnumber); ///< Called every event. derror_t fini(void); ///< Called after last event of last event source has been processed. derror_t PlotXYHits(void); derror_t PlotPhiVsZ(void); derror_t PlotPhiZSlope(void); derror_t PlotZVertex(void); derror_t PlotStats(void); void DrawXYFit(DQuickFit *fit, int color, int width); void DrawCircle(float x0, float y0, float r0, int color, int width); void DrawXYDot(Dtrk_hit *hit, float size, int style, int color); void DrawXYDots(vector hits, float size, int style, int color); void DrawPhiZDots(vector hits, DQuickFit *fit, float size, int style, int color); void DrawPhiZFit(DQuickFit *fit, int color, int width); void DrawPhiZLine(float dphidz, float z_vertex, int color, int width); TH2F *axes, *axes_phiz, *axes_hits; DFactory_DTrackCandidate *factory; DEventLoop *eventLoop; vector graphics; vector trkhits; vector > dbg_in_seed; vector > dbg_hoc; vector > dbg_hol; vector > dbg_hot; vector dbg_seed_fit; vector dbg_track_fit; vector dbg_seed_index; vector dbg_phiz_hist; vector dbg_phiz_hist_seed; vector dbg_zvertex_hist; vector dbg_zvertex_hist_seed; vector dbg_phizangle; vector dbg_z_vertex; };