Hall-D Software
alpha
|
#include <trk_mainframe.h>
Public Member Functions | |
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) |
Private Member Functions | |
void | DrawAxes (TCanvas *c, vector< TObject * > &graphics, const char *xlab, const char *ylab) |
void | DrawHits (vector< TObject * > &graphics) |
void | DrawHitsForOneTrack (TVector3 &pos, TVector3 &mom, vector< TObject * > &graphics) |
void | DrawHitsForOneTrack (vector< TObject * > &graphics, vector< pair< const DCoordinateSystem *, double > > &allhits, DReferenceTrajectory *rt, int index, vector< const DCDCTrackHit * > &cdctrackhits) |
bool | WireInList (const DCoordinateSystem *wire, vector< const DCDCTrackHit * > &cdctrackhits) |
Private Attributes | |
hdv_mainframe * | hdvmf |
TRootEmbeddedCanvas * | canvas |
TRootEmbeddedCanvas * | histocanvas |
TH1D * | resi |
TLatex * | resi_lab |
vector< TGComboBox * > | datatype |
vector< TGComboBox * > | factorytag |
vector< TGComboBox * > | trackno |
TGCheckButton * | slock |
double | slo |
double | shi |
double | resilo |
double | resihi |
vector< TObject * > | graphics |
Definition at line 61 of file trk_mainframe.h.
trk_mainframe::trk_mainframe | ( | hdv_mainframe * | hdvmf, |
const TGWindow * | p, | ||
UInt_t | w, | ||
UInt_t | h | ||
) |
Definition at line 47 of file trk_mainframe.cc.
References canvas, colors, datatype, DoNewEvent(), factorytag, FillDataTypeComboBox(), FillFactoryTagComboBox(), hdvmf, histocanvas, ncolors, resi, resi_lab, resihi, resilo, shi, slo, slock, sprintf(), and trackno.
|
virtual |
Definition at line 268 of file trk_mainframe.cc.
References hdv_mainframe::DoClearTrackInspectorPointer(), and hdvmf.
void trk_mainframe::DoHitSelect | ( | void | ) |
Definition at line 338 of file trk_mainframe.cc.
References _DBG__.
void trk_mainframe::DoMyRedraw | ( | void | ) |
Definition at line 285 of file trk_mainframe.cc.
References _DBG_, canvas, Draw(), DrawAxes(), DrawHits(), graphics, histocanvas, pad, resi, resi_lab, resihi, resilo, shi, sigma, slo, and sprintf().
Referenced by DoNewEvent(), and DoTrackNumberMenuUpdate().
void trk_mainframe::DoNewEvent | ( | void | ) |
Definition at line 276 of file trk_mainframe.cc.
References DoMyRedraw(), and DoUpdateMenus().
Referenced by trk_mainframe().
void trk_mainframe::DoRequestFocus | ( | Int_t | id | ) |
Definition at line 379 of file trk_mainframe.cc.
void trk_mainframe::DoTagMenuUpdate | ( | Int_t | widgetId, |
Int_t | id | ||
) |
Definition at line 357 of file trk_mainframe.cc.
References datatype, factorytag, and FillFactoryTagComboBox().
void trk_mainframe::DoTrackNumberMenuUpdate | ( | Int_t | widgetId, |
Int_t | id | ||
) |
Definition at line 368 of file trk_mainframe.cc.
References datatype, DoMyRedraw(), factorytag, FillTrackNumberComboBox(), and trackno.
void trk_mainframe::DoUpdateMenus | ( | void | ) |
Definition at line 347 of file trk_mainframe.cc.
References datatype, factorytag, FillTrackNumberComboBox(), and trackno.
Referenced by DoNewEvent().
|
private |
Create arrows indicating x and y axes with labels on the specified canvas and add them to the specified container of graphics objects to be draw later.
Definition at line 509 of file trk_mainframe.cc.
Referenced by DoMyRedraw().
|
private |
Definition at line 573 of file trk_mainframe.cc.
References _DBG_, datatype, DrawHitsForOneTrack(), factorytag, MyProcessor::GetAllWireHits(), MyProcessor::GetDReferenceTrajectory(), gMYPROC, xstream::base64::index(), REFTRAJ, resi, and trackno.
Referenced by DoMyRedraw().
|
private |
Referenced by DrawHits().
|
private |
void trk_mainframe::FillDataTypeComboBox | ( | TGComboBox * | cb, |
const string & | def = "DTrack" |
||
) |
Ideally, this would feel out the factories whose data types are based on DKinematicData. This is not currently possbile with JANA though so we have to simply add DTrackTimeBased, DTrackWireBased, DTrackCandidate, and DMCThrown explicitly.
Definition at line 387 of file trk_mainframe.cc.
Referenced by trk_mainframe().
void trk_mainframe::FillFactoryTagComboBox | ( | TGComboBox * | cb, |
TGComboBox * | datanamecb, | ||
const string & | def | ||
) |
Fill the given TGComboBox with the tags of the factories that provide data of the type currently selected in the "datanamecb" combo box.
Definition at line 415 of file trk_mainframe.cc.
References MyProcessor::GetFactories(), gMYPROC, and str.
Referenced by DoTagMenuUpdate(), and trk_mainframe().
void trk_mainframe::FillTrackNumberComboBox | ( | TGComboBox * | cb, |
TGComboBox * | datanamecb, | ||
TGComboBox * | tagcb, | ||
bool | add_best_match_option | ||
) |
Fill the given TGComboBox with the track numbers for the factory currently selected in the "datanamecb" with the tag in the "tagcb" combo boxes.
Definition at line 461 of file trk_mainframe.cc.
References MyProcessor::GetNrows(), gMYPROC, sprintf(), and str.
Referenced by DoTrackNumberMenuUpdate(), and DoUpdateMenus().
|
private |
Definition at line 802 of file trk_mainframe.cc.
|
private |
Definition at line 84 of file trk_mainframe.h.
Referenced by DoMyRedraw(), and trk_mainframe().
|
private |
Definition at line 88 of file trk_mainframe.h.
Referenced by DoTagMenuUpdate(), DoTrackNumberMenuUpdate(), DoUpdateMenus(), DrawHits(), and trk_mainframe().
|
private |
Definition at line 89 of file trk_mainframe.h.
Referenced by DoTagMenuUpdate(), DoTrackNumberMenuUpdate(), DoUpdateMenus(), DrawHits(), and trk_mainframe().
|
private |
Definition at line 95 of file trk_mainframe.h.
Referenced by DoMyRedraw().
|
private |
Definition at line 82 of file trk_mainframe.h.
Referenced by trk_mainframe(), and ~trk_mainframe().
|
private |
Definition at line 85 of file trk_mainframe.h.
Referenced by DoMyRedraw(), and trk_mainframe().
|
private |
Definition at line 86 of file trk_mainframe.h.
Referenced by DoMyRedraw(), DrawHits(), and trk_mainframe().
|
private |
Definition at line 87 of file trk_mainframe.h.
Referenced by DoMyRedraw(), and trk_mainframe().
|
private |
Definition at line 93 of file trk_mainframe.h.
Referenced by DoMyRedraw(), and trk_mainframe().
|
private |
Definition at line 93 of file trk_mainframe.h.
Referenced by DoMyRedraw(), and trk_mainframe().
|
private |
Definition at line 93 of file trk_mainframe.h.
Referenced by DoMyRedraw(), and trk_mainframe().
|
private |
Definition at line 93 of file trk_mainframe.h.
Referenced by DoMyRedraw(), and trk_mainframe().
|
private |
Definition at line 91 of file trk_mainframe.h.
Referenced by trk_mainframe().
|
private |
Definition at line 90 of file trk_mainframe.h.
Referenced by DoTrackNumberMenuUpdate(), DoUpdateMenus(), DrawHits(), and trk_mainframe().