#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.
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__));
101 m_center = 0.5 * (new_left + right);
◆ 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.
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__));
◆ operator+()
◆ 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: