12#include <ecl/modules/eclDisplay/EclPainter.h>
96 void setXRange(
int xmin,
int xmax)
override;
113 void Draw()
override;
This class contains data for ECLSimHit's and provides several relevant conversion functions for bette...
Painter for EclData, 1D histograms.
Type m_type
Display subtypes of this class.
virtual ~EclPainter1D()
Destructor for EclPainter subclass.
TH1F * m_hist
Displayed histogram.
Type
Subtype of histogram to draw.
@ SHAPER
Events/energy per ShaperDSP.
@ CRATE
Events/energy per crate/ECLCollector.
@ CHANNEL
Events/energy per channel.
void setXRange(int xmin, int xmax) override
Set XRange for histogram.
int getMaxX()
Returns number of X bins.
int m_crate
ID of currently selected crate.
void setTitles()
Update titles of the histogram.
int m_shaper
ID of currently selected shaper.
virtual EclPainter * handleClick(int px, int py) override
Creates sub-histogram for crates and shapers.
int channelToSegId(int channel)
Convert channel id to X bin number.
virtual void getInformation(int px, int py, MultilineWidget *panel) override
Sets the information to be displayed in the provided MultilineWidget.
Type getType()
Return subtype of ECLPainter1D.
void setCrate(int crate)
Show data only from specific crate.
void setShaper(int crate, int shaper)
Show data only from specific shaper.
void initHisto()
Initialize histogram.
void Draw() override
Redraw the canvas.
Painter for EclData, parent class, created with EclPainterFactory.
Abstract base class for different kinds of events.