![]() |
ATLAS Offline Software
|
#include <TrigHisto2D_v1.h>
Public Member Functions | |
| TrigHisto2D_v1 () | |
| ~TrigHisto2D_v1 () | |
| Destructor. | |
| TrigHisto2D_v1 (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. | |
| const std::vector< float > & | contents () const |
| Fill a 2D histogram. | |
| unsigned int | nbinsX () const |
| float | minX () const |
| Return the minimum along the x-axis. | |
| float | maxX () const |
| Return the maximum along the x-axis. | |
| unsigned int | nbinsY () const |
| Return the number of bins along the y-axis, not including the under and overflow. | |
| float | minY () const |
| Return the minimum along the y-axis. | |
| float | maxY () const |
| Return the maximum along the y-axis. | |
| void | initialize (unsigned int nbins_x, float min_x, float max_x, unsigned int nbins_y, float min_y, float max_y) |
| creates empty histogram | |
| void | fill (float value_x, float value_y, float weight) |
| fill histogram | |
| std::vector< float > | profileX () const |
| Sum the number of entries within the cut range. | |
| std::vector< float > | profileY () const |
| Collapse the x-axis and return a profile from the y-axis. | |
| double | sumEntries (float value_x, float value_y, int cutType) const |
| Sum the number of entries within the cut range. | |
| void | clear () |
| clear m_contents vector | |
| void | dump () |
| dump() function, for testing | |
| void | setContents (const std::vector< float > &cont) |
| contents setter | |
| void | setMinX (float val) |
| void | setMaxX (float val) |
| void | setNbinsX (unsigned int nx) |
| NbinsX setter. | |
| void | setMinY (float val) |
| void | setMaxY (float val) |
| void | setNbinsY (unsigned int ny) |
| NbinsY setter. | |
Private Member Functions | |
| unsigned int | findBinX (float val) const |
| returns x bin index | |
| unsigned int | findBinY (float val) const |
| returns y bin index | |
Private Attributes | |
| float | m_binWidthX = 0.0F |
| float | m_binWidthY = 0.0F |
Static Private Attributes | |
| static const int | EXTRA_BINS =2 |
| additional bins for underflow and overflow bins | |
Definition at line 23 of file TrigHisto2D_v1.h.
| xAOD::TrigHisto2D_v1::TrigHisto2D_v1 | ( | ) |
Definition at line 16 of file TrigHisto2D_v1.cxx.
| xAOD::TrigHisto2D_v1::~TrigHisto2D_v1 | ( | ) |
| xAOD::TrigHisto2D_v1::TrigHisto2D_v1 | ( | 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 20 of file TrigHisto2D_v1.cxx.
| void xAOD::TrigHisto2D_v1::clear | ( | ) |
clear m_contents vector
Definition at line 207 of file TrigHisto2D_v1.cxx.
Fill a 2D histogram.
Return the bin contents of the histogram, including the under and overflow bins.
| void xAOD::TrigHisto2D_v1::dump | ( | ) |
dump() function, for testing
Definition at line 214 of file TrigHisto2D_v1.cxx.
fill histogram
Definition at line 73 of file TrigHisto2D_v1.cxx.
returns x bin index
Definition at line 171 of file TrigHisto2D_v1.cxx.
returns y bin index
Definition at line 189 of file TrigHisto2D_v1.cxx.
| void xAOD::TrigHisto2D_v1::initialize | ( | unsigned int | nbins_x, |
| float | min_x, | ||
| float | max_x, | ||
| unsigned int | nbins_y, | ||
| float | min_y, | ||
| float | max_y ) |
creates empty histogram
compute contents_size
create empty contents vector
compute binwdiths'
Definition at line 37 of file TrigHisto2D_v1.cxx.
| float xAOD::TrigHisto2D_v1::maxX | ( | ) | const |
Return the maximum along the x-axis.
| float xAOD::TrigHisto2D_v1::maxY | ( | ) | const |
Return the maximum along the y-axis.
| float xAOD::TrigHisto2D_v1::minX | ( | ) | const |
Return the minimum along the x-axis.
| float xAOD::TrigHisto2D_v1::minY | ( | ) | const |
Return the minimum along the y-axis.
Return the number of bins along the y-axis, not including the under and overflow.
| std::vector< float > xAOD::TrigHisto2D_v1::profileX | ( | ) | const |
Sum the number of entries within the cut range.
Collapse the y-axis and return a profile from the x-axis
Definition at line 85 of file TrigHisto2D_v1.cxx.
| std::vector< float > xAOD::TrigHisto2D_v1::profileY | ( | ) | const |
Collapse the x-axis and return a profile from the y-axis.
Definition at line 98 of file TrigHisto2D_v1.cxx.
| void xAOD::TrigHisto2D_v1::setMaxX | ( | float | val | ) |
| void xAOD::TrigHisto2D_v1::setMaxY | ( | float | val | ) |
| void xAOD::TrigHisto2D_v1::setMinX | ( | float | val | ) |
| void xAOD::TrigHisto2D_v1::setMinY | ( | float | val | ) |
Sum the number of entries within the cut range.
Definition at line 111 of file TrigHisto2D_v1.cxx.
additional bins for underflow and overflow bins
Definition at line 108 of file TrigHisto2D_v1.h.
|
private |
Definition at line 111 of file TrigHisto2D_v1.h.
|
private |
Definition at line 114 of file TrigHisto2D_v1.h.