![]() |
Belle II Software
release-08-02-05
|
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 37 of file ParticleWeightingKeyMap.h.
| double addKey | ( | NDBin | bin | ) |
Adding predefined ID to the table.
| bin | contains bin ranges and names of the variables |
Definition at line 67 of file ParticleWeightingKeyMap.cc.
| int addKey | ( | NDBin | bin, |
| int | key_ID | ||
| ) |
Adding predefined ID to the table.
| bin | contains bin ranges and names of the variables |
| key_ID | predefined bin ID |
Definition at line 25 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 corresponding values |
Definition at line 73 of file ParticleWeightingKeyMap.cc.
| std::vector< std::string > getNames | ( | ) | const |
Get vector of names ParticleWeightingKeyMap.
Definition at line 98 of file ParticleWeightingKeyMap.cc.