Skip to content

Commit 9bd6cea

Browse files
authored
[PWGDQ] fixed match type for tracks without MC particle (#15897)
1 parent 0be1271 commit 9bd6cea

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

PWGDQ/Tasks/mftMchMatcher.cxx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -565,7 +565,9 @@ struct mftMchMatcher {
565565
auto const& mftTrack = muonTrack.template matchMFTTrack_as<TMFTS>();
566566

567567
if (!muonTrack.has_mcParticle() || !mftTrack.has_mcParticle()) {
568-
return result;
568+
// if either the MCH or the MFT tracks are fakes (not associated to any MC particles)
569+
// we consider the match as fake
570+
return (isBestMatch ? kMatchTypeFakeLeading : kMatchTypeFakeNonLeading);
569571
}
570572

571573
bool isPaired = isPairedMuon(mchTrack.globalIndex(), matchablePairs);

0 commit comments

Comments
 (0)