GeomConverter/src/org/lcsim/geometry/compact/converter/lcdd
diff -u -r1.2 -r1.3
--- RZFieldMap.java 2 Sep 2005 00:02:13 -0000 1.2
+++ RZFieldMap.java 2 Sep 2005 00:35:02 -0000 1.3
@@ -12,6 +12,7 @@
import java.io.FileReader;
import java.io.IOException;
import java.net.URL;
+import org.jdom.Attribute;
import org.jdom.Element;
import org.lcsim.util.cache.FileCache;
@@ -39,6 +40,18 @@
fmap.setGridSizeZ(node.getAttribute("gridSizeZ").getDoubleValue());
fmap.setGridSizeR(node.getAttribute("gridSizeR").getDoubleValue());
+ Attribute funit = node.getAttribute("funit");
+ if ( funit != null )
+ {
+ fmap.setFieldUnit(funit.getValue());
+ }
+
+ Attribute lunit = node.getAttribute("lunit");
+ if ( lunit != null )
+ {
+ fmap.setLengthUnit(lunit.getValue());
+ }
+
String location = node.getAttribute("url").getValue();
try