The base class for TrigHisto1D and TrigHisto2D. This class should never be stored or used directly.
More...
#include <TrigHisto.h>
|
| | TrigHisto (void) |
| virtual | ~TrigHisto (void) |
| void | clear (void) |
| | Zero all histogram bins.
|
| unsigned int | nbins_x (void) const |
| | Return the number of bins along the y-axis, not including the under and overflow.
|
| float | min_x (void) const |
| | Return the minimum along the x-axis.
|
| float | max_x (void) const |
| | Return the maximum along the x-axis.
|
| const std::vector< float > & | contents (void) const |
| | Return the bin contents of the histogram, including the under and overflow bins.
|
|
| 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 | | ) |
|
Definition at line 9 of file TrigHisto.cxx.
15}
unsigned int m_underflowBin_x
unsigned int m_overflowBin_x
◆ ~TrigHisto()
| TrigHisto::~TrigHisto |
( |
void | | ) |
|
|
virtual |
◆ clear()
| void TrigHisto::clear |
( |
void | | ) |
|
Zero all histogram bins.
Definition at line 24 of file TrigHisto.cxx.
24 {
28}
std::vector< float >::iterator m_itr
std::vector< float >::iterator m_itr_end
std::vector< float > m_contents
◆ 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.
37 {
38 unsigned int ibin = 0;
39
40 if(value < h_min) {
41 ibin = 0;
42 }
43 else if( !(value < h_max)) {
45 }
46 else {
47 while(value > (ibin*binSize+h_min) && ibin <= nbins) {
48 ibin++;
49 }
50 }
51
52 return ibin;
53}
◆ 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
◆ 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: