Belle II Software development
|
Painter for EclData, polar energy/event_count distribution. More...
#include <EclPainterPolar.h>
Public Types | |
enum | Type { PHI , THETA } |
Type for polar histogram. More... | |
Public Member Functions | |
EclPainterPolar (EclData *data, Type type) | |
Constructor for EclPainter subclass. | |
EclPainterPolar (const EclPainterPolar &other) | |
Copy constructor. | |
~EclPainterPolar () | |
Destructor for EclPainter subclass. | |
EclPainterPolar & | operator= (const EclPainterPolar &other) |
Assignment operator. | |
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 ECLPainterPolar. | |
virtual void | Draw () override |
Redraw the canvas. | |
void | setData (EclData *data) |
Set EclData to display in painter. | |
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. | |
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 | |
void | cloneFrom (const EclPainterPolar &other) |
Clone attributes from other EclPainterPolar. | |
int | channelToSegId (int channel) |
Convert ECL channel id to id of the phi (theta) segment. | |
void | setTitles () |
Update titles of the histogram. | |
Private Attributes | |
Type | m_type |
Type for polar histogram. | |
TH2F * | m_hist |
Histogram that generates Z-axis. | |
TCrown ** | m_segs |
Phi (or theta) segments of the ECL. | |
TText ** | m_labels |
Labels for phi segments. | |
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, polar energy/event_count distribution.
Definition at line 26 of file EclPainterPolar.h.
enum Type |
EclPainterPolar | ( | EclData * | data, |
EclPainterPolar::Type | type | ||
) |
Constructor for EclPainter subclass.
Definition at line 25 of file EclPainterPolar.cc.
|
inline |
Copy constructor.
Definition at line 38 of file EclPainterPolar.h.
~EclPainterPolar | ( | ) |
Destructor for EclPainter subclass.
Definition at line 51 of file EclPainterPolar.cc.
|
private |
Convert ECL channel id to id of the phi (theta) segment.
Definition at line 66 of file EclPainterPolar.cc.
|
private |
Clone attributes from other EclPainterPolar.
Definition at line 56 of file EclPainterPolar.cc.
|
overridevirtual |
Redraw the canvas.
Implements EclPainter.
Definition at line 108 of file EclPainterPolar.cc.
|
inlineinherited |
|
inlineinherited |
|
inherited |
Get currently displayed ECL subsystem.
Definition at line 51 of file EclPainter.cc.
|
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 98 of file EclPainterPolar.cc.
|
inherited |
Return currently set ECLChannelMapper.
Definition at line 41 of file EclPainter.cc.
|
protectedinherited |
Make unique name for next root object.
Definition at line 88 of file EclPainter.cc.
|
inherited |
Return title of ECL subsystem to use in painter.
Definition at line 56 of file EclPainter.cc.
EclPainterPolar::Type getType | ( | ) |
Return subtype of ECLPainterPolar.
Definition at line 103 of file EclPainterPolar.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.
|
inline |
|
inlineinherited |
Set EclData to display in painter.
Definition at line 44 of file EclPainter.h.
|
inherited |
Change between the displayed ECL subsystem (barrel, forward and backward endcaps).
Definition at line 46 of file EclPainter.cc.
|
inherited |
Set ECLChannelMapper for CellID <-> (crate, shaper, chid) conversion.
Definition at line 36 of file EclPainter.cc.
|
private |
Update titles of the histogram.
Definition at line 82 of file EclPainterPolar.cc.
|
virtualinherited |
Set XRange for histogram in EclPainter.
Reimplemented in EclPainter1D.
Definition at line 84 of file EclPainter.cc.
|
privateinherited |
Identifier of displayed ECL subsystem.
Definition at line 116 of file EclPainter.h.
|
privateinherited |
Data to draw.
Definition at line 111 of file EclPainter.h.
|
private |
Histogram that generates Z-axis.
Definition at line 51 of file EclPainterPolar.h.
|
private |
Labels for phi segments.
Definition at line 55 of file EclPainterPolar.h.
|
privateinherited |
mapper for CellID <-> (crate, shaper, chid) conversion.
Definition at line 113 of file EclPainter.h.
|
staticprivateinherited |
Counter to make unique names for new root objects.
Definition at line 109 of file EclPainter.h.
|
private |
Phi (or theta) segments of the ECL.
Definition at line 53 of file EclPainterPolar.h.
|
private |
Type for polar histogram.
Definition at line 49 of file EclPainterPolar.h.