From 24364aed52c42a979c4b76e7a2b0ac3c0ce51e59 Mon Sep 17 00:00:00 2001
From: Nikiforos Nikiforou <Nikiforos.Nikiforou@cern.ch>
Date: Thu, 11 Feb 2016 15:05:32 +0000
Subject: [PATCH] Added possibility to add det flags to
 DD4hep_SubdetectorAssembly

---
 DDDetectors/src/SubdetectorAssembly_geo.cpp | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/DDDetectors/src/SubdetectorAssembly_geo.cpp b/DDDetectors/src/SubdetectorAssembly_geo.cpp
index b2444dcf4..1c13cb3a5 100644
--- a/DDDetectors/src/SubdetectorAssembly_geo.cpp
+++ b/DDDetectors/src/SubdetectorAssembly_geo.cpp
@@ -35,6 +35,8 @@ static Ref_t create_element(LCDD& lcdd, xml_h e, Ref_t)  {
   RotationZYX rot;
 
   sdet.setType("compound");
+  XML::setDetectorTypeFlag( e, sdet ) ;
+
   if( usePos ) {
     pos = Position(x_det.position().x(), x_det.position().y(), x_det.position().z());
   }
-- 
GitLab