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 374 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 445 of file ECLChargedPIDMVAWeights.h.
445{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 434 of file ECLChargedPIDMVAWeights.h.
435 {
436 if (!m_categories) {
437 B2FATAL("No N dimensional grid was found in the ECLChargedPIDMVA DB payload. This should not happen! Abort...");
438 }
439 return m_categories->getLinearisedBinIndex(values);
440 }
◆ 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 420 of file ECLChargedPIDMVAWeights.h.
421 {
422
423 if (linearBinIndex < 0) return false;
424
425 if (m_phasespaceCategories.count(linearBinIndex) == 0) return false;
426 return true;
427 }
◆ 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 451 of file ECLChargedPIDMVAWeights.h.
451{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 392 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 457 of file ECLChargedPIDMVAWeights.h.
◆ m_phasespaceCategories
The documentation for this class was generated from the following file: