LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
|
Result, basic output of CVN neural net. More...
#include "Result.h"
Public Member Functions | |
Result (const float *output, unsigned int &nOutputs) | |
Result (const std::vector< std::vector< float >> output) | |
Result () | |
unsigned int | ArgMax (int output_n) const |
Index of maximum value in vector. More... | |
float | Max () |
Maximum value in vector. More... | |
TFIsAntineutrino | PredictedIsAntineutrino () const |
Return the predicted is_antineutrino. More... | |
TFFlavour | PredictedFlavour () const |
Return the predicted flavour. More... | |
TFInteraction | PredictedInteraction () const |
Return the predicted interaction. More... | |
TFTopologyProtons | PredictedProtons () const |
Return the predicted protons. More... | |
TFTopologyPions | PredictedPions () const |
Return the predicted pions. More... | |
TFTopologyPizeros | PredictedPizeros () const |
Return the predicted pizeros. More... | |
TFTopologyNeutrons | PredictedNeutrons () const |
Return the predicted neutrons. More... | |
float | GetIsAntineutrinoProbability () const |
Return the is_antineutrino probability. More... | |
float | GetNumuProbability () const |
Return the numu flavour probability. More... | |
float | GetNueProbability () const |
Return the nue flavour probability. More... | |
float | GetNutauProbability () const |
Return the nutau flavour probability. More... | |
float | GetNCProbability () const |
Return the NC probability. More... | |
float | GetQEProbability () const |
Return the CC QE interaction probability. More... | |
float | GetResProbability () const |
Return the CC Res interaction probability. More... | |
float | GetDISProbability () const |
Return the CC DIS interaction probability. More... | |
float | GetOtherProbability () const |
Return the CC Other interaction probability. More... | |
float | Get0protonsProbability () const |
Return the 0 protons topology probability. More... | |
float | Get1protonsProbability () const |
Return the 1 protons topology probability. More... | |
float | Get2protonsProbability () const |
Return the 2 protons topology probability. More... | |
float | GetNprotonsProbability () const |
Return the >2 protons topology probability. More... | |
float | Get0pionsProbability () const |
Return the 0 pions topology probability. More... | |
float | Get1pionsProbability () const |
Return the 1 pions topology probability. More... | |
float | Get2pionsProbability () const |
Return the 2 pions topology probability. More... | |
float | GetNpionsProbability () const |
Return the >2 pions topology probability. More... | |
float | Get0pizerosProbability () const |
Return the 0 pizeros topology probability. More... | |
float | Get1pizerosProbability () const |
Return the 1 pizeros topology probability. More... | |
float | Get2pizerosProbability () const |
Return the 2 pizeros topology probability. More... | |
float | GetNpizerosProbability () const |
Return the >2 pizeros topology probability. More... | |
float | Get0neutronsProbability () const |
Return the 0 neutrons topology probability. More... | |
float | Get1neutronsProbability () const |
Return the 1 neutrons topology probability. More... | |
float | Get2neutronsProbability () const |
Return the 2 neutrons topology probability. More... | |
float | GetNneutronsProbability () const |
Return the >2 neutrons topology probability. More... | |
unsigned int | NOutput () |
Number of outputs, i.e. size of vector. More... | |
Public Attributes | |
std::vector< std::vector< float > > | fOutput |
Vector of outputs from neural net. More... | |
lcvn::Result::Result | ( | const float * | output, |
unsigned int & | nOutputs | ||
) |
Definition at line 19 of file Result.cxx.
References fOutput.
lcvn::Result::Result | ( | const std::vector< std::vector< float >> | output | ) |
Definition at line 27 of file Result.cxx.
References fOutput.
lcvn::Result::Result | ( | ) |
Definition at line 32 of file Result.cxx.
unsigned int lcvn::Result::ArgMax | ( | int | output_n | ) | const |
Index of maximum value in vector.
Definition at line 34 of file Result.cxx.
References util::begin(), util::end(), and fOutput.
Referenced by PredictedFlavour(), PredictedInteraction(), PredictedNeutrons(), PredictedPions(), PredictedPizeros(), and PredictedProtons().
float lcvn::Result::Get0neutronsProbability | ( | ) | const |
Return the 0 neutrons topology probability.
Definition at line 310 of file Result.cxx.
References fOutput, lcvn::kTop0neutron, and lcvn::neutrons.
float lcvn::Result::Get0pionsProbability | ( | ) | const |
Return the 0 pions topology probability.
Definition at line 238 of file Result.cxx.
References fOutput, lcvn::kTop0pion, and lcvn::pions.
float lcvn::Result::Get0pizerosProbability | ( | ) | const |
Return the 0 pizeros topology probability.
Definition at line 274 of file Result.cxx.
References fOutput, lcvn::kTop0pizero, and lcvn::pizeros.
float lcvn::Result::Get0protonsProbability | ( | ) | const |
Return the 0 protons topology probability.
Definition at line 202 of file Result.cxx.
References fOutput, lcvn::kTop0proton, and lcvn::protons.
float lcvn::Result::Get1neutronsProbability | ( | ) | const |
Return the 1 neutrons topology probability.
Definition at line 319 of file Result.cxx.
References fOutput, lcvn::kTop1neutron, and lcvn::neutrons.
float lcvn::Result::Get1pionsProbability | ( | ) | const |
Return the 1 pions topology probability.
Definition at line 247 of file Result.cxx.
References fOutput, lcvn::kTop1pion, and lcvn::pions.
float lcvn::Result::Get1pizerosProbability | ( | ) | const |
Return the 1 pizeros topology probability.
Definition at line 283 of file Result.cxx.
References fOutput, lcvn::kTop1pizero, and lcvn::pizeros.
float lcvn::Result::Get1protonsProbability | ( | ) | const |
Return the 1 protons topology probability.
Definition at line 211 of file Result.cxx.
References fOutput, lcvn::kTop1proton, and lcvn::protons.
float lcvn::Result::Get2neutronsProbability | ( | ) | const |
Return the 2 neutrons topology probability.
Definition at line 328 of file Result.cxx.
References fOutput, lcvn::kTop2neutron, and lcvn::neutrons.
float lcvn::Result::Get2pionsProbability | ( | ) | const |
Return the 2 pions topology probability.
Definition at line 256 of file Result.cxx.
References fOutput, lcvn::kTop2pion, and lcvn::pions.
float lcvn::Result::Get2pizerosProbability | ( | ) | const |
Return the 2 pizeros topology probability.
Definition at line 292 of file Result.cxx.
References fOutput, lcvn::kTop2pizero, and lcvn::pizeros.
float lcvn::Result::Get2protonsProbability | ( | ) | const |
Return the 2 protons topology probability.
Definition at line 220 of file Result.cxx.
References fOutput, lcvn::kTop2proton, and lcvn::protons.
float lcvn::Result::GetDISProbability | ( | ) | const |
Return the CC DIS interaction probability.
Definition at line 184 of file Result.cxx.
References fOutput, lcvn::interaction, and lcvn::kInteDISCC.
float lcvn::Result::GetIsAntineutrinoProbability | ( | ) | const |
Return the is_antineutrino probability.
Definition at line 101 of file Result.cxx.
References fOutput, and lcvn::is_antineutrino.
Referenced by PredictedIsAntineutrino().
float lcvn::Result::GetNCProbability | ( | ) | const |
Return the NC probability.
Definition at line 143 of file Result.cxx.
References lcvn::flavour, fOutput, lcvn::kFlavNC, lcvn::kTFNC, and util::size().
float lcvn::Result::GetNneutronsProbability | ( | ) | const |
Return the >2 neutrons topology probability.
Definition at line 337 of file Result.cxx.
References fOutput, lcvn::kTopNneutron, and lcvn::neutrons.
float lcvn::Result::GetNpionsProbability | ( | ) | const |
Return the >2 pions topology probability.
Definition at line 265 of file Result.cxx.
References fOutput, lcvn::kTopNpion, and lcvn::pions.
float lcvn::Result::GetNpizerosProbability | ( | ) | const |
Return the >2 pizeros topology probability.
Definition at line 301 of file Result.cxx.
References fOutput, lcvn::kTopNpizero, and lcvn::pizeros.
float lcvn::Result::GetNprotonsProbability | ( | ) | const |
Return the >2 protons topology probability.
Definition at line 229 of file Result.cxx.
References fOutput, lcvn::kTopNproton, and lcvn::protons.
float lcvn::Result::GetNueProbability | ( | ) | const |
Return the nue flavour probability.
Definition at line 121 of file Result.cxx.
References lcvn::flavour, fOutput, lcvn::kFlavNueCC, lcvn::kTFNueDIS, lcvn::kTFNueOther, lcvn::kTFNueQE, and lcvn::kTFNueRes.
float lcvn::Result::GetNumuProbability | ( | ) | const |
Return the numu flavour probability.
Definition at line 110 of file Result.cxx.
References lcvn::flavour, fOutput, lcvn::kFlavNumuCC, lcvn::kTFNumuDIS, lcvn::kTFNumuOther, lcvn::kTFNumuQE, and lcvn::kTFNumuRes.
float lcvn::Result::GetNutauProbability | ( | ) | const |
Return the nutau flavour probability.
Definition at line 132 of file Result.cxx.
References lcvn::flavour, fOutput, lcvn::kFlavNutauCC, lcvn::kTFNutauDIS, lcvn::kTFNutauOther, lcvn::kTFNutauQE, and lcvn::kTFNutauRes.
float lcvn::Result::GetOtherProbability | ( | ) | const |
Return the CC Other interaction probability.
Definition at line 193 of file Result.cxx.
References fOutput, lcvn::interaction, and lcvn::kInteOtherCC.
float lcvn::Result::GetQEProbability | ( | ) | const |
Return the CC QE interaction probability.
Definition at line 166 of file Result.cxx.
References fOutput, lcvn::interaction, and lcvn::kInteQECC.
float lcvn::Result::GetResProbability | ( | ) | const |
Return the CC Res interaction probability.
Definition at line 175 of file Result.cxx.
References fOutput, lcvn::interaction, and lcvn::kInteResCC.
float lcvn::Result::Max | ( | ) |
Maximum value in vector.
unsigned int lcvn::Result::NOutput | ( | ) |
Number of outputs, i.e. size of vector.
TFFlavour lcvn::Result::PredictedFlavour | ( | ) | const |
Return the predicted flavour.
Definition at line 65 of file Result.cxx.
References ArgMax(), and lcvn::flavour.
TFInteraction lcvn::Result::PredictedInteraction | ( | ) | const |
Return the predicted interaction.
Definition at line 71 of file Result.cxx.
References ArgMax(), and lcvn::interaction.
TFIsAntineutrino lcvn::Result::PredictedIsAntineutrino | ( | ) | const |
Return the predicted is_antineutrino.
Return the predicted is_antineutrion.
Definition at line 59 of file Result.cxx.
References GetIsAntineutrinoProbability().
TFTopologyNeutrons lcvn::Result::PredictedNeutrons | ( | ) | const |
Return the predicted neutrons.
Definition at line 95 of file Result.cxx.
References ArgMax(), and lcvn::neutrons.
TFTopologyPions lcvn::Result::PredictedPions | ( | ) | const |
Return the predicted pions.
Definition at line 83 of file Result.cxx.
References ArgMax(), and lcvn::pions.
TFTopologyPizeros lcvn::Result::PredictedPizeros | ( | ) | const |
Return the predicted pizeros.
Definition at line 89 of file Result.cxx.
References ArgMax(), and lcvn::pizeros.
TFTopologyProtons lcvn::Result::PredictedProtons | ( | ) | const |
Return the predicted protons.
Definition at line 77 of file Result.cxx.
References ArgMax(), and lcvn::protons.
std::vector<std::vector<float> > lcvn::Result::fOutput |
Vector of outputs from neural net.
Definition at line 130 of file Result.h.
Referenced by ArgMax(), Get0neutronsProbability(), Get0pionsProbability(), Get0pizerosProbability(), Get0protonsProbability(), Get1neutronsProbability(), Get1pionsProbability(), Get1pizerosProbability(), Get1protonsProbability(), Get2neutronsProbability(), Get2pionsProbability(), Get2pizerosProbability(), Get2protonsProbability(), GetDISProbability(), GetIsAntineutrinoProbability(), GetNCProbability(), GetNneutronsProbability(), GetNpionsProbability(), GetNpizerosProbability(), GetNprotonsProbability(), GetNueProbability(), GetNumuProbability(), GetNutauProbability(), GetOtherProbability(), GetQEProbability(), GetResProbability(), and Result().