Print

Print


Commit in lcsim/src/org/lcsim/recon/pfa/identifier on MAIN
MIPChargedParticleMaker.java+4-21.6 -> 1.7
SimpleChargedParticleMaker.java+4-21.10 -> 1.11
SimpleNeutralParticleMaker.java+2-11.7 -> 1.8
+10-5
3 modified files
MJC: Fix problem with missing PID in ReconstructedParticles after LCIO I/O

lcsim/src/org/lcsim/recon/pfa/identifier
MIPChargedParticleMaker.java 1.6 -> 1.7
diff -u -r1.6 -r1.7
--- MIPChargedParticleMaker.java	16 May 2007 21:25:43 -0000	1.6
+++ MIPChargedParticleMaker.java	7 Sep 2007 22:49:57 -0000	1.7
@@ -35,7 +35,7 @@
  * then the entire cluster is added to the ReconstructedParticle instead.
  * The parent must be unique.
  *
- * @version $Id: MIPChargedParticleMaker.java,v 1.6 2007/05/16 21:25:43 mcharles Exp $
+ * @version $Id: MIPChargedParticleMaker.java,v 1.7 2007/09/07 22:49:57 mcharles Exp $
  */
 
 public class MIPChargedParticleMaker extends Driver
@@ -333,7 +333,9 @@
 		int pdg = 211 * charge; // everything is a pion
 		type = ParticlePropertyManager.getParticlePropertyProvider().get(pdg);
 	    }
-	    part.setParticleIdUsed(new BaseParticleID(type));
+	    BaseParticleID pid = new BaseParticleID(type);
+	    part.addParticleID(pid);
+	    part.setParticleIdUsed(pid);
 	    part.setReferencePoint(new BasicHep3Vector(part.getTracks().get(0).getReferencePoint()));
 	} else {
 	    // Multiple tracks => some quantities not well-defined

lcsim/src/org/lcsim/recon/pfa/identifier
SimpleChargedParticleMaker.java 1.10 -> 1.11
diff -u -r1.10 -r1.11
--- SimpleChargedParticleMaker.java	16 May 2007 21:25:43 -0000	1.10
+++ SimpleChargedParticleMaker.java	7 Sep 2007 22:49:57 -0000	1.11
@@ -29,7 +29,7 @@
  *
  * Currently, PID is done by cheating.
  *
- * @version $Id: SimpleChargedParticleMaker.java,v 1.10 2007/05/16 21:25:43 mcharles Exp $
+ * @version $Id: SimpleChargedParticleMaker.java,v 1.11 2007/09/07 22:49:57 mcharles Exp $
  */
 
 public class SimpleChargedParticleMaker extends Driver
@@ -151,7 +151,9 @@
 		int pdg = 211 * charge; // everything is a pion
 		type = ParticlePropertyManager.getParticlePropertyProvider().get(pdg);
 	    }
-	    part.setParticleIdUsed(new BaseParticleID(type));
+	    BaseParticleID pid = new BaseParticleID(type);
+	    part.addParticleID(pid);
+	    part.setParticleIdUsed(pid);
 	    part.setReferencePoint(new BasicHep3Vector(part.getTracks().get(0).getReferencePoint()));
 	} else {
 	    // Multiple tracks => some quantities not well-defined

lcsim/src/org/lcsim/recon/pfa/identifier
SimpleNeutralParticleMaker.java 1.7 -> 1.8
diff -u -r1.7 -r1.8
--- SimpleNeutralParticleMaker.java	16 May 2007 21:25:43 -0000	1.7
+++ SimpleNeutralParticleMaker.java	7 Sep 2007 22:49:57 -0000	1.8
@@ -27,7 +27,7 @@
  *
  * Currently, PID is predetermined.
  *
- * @version $Id: SimpleNeutralParticleMaker.java,v 1.7 2007/05/16 21:25:43 mcharles Exp $
+ * @version $Id: SimpleNeutralParticleMaker.java,v 1.8 2007/09/07 22:49:57 mcharles Exp $
  */
 
 public class SimpleNeutralParticleMaker extends Driver
@@ -76,6 +76,7 @@
 	    part.setReferencePoint(0,0,0);
 	    part.setCharge(0);
 	    // Set the PID and mass
+	    part.addParticleID(m_id);
 	    part.setParticleIdUsed(m_id);
 	    part.setMass(m_mass);
 	    // Add to the output list
CVSspam 0.2.8