51 if (slices.empty())
return;
54 float highestNuScore(-std::numeric_limits<float>::max());
55 unsigned int mostProbableSliceIndex(std::numeric_limits<unsigned int>::max());
57 for (
unsigned int sliceIndex = 0; sliceIndex < slices.size(); ++sliceIndex) {
58 const float nuScore(slices.at(sliceIndex).GetTopologicalScore());
59 if (nuScore > highestNuScore) {
60 highestNuScore = nuScore;
61 mostProbableSliceIndex = sliceIndex;
66 slices.at(mostProbableSliceIndex).TagAsTarget();
void ClassifySlices(SliceVector &slices, const art::Event &evt) override
Classify slices as neutrino or cosmic.
std::vector< TCSlice > slices
std::vector< Slice > SliceVector
header for the lar pandora slice class
SimpleNeutrinoId(fhicl::ParameterSet const &pset)
Default constructor.
Simple neutrino ID tool that selects the most likely neutrino slice using the scores from Pandora...