GeomConverter/src/org/lcsim/geometry/compact/converter/lcdd
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);