Skip to content

Commit 0b862ed

Browse files
[PWGDQ] Fixing issue with MCH and MFT track Ids (#9264)
Co-authored-by: Lucamicheletti93 <luca.mike93@gmail.com>
1 parent 6a17c16 commit 0b862ed

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

PWGDQ/Tasks/dqEfficiency_withAssoc.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1592,9 +1592,9 @@ struct AnalysisSameEventPairing {
15921592
}
15931593
auto t1 = a1.template reducedmuon_as<TTracks>();
15941594
auto t2 = a2.template reducedmuon_as<TTracks>();
1595-
if (t1.matchMCHTrackId() == t2.matchMCHTrackId())
1595+
if (t1.matchMCHTrackId() == t2.matchMCHTrackId() && t1.matchMCHTrackId() >= 0)
15961596
continue;
1597-
if (t1.matchMFTTrackId() == t2.matchMFTTrackId())
1597+
if (t1.matchMFTTrackId() == t2.matchMFTTrackId() && t1.matchMFTTrackId() >= 0)
15981598
continue;
15991599
sign1 = t1.sign();
16001600
sign2 = t2.sign();

0 commit comments

Comments
 (0)