Commit in lcsim/src/org/lcsim/contrib/uiowa/MuonFinder on MAIN
SimpleMipQualityDecision.java+4-11.1 -> 1.2
consideration of two read out in Muon detector

lcsim/src/org/lcsim/contrib/uiowa/MuonFinder
SimpleMipQualityDecision.java 1.1 -> 1.2
diff -u -r1.1 -r1.2
--- SimpleMipQualityDecision.java	28 Sep 2008 06:32:55 -0000	1.1
+++ SimpleMipQualityDecision.java	3 Oct 2008 19:06:36 -0000	1.2
@@ -31,6 +31,7 @@
 	Set<Integer> layersSeen = new HashSet<Integer>();
         Set<Integer> isolayer = new HashSet<Integer>();
         CalorimeterHit outhit = null;
+        Map<Integer, CalorimeterHit> exam = new HashMap<Integer, CalorimeterHit>();
         int max = 0;
 	for (CalorimeterHit hit : mip.getCalorimeterHits()) {
 	    int layer = getLayer(hit);
@@ -38,8 +39,10 @@
             if (!layersSeen.contains(layerInt)) {
                 layersSeen.add(layerInt);
                 isolayer.add(layerInt);
+                exam.put(layerInt,hit);
             } else {
-                isolayer.remove(layerInt);
+                exam.put(layerInt,hit);
+                if(exam.values().size() > 2){ isolayer.remove(layerInt); }
             }
             if(layer > max){
                 max = layer;
CVSspam 0.2.8