7 #include "art/Utilities/ToolMacros.h"
8 #include "fhiclcpp/ParameterSet.h"
56 if (slices.empty())
return;
59 float highestNuScore(-std::numeric_limits<float>::max());
60 unsigned int mostProbableSliceIndex(std::numeric_limits<unsigned int>::max());
62 for (
unsigned int sliceIndex = 0; sliceIndex < slices.size(); ++sliceIndex)
64 const float nuScore(slices.at(sliceIndex).GetTopologicalScore());
65 if (nuScore > highestNuScore)
67 highestNuScore = nuScore;
68 mostProbableSliceIndex = sliceIndex;
73 slices.at(mostProbableSliceIndex).TagAsTarget();
void ClassifySlices(SliceVector &slices, const art::Event &evt) override
Classify slices as neutrino or cosmic.
header for the lar pandora slice class
std::vector< TCSlice > slices
std::vector< Slice > SliceVector
SimpleNeutrinoId(fhicl::ParameterSet const &pset)
Default constructor.
Simple neutrino ID tool that selects the most likely neutrino slice using the scores from Pandora...