56 if (slices.empty())
return;
62 for (
unsigned int sliceIndex = 0; sliceIndex < slices.size(); ++sliceIndex)
64 const float nuScore(slices.at(sliceIndex).GetNeutrinoScore());
65 std::cout <<
"Slice " << sliceIndex <<
" - " << nuScore << std::endl;
66 if (nuScore > highestNuScore)
68 highestNuScore = nuScore;
69 mostProbableSliceIndex = sliceIndex;
73 std::cout <<
"Tagging slice " << mostProbableSliceIndex << std::endl;
76 slices.at(mostProbableSliceIndex).TagAsNeutrino();
header for the lar pandora slice class
void ClassifySlices(SliceVector &slices, const art::Event &evt) override
Classify slices as neutrino or cosmic.
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...