9#include <analysis/dbobjects/PIDNeuralNetworkParameters.h>
11#include <framework/logging/Logger.h>
23 B2FATAL(
"Invalid particle-species hypothesis: " << pdg
24 <<
". PID neural network is not trained for this particle-species hypothesis");
34 if (itr ==
m_inputNames.end()) B2FATAL(
"Invalid input name: " << name);
size_t getInputIndex(const std::string &name) const
Get input index for input name.
std::vector< std::string > m_inputNames
list of input names
std::vector< int > m_outputSpeciesPdg
PDG codes of hypotheses of neural-network output.
int pdg2OutputIndex(const int pdg, const bool throwException=true) const
Convert pdg code to the index of the neural-network output that represents the corresponding probabil...
Abstract base class for different kinds of events.