5#ifndef xAODTrigMinBias_TrigHisto2D_V1_H
6#define xAODTrigMinBias_TrigHisto2D_V1_H
31 TrigHisto2D_v1(
unsigned int nbins_x,
float min_x,
float max_x,
unsigned int nbins_y,
float min_y,
float max_y);
57 void initialize(
unsigned int nbins_x,
float min_x,
float max_x,
unsigned int nbins_y,
float min_y,
float max_y);
60 void fill(
float value_x,
float value_y,
float weight);
73 double sumEntries(
float value_x,
float value_y,
int cutType)
const;
102 unsigned int findBinX(
float val)
const;
105 unsigned int findBinY(
float val)
const;
Base class for elements of a container that can have aux data.
Base class for elements of a container that can have aux data.
void setNbinsX(unsigned int nx)
NbinsX setter.
double sumEntries(float value_x, float value_y, int cutType) const
Sum the number of entries within the cut range.
const std::vector< float > & contents() const
Fill a 2D histogram.
unsigned int findBinY(float val) const
returns y bin index
float maxY() const
Return the maximum along the y-axis.
unsigned int nbinsY() const
Return the number of bins along the y-axis, not including the under and overflow.
float maxX() const
Return the maximum along the x-axis.
void fill(float value_x, float value_y, float weight)
fill histogram
std::vector< float > profileY() const
Collapse the x-axis and return a profile from the y-axis.
~TrigHisto2D_v1()
Destructor.
void setContents(const std::vector< float > &cont)
contents setter
void clear()
clear m_contents vector
void dump()
dump() function, for testing
static const int EXTRA_BINS
additional bins for underflow and overflow bins
unsigned int findBinX(float val) const
returns x bin index
float minX() const
Return the minimum along the x-axis.
std::vector< float > profileX() const
Sum the number of entries within the cut range.
float minY() const
Return the minimum along the y-axis.
void setNbinsY(unsigned int ny)
NbinsY setter.
unsigned int nbinsX() const
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.