GeomConverter/src/org/lcsim/geometry/compact/converter/lcdd
diff -u -r1.10 -r1.11
--- EcalBarrel.java 17 Sep 2006 01:04:57 -0000 1.10
+++ EcalBarrel.java 10 Oct 2006 18:56:55 -0000 1.11
@@ -31,7 +31,7 @@
* Class to convert from Ecal model similar to Mokka's "ecal02" to LCDD.
*
* @author jeremym
- * @version $Id: EcalBarrel.java,v 1.10 2006/09/17 01:04:57 jeremy Exp $
+ * @version $Id: EcalBarrel.java,v 1.11 2006/10/10 18:56:55 jeremy Exp $
*/
public class EcalBarrel extends LCDDSubdetector
{
@@ -239,11 +239,12 @@
Rotation irot = lcdd.getDefine().getRotation("identity_rot");
- double z = trd.z();
+ double z = trd.y1();
+ double trd_z = trd.z();
// parameters for figuring out slice dim in X (X1)
double adj = (trd.x1() - trd.x2()) / 2; // adjacent angle of triangle
- double hyp = sqrt(z * z + adj * adj); // hypotenuse of triangle
+ double hyp = sqrt(trd_z * trd_z + adj * adj); // hypotenuse of triangle
double beta = acos(adj / hyp); // lower-right angle of triangle
double tan_beta = tan(beta); // primary coefficient for figuring X
// cut