![]() |
Belle II Software
light-2303-iriomote
|
Class for handling LookUp tables. More...
#include <ParticleWeightingLookUpTable.h>


Public Member Functions | |
| ParticleWeightingLookUpTable () | |
| Constructor. | |
| void | addEntry (WeightInfo entryValue, NDBin bin) |
| Adds entry to the LookUp table and also adds entry to key table if needed. More... | |
| void | addEntry (WeightInfo entryValue, NDBin bin, int key_ID) |
| Adds entry to the LookUp table and also adds entry to key table with predefined bin ID if needed. More... | |
| void | defineOutOfRangeWeight (const WeightInfo &entryValue) |
| Define reweight info for particles out of range. More... | |
| std::vector< std::string > | getAxesNames () const |
| Get axes names. More... | |
| WeightInfo | getInfo (std::map< std::string, double > values) const |
| Get axes names. More... | |
| void | printParticleWeightingLookUpTable () const |
| Print content of LookUpTable. | |
Private Member Functions | |
| ClassDef (ParticleWeightingLookUpTable, 1) | |
| ClassDef as this is a TObject. | |
Private Attributes | |
| ParticleWeightingKeyMap | m_KeyMap |
| LookUp table matches bins of the key map with the LookUp info. More... | |
| WeightMap | m_WeightMap |
| Collection of weight infos for global bins. | |
| const int | m_OutOfRangeBinID = -1 |
| out-of-range bin ID | |
Class for handling LookUp tables.
Definition at line 28 of file ParticleWeightingLookUpTable.h.
| void addEntry | ( | WeightInfo | entryValue, |
| NDBin | bin | ||
| ) |
Adds entry to the LookUp table and also adds entry to key table if needed.
| entryValue | is a line from LookUp table |
| bin | contains bin limits for given LookUp table values |
Definition at line 16 of file ParticleWeightingLookUpTable.cc.
| void addEntry | ( | WeightInfo | entryValue, |
| NDBin | bin, | ||
| int | key_ID | ||
| ) |
Adds entry to the LookUp table and also adds entry to key table with predefined bin ID if needed.
| entryValue | is a line from LookUp table |
| bin | contains bin limits for given LookUp table values |
| key_ID | is bin ID. You might want to use it to make several bins with the same ID or for non-square bins. |
Definition at line 22 of file ParticleWeightingLookUpTable.cc.
| void defineOutOfRangeWeight | ( | const WeightInfo & | entryValue | ) |
Define reweight info for particles out of range.
This info is stored in bin -1.
| entryValue | is a line from LookUp table |
Definition at line 30 of file ParticleWeightingLookUpTable.cc.
| std::vector< std::string > getAxesNames | ( | ) | const |
Get axes names.
Definition at line 36 of file ParticleWeightingLookUpTable.cc.
| WeightInfo getInfo | ( | std::map< std::string, double > | values | ) | const |
Get axes names.
| values | map of axes names with values along corresponding names |
Definition at line 41 of file ParticleWeightingLookUpTable.cc.
|
private |
LookUp table matches bins of the key map with the LookUp info.
This matching is paired with the key map. Key map
Definition at line 33 of file ParticleWeightingLookUpTable.h.