Belle II Software light-2406-ragdoll
|
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. | |
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. | |
void | defineOutOfRangeWeight (const WeightInfo &entryValue) |
Define reweight info for particles out of range. | |
std::vector< std::string > | getAxesNames () const |
Get axes names. | |
WeightInfo | getInfo (std::map< std::string, double > values) const |
Get axes names. | |
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. | |
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.
|
inline |
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.
void printParticleWeightingLookUpTable | ( | ) | const |
Print content of LookUpTable.
Definition at line 53 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.
|
private |
out-of-range bin ID
Definition at line 37 of file ParticleWeightingLookUpTable.h.
|
private |
Collection of weight infos for global bins.
Definition at line 34 of file ParticleWeightingLookUpTable.h.