Print

Print


Commit in GeomConverter/src/org/lcsim/geometry/subdetector on MAIN
PolyhedraEndcapCalorimeter2.java+281.2 -> 1.3
include missing setup

GeomConverter/src/org/lcsim/geometry/subdetector
PolyhedraEndcapCalorimeter2.java 1.2 -> 1.3
diff -u -r1.2 -r1.3
--- PolyhedraEndcapCalorimeter2.java	18 Nov 2009 20:09:55 -0000	1.2
+++ PolyhedraEndcapCalorimeter2.java	18 Nov 2009 22:00:53 -0000	1.3
@@ -15,11 +15,39 @@
 
 public class PolyhedraEndcapCalorimeter2 extends AbstractPolyhedraCalorimeter
 {
+	private double zmin;
+	private double zmax;
+	
     public PolyhedraEndcapCalorimeter2(Element node) throws JDOMException
     {
         super(node);
+		build(node);
     }
     
+	private void build(Element node) throws JDOMException
+	{
+		double thickness = getLayering().getThickness();
+		zlength = thickness;
+
+		Element dimensions = node.getChild("dimensions");
+
+		zmin = dimensions.getAttribute("zmin").getDoubleValue();
+		zmax = zmin + thickness;
+
+		irad = dimensions.getAttribute("rmin").getDoubleValue();
+		orad = dimensions.getAttribute("rmax").getDoubleValue();
+	}
+	
+	public double getZMin()
+	{
+		return zmin;
+	}
+
+	public double getZMax()
+	{
+		return zmax;
+	}
+    
 	public void appendHepRep(HepRepFactory factory, HepRep heprep)
 	{
 		HepRepInstanceTree instanceTree = heprep.getInstanceTreeTop("Detector","1.0");
CVSspam 0.2.8