Commit in GeomConverter/src/org/lcsim/geometry/subdetector on MAIN
AbstractTestBeam.java+14-111.2 -> 1.3
Additional corrections to TestBeam HepRep converter.

GeomConverter/src/org/lcsim/geometry/subdetector
AbstractTestBeam.java 1.2 -> 1.3
diff -u -r1.2 -r1.3
--- AbstractTestBeam.java	27 Sep 2005 17:59:26 -0000	1.2
+++ AbstractTestBeam.java	27 Sep 2005 19:25:12 -0000	1.3
@@ -117,20 +117,23 @@
         
         Hep3Vector position = getPosition();
         
-        double x = getX()/2 + position.x();
-        double y = getY()/2 + position.y();
+        double x1 = position.x() + getX()/2;
+        double x2 = position.x() - getX()/2;
+        
+        double y1 = position.y() + getY()/2;
+        double y2 = position.y() - getX()/2;
         
         double z1 = position.z() + getZ()/2;
-        double z2 = position.z() - getZ()/2;
+        double z2 = position.z() - getZ()/2;        
         
-        factory.createHepRepPoint(instance, x, y, z1);
-        factory.createHepRepPoint(instance, x, -y, z1);
-        factory.createHepRepPoint(instance, -x, -y, z1);
-        factory.createHepRepPoint(instance, -x, y, z1);
+        factory.createHepRepPoint(instance, x1, y1, z1);
+        factory.createHepRepPoint(instance, x1, y2, z1);
+        factory.createHepRepPoint(instance, x2, y2, z1);
+        factory.createHepRepPoint(instance, x2, y1, z1);
         
-        factory.createHepRepPoint(instance, x, y, z2);
-        factory.createHepRepPoint(instance, x, -y, z2);
-        factory.createHepRepPoint(instance, -x, -y, z2);
-        factory.createHepRepPoint(instance, -x, y, z2);        
+        factory.createHepRepPoint(instance, x1, y1, z2);
+        factory.createHepRepPoint(instance, x1, y2, z2);
+        factory.createHepRepPoint(instance, x2, y2, z2);
+        factory.createHepRepPoint(instance, x2, y1, z2);
     }
 }
\ No newline at end of file
CVSspam 0.2.8