Hall-D Software  alpha
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
trk_mainframe Class Reference

#include <trk_mainframe.h>

+ Inheritance diagram for trk_mainframe:

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_mainframehdvmf
 
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
 

Detailed Description

Definition at line 61 of file trk_mainframe.h.

Constructor & Destructor Documentation

trk_mainframe::trk_mainframe ( hdv_mainframe hdvmf,
const TGWindow *  p,
UInt_t  w,
UInt_t  h 
)
trk_mainframe::~trk_mainframe ( )
virtual

Definition at line 268 of file trk_mainframe.cc.

References hdv_mainframe::DoClearTrackInspectorPointer(), and hdvmf.

Member Function Documentation

void trk_mainframe::DoHitSelect ( void  )

Definition at line 338 of file trk_mainframe.cc.

References _DBG__.

void trk_mainframe::DoMyRedraw ( void  )
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().

void trk_mainframe::DrawAxes ( TCanvas *  c,
vector< TObject * > &  graphics,
const char *  xlab,
const char *  ylab 
)
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().

void trk_mainframe::DrawHits ( vector< TObject * > &  graphics)
private
void trk_mainframe::DrawHitsForOneTrack ( TVector3 &  pos,
TVector3 &  mom,
vector< TObject * > &  graphics 
)
private

Referenced by DrawHits().

void trk_mainframe::DrawHitsForOneTrack ( vector< TObject * > &  graphics,
vector< pair< const DCoordinateSystem *, double > > &  allhits,
DReferenceTrajectory rt,
int  index,
vector< const DCDCTrackHit * > &  cdctrackhits 
)
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().

bool trk_mainframe::WireInList ( const DCoordinateSystem wire,
vector< const DCDCTrackHit * > &  cdctrackhits 
)
private

Definition at line 802 of file trk_mainframe.cc.

Member Data Documentation

TRootEmbeddedCanvas* trk_mainframe::canvas
private

Definition at line 84 of file trk_mainframe.h.

Referenced by DoMyRedraw(), and trk_mainframe().

vector<TGComboBox*> trk_mainframe::datatype
private
vector<TGComboBox*> trk_mainframe::factorytag
private
vector<TObject*> trk_mainframe::graphics
private

Definition at line 95 of file trk_mainframe.h.

Referenced by DoMyRedraw().

hdv_mainframe* trk_mainframe::hdvmf
private

Definition at line 82 of file trk_mainframe.h.

Referenced by trk_mainframe(), and ~trk_mainframe().

TRootEmbeddedCanvas* trk_mainframe::histocanvas
private

Definition at line 85 of file trk_mainframe.h.

Referenced by DoMyRedraw(), and trk_mainframe().

TH1D* trk_mainframe::resi
private

Definition at line 86 of file trk_mainframe.h.

Referenced by DoMyRedraw(), DrawHits(), and trk_mainframe().

TLatex* trk_mainframe::resi_lab
private

Definition at line 87 of file trk_mainframe.h.

Referenced by DoMyRedraw(), and trk_mainframe().

double trk_mainframe::resihi
private

Definition at line 93 of file trk_mainframe.h.

Referenced by DoMyRedraw(), and trk_mainframe().

double trk_mainframe::resilo
private

Definition at line 93 of file trk_mainframe.h.

Referenced by DoMyRedraw(), and trk_mainframe().

double trk_mainframe::shi
private

Definition at line 93 of file trk_mainframe.h.

Referenced by DoMyRedraw(), and trk_mainframe().

double trk_mainframe::slo
private

Definition at line 93 of file trk_mainframe.h.

Referenced by DoMyRedraw(), and trk_mainframe().

TGCheckButton* trk_mainframe::slock
private

Definition at line 91 of file trk_mainframe.h.

Referenced by trk_mainframe().

vector<TGComboBox*> trk_mainframe::trackno
private

Definition at line 90 of file trk_mainframe.h.

Referenced by DoTrackNumberMenuUpdate(), DoUpdateMenus(), DrawHits(), and trk_mainframe().


The documentation for this class was generated from the following files: