 |
Belle II Software
release-05-02-19
|
29 class PIDPriorsTable {
39 void setBinEdges(
const std::vector<float>& binEdgesX,
const std::vector<float>& binEdgesY);
87 void setAxisLabels(
const std::string& labelX,
const std::string& labelY)
183 bool checkRange(
const std::string& text,
float val,
const std::vector<float>& edges)
const;
191 short findBin(
float val, std::vector<float> array)
const;
204 short findBinFast(
float val, std::vector<float> array)
const;
std::vector< float > m_binEdgesY
The array containing the bin edges for the Y axis.
void setAxisLabels(const std::string &labelX, const std::string &labelY)
Sets axes lables.
std::string getXAxisLabel() const
Returns the X axis label.
std::string getYAxisLabel() const
Returns the Y axis label.
float getErrorValue(float x, float y) const
Returns the error on the prior probability for a given value of (x,y).
std::vector< float > m_binEdgesX
The array containing the bin edges for the X axis.
short findBin(float val, std::vector< float > array) const
This function returns the position of a number in a sorted array of bin edges.
std::string m_yAxisLabel
label of the Y axis, indicating which variable is represented here
short findBinWithFixedWidth(float val, std::vector< float > array) const
This function returns the position of a number in a sorted array of bin edges, assuming that the atte...
void setBinEdges(const std::vector< float > &binEdgesX, const std::vector< float > &binEdgesY)
Sets the bin edges arrays.
void setPriorsTable(const std::vector< float > &priors)
Sets the priors table from a 2D std::vector.
float getErrorInBin(int iX, int iY) const
Returns the error on prior probability for a given bin.
void printPrior() const
Prints the content of the table and the axes.
Abstract base class for different kinds of events.
void setPriorValue(float x, float y, float value)
Sets the prior value for a single bin.
std::vector< float > m_errors
The the matrix with the errors on the prior probabilities.
std::string m_xAxisLabel
label of the X axis, indicating which variable is represented here
void setErrorsTable(const std::vector< float > &errors)
Sets the priors error table from a 2D std::vector.
bool checkRange(const std::string &text, float val, const std::vector< float > &edges) const
Checks is a values is withing the range of an array.
void setErrorValue(float x, float y, float value)
Sets the error on the prior value for a single bin.
float getPriorInBin(int iX, int iY) const
Returns the prior probability for a given bin.
short findBinFast(float val, std::vector< float > array) const
This function returns the position of a number in a sorted array of bin edges This implementation sho...
std::vector< float > m_priors
The matrix with the prior probabilities.
float getPriorValue(float x, float y) const
Returns the prior probability for a given value of (x,y).
void printError() const
Prints the content of the error table and the axes.