![]() |
Belle II Software
release-05-02-19
|
Class for handling KeyMap. More...
#include <ParticleWeightingKeyMap.h>
Public Member Functions | |
ParticleWeightingKeyMap () | |
Constructor. | |
void | addAxis (const std::string &name) |
Add axis. | |
int | addKey (NDBin bin, int key_ID) |
Adding predefined ID to the table. More... | |
double | addKey (NDBin bin) |
Adding predefined ID to the table. More... | |
double | getKey (std::map< std::string, double > values) const |
Get global bin ID for given observable values. More... | |
std::vector< std::string > | getNames () const |
Get vector of names ParticleWeightingKeyMap. More... | |
void | printKeyMap () const |
Print content of the key map. | |
Private Attributes | |
std::map< std::string, ParticleWeightingAxis * > | m_axes |
Axes mapped with their names. | |
std::vector< MultiDimBin > | m_bins |
Vector of keys. | |
const int | m_outOfRangeBin = -1 |
We assign unique bin ID for out-of-range bin. | |
Class for handling KeyMap.
Definition at line 47 of file ParticleWeightingKeyMap.h.
double addKey | ( | NDBin | bin | ) |
Adding predefined ID to the table.
bin | contains bin ranges and names of te variables |
Definition at line 69 of file ParticleWeightingKeyMap.cc.
int addKey | ( | NDBin | bin, |
int | key_ID | ||
) |
Adding predefined ID to the table.
bin | contains bin ranges and names of te variables |
key_ID | predefined bin ID |
Definition at line 27 of file ParticleWeightingKeyMap.cc.
double getKey | ( | std::map< std::string, double > | values | ) | const |
Get global bin ID for given observable values.
values | map of axis names and correspoinding values |
Definition at line 75 of file ParticleWeightingKeyMap.cc.
std::vector< std::string > getNames | ( | ) | const |
Get vector of names ParticleWeightingKeyMap.
Definition at line 100 of file ParticleWeightingKeyMap.cc.