Skip to content
Snippets Groups Projects

MuonCondDump: Fix clang warnings.

Merged Scott Snyder requested to merge ssnyder/athena:clang.MuonCondDump-20250213 into main
1 file
+ 7
7
Compare changes
  • Side-by-side
  • Inline
/*
Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
*/
#include "MdtCalibJsonDumpAlg.h"
#include "StoreGate/ReadCondHandle.h"
@@ -143,13 +143,13 @@ namespace Muon {
outFileRT<<"[\n";
const MdtIdHelper& idHelper{m_idHelperSvc->mdtIdHelper()};
nlohmann::json rtDump{};
for (const auto& [counter, payload] : Acts::enumerate(rtRelMap)) {
for (const auto [counter, payload] : Acts::enumerate(rtRelMap)) {
outFileRT<<whiteSpace(m_whiteSpace)<<"{\n";
outFileRT<<whiteSpace(m_whiteSpace)<<" \"chambers\": [\n";
const MdtRtRelation* rtRel = payload.first;
const std::set<Identifier>& chambers = payload.second;
for (const auto& [chCounter, chambId] : Acts::enumerate(chambers)) {
for (const auto [chCounter, chambId] : Acts::enumerate(chambers)) {
outFileRT<<whiteSpace(2*m_whiteSpace)<<"{"
<<std::format("\"station\": \"{:}\", \"eta\": {:2d}, \"phi\": {:1d}, \"ml\": {:1d}",
idHelper.stationNameString(idHelper.stationName(chambId)), idHelper.stationEta(chambId),
@@ -201,7 +201,7 @@ namespace Muon {
std::string MdtCalibJsonDumpAlg::dump(const std::vector<double>& values) const{
std::stringstream sstr{};
sstr<<"[";
for (const auto& [count, v] : Acts::enumerate(values)) {
for (const auto [count, v] : Acts::enumerate(values)) {
sstr<<dump(v);
if (count + 1 != values.size())sstr<<", ";
}
@@ -225,7 +225,7 @@ namespace Muon {
}
outFileT0<<"[\n";
const MdtIdHelper& idHelper{m_idHelperSvc->mdtIdHelper()};
for (const auto& [count, payload] : Acts::enumerate(t0Map)) {
for (const auto [count, payload] : Acts::enumerate(t0Map)) {
outFileT0<<whiteSpace(m_whiteSpace)<<"{\n";
const Identifier& detId = payload.first;
const T0PerChamb& calibConstants = payload.second;
@@ -238,7 +238,7 @@ namespace Muon {
<<std::format("\"station\": \"{:}\", \"eta\": {:2d}, \"phi\": {:1d}, \"calibConstants\":[\n",
idHelper.stationNameString(idHelper.stationName(detId)),
idHelper.stationEta(detId), idHelper.stationPhi(detId));
for (const auto& [calibCounter, calibPayload] : Acts::enumerate(calibConstants)) {
for (const auto [calibCounter, calibPayload] : Acts::enumerate(calibConstants)) {
outFileT0<<whiteSpace(2*m_whiteSpace)<<"{\"t0\": "<<dump(calibPayload.first->t0)<<", ";
outFileT0<<"\"adc\": "<<dump(calibPayload.first->adcCal)<<", ";
outFileT0<<"\"code\": "<<dump(calibPayload.first->statusCode)<<", ";
@@ -302,4 +302,4 @@ namespace Muon {
}
return {};
}
}
\ No newline at end of file
}
Loading