Skip to content

Commit

Permalink
Fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcarcell committed May 2, 2024
1 parent bd74749 commit 672c418
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion k4EDM4hep2LcioConv/src/k4Lcio2EDM4hepConv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ namespace LCIO2EDM4hepConv {
std::vector<edm4hep::utils::ParticleIDMeta> getPIDMetaInfo(const EVENT::LCCollection* recoColl)
{
std::vector<edm4hep::utils::ParticleIDMeta> pidInfos {};
const auto pidHandler = UTIL::PIDHandler(recoColl);
auto pidHandler = UTIL::PIDHandler(recoColl);
for (const auto id : pidHandler.getAlgorithmIDs()) {
pidInfos.emplace_back(pidHandler.getAlgorithmName(id), id, pidHandler.getParameterNames(id));
}
Expand Down
4 changes: 2 additions & 2 deletions tests/src/ComparisonUtils.h
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ bool compareValuesNanSafe(LCIO lcioV, EDM4hepT edm4hepV, const std::string& msg)
>;

if constexpr (isVectorLike) {
const auto vecSize = [&edm4hepV]() -> std::size_t {
const auto vecSize = [](EDM4hepT& edm4hepV) -> std::size_t {
if constexpr (has_size_method<EDM4hepT>::value) {
return edm4hepV.size();
}
Expand All @@ -109,7 +109,7 @@ bool compareValuesNanSafe(LCIO lcioV, EDM4hepT edm4hepV, const std::string& msg)
return 2;
}
return 0;
}();
}(edm4hepV);
for (size_t i = 0; i < vecSize; ++i) {
if (!nanSafeComp(lcioV[i], edm4hepV[i])) {
std::cerr << msg << " at index " << i << ": (LCIO: " << (lcioV) << ", EDM4hep: " << (edm4hepV) << ")"
Expand Down

0 comments on commit 672c418

Please sign in to comment.