Skip to content

Commit

Permalink
VolumeManager: prevent duplicated add_entry call
Browse files Browse the repository at this point in the history
  • Loading branch information
Zehvogel committed Aug 6, 2024
1 parent 9f142b8 commit 07ad342
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions DDCore/src/VolumeManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 07ad342

Please sign in to comment.