![]() |
Belle II Software
release-08-02-04
|
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. More... | |
| 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. More... | |
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. More... | |
| EclData * | m_ecl_data |
| EclData, class containing data to display. | |
| TGDoubleHSlider * | m_ev_slider |
| Slider to set the time range. More... | |
| 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. More... | |
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 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.
|
staticprivate |
Possible export filetypes for histograms.
Definition at line 125 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 |
Current painter type.
See EclPainterFactory for the list of all types.
Definition at line 70 of file EclFrame.h.