Class to contain payload of everything needed for MVA based charged particle identification.
More...
#include <ECLChargedPIDMVAWeights.h>
Class to contain payload of everything needed for MVA based charged particle identification.
Definition at line 369 of file ECLChargedPIDMVAWeights.h.
◆ ECLChargedPIDMVAWeights()
◆ ~ECLChargedPIDMVAWeights()
◆ getBinningVariables()
std::vector< std::string > getBinningVariables |
( |
| ) |
const |
|
inline |
Returns string definitions of the variables used in defining the phasespace categories.
Definition at line 440 of file ECLChargedPIDMVAWeights.h.
std::vector< std::string > m_binningVariables
Stores the list of variables used to define the phasespace binning.
◆ getLinearisedCategoryIndex()
unsigned int getLinearisedCategoryIndex |
( |
std::vector< float > |
values | ) |
const |
|
inline |
Returns the flattened 1D index of the N dimensional phasespace category grid.
- Parameters
-
values | N dimensional input vector of floats to be mapped to a globalBinIndex. |
Definition at line 429 of file ECLChargedPIDMVAWeights.h.
430 {
432 B2FATAL("No N dimensional grid was found in the ECLChargedPIDMVA DB payload. This should not happen! Abort...");
433 }
435 }
ECLChargedPIDPhasespaceBinning * m_categories
An N Dimensional binning whose bins define the boundaries of the categories for which the training is...
int getLinearisedBinIndex(const std::vector< float > values)
Maps the vector of input values to a global bin index.
◆ getPhasespaceCategories()
Returns the map of phasespaceCategories.
Definition at line 409 of file ECLChargedPIDMVAWeights.h.
std::unordered_map< unsigned int, ECLChargedPIDPhasespaceCategory > m_phasespaceCategories
Stores the ECLChargedPIDPhasespaceCategory object for all the N dimensional categories.
◆ getPhasespaceCategory()
◆ isPhasespaceCovered()
bool isPhasespaceCovered |
( |
const int |
linearBinIndex | ) |
const |
|
inline |
Returns bool whether or not the given values are within the phasespace covered by the trainings in the weightfile.
- Parameters
-
linearBinIndex | global bin index. |
Definition at line 415 of file ECLChargedPIDMVAWeights.h.
416 {
417
418 if (linearBinIndex < 0) return false;
419
421 return true;
422 }
◆ setBinningVariables()
void setBinningVariables |
( |
std::vector< std::string > & |
binningVariables | ) |
|
|
inline |
Set string definitions of the variables used in defining the phasespace categories.
- Parameters
-
binningVariables | string definitions of the variables used in defining the phasespace categories. |
Definition at line 446 of file ECLChargedPIDMVAWeights.h.
◆ setWeightCategories()
Set the N dimensional grid representing the categories for which weightfiles are defined.
A multiclass MVA is trained for each phases-space region defined by the bin boundaries.
- Parameters
-
Definition at line 387 of file ECLChargedPIDMVAWeights.h.
◆ storeMVAWeights()
◆ m_binningVariables
std::vector<std::string> m_binningVariables |
|
private |
◆ m_categories
An N Dimensional binning whose bins define the boundaries of the categories for which the training is performed.
It is used to lookup the correct file in the payload, given a reconstructed value vector.
Definition at line 452 of file ECLChargedPIDMVAWeights.h.
◆ m_phasespaceCategories
The documentation for this class was generated from the following file: