Print

Print


Commit in GeomConverter/src/org/lcsim/geometry/subdetector on MAIN
TestBeamCalorimeter.java+13-11.8 -> 1.9
test beam cal needs to implement cal type also (fix build)

GeomConverter/src/org/lcsim/geometry/subdetector
TestBeamCalorimeter.java 1.8 -> 1.9
diff -u -r1.8 -r1.9
--- TestBeamCalorimeter.java	22 May 2007 20:02:07 -0000	1.8
+++ TestBeamCalorimeter.java	9 Dec 2009 01:38:29 -0000	1.9
@@ -3,20 +3,32 @@
 import org.jdom.Element;
 import org.jdom.JDOMException;
 import org.lcsim.geometry.Calorimeter;
+import org.lcsim.geometry.Calorimeter.CalorimeterType;
 
 /**
  * @author Jeremy McCormick
  */
+// TODO: Need to make this class inherit from AbstractCalorimeter.
 public class TestBeamCalorimeter extends AbstractTestBeam
-        implements Calorimeter
+implements Calorimeter
 {
+    CalorimeterType calType = CalorimeterType.UNKNOWN;
     public TestBeamCalorimeter(Element node) throws JDOMException
     {
         super(node);
+        if (node.getAttribute("calorimeterType") != null)
+        {
+            calType = CalorimeterType.fromString(node.getAttributeValue("calorimeterType"));
+        }
     }
         
     public boolean isCalorimeter()
     {
         return true;
+    }    
+    
+    public CalorimeterType getCalorimeterType()
+    {
+        return calType;
     }
 }
\ No newline at end of file
CVSspam 0.2.8