From 7752f3cf0ce511700e2fd1499085fd12c642d459 Mon Sep 17 00:00:00 2001 From: mcoquet642 Date: Wed, 9 Oct 2024 22:11:24 +0200 Subject: [PATCH 1/2] dimuon fixes --- PWGDQ/Tasks/dqEfficiency_withAssoc.cxx | 2 -- PWGDQ/Tasks/tableReader_withAssoc.cxx | 4 +--- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/PWGDQ/Tasks/dqEfficiency_withAssoc.cxx b/PWGDQ/Tasks/dqEfficiency_withAssoc.cxx index 9f0b18c401b..93477c1d78d 100644 --- a/PWGDQ/Tasks/dqEfficiency_withAssoc.cxx +++ b/PWGDQ/Tasks/dqEfficiency_withAssoc.cxx @@ -743,8 +743,6 @@ struct AnalysisMuonSelection { auto track = assoc.template reducedmuon_as(); VarManager::FillTrack(track); - // compute quantities which depend on the associated collision - VarManager::FillPropagateMuon(track, event); bool isCorrectAssoc = false; if (track.has_reducedMCTrack()) { diff --git a/PWGDQ/Tasks/tableReader_withAssoc.cxx b/PWGDQ/Tasks/tableReader_withAssoc.cxx index ac44ffd4657..8df6712cf58 100644 --- a/PWGDQ/Tasks/tableReader_withAssoc.cxx +++ b/PWGDQ/Tasks/tableReader_withAssoc.cxx @@ -677,8 +677,6 @@ struct AnalysisMuonSelection { auto track = assoc.template reducedmuon_as(); filterMap = 0; VarManager::FillTrack(track); - // compute quantities which depend on the associated collision - VarManager::FillPropagateMuon(track, event); if (fConfigQA) { fHistMan->FillHistClass("TrackMuon_BeforeCuts", VarManager::fgValues); } @@ -1377,7 +1375,7 @@ struct AnalysisSameEventPairing { auto t2 = a2.template reducedmuon_as(); if (t1.matchMCHTrackId() == t2.matchMCHTrackId()) continue; - if (t1.matchMFTTrackId() == t2.matchMFTTrackId()) + if (t1.matchMFTTrackId() == t2.matchMFTTrackId() && t1.matchMFTTrackId() >=0) continue; sign1 = t1.sign(); sign2 = t2.sign(); From 58332ff7cfe4fbc7acaa531f32cd1bd8ba09bfd2 Mon Sep 17 00:00:00 2001 From: mcoquet642 Date: Thu, 10 Oct 2024 11:32:49 +0200 Subject: [PATCH 2/2] Clang format --- PWGDQ/Tasks/tableReader_withAssoc.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PWGDQ/Tasks/tableReader_withAssoc.cxx b/PWGDQ/Tasks/tableReader_withAssoc.cxx index 8df6712cf58..d0e76c3fac4 100644 --- a/PWGDQ/Tasks/tableReader_withAssoc.cxx +++ b/PWGDQ/Tasks/tableReader_withAssoc.cxx @@ -1375,7 +1375,7 @@ struct AnalysisSameEventPairing { auto t2 = a2.template reducedmuon_as(); if (t1.matchMCHTrackId() == t2.matchMCHTrackId()) continue; - if (t1.matchMFTTrackId() == t2.matchMFTTrackId() && t1.matchMFTTrackId() >=0) + if (t1.matchMFTTrackId() == t2.matchMFTTrackId() && t1.matchMFTTrackId() >= 0) continue; sign1 = t1.sign(); sign2 = t2.sign();