A bin of a VariableBinwidthHistogram.
More...
#include <VariableBinwidthHistogramBin.h>
◆ VariableBinwidthHistogramBin() [1/2]
| MuonCalib::VariableBinwidthHistogramBin::VariableBinwidthHistogramBin |
( |
| ) |
|
|
inline |
◆ VariableBinwidthHistogramBin() [2/2]
| MuonCalib::VariableBinwidthHistogramBin::VariableBinwidthHistogramBin |
( |
double | center, |
|
|
double | width, |
|
|
unsigned int | content ) |
|
inline |
Initializing constructor.
- Parameters
-
| center | the center of the bin |
| width | the width of the bin |
| content | the number of entries in the bin |
Definition at line 35 of file VariableBinwidthHistogramBin.h.
◆ Center()
| double MuonCalib::VariableBinwidthHistogramBin::Center |
( |
| ) |
const |
|
inline |
◆ Density()
| double MuonCalib::VariableBinwidthHistogramBin::Density |
( |
| ) |
const |
|
inline |
◆ Entries()
| unsigned int MuonCalib::VariableBinwidthHistogramBin::Entries |
( |
| ) |
const |
|
inline |
◆ Left()
| double MuonCalib::VariableBinwidthHistogramBin::Left |
( |
| ) |
const |
|
inline |
◆ MoveLeft()
| void MuonCalib::VariableBinwidthHistogramBin::MoveLeft |
( |
double | new_left | ) |
|
|
inline |
move left bin boarder
- Parameters
-
Definition at line 94 of file VariableBinwidthHistogramBin.h.
94 {
95 double right =
Right();
96 if (new_left > right) {
97 throw std::runtime_error(
98 Form("File: %s, Line: %d\nVariableBinwidthHistogramBin::MoveRight() - new left is too small!", __FILE__, __LINE__));
99 }
101 m_center = 0.5 * (new_left + right);
102 }
double Right() const
Get right (upper) bin border.
◆ MoveRight()
| void MuonCalib::VariableBinwidthHistogramBin::MoveRight |
( |
double | new_right | ) |
|
|
inline |
move right bin boarder
- Parameters
-
| new_right | right bin boarder |
Definition at line 80 of file VariableBinwidthHistogramBin.h.
80 {
82 if (new_right < left) {
83 throw std::runtime_error(
84 Form("File: %s, Line: %d\nVariableBinwidthHistogramBin::MoveRight() - new right is too small!", __FILE__, __LINE__));
85 }
88 }
double Left() const
Get left (lower) bin border.
◆ operator+()
add to bin content
- Parameters
-
Definition at line 70 of file VariableBinwidthHistogramBin.h.
70 {
73 return ret;
74 }
VariableBinwidthHistogramBin()
Default constructor.
◆ operator+=()
◆ Right()
| double MuonCalib::VariableBinwidthHistogramBin::Right |
( |
| ) |
const |
|
inline |
◆ Set()
| void MuonCalib::VariableBinwidthHistogramBin::Set |
( |
double | center, |
|
|
double | width, |
|
|
unsigned int | content ) |
|
inline |
Set bin.
- Parameters
-
| center | the center of the bin |
| width | the width of the bin |
| content | the number of entries in the bin |
Definition at line 46 of file VariableBinwidthHistogramBin.h.
◆ SetContent()
| void MuonCalib::VariableBinwidthHistogramBin::SetContent |
( |
unsigned int | n | ) |
|
|
inline |
◆ Width()
| double MuonCalib::VariableBinwidthHistogramBin::Width |
( |
| ) |
const |
|
inline |
◆ m_center
| double MuonCalib::VariableBinwidthHistogramBin::m_center |
|
private |
◆ m_content
| unsigned int MuonCalib::VariableBinwidthHistogramBin::m_content |
|
private |
◆ m_width
| double MuonCalib::VariableBinwidthHistogramBin::m_width |
|
private |
The documentation for this class was generated from the following file: