Skip to content
Snippets Groups Projects
Commit 1d94130d authored by Whitney Armstrong's avatar Whitney Armstrong
Browse files

Fixed XML parsing issue and commented out surface installer

parent 6ad1228a
No related branches found
No related tags found
No related merge requests found
...@@ -77,13 +77,15 @@ ...@@ -77,13 +77,15 @@
</readouts> </readouts>
<plugins> <plugins>
<!--
<plugin name="DD4hep_GenericSurfaceInstallerPlugin"> <plugin name="DD4hep_GenericSurfaceInstallerPlugin">
<argument value="ForwardRomanPot"/> <argument value="MyRomanPot"/>
<argument value="dimension=2"/> <argument value="dimension=2"/>
<argument value="u_x=-1."/> <argument value="u_x=-1."/>
<argument value="v_y=-1."/> <argument value="v_y=-1."/>
<argument value="n_z=1."/> <argument value="n_z=1."/>
</plugin> </plugin>
-->
<plugin name="InstallSurfaceManager"/> <plugin name="InstallSurfaceManager"/>
</plugins> </plugins>
......
...@@ -27,7 +27,7 @@ static Ref_t build_detector(Detector& dtor, xml_h e, SensitiveDetector sens) { ...@@ -27,7 +27,7 @@ static Ref_t build_detector(Detector& dtor, xml_h e, SensitiveDetector sens) {
//FIXME: Element [position] has no child of type 'rotation' //FIXME: Element [position] has no child of type 'rotation'
xml_dim_t pos = x_det.position(); xml_dim_t pos = x_det.position();
double zoffset = pos.z_offset(); double zoffset = pos.z_offset();
bool rotated = pos.rotation(); bool rotated = pos.attr<bool>(_Unicode(rotation));
double pos_out = pos.vmax(); double pos_out = pos.vmax();
double curr_pos = pos.v(); double curr_pos = pos.v();
Material air = dtor.air(); Material air = dtor.air();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment