From c8f7d614ad30701c880906feeefc6ddf1e30261c Mon Sep 17 00:00:00 2001 From: Samuele Cattaruzzi <124249902+scattaru@users.noreply.github.com> Date: Thu, 8 Aug 2024 18:04:40 +0200 Subject: [PATCH] Adding isGlobalTrack requirement (#7216) --- PWGHF/HFC/Tasks/taskCorrelationDsHadrons.cxx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/PWGHF/HFC/Tasks/taskCorrelationDsHadrons.cxx b/PWGHF/HFC/Tasks/taskCorrelationDsHadrons.cxx index 4abd5a12a70..89d8631652e 100644 --- a/PWGHF/HFC/Tasks/taskCorrelationDsHadrons.cxx +++ b/PWGHF/HFC/Tasks/taskCorrelationDsHadrons.cxx @@ -808,6 +808,9 @@ struct HfTaskCorrelationDsHadrons { // reconstructed track loop for (const auto& track : groupedTracks) { + if (!track.isGlobalTrackWoDCA()) { + continue; + } if (track.has_mcParticle()) { hAssocTracks->Fill(kAssocTrackStepRecoMcMatch, track.eta(), track.pt(), multiplicityReco, posZReco); auto mcParticle = track.template mcParticle_as();