From fc598b94585036b31e30f8755d59d06a66189f07 Mon Sep 17 00:00:00 2001 From: Markus Frank <Markus.Frank@cern.ch> Date: Fri, 9 Dec 2022 13:26:03 +0100 Subject: [PATCH] Bug fix in DetectorChecksum --- DDCore/src/plugins/DetectorChecksum.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/DDCore/src/plugins/DetectorChecksum.cpp b/DDCore/src/plugins/DetectorChecksum.cpp index cfb25c2e9..98d85270e 100644 --- a/DDCore/src/plugins/DetectorChecksum.cpp +++ b/DDCore/src/plugins/DetectorChecksum.cpp @@ -1049,10 +1049,10 @@ void DetectorChecksum::checksumDetElement(int lvl, DetElement det, hashes_t& has /// Note: We only take into account the placements to the next DetElement (if any) /// On the fly we remember all placements already taken into account! std::size_t hash_idx_daughters = hashes.size(); - for( auto pv : child_places ) { + for( const auto& pv : child_places ) { auto chain = _get_path(pv, child_places); for( std::size_t i=0; i < chain.size()-1; ++i ) { - checksumPlacement(det_pv, hashes, false); + checksumPlacement(chain[i], hashes, false); hashed_places.insert(chain[i]); } if ( !chain.empty() ) hashed_places.insert(chain[chain.size()-1]); -- GitLab