Skip to content

Commit

Permalink
Fix nan warning
Browse files Browse the repository at this point in the history
  • Loading branch information
jfernan2 committed Dec 11, 2023
1 parent e9459dc commit 857d96a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion L1Trigger/DTTriggerPhase2/src/MuonPathAnalyzerInChamber.cc
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#include "L1Trigger/DTTriggerPhase2/interface/MuonPathAnalyzerInChamber.h"
#include "FWCore/Utilities/interface/isFinite.h"
#include <cmath>
#include <memory>

Expand Down Expand Up @@ -242,7 +243,7 @@ void MuonPathAnalyzerInChamber::analyze(MuonPathPtr &inMPath, MuonPathPtrs &outM
}

// Protection against non-converged fits
if (isnan(jm_x))
if (edm::isNotFinite(jm_x))
continue;

// Updating muon-path horizontal position
Expand Down

0 comments on commit 857d96a

Please sign in to comment.