Commit in lcsim/src/org/lcsim/contrib/JanStrube/vtxFitter on MAIN
VtxTrack.java+28added 1.1
Adding Class needed for Fitter

lcsim/src/org/lcsim/contrib/JanStrube/vtxFitter
VtxTrack.java added at 1.1
diff -N VtxTrack.java
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ VtxTrack.java	14 Oct 2006 08:46:22 -0000	1.1
@@ -0,0 +1,28 @@
+package org.lcsim.contrib.JanStrube.vtxFitter;
+
+import org.lcsim.contrib.JanStrube.tracking.EMap;
+import org.lcsim.contrib.JanStrube.tracking.NewTrack;
+import org.lcsim.contrib.JanStrube.tracking.Track;
+import org.lcsim.spacegeom.SpacePoint;
+import org.lcsim.spacegeom.SpaceVector;
+
+import Jama.Matrix;
+
+public class VtxTrack extends NewTrack {
+	
+	/*
+	 * Copy constructor. The members of Track have to be cloned,
+	 * because they will be modified in an irreversible way
+	 */
+	VtxTrack(Track t) {
+		super((SpacePoint) t.getReferencePoint().clone()
+			, new EMap(t.getParameters())
+			, (Matrix) t.getErrorMatrix().clone()
+			, t.getCharge());
+	}
+	
+	void updateMomentum(SpaceVector momentum, SpacePoint position, double B_z) {
+		_parameters = EMap.SpaceMomentum2Parameters(position, momentum, position, _charge, B_z);
+	}
+	
+}
CVSspam 0.2.8