// Author: David Lawrence June 25, 2004 // // // MyProcessor.h // /// Example program for a Hall-D analyzer which uses DANA /// #include "JANA/JEventProcessor.h" #include "JANA/JEventLoop.h" #include "DANA/DApplication.h" #include #include #include #include #include #include #include #include #include "TRACKING/Dtrk_hit.h" #include "TRACKING/DQuickFit.h" #include "TRACKING/DSeed.h" class DMagneticFieldMap; class DTrackCandidate_factory; class MyProcessor:public JEventProcessor { public: MyProcessor(); jerror_t init(void); ///< Called once at program start. jerror_t evnt(JEventLoop *eventLoop, int eventnumber); ///< Called every event. jerror_t fini(void); ///< Called after last event of last event source has been processed. jerror_t PlotXYHits(void); jerror_t PlotPhiVsZ(void); jerror_t PlotPhiZSlope(void); jerror_t PlotZVertex(void); jerror_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; DTrackCandidate_factory *factory; JEventLoop *eventLoop; vector graphics; vector trkhits; vector trkhits_stereo; vector dbg_seeds; };