Skip to content

Commit

Permalink
PFDisplacedVertexCandidateFinder: fix deltaPhi cut, don't use std::abs
Browse files Browse the repository at this point in the history
  • Loading branch information
mmusich committed May 25, 2022
1 parent 39e1d09 commit 953efa5
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 && ::deltaPhi(phi1, phi2) > 1) {
dist = -1;
return;
}
Expand Down

0 comments on commit 953efa5

Please sign in to comment.