Commit in GeomConverter/src/org/lcsim/geometry/compact/converter/lcdd/util on MAIN | |||
RZFieldMap.java | +10 | 1.2 -> 1.3 |
Made funit (field unit) and lunit (length unit) attributes settable in compact description. (Default is cm and kilogauss.)
diff -u -r1.2 -r1.3 --- RZFieldMap.java 2 Sep 2005 00:05:57 -0000 1.2 +++ RZFieldMap.java 2 Sep 2005 00:30:15 -0000 1.3 @@ -46,4 +46,14 @@
rzb.setAttribute("Br", String.valueOf(Br)); addContent(rzb); }
+ + public void setLengthUnit(String lunit) + { + setAttribute("lunit", lunit); + } + + public void setFieldUnit(String funit) + { + setAttribute("funit", funit); + }
}
\ No newline at end of file