Skip to content

Commit dc5cfa0

Browse files
authored
[PWGJE] Removing dR = 0 bins (#9925)
1 parent fcf683c commit dc5cfa0

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

PWGJE/Tasks/jetHadronRecoil.cxx

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,9 @@ struct JetHadronRecoil {
218218
double deltaPhi = RecoDecay::constrainAngle(jetWTA.phi() - jet.phi(), -o2::constants::math::PI);
219219
double deltaEta = jetWTA.eta() - jet.eta();
220220
double dR = RecoDecay::sqrtSumOfSquares(deltaPhi, deltaEta);
221+
if (dR == 0) {
222+
return;
223+
}
221224
registry.fill(HIST("hDeltaR"), dR, weight);
222225
registry.fill(HIST("hDeltaRpT"), jet.pt() - (rho * jet.area()), dR, weight);
223226
}
@@ -323,6 +326,9 @@ struct JetHadronRecoil {
323326
double deltaPhi = RecoDecay::constrainAngle(jetWTA.phi() - jet.phi(), -o2::constants::math::PI);
324327
double deltaEta = jetWTA.eta() - jet.eta();
325328
double dR = RecoDecay::sqrtSumOfSquares(deltaPhi, deltaEta);
329+
if (dR == 0) {
330+
return;
331+
}
326332
registry.fill(HIST("hDeltaRPart"), dR, weight);
327333
registry.fill(HIST("hDeltaRpTPart"), jet.pt(), dR, weight);
328334
}
@@ -413,6 +419,9 @@ struct JetHadronRecoil {
413419
break;
414420
}
415421
}
422+
if (dR == 0 || dRp == 0) {
423+
return;
424+
}
416425
registry.fill(HIST("hPtMatched"), jetBase.pt() - (rho * jetBase.area()), jetTag.pt(), weight);
417426
registry.fill(HIST("hPhiMatched"), jetBase.phi(), jetTag.phi(), weight);
418427
registry.fill(HIST("hPtResolution"), jetTag.pt(), (jetTag.pt() - (jetBase.pt() - (rho * jetBase.area()))) / jetTag.pt(), weight);

0 commit comments

Comments
 (0)