From e3438e1fa2f6680adb7e3e1f886349188cfc8900 Mon Sep 17 00:00:00 2001 From: Alicja Plachta Date: Fri, 27 Feb 2026 11:58:07 +0100 Subject: [PATCH] Add option to call fillParticles for MC truth for V0 --- .../TableProducer/femtoUniverseProducerTask.cxx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/PWGCF/FemtoUniverse/TableProducer/femtoUniverseProducerTask.cxx b/PWGCF/FemtoUniverse/TableProducer/femtoUniverseProducerTask.cxx index f39369b4052..f09135298fe 100644 --- a/PWGCF/FemtoUniverse/TableProducer/femtoUniverseProducerTask.cxx +++ b/PWGCF/FemtoUniverse/TableProducer/femtoUniverseProducerTask.cxx @@ -136,6 +136,7 @@ struct FemtoUniverseProducerTask { Configurable confFillCollExt{"confFillCollExt", false, "Option to fill collision extended table"}; Configurable confCollMCTruthOnlyReco{"confCollMCTruthOnlyReco", false, "Fill only MC truth collisions that were reconstructed and selected"}; + Configurable confFillMCTruthV0Daugh{"confFillMCTruthV0Daugh", true, "Fill MC truth daughters of V0"}; /// Event filtering (used for v0-cascade analysis) Configurable zorroMask{"zorroMask", "", "zorro trigger class to select on (empty: none)"}; @@ -2912,7 +2913,11 @@ struct FemtoUniverseProducerTask { const auto colcheck = fillMCTruthCollisionsCentRun3(col); if (colcheck) { outputCollExtra(1.0, 1.0); - fillV0MCTruth(groupedMCParticles); // fills MC V0s and its daughters + if (confFillMCTruthV0Daugh) { + fillV0MCTruth(groupedMCParticles); // fills MC V0s and its daughters + } else { + fillParticles(groupedMCParticles, recoMcIds); // fills mc particles + } } } }