Commit in hps-java/src/main/java/org/lcsim/hps/recon/vertexing on MAIN | |||
TwoTrackVertexer.java | +16 | -1 | 1.2 -> 1.3 |
Add ability to return a Vertex object when fitting
diff -u -r1.2 -r1.3 --- TwoTrackVertexer.java 13 Mar 2013 19:29:52 -0000 1.2 +++ TwoTrackVertexer.java 15 Apr 2013 07:09:11 -0000 1.3 @@ -4,10 +4,13 @@
*/ package org.lcsim.hps.recon.vertexing;
+import hep.physics.matrix.SymmetricMatrix;
import hep.physics.vec.BasicHep3Vector; import hep.physics.vec.Hep3Vector; import hep.physics.vec.VecOp; import org.lcsim.event.Track;
+import org.lcsim.event.Vertex; +import org.lcsim.event.base.BaseVertex;
import org.lcsim.fit.helicaltrack.HelicalTrackFit; import org.lcsim.fit.helicaltrack.HelixUtils; import org.lcsim.hps.recon.tracking.HPSTrack;
@@ -126,6 +129,18 @@
*/ return vtxpos; }
-
+ /** + * + */ + public Vertex fitVertex(Track track1, Track track2){ + + // Set the tracks to be vertexed + this.setTracks(track1, track2); + + // Vertex the track and obtain the position + Hep3Vector vtxPosition = this.getVertexWithFringe(); + + return new BaseVertex(true, "Two Line Vertexer", 0, 0, new SymmetricMatrix(0), vtxPosition, null); + }
}
Use REPLY-ALL to reply to list
To unsubscribe from the LCD-CVS list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=LCD-CVS&A=1