We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 56fdf05 commit 350a8dbCopy full SHA for 350a8db
1 file changed
PWGDQ/Tasks/taskJPsiMu.cxx
@@ -147,9 +147,13 @@ struct DqJPsiMuonCorrelations {
147
if (!assoc.isMuonSelected_bit(0)) {
148
continue;
149
}
150
- auto track = assoc.template reducedmuon_as<TMuonTracks>();
151
152
- // TODO: Check if the associated track is part of the dilepton candidate, if so skip it to avoid auto-correlations
+ // Skip associated muons that are part of the dilepton candidate
+ if (dilepton.index0Id() == assoc.reducedmuonId() || dilepton.index1Id() == assoc.reducedmuonId()) {
153
+ continue;
154
+ }
155
+
156
+ auto track = assoc.template reducedmuon_as<TMuonTracks>();
157
158
float deltaEta = track.eta() - dilepton.eta();
159
float deltaPhi = track.phi() - dilepton.phi();
0 commit comments