Skip to content
Snippets Groups Projects
Commit a0bb1b41 authored by Walter Lampl's avatar Walter Lampl
Browse files

Merge branch 'master-derivations-JetEtmiss' into 'master'

Fixing FPE warning

See merge request !38740
parents b9ad28df bd40fcde
No related branches found
No related tags found
6 merge requests!58791DataQualityConfigurations: Modify L1Calo config for web display,!46784MuonCondInterface: Enable thread-safety checking.,!46776Updated LArMonitoring config file for WD to match new files produced using MT,!45405updated ART test cron job,!42417Draft: DIRE and VINCIA Base Fragments for Pythia 8.3,!38740Fixing FPE warning
/* /*
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