Skip to content
Snippets Groups Projects
Commit bd40fcde authored by Chris Malena Delitzsch's avatar Chris Malena Delitzsch
Browse files

Fixing FPE warning

parent b92e1d10
No related branches found
No related tags found
No related merge requests found
/* /*
Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
*/ */
// System includes // System includes
...@@ -172,8 +172,16 @@ namespace ORUtils ...@@ -172,8 +172,16 @@ namespace ORUtils
// Don't reject jets with high track multiplicity and // Don't reject jets with high track multiplicity and
// high relative PT ratio // high relative PT ratio
bool highNumTrk = nTrk >= m_numJetTrk; bool highNumTrk = nTrk >= m_numJetTrk;
bool highRelPt = (muon->pt()/jet->pt() < m_muJetPtRatio || bool highRelPt = false;
muon->pt()/sumTrkPt < m_muJetTrkPtRatio);
if (sumTrkPt < FLT_MIN){
highRelPt = (muon->pt()/jet->pt() < m_muJetPtRatio);
}
else{
highRelPt = (muon->pt()/jet->pt() < m_muJetPtRatio ||
muon->pt()/sumTrkPt < m_muJetTrkPtRatio);
}
if(highNumTrk && (!m_applyRelPt || highRelPt)) continue; if(highNumTrk && (!m_applyRelPt || highRelPt)) continue;
if(m_dRMatchCone1->objectsMatch(*muon, *jet)){ if(m_dRMatchCone1->objectsMatch(*muon, *jet)){
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment