 |
Belle II Software
release-05-01-25
|
11 #include <ecl/modules/eclDisplay/EclPainterCommon.h>
24 m_hist->GetXaxis()->CenterTitle();
25 m_hist->GetXaxis()->SetTitleOffset(1.1);
26 m_hist->GetYaxis()->SetTitleOffset(1.1);
101 const char* name[3] = {
102 "Energy per channel",
103 "Energy sum per event",
106 const char* xname[3] = {
112 int type = (int)getType();
114 TString title = TString(name[type]) +
" (" +
115 getSubsystemTitle(getDisplayedSubsystem()) +
")";
116 m_hist->SetTitle(title);
118 m_hist->SetXTitle(xname[type]);
119 m_hist->SetYTitle(
"");
int getMinX()
Return m_x_min.
@ ENERGY
Energy per channel distribution.
void Draw() override
Redraw the canvas.
Type
Subtype of histogram to draw.
Type m_type
Display subtypes of this class.
EclData * getData()
Return currently displayed EclData.
int getMaxX()
Return m_x_max.
EclData::EclSubsystem getDisplayedSubsystem()
Get currently displayed ECL subsystem.
void setTitles()
Update titles of the histogram.
virtual void getInformation(int px, int py, MultilineWidget *panel)
Sets the information to be displayed in the provided MultilineWidget.
virtual ~EclPainterCommon()
Destructor for EclPainter subclass.
Painter for EclData, parent class, created with EclPainterFactory.
@ ENERGY_SUM
Energy per event distribution.
Abstract base class for different kinds of events.
void getNewRootObjectName(char *buf, int size)
Make unique name for next root object.
Type getType()
Return subtype of ECLPainterCommon.
TH1F * m_hist
Histogram for energy distribution.
EclPainterCommon(EclData *data, Type type)
Constructor for EclPainter subclass.
This class contains data for ECLSimHit's and provides several relevant conversion functions for bette...
virtual void getInformation(int px, int py, MultilineWidget *panel) override
Sets the information to be displayed in the provided MultilineWidget.
void initHisto()
Initialize histogram.