Skip to content

Commit 32c1341

Browse files
committed
fixed O2 linter error
1 parent 4fd72ee commit 32c1341

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

PWGHF/HFL/Tasks/taskElectronWeakBoson.cxx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -630,11 +630,14 @@ struct HfTaskElectronWeakBoson {
630630
if (std::abs(trackAss.pt - zBoson.ptchild1) < ptMatch)
631631
continue;
632632
// calculate Z-h correlation
633+
/*
633634
double deltaPhi = trackAss.phi - zBoson.phi;
634635
while (deltaPhi < -TMath::Pi() / 2)
635636
deltaPhi += 2 * TMath::Pi();
636637
while (deltaPhi > 3 * TMath::Pi() / 2)
637638
deltaPhi -= 2 * TMath::Pi();
639+
*/
640+
double deltaPhi = RecoDecay::constrainAngle(trackAss.phi - zBoson.phi, -o2::constants::math::PIHalf);
638641
registry.fill(HIST("hZHadronDphi"), zBoson.pt, deltaPhi);
639642
}
640643
}

0 commit comments

Comments
 (0)