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.
440{return m_binningVariables;}
◆ 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 {
431 if (!m_categories) {
432 B2FATAL("No N dimensional grid was found in the ECLChargedPIDMVA DB payload. This should not happen! Abort...");
433 }
434 return m_categories->getLinearisedBinIndex(values);
435 }
◆ getPhasespaceCategories()
◆ 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
420 if (m_phasespaceCategories.count(linearBinIndex) == 0) return false;
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.
446{m_binningVariables = binningVariables;}
◆ 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: