Print

Print


Commit in GeomConverter/src/org/lcsim/geometry/subdetector on MAIN
AbstractPolyhedraCalorimeter.java+111.3 -> 1.4
Added methods to get section phi angle.

GeomConverter/src/org/lcsim/geometry/subdetector
AbstractPolyhedraCalorimeter.java 1.3 -> 1.4
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
CVSspam 0.2.8