|
ATLAS Offline Software
|
Go to the documentation of this file.
5 #ifndef VARIABLEBINWIDTHHISTOGRAMBIN_H
6 #define 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__));
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);
VariableBinwidthHistogramBin * m_bin
pointer to bin
void SetContent(unsigned int n)
set content
bool operator<(const VBHBinPtrSrt &other) const
Operator < for sorting bins by content.
void MoveRight(double new_right)
move right bin boarder
VariableBinwidthHistogramBin operator+=(unsigned int n)
add to bin content
bool operator>(const VBHBinPtrSrt &other) const
Operator > for sorting bins by content.
VBHBinPtrSrt(VariableBinwidthHistogramBin *bin)
initializing constructor
VariableBinwidthHistogramBin operator+(unsigned int n)
add to bin content
void Initialize(VariableBinwidthHistogramBin *bin)
initialize
double Center() const
Get bin center.
void MoveLeft(double new_left)
move left bin boarder
CscCalcPed - algorithm that finds the Cathode Strip Chamber pedestals from an RDO.
unsigned int Entries() const
Get number of entries in the bin.
double Left() const
Get left (lower) bin border.
VariableBinwidthHistogramBin(double center, double width, unsigned int content)
Initializing constructor.
VBHBinPtrSrt()
default constructor
double Right() const
Get right (upper) bin border.
void Set(double center, double width, unsigned int content)
Set bin.
VariableBinwidthHistogramBin & Bin()
Get reference to bin.
double Width() const
Get width of the bin.
VariableBinwidthHistogramBin()
Default constructor.
double Density() const
Get density=Entries()/Width()