From 232f783f09d1ad33483e88dfded44c914b0056a3 Mon Sep 17 00:00:00 2001 From: Ivan Razumov Date: Mon, 15 Jul 2024 15:52:27 +0200 Subject: [PATCH] Fixes for fmt 10 --- .../plugins/SiPixelPhase1RawDataErrorComparator.cc | 2 +- .../HGCalAssociatorProducers/plugins/SimTauCPLinkProducer.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/DQM/SiPixelHeterogeneous/plugins/SiPixelPhase1RawDataErrorComparator.cc b/DQM/SiPixelHeterogeneous/plugins/SiPixelPhase1RawDataErrorComparator.cc index a2801be891f52..fbd46e518650a 100644 --- a/DQM/SiPixelHeterogeneous/plugins/SiPixelPhase1RawDataErrorComparator.cc +++ b/DQM/SiPixelHeterogeneous/plugins/SiPixelPhase1RawDataErrorComparator.cc @@ -284,7 +284,7 @@ void SiPixelPhase1RawDataErrorComparator::bookHistograms(DQMStore::IBooker& iBoo log10(1000.)); for (const auto& element : errorCodeToStringMap) { - h_nFEDErrors_[element.first] = iBook.book2I(fmt::sprintf("nFED%i_Errors", element.first), + h_nFEDErrors_[element.first] = iBook.book2I(fmt::sprintf("nFED%i_Errors", static_cast(element.first)), fmt::sprintf("n. of %ss per event; CPU; GPU", element.second), 1000, -0.5, diff --git a/SimCalorimetry/HGCalAssociatorProducers/plugins/SimTauCPLinkProducer.cc b/SimCalorimetry/HGCalAssociatorProducers/plugins/SimTauCPLinkProducer.cc index 356a6b49d456a..e10538be27f93 100644 --- a/SimCalorimetry/HGCalAssociatorProducers/plugins/SimTauCPLinkProducer.cc +++ b/SimCalorimetry/HGCalAssociatorProducers/plugins/SimTauCPLinkProducer.cc @@ -79,7 +79,7 @@ void SimTauProducer::buildSimTau(SimTauCPLink& t, t.calo_particle_leaves.push_back(CaloParticleRef(calo_particle_h, calo_particle_idx)); t.leaves.push_back( {gen_particle.pdgId(), resonance_idx, (int)t.calo_particle_leaves.size() - 1, gen_particle_key}); - LogDebug("SimTauProducer").format(" CP {} {}", calo_particle_idx, caloPartVec[calo_particle_idx]); + LogDebug("SimTauProducer").format(" CP {} {}", calo_particle_idx, caloPartVec[calo_particle_idx].pdgId()); } else { t.leaves.push_back({gen_particle.pdgId(), resonance_idx, -1, gen_particle_key}); }