12#include <ecl/modules/eclDisplay/EclPainter.h>
101 void setXRange(
int xmin,
int xmax)
override;
118 void Draw()
override;
This class contains data for ECLSimHit's and provides several relevant conversion functions for bette...
Type m_type
Display subtypes of this class.
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.
EclPainter1D(EclData *data, Type type)
Constructor for EclPainter subclass.
EclPainter1D & operator=(const EclPainter1D &)=delete
Operator = (disabled).
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.
EclPainter1D(const EclPainter1D &)=delete
Copy constructor (disabled).
void setCrate(int crate)
Show data only from specific crate.
void setShaper(int crate, int shaper)
Show data only from specific shaper.
virtual ~EclPainter1D() override
Destructor for EclPainter subclass.
void initHisto()
Initialize histogram.
void Draw() override
Redraw the canvas.
EclPainter(EclData *data)
Default constructor.
Abstract base class for different kinds of events.