![]() |
Belle II Software
release-05-02-19
|
Class for handling LookUp tables. More...
#include <ParticleWeightingAxis.h>
Public Member Functions | |
ParticleWeightingAxis () | |
Constructor. | |
std::string | getName () |
Returns name of an axis. | |
void | setName (const std::string &name) |
Sets name of an axis. More... | |
int | addBin (ParticleWeightingBinLimits *bin) |
Check if bin exists and creates it if not. More... | |
int | findBin (ParticleWeightingBinLimits *bin) |
Returns id of bin with given bin limits Returns out-of-range binID if can't find. More... | |
int | findBin (double value) |
Returns id of bin containig value. More... | |
void | printAxis () |
Prints axis information to the B2INFO stream. | |
Private Member Functions | |
bool | isOverlappingBin (ParticleWeightingBinLimits *bin) |
Return TRUE if bin exisits or overlaps with existing. More... | |
Private Attributes | |
BinMap | m_unnamedAxis |
Named axis with bins. | |
std::string | m_axisName |
Axis name. | |
const int | m_outOfRangeBinID = -1 |
ID of out-of-range bin. | |
Class for handling LookUp tables.
Definition at line 36 of file ParticleWeightingAxis.h.
int addBin | ( | ParticleWeightingBinLimits * | bin | ) |
Check if bin exists and creates it if not.
Returns bin ID Issues fatal error in case of ovarlaping bins.
bin | bin limits |
Definition at line 48 of file ParticleWeightingAxis.cc.
int findBin | ( | double | value | ) |
Returns id of bin containig value.
value | value |
Definition at line 75 of file ParticleWeightingAxis.cc.
int findBin | ( | ParticleWeightingBinLimits * | bin | ) |
Returns id of bin with given bin limits Returns out-of-range binID if can't find.
bin | bin limits |
Definition at line 64 of file ParticleWeightingAxis.cc.
|
private |
Return TRUE if bin exisits or overlaps with existing.
bin | - tested bin |
Checkin gif lower border is within some bin existing binning: | | new binning: | |
Checking if upper border is within some bin existing binning: | | new binning: | |
Checking if new bin covers exiting bin completely existing binning: | | new binning: | |
Definition at line 16 of file ParticleWeightingAxis.cc.
|
inline |
Sets name of an axis.
name | axis name |
Definition at line 67 of file ParticleWeightingAxis.h.