Print

Print


Commit in lcsim/src/org/lcsim/recon/pfa/structural/sharing on MAIN
ConeClusterSharingAlgorithm.java+1-11.1 -> 1.2
MJC: Propagate bugfix in cone sharing to stable PFA

lcsim/src/org/lcsim/recon/pfa/structural/sharing
ConeClusterSharingAlgorithm.java 1.1 -> 1.2
diff -u -r1.1 -r1.2
--- ConeClusterSharingAlgorithm.java	13 Jul 2008 23:33:48 -0000	1.1
+++ ConeClusterSharingAlgorithm.java	17 Jul 2008 04:07:35 -0000	1.2
@@ -39,7 +39,7 @@
 		double normalizedOffset = offset / (1.0 - m_scaleOK);
 		score = 1.0 - 0.3*normalizedOffset;
 		if (score > 1.0 || score < 0.7) { throw new AssertionError("Calculation error"); }
-	    } else if (dotProduct >= m_scaleOK && dotProduct < m_scaleMin) {
+	    } else if (dotProduct <= m_scaleOK && dotProduct > m_scaleMin) {
 		// In "poor" region, scoring 0.7 to 0.0
 		double offset = (m_scaleOK - dotProduct);
 		double normalizedOffset = offset / (m_scaleOK - m_scaleMin);
CVSspam 0.2.8