Print

Print


Commit in GeomConverter/src/org/lcsim/units/clhep on MAIN
Constants.java+3-31.1 -> 1.2
JM: fix bug where PhysicalConstants were not added to compact variables

GeomConverter/src/org/lcsim/units/clhep
Constants.java 1.1 -> 1.2
diff -u -r1.1 -r1.2
--- Constants.java	9 Apr 2007 19:31:57 -0000	1.1
+++ Constants.java	6 Dec 2008 00:24:57 -0000	1.2
@@ -70,13 +70,13 @@
     
     private void setupPhysicalConstants()
     {
-        PhysicalConstants units = new PhysicalConstants();      
-        Class<SystemOfUnits> klass = SystemOfUnits.class;
+        PhysicalConstants physc = new PhysicalConstants();
+        Class<PhysicalConstants> klass = PhysicalConstants.class;
         Field[] fields = klass.getFields();
         for (Field f : fields)
         {
             try {
-                constantsMap.put(f.getName(), f.getDouble(units));
+                constantsMap.put(f.getName(), f.getDouble(physc));
             }
             catch ( IllegalAccessException x )
             {
CVSspam 0.2.8