Print

Print


Commit in lcsim/src/org/lcsim/util/lcio on MAIN
SIOReconstructedParticle.java+4-11.7 -> 1.8
fix lcsim-202

lcsim/src/org/lcsim/util/lcio
SIOReconstructedParticle.java 1.7 -> 1.8
diff -u -r1.7 -r1.8
--- SIOReconstructedParticle.java	17 Oct 2007 02:06:23 -0000	1.7
+++ SIOReconstructedParticle.java	11 Mar 2009 19:04:13 -0000	1.8
@@ -21,7 +21,7 @@
 /**
  *
  * @author Tony Johnson
- * @version $Id: SIOReconstructedParticle.java,v 1.7 2007/10/17 02:06:23 tonyj Exp $
+ * @version $Id: SIOReconstructedParticle.java,v 1.8 2009/03/11 19:04:13 jeremy Exp $
  */
 class SIOReconstructedParticle extends BaseReconstructedParticle
 {
@@ -93,6 +93,9 @@
       double[] ref = particle.getReferencePoint().v();
       for (int i=0; i<3; i++) out.writeFloat((float)ref[i]);
       List<ParticleID> ids = particle.getParticleIDs();
+      if (!ids.contains(particle.getParticleIDUsed()))
+    	  throw new RuntimeException("The used PID with PDG " + particle.getParticleIDUsed().getPDG()
+    			  + " is not in the list of candidate PIDs.");
       out.writeInt(ids.size());
       for (ParticleID pid : ids )
       {
CVSspam 0.2.8