Skip to content

Commit

Permalink
Merge pull request #45467 from iarspider/fix-fmt-10
Browse files Browse the repository at this point in the history
Fix compatibility with FMT 10
  • Loading branch information
cmsbuild authored Jul 25, 2024
2 parents f6e0fc4 + 232f783 commit 0efbba9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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<int>(element.first)),
fmt::sprintf("n. of %ss per event; CPU; GPU", element.second),
1000,
-0.5,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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});
}
Expand Down

0 comments on commit 0efbba9

Please sign in to comment.