Skip to content
Snippets Groups Projects
Commit ef23c0fc authored by Tadej Novak's avatar Tadej Novak
Browse files

Merge branch 'clang.L1CaloFEXAlgos-20240705' into 'main'

L1CaloFEXAlgos+TrigT1CaloMonitoring: Fix clang warnings.

See merge request atlas/athena!72846
parents 6b44e6e2 873b604a
No related branches found
No related tags found
No related merge requests found
/*
Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
*/
//***************************************************************************
......@@ -135,7 +135,7 @@ StatusCode eFexTowerBuilder::fillTowers(const EventContext& ctx) const {
// add tile energies from TriggerTowers
static const auto etaIndex = [](float eta) { return int( eta*10 ) + ((eta<0) ? -1 : 1); };
static const auto phiIndex = [](float phi) { return int( phi*32./M_PI ) + (phi<0 ? -1 : 1); };
for(const auto& tTower : *tTowers) {
for(const xAOD::TriggerTower_v2* tTower : *tTowers) {
if (std::abs(tTower->eta()) > 1.5) continue;
if (tTower->sampling() != 1) continue;
double phi = tTower->phi(); if(phi > M_PI) phi -= 2.*M_PI;
......
/*
Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
*/
//***************************************************************************
......@@ -230,7 +230,7 @@ StatusCode jFexTower2SCellDecorator::execute(const EventContext& ctx) const {
//How many SCell are masked? if all then send invalid code
unsigned int count_scMask =0;
for(const auto& masked : scMask){
for(const bool masked : scMask){
if(masked) count_scMask++;
}
......
/*
Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
*/
#include "JfexSimMonitorAlgorithm.h"
......@@ -191,7 +191,7 @@ template <> void JfexSimMonitorAlgorithm::fillVectors(const SG::ReadHandleKey<xA
word0s.reserve(tobs->size());
std::vector<SortableTob> sortedTobs;
sortedTobs.reserve(tobs->size());
for(const auto& tob : *tobs) {
for(const xAOD::jFexMETRoI* tob : *tobs) {
sortedTobs.emplace_back(SortableTob{tob->tobWord(),0.,0.});
}
std::sort(sortedTobs.begin(),sortedTobs.end(),[](const SortableTob& lhs, const SortableTob& rhs) { return lhs.word0<rhs.word0; });
......@@ -221,4 +221,4 @@ template <> void JfexSimMonitorAlgorithm::fillVectors(const SG::ReadHandleKey<xA
word0s.push_back(tob.word0);
}
}
}
\ No newline at end of file
}
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