// $Id$ // // File: trk_mainframe.h // Created: Wed Apr 9 08:11:16 EDT 2008 // Creator: davidl (on Darwin Amelia.local 8.11.1 i386) // // This class is made into a ROOT dictionary ala rootcint. // Therefore, do NOT include anything Hall-D specific here. // It is OK to do that in the .cc file, just not here in the // header. #ifndef _trk_mainframe_ #define _trk_mainframe_ #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include class hdv_mainframe; #ifndef __CINT__ #include "hdv_mainframe.h" #endif class DCoordinateSystem; class DReferenceTrajectory; class trk_mainframe:public TGMainFrame{ public: trk_mainframe(hdv_mainframe *hdvmf, const TGWindow *p, UInt_t w, UInt_t h); virtual ~trk_mainframe(); void DoNewEvent(void); void DoMyRedraw(void); void DoHitSelect(void); void DoUpdateMenus(void); void DoTagMenuUpdate(Int_t widgetId, Int_t id); void DoTrackNumberMenuUpdate(Int_t widgetId, Int_t id); void DoRequestFocus(Int_t id); void FillDataTypeComboBox(TGComboBox* cb, const string &def="DTrack"); void FillFactoryTagComboBox(TGComboBox* cb, TGComboBox* datanamecb, const string &def); void FillTrackNumberComboBox(TGComboBox* cb, TGComboBox* datanamecb, TGComboBox* tagcb, bool add_best_match_option); protected: private: hdv_mainframe *hdvmf; TRootEmbeddedCanvas *canvas; TRootEmbeddedCanvas *histocanvas; TH1D *resi; TLatex *resi_lab; vector datatype; vector factorytag; vector trackno; TGCheckButton *slock; double slo, shi, resilo, resihi; vector graphics; void DrawAxes(TCanvas *c, vector &graphics, const char *xlab, const char *ylab); void DrawHits(vector &graphics); void DrawHitsForOneTrack(TVector3 &pos, TVector3 &mom, vector &graphics); void DrawHitsForOneTrack(vector &graphics, vector > &allhits, DReferenceTrajectory *rt, int index); ClassDef(trk_mainframe,1) }; #endif // _trk_mainframe_