From 07ad3422ff6fd380906a49ea8721691262273243 Mon Sep 17 00:00:00 2001 From: Leonhard Reichenbach Date: Tue, 6 Aug 2024 08:38:26 +0200 Subject: [PATCH] VolumeManager: prevent duplicated add_entry call --- DDCore/src/VolumeManager.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/DDCore/src/VolumeManager.cpp b/DDCore/src/VolumeManager.cpp index db083f369..16dca01bc 100644 --- a/DDCore/src/VolumeManager.cpp +++ b/DDCore/src/VolumeManager.cpp @@ -187,8 +187,10 @@ namespace dd4hep { // used e.g. to model a very fine grained sensitive volume structure // without always having DetElements. } - add_entry(sd, parent, e, node, vol_encoding, chain); - ++count; + if (is_sensitive) { + add_entry(sd, parent, e, node, vol_encoding, chain); + ++count; + } if ( m_debug ) { IDDescriptor id(sd.readout().idSpec()); printout(INFO,"VolumeManager","Parent: %-44s id:%016llx Encoding: %s",