@@ -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