Print

Print


Author: holly
Date: Tue Dec 16 09:37:56 2014
New Revision: 1756

Log:
Update to include electron energy correction since no longer assumed

Modified:
    java/trunk/recon/src/main/java/org/hps/recon/particle/ReconParticleDriver.java

Modified: java/trunk/recon/src/main/java/org/hps/recon/particle/ReconParticleDriver.java
 =============================================================================
--- java/trunk/recon/src/main/java/org/hps/recon/particle/ReconParticleDriver.java	(original)
+++ java/trunk/recon/src/main/java/org/hps/recon/particle/ReconParticleDriver.java	Tue Dec 16 09:37:56 2014
@@ -264,9 +264,12 @@
 
                 if (matchedCluster instanceof HPSEcalClusterIC) {
                     int pid = particle.getParticleIDUsed().getPDG();
-                    if (pid != 11) {
+                    if (pid == -11) {
                         ((HPSEcalClusterIC) matchedCluster).setParticleID(pid);
                     }// End of cluster position/energy corrections. 
+                    else if (pid == 11) {
+                        ((HPSEcalClusterIC) matchedCluster).setParticleID(pid);
+                    }
                 }
 
                 // Update the reconstructed particle with the data from