Commit in GeomConverter/src/org/lcsim/geometry/compact/converter/lcdd on MAIN
PolyhedraEndcapCalorimeter2.java+6-11.4 -> 1.5
JM: correct default rotation to match barrel

GeomConverter/src/org/lcsim/geometry/compact/converter/lcdd
PolyhedraEndcapCalorimeter2.java 1.4 -> 1.5
diff -u -r1.4 -r1.5
--- PolyhedraEndcapCalorimeter2.java	12 Feb 2009 20:07:00 -0000	1.4
+++ PolyhedraEndcapCalorimeter2.java	12 Feb 2009 21:42:25 -0000	1.5
@@ -143,6 +143,8 @@
             envelopeVolume.setVisAttributes(lcdd.getVisAttributes(node.getAttribute("vis").getValue()));
         }            
         
+        double zrot = Math.PI / numsides;
+        
         structure.addVolume(envelopeVolume);
                 
         PhysVol physvol = new PhysVol(envelopeVolume);
@@ -161,7 +163,10 @@
         {
             PhysVol physvol2 = new PhysVol(envelopeVolume);
             physvol2.setZ(-zmin-subdetectorThickness/2);
-            Rotation reflection = lcdd.getDefine().getRotation("reflect_rot");
+            Rotation reflection = new Rotation(envelopeVolume + "_reflected");
+            reflection.setX(Math.PI);
+            reflection.setZ(zrot);
+            
             physvol2.setRotation(reflection);
             physvol2.addPhysVolID("system",id);
             physvol2.addPhysVolID("barrel",2);
CVSspam 0.2.8