Belle II Software development
|
Class to store the N dimensional phasespace binning of the MVA categorical training. More...
#include <ECLChargedPIDMVAWeights.h>
Public Member Functions | |
ECLChargedPIDPhasespaceBinning () | |
Default Constructor. | |
ECLChargedPIDPhasespaceBinning (const std::vector< std::vector< float > > binEdges) | |
Constructor. | |
~ECLChargedPIDPhasespaceBinning () | |
Destructor. | |
int | getLinearisedBinIndex (const std::vector< float > values) |
Maps the vector of input values to a global bin index. | |
Private Member Functions | |
std::vector< int > | getBinIndices (const std::vector< float > values) |
Maps the vector of input values to their bin index in N dimensions. | |
ClassDef (ECLChargedPIDPhasespaceBinning, 1) | |
ClassDef. | |
Private Attributes | |
std::vector< std::vector< float > > | m_binEdges |
Vector of bin edges. | |
std::vector< int > | m_nBins |
Vector of number of bins per dimension. | |
Class to store the N dimensional phasespace binning of the MVA categorical training.
For example, 3D in (clusterTheta, p, charge).
Definition at line 39 of file ECLChargedPIDMVAWeights.h.
|
inline |
Default Constructor.
Needed for ROOT to stream the object.
Definition at line 46 of file ECLChargedPIDMVAWeights.h.
|
inline |
Constructor.
binEdges | vector of vectors of bin edges in the N dimensions. |
Definition at line 52 of file ECLChargedPIDMVAWeights.h.
|
inline |
|
inlineprivate |
Maps the vector of input values to their bin index in N dimensions.
If the values lie outside the covered region -1 is returned.
values | N dimensional vector of values to be mapped to a global linear bin index. |
Definition at line 91 of file ECLChargedPIDMVAWeights.h.
|
inline |
Maps the vector of input values to a global bin index.
If any of the values lies outside the binning -1 is returned.
values | N dimensional vector of values to be mapped to a global linear bin index. |
Definition at line 69 of file ECLChargedPIDMVAWeights.h.
|
private |
|
private |
Vector of number of bins per dimension.
Definition at line 116 of file ECLChargedPIDMVAWeights.h.