The base class for TrigHisto1D and TrigHisto2D. This class should never be stored or used directly.
More...
#include <TrigHisto.h>
|
unsigned int | findBin (unsigned int nbins, float h_min, float h_max, float binSize, float value) const |
|
The base class for TrigHisto1D and TrigHisto2D. This class should never be stored or used directly.
- Author
- W. H. Bell W.Bel.nosp@m.l@ce.nosp@m.rn.ch
Definition at line 32 of file TrigHisto.h.
◆ TrigHisto()
TrigHisto::TrigHisto |
( |
void |
| ) |
|
◆ ~TrigHisto()
TrigHisto::~TrigHisto |
( |
void |
| ) |
|
|
virtual |
◆ clear()
void TrigHisto::clear |
( |
void |
| ) |
|
◆ contents()
const std::vector<float>& TrigHisto::contents |
( |
void |
| ) |
const |
|
inline |
Return the bin contents of the histogram, including the under and overflow bins.
Definition at line 58 of file TrigHisto.h.
◆ findBin()
unsigned int TrigHisto::findBin |
( |
unsigned int |
nbins, |
|
|
float |
h_min, |
|
|
float |
h_max, |
|
|
float |
binSize, |
|
|
float |
value |
|
) |
| const |
|
protected |
- Returns
- which bin this value corresponds to. (Supply bin limits such that it might be used for 1D or 2D derived class.)
Definition at line 33 of file TrigHisto.cxx.
38 unsigned int ibin = 0;
43 else if( !(
value < h_max)) {
47 while(
value > (ibin*binSize+h_min) && ibin <=
nbins) {
◆ max_x()
float TrigHisto::max_x |
( |
void |
| ) |
const |
|
inline |
Return the maximum along the x-axis.
Definition at line 52 of file TrigHisto.h.
◆ min_x()
float TrigHisto::min_x |
( |
void |
| ) |
const |
|
inline |
Return the minimum along the x-axis.
Definition at line 47 of file TrigHisto.h.
◆ nbins_x()
unsigned int TrigHisto::nbins_x |
( |
void |
| ) |
const |
|
inline |
Return the number of bins along the y-axis, not including the under and overflow.
Definition at line 42 of file TrigHisto.h.
◆ m_binSize_x
float TrigHisto::m_binSize_x |
|
protected |
◆ m_contents
std::vector<float> TrigHisto::m_contents |
|
protected |
◆ m_itr
std::vector<float>::iterator TrigHisto::m_itr |
|
protected |
◆ m_itr_end
std::vector<float>::iterator TrigHisto::m_itr_end |
|
protected |
◆ m_max_x
◆ m_min_x
◆ m_nbins_x
unsigned int TrigHisto::m_nbins_x |
|
protected |
◆ m_overflowBin_x
unsigned int TrigHisto::m_overflowBin_x |
|
protected |
◆ m_underflowBin_x
unsigned int TrigHisto::m_underflowBin_x |
|
protected |
The documentation for this class was generated from the following files: