Skip to content
Snippets Groups Projects
Commit 24f2ba2f authored by Markus Frank's avatar Markus Frank
Browse files

Remove detector constructor ambiguity for BoxSegment

parent f5f62a29
No related branches found
No related tags found
No related merge requests found
...@@ -45,14 +45,14 @@ ...@@ -45,14 +45,14 @@
<detectors> <detectors>
<comment>Boxes</comment> <comment>Boxes</comment>
<detector id="1" name="B1" type="BoxSegment" vis="B1_vis"> <detector id="1" name="B1" type="AlignmentBoxSegment" vis="B1_vis">
<comment>Horizontal box</comment> <comment>Horizontal box</comment>
<material name="Steel235"/> <material name="Steel235"/>
<box x="20" y="0.1" z="5"/> <box x="20" y="0.1" z="5"/>
<position x="20" y="10" z="10"/> <position x="20" y="10" z="10"/>
<rotation x="1" y="0" z="0"/> <rotation x="1" y="0" z="0"/>
</detector> </detector>
<detector id="2" name="B2" type="BoxSegment" vis="B2_vis"> <detector id="2" name="B2" type="AlignmentBoxSegment" vis="B2_vis">
<comment>Vertical box</comment> <comment>Vertical box</comment>
<material name="Steel235"/> <material name="Steel235"/>
<box x="0.1" y="20" z="5"/> <box x="0.1" y="20" z="5"/>
......
...@@ -31,4 +31,4 @@ static Ref_t create_element(LCDD& lcdd, xml_h e, Ref_t) { ...@@ -31,4 +31,4 @@ static Ref_t create_element(LCDD& lcdd, xml_h e, Ref_t) {
} }
// first argument is the type from the xml file // first argument is the type from the xml file
DECLARE_DETELEMENT(BoxSegment,create_element) DECLARE_DETELEMENT(AlignmentBoxSegment,create_element)
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