Skip to content

Commit a106dce

Browse files
committed
[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".
1 parent 5c80dd9 commit a106dce

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)