8 #include "TVirtualViewer3D.h" 36 evdb::Canvas::fCanvas->cd();
38 fMC =
new MCBriefPad(
"fMCPad",
"MC Info.", 0.15, 0.13, 1.00, 0.17,
"");
40 evdb::Canvas::fCanvas->cd();
43 evdb::Canvas::fCanvas->cd();
47 fMCOn =
new TGCheckButton(fFrame,
"MC Truth",5);
48 fMCOn->Connect(
"Clicked()",
"gar::evd::Display3DView",
this,
"SetMCInfo()");
53 fRecoDraw =
new TGRadioButton(fFrame,
"Reconstructed", 3);
54 fRawDraw =
new TGRadioButton(fFrame,
"Raw", 4);
55 fRawDraw ->Connect(
"Clicked()",
"gar::evd::Display3DView",
this,
"SetRawReco()");
56 fRecoDraw ->Connect(
"Clicked()",
"gar::evd::Display3DView",
this,
"SetRawReco()");
59 fFrame->AddFrame(
fMCOn,
new TGLayoutHints(kLHintsBottom | kLHintsRight, 0, 0, 5, 1 ) );
61 fFrame->AddFrame(
fRecoDraw,
new TGLayoutHints(kLHintsBottom | kLHintsRight, 0, 0, 5, 1 ) );
62 fFrame->AddFrame(
fRawDraw,
new TGLayoutHints(kLHintsBottom | kLHintsRight, 0, 0, 5, 1 ) );
63 evdb::Canvas::fCanvas->cd();
65 0.0, 0.0, 1.0, 1.0,
"");
67 this->Connect(
"CloseWindow()",
68 "gar::evd::Display3DView",
74 evdb::Canvas::fCanvas->Update();
95 evdb::Canvas::fCanvas->Update();
98 viewer->PreferLocalFrame();
99 viewer->ResetCameras();
109 TGButton *
b = (TGButton *)gTQSender;
110 int id = b->WidgetId();
114 rawopt->fDrawRawOrReco = 0;
119 rawopt->fDrawRawOrReco = 1;
124 TVirtualPad *ori = gPad;
126 evdb::Canvas::fCanvas->cd();
127 evdb::Canvas::fCanvas->Modified();
128 evdb::Canvas::fCanvas->Update();
144 TVirtualPad *ori = gPad;
146 evdb::Canvas::fCanvas->cd();
147 evdb::Canvas::fCanvas->Modified();
148 evdb::Canvas::fCanvas->Update();
int fEnableMCTruthCheckBox
1 to have the check box appear, 0 otherwise
A drawing pad showing a 3D rendering of the detector.
Display3DPad * fDisplay3DPad
void Draw(const char *opt="")
TGRadioButton * fRecoDraw
Draw Reconstructed information only.
HeaderPad * fHeaderPad
Pad showing 3D view of the detector.
General GArSoft Utilities.
TGRadioButton * fRawDraw
Draw Raw information only.
TGCheckButton * fMCOn
Display MC truth information.
Display3DView(TGMainFrame *mf)
MCBriefPad * fMC
Short summary of MC event.