 |
Belle II Software
release-05-01-25
|
15 #include <analysis/dbobjects/PIDPriorsTable.h>
16 #include <framework/gearbox/Const.h>
56 auto index = particle.getIndex();
71 std::vector<float> priorsTable, std::vector<float> errorsTable)
73 auto index = particle.getIndex();
111 auto index = particle.getIndex();
126 auto index = particle.getIndex();
140 auto index = particle.getIndex();
154 auto index = particle.getIndex();
167 auto index = particle.getIndex();
181 auto index = particle.getIndex();
195 auto index = particle.getIndex();
207 auto index = particle.getIndex();
219 auto index = particle.getIndex();
void setAxisLabels(const std::string &labelX, const std::string &labelY)
Sets axes lables.
std::string getXAxisLabel() const
Returns the X axis label.
static const unsigned int c_SetSize
Number of elements (for use in array bounds etc.)
std::string getYAxisLabel() const
Returns the Y axis label.
void setPriorsAxes(const Const::ChargedStable &particle, std::vector< float > xAxisEdges, std::vector< float > yAxisEdges)
Sets the axes for the priors table of the selected species.
PIDPriors()
Default constructor.
float getErrorValue(float x, float y) const
Returns the error on the prior probability for a given value of (x,y).
void setErrorsTable(const Const::ChargedStable &particle, std::vector< float > errorsTable)
Sets the probability error table for the priors of the selected particle species.
void setPriors(const Const::ChargedStable &particle, const PIDPriorsTable &table)
Sets the prior table for a particle species from a PIDPriorsTable object.
ClassDef(PIDPriors, 1)
Class revision number.
void setPriorsTable(const Const::ChargedStable &particle, std::vector< float > priorsTable)
Sets the probability table for the priors of the selected particle species.
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.
Abstract base class for different kinds of events.
float getPriorValue(const Const::ChargedStable &particle, float x, float y) const
Returns the prior probability associated to a particle with defined species and parameters.
PIDPriorsTable m_priors[Const::ChargedStable::c_SetSize]
The array of PIDPiorsTable, one per particle species.
void setAxisLabels(const Const::ChargedStable &particle, std::string xAxisLabel, std::string yAxisLabel)
Sets the axis labels for the priors of the selected particle species.
A database class to hold the prior probability for the particle identification.
std::string getXAxisLabel(const Const::ChargedStable &particle) const
Returns the X axis label of the prior.
std::string getYAxisLabel(const Const::ChargedStable &particle) const
Returns the Y axis label of the prior.
void setErrorsTable(const std::vector< float > &errors)
Sets the priors error table from a 2D std::vector.
Provides a type-safe way to pass members of the chargedStableSet set.
float getPriorError(const Const::ChargedStable &particle, float x, float y) const
Returns the error on the prior probability associated to a particle with defined species and paramete...
float getPriorValue(float x, float y) const
Returns the prior probability for a given value of (x,y).
void setPriors(const Const::ChargedStable &particle, std::vector< float > xAxisEdges, std::vector< float > yAxisEdges, std::vector< float > priorsTable, std::vector< float > errorsTable)
Sets the prior table for a particle species from a the std::vectors of the bin edges and the probabil...
This class holds the prior distribution for a single particle species.
PIDPriorsTable getPriorsTable(const Const::ChargedStable &particle) const
Returns the priors table of the selected particle species.