GeomConverter/src/org/lcsim/geometry/subdetector
diff -u -r1.3 -r1.4
--- AbstractPolyhedraCalorimeter.java 26 Aug 2005 02:37:04 -0000 1.3
+++ AbstractPolyhedraCalorimeter.java 2 Sep 2005 19:34:46 -0000 1.4
@@ -8,6 +8,7 @@
package org.lcsim.geometry.subdetector;
import org.jdom.Element;
import org.jdom.JDOMException;
+import static java.lang.Math.PI;
/**
*
@@ -63,4 +64,14 @@
{
return nsides;
}
+
+ double getSectionPhi()
+ {
+ return 2 * PI / nsides;
+ }
+
+ double getHalfSectionPhi()
+ {
+ return getSectionPhi() / 2;
+ }
}
\ No newline at end of file