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;
A very basic one dimensional histogram to provide storage of HLT distributions, allowing constraints ...
unsigned int m_underflowBin_y
TrigHisto2D(void)
Default constructor used by T/P converters.
float min_y(void) const
Return the minimum along the y-axis.
unsigned int nbins_y(void) const
Return the number of bins along the y-axis, not including the under and overflow.
TrigHisto1D profileY(void) 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.
unsigned int m_overflowBin_y
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.
TrigHisto2D & operator=(const TrigHisto2D &trigHisto)
Assignment operator.
float max_y(void) const
Return the maximum along the y-axis.
virtual ~TrigHisto2D(void)
Destructor.
unsigned int m_underflowBin_x
unsigned int m_overflowBin_x
float max_x(void) const
Return the maximum along the x-axis.
unsigned int findBin(unsigned int nbins, float h_min, float h_max, float binSize, float value) const
float min_x(void) const
Return the minimum along the x-axis.
unsigned int nbins_x(void) const
Return the number of bins along the y-axis, not including the under and overflow.
const std::vector< float > & contents(void) const
Return the bin contents of the histogram, including the under and overflow bins.
std::vector< float > m_contents