Belle II Software development
|
Root TGMainFrame that contains multiple widgets that display the ECLSimHit's w.r.t. More...
#include <EclFrame.h>
Public Member Functions | |
EclFrame (int painter_type, EclData *data, bool auto_display, ECL::ECLChannelMapper *mapper) | |
virtual | ~EclFrame () |
ECLFrame destructor. | |
void | loadNewData () |
Update view of the data. | |
void | updateCanvas () |
Redraw m_ecanvas. | |
void | handleMenu (int id) |
Apply action from menu. | |
void | updateEventRange () |
Change event range and pass information to m_ecl_data. | |
void | showPrevEvents () |
Show previous range of events. | |
void | showNextEvents () |
Show next range of events. | |
void | excludeChannel () |
Exclude channel specified in the GUI. | |
void | doDraw () |
Get view parameters from GUI and call updateCanvas(). | |
void | doDrawAll () |
Draw all events on m_ecanvas. | |
void | updateInfo (int event, int px, int py, TObject *) |
Update information on the cursor position in the histogram. | |
void | changeRange (TGListTreeItem *entry, int btn) |
Opens shapers of specific crate/channels of specific shaper. | |
void | changeType (int type, bool redraw=true) |
Change EclPainter type when selected in drop-down menu. | |
Private Types | |
enum | EclFrameCommandIdentifiers { M_FILE_OPEN , M_FILE_SAVE , M_FILE_EXPORT_TREE , M_FILE_EXIT , M_VIEW_EVENTS , M_VIEW_ENERGY , M_VIEW_DET_FULL , M_VIEW_DET_FORW , M_VIEW_DET_BACK , M_VIEW_DET_BARR } |
Enum for menu commands. More... | |
Private Member Functions | |
void | initGUI (int w, int h) |
Initialize GUI. | |
void | initData () |
Initialize data. | |
Private Attributes | |
TGVerticalFrame * | m_settings |
Main frame for settings; its subframes contain settings for different categories. | |
MultilineWidget * | m_frame1 |
Information subframe. | |
TGGroupFrame * | m_frame2 |
Event range subframe. | |
TGGroupFrame * | m_frame3 |
Optional subframe, crate/shaper select. | |
TGListTree * | m_list_tree |
Tree GUI of crates/shapers. | |
TGGroupFrame * | m_frame4 |
Channel exclusion subframe. | |
TGGroupFrame * | m_frame5 |
Energy threshold subframe. | |
TGTextButton * | m_draw |
Button that initiates drawing of the data for selected events. | |
TGTextButton * | m_draw_all |
Button that initiates drawing of the data for all events. | |
TRootEmbeddedCanvas * | m_ecanvas |
Embedded canvas. | |
EclPainterType | m_painter_type |
Current painter type. | |
EclData * | m_ecl_data |
EclData, class containing data to display. | |
TGDoubleHSlider * | m_ev_slider |
Slider to set the time range. | |
TGNumberEntry * | m_events_min |
Min value for range of displayed events. | |
TGNumberEntry * | m_events_max |
Max value for range of displayed events. | |
TGNumberEntry * | m_channel_id |
Number field for channel exclusion. | |
EclData::EclSubsystem | m_subsys |
Current subsystem displayed. | |
TGNumberEntry * | m_min_en_threshold |
Min value for energy threshold. | |
TGNumberEntry * | m_max_en_threshold |
Max value for energy threshold. | |
TGCheckButton * | m_threshold_switch |
Check button to turn energy threshold on/off. | |
EclPainter * | m_ecl_painter |
Current EclPainter. | |
ECL::ECLChannelMapper * | m_mapper |
ECLChannelMapper, class for conversion from CellID to (crate, shaper, chn_id). | |
bool | m_auto_display |
This flag controls whether to display newly loaded events automatically. | |
int | m_last_event |
If m_auto_display is set, this is the evtn of last displayed event. | |
bool | m_open |
Default is true, m_open is set to false when EclFrame closes. | |
Static Private Attributes | |
static const char * | filetypes [] |
Possible export filetypes for histograms. | |
Root TGMainFrame that contains multiple widgets that display the ECLSimHit's w.r.t.
structure of ECL geometry and its data acquisition subsystem.
Definition at line 41 of file EclFrame.h.
|
private |
Enum for menu commands.
Definition at line 111 of file EclFrame.h.
EclFrame | ( | int | painter_type, |
EclData * | data, | ||
bool | auto_display, | ||
ECL::ECLChannelMapper * | mapper | ||
) |
painter_type | painter type |
data | ECL data |
auto_display | Display new events as soon as they are loaded. |
mapper | ECL channel mapper |
Definition at line 55 of file EclFrame.cc.
|
virtual |
ECLFrame destructor.
Calls parent class Cleanup() method.
Definition at line 83 of file EclFrame.cc.
void changeRange | ( | TGListTreeItem * | entry, |
int | btn | ||
) |
Opens shapers of specific crate/channels of specific shaper.
Definition at line 516 of file EclFrame.cc.
void changeType | ( | int | type, |
bool | redraw = true |
||
) |
Change EclPainter type when selected in drop-down menu.
See EclPainterFactory.h, EclPainterType.
Definition at line 546 of file EclFrame.cc.
void doDraw | ( | ) |
Get view parameters from GUI and call updateCanvas().
Definition at line 472 of file EclFrame.cc.
void doDrawAll | ( | ) |
Draw all events on m_ecanvas.
Definition at line 487 of file EclFrame.cc.
void excludeChannel | ( | ) |
Exclude channel specified in the GUI.
Definition at line 465 of file EclFrame.cc.
void handleMenu | ( | int | id | ) |
Apply action from menu.
Definition at line 302 of file EclFrame.cc.
|
private |
Initialize data.
Definition at line 287 of file EclFrame.cc.
|
private |
Initialize GUI.
Definition at line 89 of file EclFrame.cc.
void loadNewData | ( | ) |
Update view of the data.
Definition at line 377 of file EclFrame.cc.
void showNextEvents | ( | ) |
Show next range of events.
Definition at line 444 of file EclFrame.cc.
void showPrevEvents | ( | ) |
Show previous range of events.
Definition at line 423 of file EclFrame.cc.
void updateCanvas | ( | ) |
Redraw m_ecanvas.
Definition at line 400 of file EclFrame.cc.
void updateEventRange | ( | ) |
Change event range and pass information to m_ecl_data.
Definition at line 411 of file EclFrame.cc.
void updateInfo | ( | int | event, |
int | px, | ||
int | py, | ||
TObject * | |||
) |
Update information on the cursor position in the histogram.
Definition at line 494 of file EclFrame.cc.
|
staticprivate |
Possible export filetypes for histograms.
Definition at line 125 of file EclFrame.h.
|
private |
This flag controls whether to display newly loaded events automatically.
Definition at line 104 of file EclFrame.h.
|
private |
Number field for channel exclusion.
Definition at line 85 of file EclFrame.h.
|
private |
Button that initiates drawing of the data for selected events.
Definition at line 62 of file EclFrame.h.
|
private |
Button that initiates drawing of the data for all events.
Definition at line 64 of file EclFrame.h.
|
private |
Embedded canvas.
Definition at line 67 of file EclFrame.h.
|
private |
EclData, class containing data to display.
Definition at line 73 of file EclFrame.h.
|
private |
Current EclPainter.
Definition at line 99 of file EclFrame.h.
|
private |
Slider to set the time range.
Slider for choosing events range.
Definition at line 78 of file EclFrame.h.
|
private |
Max value for range of displayed events.
Definition at line 82 of file EclFrame.h.
|
private |
Min value for range of displayed events.
Definition at line 80 of file EclFrame.h.
|
private |
Information subframe.
Definition at line 48 of file EclFrame.h.
|
private |
Event range subframe.
Definition at line 50 of file EclFrame.h.
|
private |
Optional subframe, crate/shaper select.
Definition at line 53 of file EclFrame.h.
|
private |
Channel exclusion subframe.
Definition at line 58 of file EclFrame.h.
|
private |
Energy threshold subframe.
Definition at line 60 of file EclFrame.h.
|
private |
If m_auto_display is set, this is the evtn of last displayed event.
Definition at line 106 of file EclFrame.h.
|
private |
Tree GUI of crates/shapers.
Definition at line 55 of file EclFrame.h.
|
private |
ECLChannelMapper, class for conversion from CellID to (crate, shaper, chn_id).
Definition at line 101 of file EclFrame.h.
|
private |
Max value for energy threshold.
Definition at line 94 of file EclFrame.h.
|
private |
Min value for energy threshold.
Definition at line 92 of file EclFrame.h.
|
private |
Default is true, m_open is set to false when EclFrame closes.
Definition at line 108 of file EclFrame.h.
|
private |
Current painter type.
See EclPainterFactory for the list of all types.
Definition at line 70 of file EclFrame.h.
|
private |
Main frame for settings; its subframes contain settings for different categories.
Definition at line 45 of file EclFrame.h.
|
private |
Current subsystem displayed.
Definition at line 88 of file EclFrame.h.
|
private |
Check button to turn energy threshold on/off.
Definition at line 96 of file EclFrame.h.