From a106dceff2b4760c6b088dade075fa024b69663f Mon Sep 17 00:00:00 2001 From: aferrero2707 Date: Tue, 21 Apr 2026 16:45:00 +0200 Subject: [PATCH] [PWGDQ] fixed match type for tracks without MC particle In the case of tracks with no associated MC particle, the match type was set as "undefined", while it is now correctly set as "fake". --- PWGDQ/Tasks/mftMchMatcher.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/PWGDQ/Tasks/mftMchMatcher.cxx b/PWGDQ/Tasks/mftMchMatcher.cxx index 12381a9cde3..2c13b576569 100644 --- a/PWGDQ/Tasks/mftMchMatcher.cxx +++ b/PWGDQ/Tasks/mftMchMatcher.cxx @@ -565,7 +565,9 @@ struct mftMchMatcher { auto const& mftTrack = muonTrack.template matchMFTTrack_as(); if (!muonTrack.has_mcParticle() || !mftTrack.has_mcParticle()) { - return result; + // if either the MCH or the MFT tracks are fakes (not associated to any MC particles) + // we consider the match as fake + return (isBestMatch ? kMatchTypeFakeLeading : kMatchTypeFakeNonLeading); } bool isPaired = isPairedMuon(mchTrack.globalIndex(), matchablePairs);