Print

Print


Commit in lcsim/src/org/lcsim/recon/cluster/util on MAIN
TrivialClusterEnergyCalculator.java+28added 1.1
Allow for calibration without calibration constants

lcsim/src/org/lcsim/recon/cluster/util
TrivialClusterEnergyCalculator.java added at 1.1
diff -N TrivialClusterEnergyCalculator.java
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ TrivialClusterEnergyCalculator.java	4 Sep 2008 17:03:18 -0000	1.1
@@ -0,0 +1,28 @@
+/*
+ * TrivialClusterEnergyCalculator.java
+ *
+ * Created on September 4, 2008, 12:14 PM
+ *
+ * To change this template, choose Tools | Options and locate the template under
+ * the Source Creation and Management node. Right-click the template and choose
+ * Open. You can then make changes to the template in the Source Editor.
+ */
+
+package org.lcsim.recon.cluster.util;
+import org.lcsim.event.Cluster;
+
+/**
+ *
+ * @author cassell
+ */
+public class TrivialClusterEnergyCalculator implements ClusterEnergyCalculator
+{
+    /** Creates a new instance of GenericClusterEnergyCalculator */
+    public TrivialClusterEnergyCalculator()
+    {
+    }
+    public double getEnergy(Cluster c)
+    {
+        return c.getEnergy();
+    }
+}
CVSspam 0.2.8