#include <GNuMcMainFrame.h>
Definition at line 88 of file GNuMcMainFrame.h.
GNuMcMainFrame::GNuMcMainFrame |
( |
const TGWindow * |
p, |
|
|
UInt_t |
w, |
|
|
UInt_t |
h |
|
) |
| |
GNuMcMainFrame::~GNuMcMainFrame |
( |
| ) |
|
|
virtual |
void GNuMcMainFrame::BuildFastSimCherenkovTab |
( |
void |
| ) |
|
|
private |
void GNuMcMainFrame::BuildFastSimScintCaloTab |
( |
void |
| ) |
|
|
private |
void GNuMcMainFrame::BuildGUI |
( |
const TGWindow * |
p, |
|
|
UInt_t |
w, |
|
|
UInt_t |
h |
|
) |
| |
|
private |
Definition at line 108 of file GNuMcMainFrame.cxx.
110 fMain =
new TGMainFrame(p,w,h);
113 "CloseWindow()",
"genie::GNuMcMainFrame",
this,
"Close()");
128 fMain->SetWindowName(
"GENIE Event Viewer");
129 fMain->MapSubwindows();
TGGroupFrame * fImgButtonGroupFrame
TGCompositeFrame * fUpperFrame
void BuildMainFrames(void)
void BuildStatusBar(void)
TGGroupFrame * BuildImageButtonFrame(void)
void GNuMcMainFrame::BuildHelpers |
( |
void |
| ) |
|
|
private |
Definition at line 292 of file GNuMcMainFrame.cxx.
TRootEmbeddedCanvas * fEmbeddedCanvas
MCTruthDisplay * fTruthDisplay
TGGroupFrame * GNuMcMainFrame::BuildImageButtonFrame |
( |
void |
| ) |
|
|
private |
Definition at line 153 of file GNuMcMainFrame.cxx.
155 TGGroupFrame * bf =
new TGGroupFrame(
156 fUpperFrame,
"Viewer Control Buttons", kHorizontalFrame);
159 new TGPictureButton(bf, gClient->GetPicture(
Icon(
"open"),32,32));
161 new TGPictureButton(bf, gClient->GetPicture(
Icon(
"next"),32,32));
163 new TGPictureButton(bf, gClient->GetPicture(
Icon(
"exit"), 32,32),
164 "gApplication->Terminate(0)");
167 fNextEventButton -> SetToolTipText(
"Get next event" , 1);
168 fExitButton -> SetToolTipText(
"Exit", 1);
171 "Clicked()",
"genie::masterclass::GNuMcMainFrame",
this,
"FileOpen()");
172 fNextEventButton -> Connect(
173 "Clicked()",
"genie::masterclass::GNuMcMainFrame",
this,
"NextEvent()");
176 bf -> AddFrame( fNextEventButton );
177 bf -> AddFrame( fExitButton );
TGCompositeFrame * fUpperFrame
TGPictureButton * fNextEventButton
const char * Icon(const char *name)
TGPictureButton * fExitButton
TGPictureButton * fFileOpenButton
void GNuMcMainFrame::BuildMainFrames |
( |
void |
| ) |
|
|
private |
Definition at line 142 of file GNuMcMainFrame.cxx.
TGCompositeFrame * fUpperFrame
TGCompositeFrame * fLowerFrame
TGCompositeFrame * fMainFrame
void GNuMcMainFrame::BuildMCTruthTab |
( |
void |
| ) |
|
|
private |
Definition at line 201 of file GNuMcMainFrame.cxx.
205 TGCompositeFrame * tf = 0;
214 fFeynmanTab =
new TGCompositeFrame(tf, w, h, kVerticalFrame);
220 ULong_t hintFeynmanTabLayout =
221 kLHintsTop | kLHintsLeft | kLHintsExpandX | kLHintsExpandY;
223 new TGLayoutHints(hintFeynmanTabLayout, 5, 5, 10, 1);
232 fGHepTab =
new TGCompositeFrame(tf, w, h, kVerticalFrame);
234 fGHep =
new TGTextEdit(
fGHepTab, w, h, kSunkenFrame | kDoubleBorder);
235 fGHep->AddLine(
"GHEP:" );
237 ULong_t hintGHepTabLayout =
238 kLHintsTop | kLHintsLeft | kLHintsExpandX | kLHintsExpandY;
240 =
new TGLayoutHints(hintGHepTabLayout, 5, 5, 10, 1);
unsigned int fViewTabHeight
TRootEmbeddedCanvas * fEmbeddedCanvas
TGCompositeFrame * fGHepTab
unsigned int fViewTabWidth
TGLayoutHints * fGHepTabLayout
TGCompositeFrame * fFeynmanTab
TGLayoutHints * fFeynmanTabLayout
void GNuMcMainFrame::BuildStatusBar |
( |
void |
| ) |
|
|
private |
Definition at line 268 of file GNuMcMainFrame.cxx.
270 Int_t parts[] = { 60, 20, 20 };
274 ULong_t hintStatusBarLayout =
275 kLHintsBottom | kLHintsLeft | kLHintsExpandX;
277 =
new TGLayoutHints(hintStatusBarLayout, 0, 0, 2, 0);
TGLayoutHints * fStatusBarLayout
void GNuMcMainFrame::BuildTabs |
( |
void |
| ) |
|
|
private |
Definition at line 182 of file GNuMcMainFrame.cxx.
193 ULong_t hintViewerTabsLayout =
194 kLHintsTop | kLHintsExpandX | kLHintsExpandY;
196 =
new TGLayoutHints(hintViewerTabsLayout, 5, 5, 10, 1);
unsigned int fViewTabHeight
TGLayoutHints * fViewerTabsLayout
unsigned int fViewTabWidth
void BuildMCTruthTab(void)
TGCompositeFrame * fLowerFrame
void BuildFastSimCherenkovTab(void)
void BuildFastSimScintCaloTab(void)
void genie::masterclass::GNuMcMainFrame::Close |
( |
void |
| ) |
|
|
inline |
void genie::masterclass::GNuMcMainFrame::Exit |
( |
void |
| ) |
|
|
inline |
void GNuMcMainFrame::FileOpen |
( |
void |
| ) |
|
Definition at line 297 of file GNuMcMainFrame.cxx.
References dir, genie::gAbortingInErr, LOG, pFATAL, and pNOTICE.
299 fStatusBar->SetText(
"Asking for event file name...", 0);
301 static TString
dir(
".");
302 const char * kFileExt[] = {
"GHEP/ROOT event files",
"*.root", 0, 0};
305 fi.fFileTypes = kFileExt;
306 fi.fIniDir = StrDup(
dir.Data());
308 new TGFileDialog(gClient->GetRoot(),
fMain, kFDOpen, &fi);
315 fStatusBar -> SetText( cmd.str().c_str(), 0 );
326 new TFile(fEventFilename.c_str(),
"READ");
328 dynamic_cast <TTree *> (
fEventFile->Get(
"gtree"));
344 <<
"Input tree header: " << *thdr;
346 fGHepTree->SetBranchAddress(
"gmcrec", &
fMCRecord);
#define LOG(stream, priority)
A macro that returns the requested log4cpp::Category appending a string (using the FILE...
NtpMCEventRecord * fMCRecord
const char * GNuMcMainFrame::Icon |
( |
const char * |
name | ) |
|
|
private |
Definition at line 282 of file GNuMcMainFrame.cxx.
References LOG, and pINFO.
285 pic << gSystem->Getenv(
"GENIE") <<
"/data/icons/" <<
name <<
".xpm";
287 LOG(
"MasterClass",
pINFO) <<
"Loading icon: " << pic.str();
289 return pic.str().c_str();
#define LOG(stream, priority)
A macro that returns the requested log4cpp::Category appending a string (using the FILE...
void GNuMcMainFrame::Init |
( |
void |
| ) |
|
|
private |
Definition at line 73 of file GNuMcMainFrame.cxx.
TGGroupFrame * fImgButtonGroupFrame
unsigned int fViewTabHeight
TRootEmbeddedCanvas * fEmbeddedCanvas
TGCompositeFrame * fUpperFrame
TGCompositeFrame * fGHepTab
TGPictureButton * fNextEventButton
TGLayoutHints * fViewerTabsLayout
MCTruthDisplay * fTruthDisplay
TGLayoutHints * fStatusBarLayout
NtpMCEventRecord * fMCRecord
unsigned int fViewTabWidth
TGPictureButton * fExitButton
TGLayoutHints * fGHepTabLayout
TGCompositeFrame * fLowerFrame
TGCompositeFrame * fMainFrame
TGPictureButton * fFileOpenButton
TGMatrixLayout * fButtonMatrixLayout
TGCompositeFrame * fFeynmanTab
TGLayoutHints * fFeynmanTabLayout
void GNuMcMainFrame::NextEvent |
( |
void |
| ) |
|
Definition at line 351 of file GNuMcMainFrame.cxx.
NtpMCEventRecord * fMCRecord
void ShowEvent(EventRecord *ev_rec)
Generated Event Record. It is a GHepRecord object that can accept / be visited by EventRecordVisitorI...
Definition at line 365 of file GNuMcMainFrame.cxx.
void PrintEventRecord(EventRecord *event)
MCTruthDisplay * fTruthDisplay
void DrawDiagram(EventRecord *event)
TGMatrixLayout* genie::masterclass::GNuMcMainFrame::fButtonMatrixLayout |
|
private |
Long64_t genie::masterclass::GNuMcMainFrame::fCurrEventNu |
|
private |
TRootEmbeddedCanvas* genie::masterclass::GNuMcMainFrame::fEmbeddedCanvas |
|
private |
TFile* genie::masterclass::GNuMcMainFrame::fEventFile |
|
private |
string genie::masterclass::GNuMcMainFrame::fEventFilename |
|
private |
TGPictureButton* genie::masterclass::GNuMcMainFrame::fExitButton |
|
private |
TGCompositeFrame* genie::masterclass::GNuMcMainFrame::fFeynmanTab |
|
private |
TGLayoutHints* genie::masterclass::GNuMcMainFrame::fFeynmanTabLayout |
|
private |
TGPictureButton* genie::masterclass::GNuMcMainFrame::fFileOpenButton |
|
private |
TGTextEdit* genie::masterclass::GNuMcMainFrame::fGHep |
|
private |
TGCompositeFrame* genie::masterclass::GNuMcMainFrame::fGHepTab |
|
private |
TGLayoutHints* genie::masterclass::GNuMcMainFrame::fGHepTabLayout |
|
private |
TTree* genie::masterclass::GNuMcMainFrame::fGHepTree |
|
private |
TGGroupFrame* genie::masterclass::GNuMcMainFrame::fImgButtonGroupFrame |
|
private |
TGCompositeFrame* genie::masterclass::GNuMcMainFrame::fLowerFrame |
|
private |
TGMainFrame* genie::masterclass::GNuMcMainFrame::fMain |
|
private |
TGCompositeFrame* genie::masterclass::GNuMcMainFrame::fMainFrame |
|
private |
TGPictureButton* genie::masterclass::GNuMcMainFrame::fNextEventButton |
|
private |
Long64_t genie::masterclass::GNuMcMainFrame::fNuOfEvents |
|
private |
TGStatusBar* genie::masterclass::GNuMcMainFrame::fStatusBar |
|
private |
TGLayoutHints* genie::masterclass::GNuMcMainFrame::fStatusBarLayout |
|
private |
TGCompositeFrame* genie::masterclass::GNuMcMainFrame::fUpperFrame |
|
private |
TGTab* genie::masterclass::GNuMcMainFrame::fViewerTabs |
|
private |
TGLayoutHints* genie::masterclass::GNuMcMainFrame::fViewerTabsLayout |
|
private |
unsigned int genie::masterclass::GNuMcMainFrame::fViewTabHeight |
|
private |
unsigned int genie::masterclass::GNuMcMainFrame::fViewTabWidth |
|
private |
The documentation for this class was generated from the following files: