Skip to content

Commit

Permalink
Merge pull request #38080 from mmusich/fixDeltaPhi
Browse files Browse the repository at this point in the history
`PFDisplacedVertexCandidateFinder`: fix deltaPhi cut, don't use std::abs
  • Loading branch information
cmsbuild committed May 30, 2022
2 parents fe953e7 + 16b3837 commit ad54d8f
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -3,6 +3,7 @@
#include "RecoParticleFlow/PFTracking/interface/PFDisplacedVertexCandidateFinder.h"

#include "DataFormats/GeometryVector/interface/GlobalVector.h"
#include "DataFormats/Math/interface/deltaPhi.h"
#include "DataFormats/TrackReco/interface/Track.h"
#include "DataFormats/VertexReco/interface/Vertex.h"

Expand Down Expand Up @@ -191,7 +192,7 @@ void PFDisplacedVertexCandidateFinder::link(const TrackBaseRef& el1,
dist = -1;
return;
}
if (pt1 > 2 && pt2 > 2 && std::abs(phi1 - phi2) > 1) {
if (pt1 > 2 && pt2 > 2 && std::abs(::deltaPhi(phi1, phi2)) > 1) {
dist = -1;
return;
}
Expand Down

0 comments on commit ad54d8f

Please sign in to comment.