1 #ifndef RestCore_TRestBrowser
2 #define RestCore_TRestBrowser
4 #include <TApplication.h>
8 #include <TGComboBox.h>
9 #include <TGDimension.h>
10 #include <TGFileDialog.h>
13 #include <TGNumberEntry.h>
14 #include <TGTextEntry.h>
17 #include <TRestEventViewer.h>
26 TGMainFrame* frmMain =
nullptr;
27 TGMainFrame* frmBot =
nullptr;
30 TGVerticalFrame* fVFrame =
nullptr;
32 TGLabel* fEventIdLabel =
nullptr;
33 TGLabel* fEventSubIdLabel =
nullptr;
34 TGNumberEntry* fEventRowNumberBox =
nullptr;
39 TGComboBox* fEventTypeComboBox =
nullptr;
41 TGLabel* fPlotOptionLabel =
nullptr;
42 TGTextEntry* fPlotOptionTextBox =
nullptr;
48 TGPictureButton*
fExit =
nullptr;
52 TGLabel* fSelectionTextBoxLabel =
nullptr;
53 TGTextEntry* fSelectionTextBox =
nullptr;
60 Int_t fEventSubId = 0;
62 TBrowser* fBrowser =
nullptr;
67 TString fInputFileName;
72 void SetViewer(
const TString& viewerName, Double_t geomScale = 0.1);
73 void SetLeftPanelButtons();
75 Bool_t LoadEventId(Int_t eventID, Int_t subEventID = -1);
76 Bool_t LoadEventEntry(Int_t n);
80 void Initialize(
const TString& opt =
"FI");
81 static void InitFromConfigFile();
82 Bool_t OpenFile(
const TString& filename);
86 inline void SetWindowName(
const TString& windowName) { frmMain->SetWindowName(windowName.Data()); }
92 void LoadFileAction();
93 static void ExitAction();
95 void RowValueChangedAction(Long_t val);
96 void IdValueChangedAction(Long_t val);
97 void NextEventAction();
98 void PreviousEventAction();
100 void EventTypeChangedAction(Int_t
id);
102 void NextPlotOptionAction();
103 void PreviousPlotOptionAction();
108 TRestBrowser(
const TString& viewerName, Double_t geomScale = 0.1);
Event browser for different input file.
TGNumberEntry * fEventSubIdNumberBox
For Event number.
TGPictureButton * fExit
Open file button.
TGTextButton * fButEveNext
Previous plot option.
TGTextButton * fButOptRefresh
Previous plot option.
TGNumberEntry * fEventIdNumberBox
For row number.
TGVerticalFrame * fHFrame
Exit button.
TGLabel * fEventTypeLabel
For sub Event number.
TGPictureButton * fButOptNext
Refresh plot.
TGLabel * fEventRowLabel
< The main vertical frame for browser controlling
void SetBottomPanelButtons()
TGTextButton * fButEvePrev
TextBox for plot options.
TGPictureButton * fMenuOpen
Next plot option.
TCanvas * fCanDefault
Refresh plot.
TGPictureButton * fButOptPrev
TextBox for plot options.
A base class for any REST event.
Data provider and manager in REST.