Belle II Software light-2406-ragdoll
|
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. | |
double | addKey (NDBin bin) |
Adding predefined ID to the table. | |
double | getKey (std::map< std::string, double > values) const |
Get global bin ID for given observable values. | |
std::vector< std::string > | getNames () const |
Get vector of names ParticleWeightingKeyMap. | |
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.
|
inline |
void addAxis | ( | const std::string & | name | ) |
Add axis.
Definition at line 16 of file ParticleWeightingKeyMap.cc.
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.
void printKeyMap | ( | ) | const |
Print content of the key map.
Definition at line 108 of file ParticleWeightingKeyMap.cc.
|
private |
Axes mapped with their names.
Definition at line 42 of file ParticleWeightingKeyMap.h.
|
private |
Vector of keys.
Definition at line 46 of file ParticleWeightingKeyMap.h.
|
private |
We assign unique bin ID for out-of-range bin.
Definition at line 51 of file ParticleWeightingKeyMap.h.