Skip to content
Snippets Groups Projects

JetD3PDMaker: Fix clang 10 warning.

Merged Scott Snyder requested to merge ssnyder/athena:clang10.JetD3PDMaker-20200717 into master
1 file
+ 2
2
Compare changes
  • Side-by-side
  • Inline
/*
/*
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
*/
*/
// $Id$
// $Id$
@@ -115,7 +115,7 @@ StatusCode JetShapeFillerTool::fill(const Jet& p)
@@ -115,7 +115,7 @@ StatusCode JetShapeFillerTool::fill(const Jet& p)
for ( ; iterJet != lJet; ++iterJet) {
for ( ; iterJet != lJet; ++iterJet) {
if (! *iterJet) continue;
if (! *iterJet) continue;
double dr = (*iterJet)->hlv().deltaR(p.hlv());
double dr = (*iterJet)->hlv().deltaR(p.hlv());
if (dr>m_deltaR*UINT_MAX) continue;
if (dr>m_deltaR*static_cast<float>(UINT_MAX)) continue;
unsigned int idr = unsigned(dr/m_deltaR);
unsigned int idr = unsigned(dr/m_deltaR);
if (idr < m_shape->size()) m_shape->at(idr) += (*iterJet)->pt();
if (idr < m_shape->size()) m_shape->at(idr) += (*iterJet)->pt();
}
}
Loading