Print

Print


Commit in java/trunk/recon/src/main/java/org/hps/recon/particle on MAIN
ReconParticleDriver.java+2-1617 -> 618
minor fix to bug that carried over stale matched tracks

java/trunk/recon/src/main/java/org/hps/recon/particle
ReconParticleDriver.java 617 -> 618
--- java/trunk/recon/src/main/java/org/hps/recon/particle/ReconParticleDriver.java	2014-05-22 18:05:08 UTC (rev 617)
+++ java/trunk/recon/src/main/java/org/hps/recon/particle/ReconParticleDriver.java	2014-05-22 18:44:39 UTC (rev 618)
@@ -175,7 +175,7 @@
 
         // Instantiate the list of unmatched  clusters.  Remove if we find track match
         List<HPSEcalCluster> unmatchedClusters = new ArrayList<HPSEcalCluster>(clusters);
-        HPSEcalCluster matchedCluster = null;
+       
 
         for (Track track : tracks) {
             //make the containers for the reconstructed particle
@@ -194,6 +194,7 @@
             else if (particle.getCharge() < 0)
                 ((BaseReconstructedParticle) particle).setParticleIdUsed(new SimpleParticleID(11, 0, 0, 0));
 
+            HPSEcalCluster matchedCluster = null;
             for (HPSEcalCluster cluster : unmatchedClusters) {
 
                 // Get the position of the Ecal cluster
SVNspam 0.1