Commit in GeomConverter/src/org/lcsim/geometry/compact/converter/lcdd on MAIN
PolyhedraEndcapCalorimeter.java+4-81.6 -> 1.7
JM: Fix bug with reflected PolyhedraEndcapCalorimeter.

GeomConverter/src/org/lcsim/geometry/compact/converter/lcdd
PolyhedraEndcapCalorimeter.java 1.6 -> 1.7
diff -u -r1.6 -r1.7
--- PolyhedraEndcapCalorimeter.java	12 Sep 2006 01:20:56 -0000	1.6
+++ PolyhedraEndcapCalorimeter.java	11 Oct 2006 23:57:44 -0000	1.7
@@ -229,14 +229,10 @@
         boolean reflect = node.getAttribute("reflect").getBooleanValue();
         if (reflect)
         {
-            Rotation envelopeRotationReflect = define.getRotation("reflect_polyhedra_rot");
-            if ( envelopeRotationReflect == null )
-            {
-                envelopeRotationReflect = new Rotation("reflect_polyhedra_rot");
-                envelopeRotationReflect.setX(Math.PI);
-                envelopeRotationReflect.setZ(zrot);
-                define.addRotation(envelopeRotationReflect);
-            }
+        	Rotation envelopeRotationReflect = new Rotation(detName + "_reflect_rotation");
+            envelopeRotationReflect.setX(Math.PI);
+            envelopeRotationReflect.setZ(zrot);
+            define.addRotation(envelopeRotationReflect);
             
             PhysVol physvol2 = new PhysVol(envelopeVolume);
             physvol2.setZ(-zmin-layersThickness/2);
CVSspam 0.2.8