From de97d7eb05ae6c00c85fc97afbe2d36fbf7a14af Mon Sep 17 00:00:00 2001 From: Thomas Madlener Date: Mon, 20 Apr 2026 13:58:32 +0200 Subject: [PATCH] Include the containerName into the layerName if present Avoids name clashes that otherwise occur when using the same group-by logic in several sub-detectors. --- Core/include/Acts/Geometry/detail/BlueprintBuilder_impl.hpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Core/include/Acts/Geometry/detail/BlueprintBuilder_impl.hpp b/Core/include/Acts/Geometry/detail/BlueprintBuilder_impl.hpp index 1e2f39c5220..a3a50951c9c 100644 --- a/Core/include/Acts/Geometry/detail/BlueprintBuilder_impl.hpp +++ b/Core/include/Acts/Geometry/detail/BlueprintBuilder_impl.hpp @@ -421,6 +421,9 @@ SensorLayerAssembler::build() const { } LayerSpec layerSpec = m_layerSpec; layerSpec.layerName = group.key; + if (m_containerName.has_value()) { + layerSpec.layerName = m_containerName.value() + "|" + group.key; + } auto layer = m_builder->makeLayer(std::span{group.sensors}, layerSpec); layer->setLayerType(m_layerType.value());