9#include <analysis/dbobjects/PIDNeuralNetworkParameters.h>
11#include <framework/gearbox/Unit.h>
12#include <framework/gearbox/Const.h>
13#include <framework/logging/Logger.h>
24 B2FATAL(
"Invalid particle-species hypothesis: " << pdg
25 <<
". PID neural network is not trained for this particle-species hypothesis");
35 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.