Commit in lcsim/src/org/lcsim/recon/cluster/util on MAIN
BasicCluster.java+2-21.17 -> 1.18
fixed error in array bounds checking.
Why is this a hardcoded array of fixed length?

lcsim/src/org/lcsim/recon/cluster/util
BasicCluster.java 1.17 -> 1.18
diff -u -r1.17 -r1.18
--- BasicCluster.java	6 Mar 2009 17:48:24 -0000	1.17
+++ BasicCluster.java	3 Nov 2010 06:06:59 -0000	1.18
@@ -95,8 +95,8 @@
         double hce = hit.getCorrectedEnergy();
         IDDecoder idc = hit.getIDDecoder();
         idc.setID(hit.getCellID());
-        int detector_index = idc.getValue("system");
-        if((detector_index > 10 )|(detector_index < 0))detector_index = 0;
+        int detector_index = idc.getSystemID();
+        if((detector_index > 9 )|(detector_index < 0))detector_index = 0;
         corrected_energy -= hce;
         hit_energies.remove(indx);
         subdetector_raw_energies[detector_index] -= hre;
CVSspam 0.2.8