Skip to content
Snippets Groups Projects
Commit 24364aed authored by Nikiforos Nikiforou's avatar Nikiforos Nikiforou
Browse files

Added possibility to add det flags to DD4hep_SubdetectorAssembly

parent 8fa1bfa9
No related branches found
No related tags found
No related merge requests found
...@@ -35,6 +35,8 @@ static Ref_t create_element(LCDD& lcdd, xml_h e, Ref_t) { ...@@ -35,6 +35,8 @@ static Ref_t create_element(LCDD& lcdd, xml_h e, Ref_t) {
RotationZYX rot; RotationZYX rot;
sdet.setType("compound"); sdet.setType("compound");
XML::setDetectorTypeFlag( e, sdet ) ;
if( usePos ) { if( usePos ) {
pos = Position(x_det.position().x(), x_det.position().y(), x_det.position().z()); pos = Position(x_det.position().x(), x_det.position().y(), x_det.position().z());
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment