![]() |
ATLAS Offline Software
|
A very basic two dimensional histogram to provide storage of HLT distributions, allowing constraints but preventing excessive memory usage for busy events. The histogram data is compressed during persistification according to the type of template instantiated. More...
#include <TrigHisto2D.h>
Public Member Functions | |
| TrigHisto2D (void) | |
| Default constructor used by T/P converters. | |
| TrigHisto2D (unsigned int nbins_x, float min_x, float max_x, unsigned int nbins_y, float min_y, float max_y) | |
| Standard constructor used by FEX algorithms. | |
| TrigHisto2D (unsigned int nbins_x, float min_x, float max_x, unsigned int nbins_y, float min_y, float max_y, const std::vector< float > &contents) | |
| virtual | ~TrigHisto2D (void) |
| Destructor. | |
| TrigHisto2D (const TrigHisto2D &trigHisto) | |
| Copy Constructor. | |
| TrigHisto2D (TrigHisto2D &&trigHisto) | |
| TrigHisto2D & | operator= (const TrigHisto2D &trigHisto) |
| Assignment operator. | |
| TrigHisto2D & | operator= (TrigHisto2D &&trigHisto) |
| void | fill (float value_x, float value_y, float weight) |
| Fill a 2D histogram. | |
| double | sumEntries (float value_x, float value_y, int cutType) const |
| Sum the number of entries within the cut range. | |
| TrigHisto1D | profileX (void) const |
| Collapse the y-axis and return a profile from the x-axis. | |
| TrigHisto1D | profileY (void) const |
| Collapse the x-axis and return a profile from the y-axis. | |
| unsigned int | nbins_y (void) const |
| Return the number of bins along the y-axis, not including the under and overflow. | |
| float | min_y (void) const |
| Return the minimum along the y-axis. | |
| float | max_y (void) const |
| Return the maximum along the y-axis. | |
| 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. | |
Protected Member Functions | |
| unsigned int | findBin (unsigned int nbins, float h_min, float h_max, float binSize, float value) const |
Protected Attributes | |
| unsigned int | m_nbins_y |
| unsigned int | m_underflowBin_y |
| unsigned int | m_overflowBin_y |
| float | m_min_y |
| float | m_max_y |
| float | m_binSize_y |
| std::vector< float > | m_contents |
| std::vector< float >::iterator | m_itr {} |
| std::vector< float >::iterator | m_itr_end {} |
| unsigned int | m_nbins_x |
| unsigned int | m_underflowBin_x |
| unsigned int | m_overflowBin_x |
| float | m_min_x |
| float | m_max_x |
| float | m_binSize_x |
A very basic two dimensional histogram to provide storage of HLT distributions, allowing constraints but preventing excessive memory usage for busy events. The histogram data is compressed during persistification according to the type of template instantiated.
Definition at line 24 of file Trigger/TrigEvent/TrigInDetEvent/TrigInDetEvent/TrigHisto2D.h.
| TrigHisto2D::TrigHisto2D | ( | void | ) |
Default constructor used by T/P converters.
Definition at line 11 of file TrigHisto2D.cxx.
| TrigHisto2D::TrigHisto2D | ( | unsigned int | nbins_x, |
| float | min_x, | ||
| float | max_x, | ||
| unsigned int | nbins_y, | ||
| float | min_y, | ||
| float | max_y ) |
Standard constructor used by FEX algorithms.
Definition at line 59 of file TrigHisto2D.cxx.
| TrigHisto2D::TrigHisto2D | ( | unsigned int | nbins_x, |
| float | min_x, | ||
| float | max_x, | ||
| unsigned int | nbins_y, | ||
| float | min_y, | ||
| float | max_y, | ||
| const std::vector< float > & | contents ) |
Definition at line 22 of file TrigHisto2D.cxx.
|
virtual |
| TrigHisto2D::TrigHisto2D | ( | const TrigHisto2D & | trigHisto | ) |
| TrigHisto2D::TrigHisto2D | ( | TrigHisto2D && | trigHisto | ) |
Definition at line 98 of file TrigHisto2D.cxx.
|
inherited |
|
inlineinherited |
Return the bin contents of the histogram, including the under and overflow bins.
Definition at line 58 of file TrigHisto.h.
| void TrigHisto2D::fill | ( | float | value_x, |
| float | value_y, | ||
| float | weight ) |
Fill a 2D histogram.
Definition at line 170 of file TrigHisto2D.cxx.
|
protectedinherited |
Definition at line 33 of file TrigHisto.cxx.
|
inlineinherited |
Return the maximum along the x-axis.
Definition at line 52 of file TrigHisto.h.
|
inline |
Return the maximum along the y-axis.
Definition at line 73 of file Trigger/TrigEvent/TrigInDetEvent/TrigInDetEvent/TrigHisto2D.h.
|
inlineinherited |
Return the minimum along the x-axis.
Definition at line 47 of file TrigHisto.h.
|
inline |
Return the minimum along the y-axis.
Definition at line 68 of file Trigger/TrigEvent/TrigInDetEvent/TrigInDetEvent/TrigHisto2D.h.
|
inlineinherited |
Return the number of bins along the y-axis, not including the under and overflow.
Definition at line 42 of file TrigHisto.h.
|
inline |
Return the number of bins along the y-axis, not including the under and overflow.
Definition at line 63 of file Trigger/TrigEvent/TrigInDetEvent/TrigInDetEvent/TrigHisto2D.h.
| TrigHisto2D & TrigHisto2D::operator= | ( | const TrigHisto2D & | trigHisto | ) |
Assignment operator.
Definition at line 120 of file TrigHisto2D.cxx.
| TrigHisto2D & TrigHisto2D::operator= | ( | TrigHisto2D && | trigHisto | ) |
Definition at line 145 of file TrigHisto2D.cxx.
| TrigHisto1D TrigHisto2D::profileX | ( | void | ) | const |
Collapse the y-axis and return a profile from the x-axis.
Definition at line 238 of file TrigHisto2D.cxx.
| TrigHisto1D TrigHisto2D::profileY | ( | void | ) | const |
Collapse the x-axis and return a profile from the y-axis.
Definition at line 258 of file TrigHisto2D.cxx.
| double TrigHisto2D::sumEntries | ( | float | value_x, |
| float | value_y, | ||
| int | cutType ) const |
Sum the number of entries within the cut range.
Definition at line 181 of file TrigHisto2D.cxx.
|
protectedinherited |
Definition at line 81 of file TrigHisto.h.
|
protected |
Definition at line 85 of file Trigger/TrigEvent/TrigInDetEvent/TrigInDetEvent/TrigHisto2D.h.
|
protectedinherited |
Definition at line 71 of file TrigHisto.h.
|
protectedinherited |
Definition at line 72 of file TrigHisto.h.
|
protectedinherited |
Definition at line 73 of file TrigHisto.h.
|
protectedinherited |
Definition at line 80 of file TrigHisto.h.
|
protected |
Definition at line 84 of file Trigger/TrigEvent/TrigInDetEvent/TrigInDetEvent/TrigHisto2D.h.
|
protectedinherited |
Definition at line 79 of file TrigHisto.h.
|
protected |
Definition at line 83 of file Trigger/TrigEvent/TrigInDetEvent/TrigInDetEvent/TrigHisto2D.h.
|
protectedinherited |
Definition at line 76 of file TrigHisto.h.
|
protected |
Definition at line 80 of file Trigger/TrigEvent/TrigInDetEvent/TrigInDetEvent/TrigHisto2D.h.
|
protectedinherited |
Definition at line 78 of file TrigHisto.h.
|
protected |
Definition at line 82 of file Trigger/TrigEvent/TrigInDetEvent/TrigInDetEvent/TrigHisto2D.h.
|
protectedinherited |
Definition at line 77 of file TrigHisto.h.
|
protected |
Definition at line 81 of file Trigger/TrigEvent/TrigInDetEvent/TrigInDetEvent/TrigHisto2D.h.