From e1eba0215d9000f9af300794aa22b9cfbdec2d0d Mon Sep 17 00:00:00 2001 From: fmazzasc Date: Mon, 22 Jan 2024 15:22:11 +0100 Subject: [PATCH 1/2] Clean filledMothers vector --- PWGLF/TableProducer/hyperRecoTask.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/PWGLF/TableProducer/hyperRecoTask.cxx b/PWGLF/TableProducer/hyperRecoTask.cxx index 0c99b20b94d..c2302815ba9 100644 --- a/PWGLF/TableProducer/hyperRecoTask.cxx +++ b/PWGLF/TableProducer/hyperRecoTask.cxx @@ -530,7 +530,8 @@ struct hyperRecoTask { void processMC(CollisionsFull const& collisions, aod::V0s const& V0s, TracksFull const& tracks, aod::BCsWithTimestamps const&, aod::McTrackLabels const& trackLabelsMC, aod::McParticles const& particlesMC) { - + filledMothers.clear(); + for (const auto& collision : collisions) { hyperCandidates.clear(); auto bc = collision.bc_as(); From 5d7b261764cf942a32c355cdc8758d36ff0afc2b Mon Sep 17 00:00:00 2001 From: ALICE Action Bot Date: Mon, 22 Jan 2024 14:24:20 +0000 Subject: [PATCH 2/2] Please consider the following formatting changes --- PWGLF/TableProducer/hyperRecoTask.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PWGLF/TableProducer/hyperRecoTask.cxx b/PWGLF/TableProducer/hyperRecoTask.cxx index c2302815ba9..93327c756f3 100644 --- a/PWGLF/TableProducer/hyperRecoTask.cxx +++ b/PWGLF/TableProducer/hyperRecoTask.cxx @@ -531,7 +531,7 @@ struct hyperRecoTask { void processMC(CollisionsFull const& collisions, aod::V0s const& V0s, TracksFull const& tracks, aod::BCsWithTimestamps const&, aod::McTrackLabels const& trackLabelsMC, aod::McParticles const& particlesMC) { filledMothers.clear(); - + for (const auto& collision : collisions) { hyperCandidates.clear(); auto bc = collision.bc_as();