Skip to content

Commit 5839fd9

Browse files
committed
Final dphi fixes
1 parent d07dbbe commit 5839fd9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

PWGJE/Tasks/jetCorrelationD0.cxx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ struct JetCorrelationD0 {
282282
if (jet.pt() < jetPtCutMin) {
283283
continue;
284284
}
285-
float dPhi = RecoDecay::constrainAngle(jet.phi() - d0Candidate.phi(), -M_PI);
285+
float dPhi = RecoDecay::constrainAngle(jet.phi() - d0Candidate.phi(), -o2::constants::math::PI);
286286
if (std::abs(dPhi - o2::constants::math::PI) > (o2::constants::math::PI / 2)) {
287287
continue;
288288
}
@@ -325,7 +325,7 @@ struct JetCorrelationD0 {
325325
if (jet.pt() < jetPtCutMin) {
326326
continue;
327327
}
328-
float dPhi = RecoDecay::constrainAngle(jet.phi() - d0Candidate.phi(), -M_PI);
328+
float dPhi = RecoDecay::constrainAngle(jet.phi() - d0Candidate.phi(), -o2::constants::math::PI);
329329
if (std::abs(dPhi - o2::constants::math::PI) > (o2::constants::math::PI / 2)) {
330330
continue;
331331
}
@@ -364,7 +364,7 @@ struct JetCorrelationD0 {
364364
if (jet.pt() < jetMcPtCutMin) {
365365
continue;
366366
}
367-
float dPhi = RecoDecay::constrainAngle(jet.phi() - d0McPCandidate.phi(), -M_PI);
367+
float dPhi = RecoDecay::constrainAngle(jet.phi() - d0McPCandidate.phi(), -o2::constants::math::PI);
368368
if (std::abs(dPhi - o2::constants::math::PI) > (o2::constants::math::PI / 2)) {
369369
continue;
370370
}

0 commit comments

Comments
 (0)