9#include <ecl/modules/eclDisplay/EclPainterCommon.h>
22 m_hist->GetXaxis()->CenterTitle();
23 m_hist->GetXaxis()->SetTitleOffset(1.1);
24 m_hist->GetYaxis()->SetTitleOffset(1.1);
99 const char* name[3] = {
100 "Energy per channel",
101 "Energy sum per event",
104 const char* xname[3] = {
110 int type = (int)getType();
112 TString title = TString(name[type]) +
" (" +
113 getSubsystemTitle(getDisplayedSubsystem()) +
")";
114 m_hist->SetTitle(title);
116 m_hist->SetXTitle(xname[type]);
117 m_hist->SetYTitle(
"");
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
Histogram for energy distribution.
Type
Subtype of histogram to draw.
@ ENERGY_SUM
Energy per event distribution.
@ ENERGY
Energy per channel distribution.
int getMinX()
Return m_x_min.
int getMaxX()
Return m_x_max.
virtual ~EclPainterCommon()
Destructor for EclPainter subclass.
void setTitles()
Update titles of the histogram.
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 ECLPainterCommon.
void initHisto()
Initialize histogram.
void Draw() override
Redraw the canvas.
EclPainterCommon(EclData *data, Type type)
Constructor for EclPainter subclass.
Painter for EclData, parent class, created with EclPainterFactory.
EclData::EclSubsystem getDisplayedSubsystem()
Get currently displayed ECL subsystem.
virtual void getInformation(int px, int py, MultilineWidget *panel)
Sets the information to be displayed in the provided MultilineWidget.
EclData * getData()
Return currently displayed EclData.
void getNewRootObjectName(char *buf, int size)
Make unique name for next root object.
Abstract base class for different kinds of events.