From 716cafa99c1e2aaaeaac33efb94094318eb036c8 Mon Sep 17 00:00:00 2001 From: Alic Spellman Date: Wed, 6 Sep 2023 08:31:30 -0700 Subject: [PATCH] target tracks ref point fix --- tracking/src/main/java/org/hps/recon/tracking/TrackUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tracking/src/main/java/org/hps/recon/tracking/TrackUtils.java b/tracking/src/main/java/org/hps/recon/tracking/TrackUtils.java index eccf257eb..4800498ab 100644 --- a/tracking/src/main/java/org/hps/recon/tracking/TrackUtils.java +++ b/tracking/src/main/java/org/hps/recon/tracking/TrackUtils.java @@ -789,7 +789,7 @@ public static BaseTrackState getTrackExtrapAtTargetRK(Track track, double target double[] params = getParametersFromPointAndMomentum(finalPos, momTrans, (int) charge, bFieldY); BaseTrackState bts = new BaseTrackState(params, bFieldY); //reference point is set to track position in X Y Z - bts.setReferencePoint(finalPos.v()); + bts.setReferencePoint(new double[]{finalPos.x(), finalPos.y(), 0.0}); //Define new reference point, to which track parameters are calc wrt double[] newRef = {target_z, beamPosition[0], beamPosition[1]}; params = getParametersAtNewRefPoint(newRef, bts);