Commit in java/trunk/recon/src/main/java/org/hps/recon on MAIN
particle/HpsReconParticleDriver.java+3685 -> 686
vertexing/BilliorVertex.java+17-6685 -> 686
+20-6
2 modified files
Small change to BilliorVertex to allow setting the associated ReconstructedParticle.

java/trunk/recon/src/main/java/org/hps/recon/particle
HpsReconParticleDriver.java 685 -> 686
--- java/trunk/recon/src/main/java/org/hps/recon/particle/HpsReconParticleDriver.java	2014-06-06 02:16:36 UTC (rev 685)
+++ java/trunk/recon/src/main/java/org/hps/recon/particle/HpsReconParticleDriver.java	2014-06-06 02:56:49 UTC (rev 686)
@@ -147,6 +147,9 @@
 		((BasicHepLorentzVector) fourVector).setV3(fourVector.t(), fittedMomentum);
 		((BaseReconstructedParticle) candidate).set4Vector(fourVector);
 		
+		// Add the ReconstructedParticle to the Vertex 
+		vtxFit.setAssociatedParticle(candidate);
+		
 		return candidate;
 		
 	}

java/trunk/recon/src/main/java/org/hps/recon/vertexing
BilliorVertex.java 685 -> 686
--- java/trunk/recon/src/main/java/org/hps/recon/vertexing/BilliorVertex.java	2014-06-06 02:16:36 UTC (rev 685)
+++ java/trunk/recon/src/main/java/org/hps/recon/vertexing/BilliorVertex.java	2014-06-06 02:56:49 UTC (rev 686)
@@ -28,8 +28,7 @@
 //    private List<Matrix> covVtxMomList = new ArrayList<Matrix>();
     private List<BilliorTrack> _tracks;
     private Map<Integer, Hep3Vector> _fittedMomentum = new HashMap<Integer, Hep3Vector>();
-    private ReconstructedParticle particle = null;
-    
+    private ReconstructedParticle _particle = null;
     private String _constraintType;
     
     private boolean _debug = false;
@@ -42,9 +41,10 @@
     private double _invMass;
     private double _probability; 
     
-    // constructor
-    public BilliorVertex() {
-    }
+    /**
+     * Dflt Ctor
+     */
+    public BilliorVertex() {}
 
     BilliorVertex(Hep3Vector vtxPos, Matrix covVtx, double chiSq, double invMass, Map<Integer, Hep3Vector> pFitMap,String constraintType) {
         _chiSq = chiSq;
@@ -67,6 +67,15 @@
         StringBuffer sb = new StringBuffer("Vertex at : \nx= " + _vertexPosition.x() + " +/- " + Math.sqrt(_covVtx.e(0, 0)) + "\ny= " + _vertexPosition.y() + " +/- " + Math.sqrt(_covVtx.e(1, 1)) + "\nz= " + _vertexPosition.z() + " +/- " + Math.sqrt(_covVtx.e(2, 2)));
         return sb.toString();
     }
+    
+    /**
+     * Set the ReconstructedParticle associated with this Vertex
+     * 
+     * @param particle : The ReconstructedParticle Associated with this Vertex
+     */
+    public void setAssociatedParticle(ReconstructedParticle particle){
+    	this._particle = particle;
+    }
 
     @Override
     public boolean isPrimary() {
@@ -98,6 +107,8 @@
         return new SymmetricMatrix(_covVtx);
     }
 
+    // TODO: These should be pulled out and accessed by their own 
+    //		 getter methods.  
     @Override
     public Map<String, Double> getParameters() {
         Map<String, Double> pars = new HashMap<String, Double>();
@@ -117,6 +128,6 @@
 
     @Override
     public ReconstructedParticle getAssociatedParticle() {
-    	return particle; 
+    	return _particle; 
     }
 }
SVNspam 0.1