|
ATLAS Offline Software
|
Go to the documentation of this file.
23 float min_x,
float max_x,
25 float min_y,
float max_y,
60 float min_x,
float max_x,
62 float min_y,
float max_y)
63 :
TrigHisto2D (nbins_x, min_x, max_x, nbins_y, min_y, max_y,
121 if (
this != &trigHisto) {
146 if (
this != &trigHisto) {
174 const unsigned int ibin = ibin_y*(
m_nbins_x+2) + ibin_x;
197 for(
unsigned int ibin_x =
m_underflowBin_x; ibin_x <= ibin_x_selected; ibin_x++) {
198 for(
unsigned int ibin_y =
m_underflowBin_y; ibin_y <= ibin_y_selected; ibin_y++) {
199 const unsigned int ibin = ibin_y*(
m_nbins_x+2) + ibin_x;
205 for(
unsigned int ibin_x = ibin_x_selected; ibin_x <=
m_overflowBin_x; ibin_x++) {
206 for(
unsigned int ibin_y =
m_underflowBin_y; ibin_y <= ibin_y_selected; ibin_y++) {
207 const unsigned int ibin = ibin_y*(
m_nbins_x+2) + ibin_x;
213 for(
unsigned int ibin_x =
m_underflowBin_x; ibin_x <= ibin_x_selected; ibin_x++) {
214 for(
unsigned int ibin_y = ibin_y_selected; ibin_y <=
m_overflowBin_y; ibin_y++) {
215 const unsigned int ibin = ibin_y*(
m_nbins_x+2) + ibin_x;
221 for(
unsigned int ibin_x = ibin_x_selected; ibin_x <=
m_overflowBin_x; ibin_x++) {
222 for(
unsigned int ibin_y = ibin_y_selected; ibin_y <=
m_overflowBin_y; ibin_y++) {
223 const unsigned int ibin = ibin_y*(
m_nbins_x+2) + ibin_x;
239 unsigned int ibin, ibin_x, ibin_y;
265 const unsigned int ibin = ibin_y*(
m_nbins_x+2) + ibin_x;
unsigned int m_overflowBin_x
float min_x(void) const
Return the minimum along the x-axis.
The base class for TrigHisto1D and TrigHisto2D. This class should never be stored or used directly.
A very basic one dimensional histogram to provide storage of HLT distributions, allowing constraints ...
TrigHisto2D & operator=(const TrigHisto2D &trigHisto)
Assignment operator.
unsigned int nbins_y(void) const
Return the number of bins along the y-axis, not including the under and overflow.
float max_x(void) const
Return the maximum along the x-axis.
std::vector< float > m_contents
unsigned int m_overflowBin_y
double sumEntries(float value_x, float value_y, int cutType) const
Sum the number of entries within the cut range.
TrigHisto1D profileY(void) const
Collapse the x-axis and return a profile from the y-axis.
TrigHisto1D profileX(void) const
Collapse the y-axis and return a profile from the x-axis.
void fill(float value_x, float value_y, float weight)
Fill a 2D histogram.
void contents(std::vector< std::string > &keys, TDirectory *td, const std::string &directory, const std::string &pattern, const std::string &path)
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
A very basic two dimensional histogram to provide storage of HLT distributions, allowing constraints ...
unsigned int m_underflowBin_y
TrigHisto2D(void)
Default constructor used by T/P converters.
virtual ~TrigHisto2D(void)
Destructor.
unsigned int m_underflowBin_x
unsigned int nbins_x(void) const
Return the number of bins along the y-axis, not including the under and overflow.