Commit in java/trunk/recon/src/main/java/org/hps/recon/particle on MAIN
ReconParticleDriver.java+13-3591 -> 592
Set the PDG ID of final state ReconstructedParticles and set the energy of ReconstructedParticles with just tracks equal to the magnitude of the track momentum.

java/trunk/recon/src/main/java/org/hps/recon/particle
ReconParticleDriver.java 591 -> 592
--- java/trunk/recon/src/main/java/org/hps/recon/particle/ReconParticleDriver.java	2014-05-16 19:41:21 UTC (rev 591)
+++ java/trunk/recon/src/main/java/org/hps/recon/particle/ReconParticleDriver.java	2014-05-16 19:44:39 UTC (rev 592)
@@ -223,8 +223,14 @@
     			Hep3Vector momentum = new BasicHep3Vector(matchedTrack.getTrackStates().get(0).getMomentum());
     			((BasicHepLorentzVector) fourVector).setV3(fourVector.t(), momentum);
     			((BaseReconstructedParticle) particle).setCharge(matchedTrack.getCharge()*flipSign);
-    		
+    			if(particle.getCharge() > 0){
+    				((BaseReconstructedParticle) particle).setParticleIdUsed(new SimpleParticleID(-11, 0, 0, 0));
+    			} else if(particle.getCharge() < 0){
+    				((BaseReconstructedParticle) particle).setParticleIdUsed(new SimpleParticleID(11, 0, 0, 0));
+    			}
     			if(unmatchedTracks.contains(matchedTrack)) unmatchedTracks.remove(matchedTrack);
+    		} else {
+    			((BaseReconstructedParticle) particle).setParticleIdUsed(new SimpleParticleID(22, 0, 0, 0));
     		}
     		((BaseReconstructedParticle) particle).set4Vector(fourVector);
     	
@@ -241,10 +247,14 @@
     			
     			particle.addTrack(unmatchedTrack);
     			Hep3Vector momentum = new BasicHep3Vector(unmatchedTrack.getTrackStates().get(0).getMomentum());
-    			((BasicHepLorentzVector) fourVector).setV3(fourVector.t(), momentum);
+    			((BasicHepLorentzVector) fourVector).setV3(momentum.magnitude(), momentum);
     			((BaseReconstructedParticle) particle).setCharge(unmatchedTrack.getCharge()*flipSign);
     			((BaseReconstructedParticle) particle).set4Vector(fourVector);
-    			
+    			if(particle.getCharge() > 0){
+    				((BaseReconstructedParticle) particle).setParticleIdUsed(new SimpleParticleID(-11, 0, 0, 0));
+    			} else if(particle.getCharge() < 0){
+    				((BaseReconstructedParticle) particle).setParticleIdUsed(new SimpleParticleID(11, 0, 0, 0));
+    			}
     			particles.add(particle);
     		}
     	}
SVNspam 0.1