Belle II Software
release-08-01-10
|
Painter for EclData that shows common event characteristics on 1D histograms. More...
#include <EclPainterCommon.h>
Public Types | |
enum | Type { ENERGY , ENERGY_SUM , TIME } |
Subtype of histogram to draw. More... | |
Public Member Functions | |
EclPainterCommon (EclData *data, Type type) | |
Constructor for EclPainter subclass. | |
virtual | ~EclPainterCommon () |
Destructor for EclPainter subclass. | |
Type | getType () |
Return subtype of ECLPainterCommon. | |
virtual void | getInformation (int px, int py, MultilineWidget *panel) override |
Sets the information to be displayed in the provided MultilineWidget. More... | |
void | Draw () override |
Redraw the canvas. | |
void | setData (EclData *data) |
Set EclData to display in painter. More... | |
EclData * | getData () |
Return currently displayed EclData. | |
const EclData * | getData () const |
Return currently displayed EclData. | |
void | setMapper (ECL::ECLChannelMapper *mapper) |
Set ECLChannelMapper for CellID <-> (crate, shaper, chid) conversion. | |
ECL::ECLChannelMapper * | getMapper () |
Return currently set ECLChannelMapper. | |
void | setDisplayedSubsystem (EclData::EclSubsystem sys) |
Change between the displayed ECL subsystem (barrel, forward and backward endcaps). | |
EclData::EclSubsystem | getDisplayedSubsystem () |
Get currently displayed ECL subsystem. | |
TString | getSubsystemTitle (EclData::EclSubsystem subsys) |
Return title of ECL subsystem to use in painter. | |
virtual EclPainter * | handleClick (int px, int py) |
Some EclPainters can shift to another view upon click. More... | |
virtual void | setXRange (int x1, int x2) |
Set XRange for histogram in EclPainter. | |
Protected Member Functions | |
void | getNewRootObjectName (char *buf, int size) |
Make unique name for next root object. | |
Private Member Functions | |
int | getMinX () |
Return m_x_min. | |
int | getMaxX () |
Return m_x_max. | |
void | initHisto () |
Initialize histogram. | |
void | setTitles () |
Update titles of the histogram. | |
void | cloneFrom (const EclPainter &other) |
Clone attributes from other EclPainter. | |
Private Attributes | |
Type | m_type |
Display subtypes of this class. | |
TH1F * | m_hist |
Histogram for energy distribution. | |
EclData * | m_ecl_data |
Data to draw. | |
ECL::ECLChannelMapper * | m_mapper |
mapper for CellID <-> (crate, shaper, chid) conversion. | |
EclData::EclSubsystem | displayed_subsys |
Identifier of displayed ECL subsystem. | |
Static Private Attributes | |
static int | m_obj_counter = 0 |
Counter to make unique names for new root objects. | |
Painter for EclData that shows common event characteristics on 1D histograms.
Definition at line 27 of file EclPainterCommon.h.
enum Type |
Subtype of histogram to draw.
Enumerator | |
---|---|
ENERGY | Energy per channel distribution. |
ENERGY_SUM | Energy per event distribution. |
TIME | Time distribution. |
Definition at line 30 of file EclPainterCommon.h.
|
overridevirtual |
Sets the information to be displayed in the provided MultilineWidget.
px | X coordinate of mouse cursor. |
py | Y coordinate of mouse cursor. |
panel | MultilineWidget to display the information |
Reimplemented from EclPainter.
Definition at line 69 of file EclPainterCommon.cc.
|
virtualinherited |
Some EclPainters can shift to another view upon click.
(For example, clicking on crate reveals histogram of shapers in that crate)
Reimplemented in EclPainter1D.
Definition at line 79 of file EclPainter.cc.
|
inlineinherited |