Skip to content

Commit

Permalink
Remove nan check in pf cand rescaling
Browse files Browse the repository at this point in the history
  • Loading branch information
kdlong committed May 10, 2023
1 parent 8b811d3 commit aef16e0
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions DataFormats/ParticleFlowCandidate/src/PFCandidate.cc
Original file line number Diff line number Diff line change
Expand Up @@ -299,10 +299,6 @@ void PFCandidate::rescaleMomentum(double rescaleFactor) {

float e = std::sqrt(p() * p() * rescaleFactor * rescaleFactor + mass() * mass());

// Protect against invalid values (shouldn't happen, but could)
if (!(e > 0))
e = p() * rescaleFactor;

LorentzVector rescaledp4(rescaleFactor * px(), rescaleFactor * py(), rescaleFactor * pz(), e);
setP4(rescaledp4);
}
Expand Down

0 comments on commit aef16e0

Please sign in to comment.