![]() |
ATLAS Offline Software
|
A bin of a VariableBinwidthHistogram. More...
#include <VariableBinwidthHistogramBin.h>
Public Member Functions | |
| VariableBinwidthHistogramBin () | |
| Default constructor. | |
| VariableBinwidthHistogramBin (double center, double width, unsigned int content) | |
| Initializing constructor. | |
| void | Set (double center, double width, unsigned int content) |
| Set bin. | |
| void | SetContent (unsigned int n) |
| set content | |
| VariableBinwidthHistogramBin | operator+= (unsigned int n) |
| add to bin content | |
| VariableBinwidthHistogramBin | operator+ (unsigned int n) |
| add to bin content | |
| void | MoveRight (double new_right) |
| move right bin boarder | |
| void | MoveLeft (double new_left) |
| move left bin boarder | |
| double | Center () const |
| Get bin center. | |
| double | Width () const |
| Get width of the bin. | |
| double | Left () const |
| Get left (lower) bin border. | |
| double | Right () const |
| Get right (upper) bin border. | |
| unsigned int | Entries () const |
| Get number of entries in the bin. | |
| double | Density () const |
| Get density=Entries()/Width(). | |
Private Attributes | |
| double | m_center |
| double | m_width |
| unsigned int | m_content |
A bin of a VariableBinwidthHistogram.
Definition at line 22 of file VariableBinwidthHistogramBin.h.
|
inline |
Default constructor.
Definition at line 27 of file VariableBinwidthHistogramBin.h.
|
inline |
Initializing constructor.
| 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.
|
inline |
|
inline |
Get density=Entries()/Width().
Definition at line 120 of file VariableBinwidthHistogramBin.h.
|
inline |
|
inline |
Get left (lower) bin border.
Definition at line 111 of file VariableBinwidthHistogramBin.h.
|
inline |
move left bin boarder
| new_left | left bin boarder |
Definition at line 94 of file VariableBinwidthHistogramBin.h.
|
inline |
move right bin boarder
| new_right | right bin boarder |
Definition at line 80 of file VariableBinwidthHistogramBin.h.
|
inline |
add to bin content
| n | is added |
Definition at line 70 of file VariableBinwidthHistogramBin.h.
|
inline |
add to bin content
| n | is added |
Definition at line 62 of file VariableBinwidthHistogramBin.h.
|
inline |
Get right (upper) bin border.
Definition at line 114 of file VariableBinwidthHistogramBin.h.
|
inline |
Set bin.
| 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.
|
inline |
set content
| n | new bin content |
Definition at line 56 of file VariableBinwidthHistogramBin.h.
|
inline |
|
private |
Definition at line 125 of file VariableBinwidthHistogramBin.h.
|
private |
Definition at line 126 of file VariableBinwidthHistogramBin.h.
|
private |
Definition at line 125 of file VariableBinwidthHistogramBin.h.