From 704a986536da6c679f84a98b5700a7315d52671a Mon Sep 17 00:00:00 2001 From: Soumyadip Ghosh Date: Tue, 17 Nov 2026 01:22:26 +0530 Subject: [PATCH] Refactor V0s slicing to use perColV0Data Updated V0s slicing method to use perColV0Data for better data handling. --- PWGCF/TwoParticleCorrelations/Tasks/longrangecorrDerived.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/PWGCF/TwoParticleCorrelations/Tasks/longrangecorrDerived.cxx b/PWGCF/TwoParticleCorrelations/Tasks/longrangecorrDerived.cxx index 22eeaebfdf6..104bd885464 100644 --- a/PWGCF/TwoParticleCorrelations/Tasks/longrangecorrDerived.cxx +++ b/PWGCF/TwoParticleCorrelations/Tasks/longrangecorrDerived.cxx @@ -1150,6 +1150,7 @@ struct LongrangecorrDerived { using CollStandardTable = soa::Join; using TrksStandardTable = soa::Join; + Preslice perColV0Data = aod::v0data::collisionId; template float countFallbackMultiplicity(TTracks const& tracks, float vz) @@ -1409,7 +1410,7 @@ struct LongrangecorrDerived { } if ((cfgSel.cfgGetV0CleanSample || cfgSel.cfgFillAfterCutWithV0) && cfgSel.cfgGetdEdx) { - auto v0sThisCol = V0s.sliceByCached(aod::v0data::collisionId, rawCol.globalIndex(), this->cache); + auto v0sThisCol = V0s.sliceBy(perColV0Data, rawCol.globalIndex()); for (auto const& v0 : v0sThisCol) { auto const& posTrack = v0.template posTrack_as(); auto const& negTrack = v0.template negTrack_as();