 |
Belle II Software
release-05-02-19
|
13 #define ECLDISPLAY_OPENGL_PAINTER
19 #include <ecl/modules/eclDisplay/EclData.h>
20 #include <ecl/modules/eclDisplay/EclPainterFactory.h>
22 class TRootEmbeddedCanvas;
23 class TGDoubleHSlider;
35 class MultilineWidget;
36 class ECLChannelMapper;
190 void updateInfo(
int event,
int px,
int py, TObject*);
199 void changeType(
int type,
bool redraw =
true);
void handleMenu(int id)
Apply action from menu.
void excludeChannel()
Exclude channel specified in the GUI.
virtual ~EclFrame()
ECLFrame destructor.
@ M_VIEW_DET_BACK
Use data from backward endcap only.
TGListTree * m_list_tree
Tree GUI of crates/shapers.
EclPainterType
Enum for type of EclPainter to create.
TGDoubleHSlider * m_ev_slider
Slider for choosing events range.
void showNextEvents()
Show next range of events.
TGTextButton * m_draw
Button that initiates drawing of the data for selected events.
EclFrame(int painter_type, EclData *data, bool auto_display, ECL::ECLChannelMapper *mapper)
@ M_FILE_EXPORT_TREE
Export EclDisplay data into simple TTree.
EclPainter * m_ecl_painter
Current EclPainter.
void updateEventRange()
Change event range and pass information to m_ecl_data.
@ M_VIEW_DET_BARR
Use data from barrel only.
void updateInfo(int event, int px, int py, TObject *)
Update information on the cursor position in the histogram.
@ M_VIEW_EVENTS
Display histograms for events.
static const char * filetypes[]
Possible export filetypes for histograms.
TGNumberEntry * m_min_en_threshold
Min value for energy threshold.
MultilineWidget * m_frame1
Information subframe.
Painter for EclData, parent class, created with EclPainterFactory.
EclSubsystem
Subsystems of ECL: ALL all subsystems BARR barrel only FORW forward endcap only BACKW backward endcap...
int m_last_event
If m_auto_display is set, this is the evtn of last displayed event.
@ M_VIEW_DET_FORW
Use data from forward endcap only.
This class provides access to ECL channel map that is either a) Loaded from the database (see ecl/dbo...
Root TGMainFrame that contains multiple widgets that display the ECLSimHit's w.r.t.
TGTextButton * m_draw_all
Button that initiates drawing of the data for all events.
Abstract base class for different kinds of events.
TGVerticalFrame * m_settings
Main frame for settings; its subframes contain settings for different categories.
EclPainterType m_painter_type
Current painter type.
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.
EclData::EclSubsystem m_subsys
Current subsystem displayed.
EclFrameCommandIdentifiers
Enum for menu commands.
@ M_VIEW_ENERGY
Display histograms for energy.
void doDrawAll()
Draw all events on m_ecanvas.
bool m_auto_display
This flag controls whether to display newly loaded events automatically.
void loadNewData()
Update view of the data.
void showPrevEvents()
Show previous range of events.
This class contains data for ECLSimHit's and provides several relevant conversion functions for bette...
bool m_open
Default is true, m_open is set to false when EclFrame closes.
TGNumberEntry * m_events_min
Min value for range of displayed events.
TRootEmbeddedCanvas * m_ecanvas
Embedded canvas.
ECL::ECLChannelMapper * m_mapper
ECLChannelMapper, class for conversion from CellID to (crate, shaper, chn_id).
void updateCanvas()
Redraw m_ecanvas.
TGGroupFrame * m_frame5
Energy threshold subframe.
void doDraw()
Get view parameters from GUI and call updateCanvas().
void initGUI(int w, int h)
Initialize GUI.
TGGroupFrame * m_frame4
Channel exclusion subframe.
EclData * m_ecl_data
EclData, class containing data to display.
TGGroupFrame * m_frame3
Optional subframe, crate/shaper select.
TGCheckButton * m_threshold_switch
Check button to turn energy threshold on/off.
TGNumberEntry * m_max_en_threshold
Max value for energy threshold.
TGNumberEntry * m_channel_id
Number field for channel exclusion.
TGGroupFrame * m_frame2
Event range subframe.
TGNumberEntry * m_events_max
Max value for range of displayed events.
void initData()
Initialize data.
@ M_VIEW_DET_FULL
Use data from all ECL subsystems.
TGDoubleHSlider * m_time_slider
Slider to set the time range.