![]() |
Belle II Software development
|
ARICH merger histogram (72 blocks). More...
#include <ARICHMergerHist.h>
Public Member Functions | |
| ARICHMergerHist ()=default | |
| Default constructor. | |
| ARICHMergerHist (const char *name, const char *title, double globalRotationDeg=0.0, bool rightToLeftNumbering=true) | |
| Constructor. | |
| void | fillFromTH1 (TH1 *hist) |
| Fill from TH1. | |
| void | SetBinContentFromSN (unsigned mergerID, double value) |
| Set content using the real ARICH hardware MergerID. | |
| void | Draw (Option_t *option="") override |
| Draw with sector lines and labels. | |
Static Protected Member Functions | |
| static void | pol2xy (double r, double angDeg, double &x, double &y) |
| Convert polar coordinates to cartesian. | |
Protected Attributes | |
| std::vector< int > | m_merger2bin |
| Merger number (1..72) → TH2Poly bin index. | |
| double | m_globalRotationDeg = 0.0 |
| Global rotation applied to the geometry (degrees). | |
| bool | m_rightToLeft = true |
| If true, numbering in each ring is right-to-left. | |
| TLine | m_lines [6] |
| Sector boundary lines drawn on top of the histogram. | |
ARICH merger histogram (72 blocks).
Two numbering systems exist:
1) Internal position (1..72)
2) Real ARICH hardware MergerID
Definition at line 34 of file ARICHMergerHist.h.
| ARICHMergerHist | ( | const char * | name, |
| const char * | title, | ||
| double | globalRotationDeg = 0.0, | ||
| bool | rightToLeftNumbering = true ) |
Constructor.
| name | Histogram name |
| title | Histogram title |
| globalRotationDeg | Global rotation applied to the whole layout (degrees) |
| rightToLeftNumbering | If true, bins inside each ring are numbered right-to-left |
Definition at line 69 of file ARICHMergerHist.cc.
|
override |
Draw with sector lines and labels.
| option | ROOT draw option string |
Definition at line 179 of file ARICHMergerHist.cc.
| void fillFromTH1 | ( | TH1 * | hist | ) |
Fill from TH1.
Histogram must have exactly 72 bins.
| hist | Input TH1 with 72 bins |
Definition at line 150 of file ARICHMergerHist.cc.
|
staticprotected |
Convert polar coordinates to cartesian.
| r | Radius |
| angDeg | Angle in degrees |
| x | Output x coordinate |
| y | Output y coordinate |
Definition at line 62 of file ARICHMergerHist.cc.
| void SetBinContentFromSN | ( | unsigned | mergerID, |
| double | value ) |
Set content using the real ARICH hardware MergerID.
Definition at line 169 of file ARICHMergerHist.cc.
|
protected |
Global rotation applied to the geometry (degrees).
Definition at line 63 of file ARICHMergerHist.h.
|
protected |
Sector boundary lines drawn on top of the histogram.
Definition at line 65 of file ARICHMergerHist.h.
|
protected |
Merger number (1..72) → TH2Poly bin index.
Definition at line 62 of file ARICHMergerHist.h.
|
protected |
If true, numbering in each ring is right-to-left.
Definition at line 64 of file ARICHMergerHist.h.