Public Member Functions | |
~TrigHisto2D_v1 () | |
TrigHisto2D_v1 (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 () const |
unsigned int | nbinsX () const |
float | minX () const |
float | maxX () const |
unsigned int | nbinsY () const |
float | minY () const |
float | maxY () const |
void | initialize (unsigned int nbins_x, float min_x, float max_x, unsigned int nbins_y, float min_y, float max_y) |
void | fill (float value_x, float value_y, float weight) |
std::vector< float > | profileX () const |
std::vector< float > | profileY () const |
double | sumEntries (float value_x, float value_y, int cutType) const |
void | clear () |
void | dump () |
void | setContents (const std::vector< float > &cont) |
void | setMinX (float val) |
void | setMaxX (float val) |
void | setNbinsX (unsigned int nx) |
void | setMinY (float val) |
void | setMaxY (float val) |
void | setNbinsY (unsigned int ny) |
xAOD::TrigHisto2D_v1::~TrigHisto2D_v1 | ( | ) |
Destructor
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.
void xAOD::TrigHisto2D_v1::clear | ( | ) |
clear m_contents vector
const std::vector<float>& xAOD::TrigHisto2D_v1::contents | ( | ) | const |
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
void xAOD::TrigHisto2D_v1::fill | ( | float | value_x, | |
float | value_y, | |||
float | weight = 1. | |||
) |
fill histogram
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'
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.
unsigned int xAOD::TrigHisto2D_v1::nbinsY | ( | ) | const |
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
std::vector< float > xAOD::TrigHisto2D_v1::profileY | ( | ) | const |
Collapse the x-axis and return a profile from the y-axis
void xAOD::TrigHisto2D_v1::setContents | ( | const std::vector< float > & | cont | ) |
contents setter
void xAOD::TrigHisto2D_v1::setNbinsX | ( | unsigned int | nx | ) |
NbinsX setter
void xAOD::TrigHisto2D_v1::setNbinsY | ( | unsigned int | ny | ) |
NbinsY setter
double xAOD::TrigHisto2D_v1::sumEntries | ( | float | value_x, | |
float | value_y, | |||
int | cutType | |||
) | const |
Sum the number of entries within the cut range