From 0b862ed86fcb152c5742fd8287bf3f9ccfbd7ba8 Mon Sep 17 00:00:00 2001 From: lucamicheletti93 <38209984+lucamicheletti93@users.noreply.github.com> Date: Fri, 10 Jan 2025 21:11:48 +0100 Subject: [PATCH] [PWGDQ] Fixing issue with MCH and MFT track Ids (#9264) Co-authored-by: Lucamicheletti93 --- PWGDQ/Tasks/dqEfficiency_withAssoc.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PWGDQ/Tasks/dqEfficiency_withAssoc.cxx b/PWGDQ/Tasks/dqEfficiency_withAssoc.cxx index cfdce3fbf90..2cda1a7d417 100644 --- a/PWGDQ/Tasks/dqEfficiency_withAssoc.cxx +++ b/PWGDQ/Tasks/dqEfficiency_withAssoc.cxx @@ -1592,9 +1592,9 @@ struct AnalysisSameEventPairing { } auto t1 = a1.template reducedmuon_as(); auto t2 = a2.template reducedmuon_as(); - if (t1.matchMCHTrackId() == t2.matchMCHTrackId()) + if (t1.matchMCHTrackId() == t2.matchMCHTrackId() && t1.matchMCHTrackId() >= 0) continue; - if (t1.matchMFTTrackId() == t2.matchMFTTrackId()) + if (t1.matchMFTTrackId() == t2.matchMFTTrackId() && t1.matchMFTTrackId() >= 0) continue; sign1 = t1.sign(); sign2 = t2.sign();