Skip to content

Commit

Permalink
Merge pull request #1008 from alspellm/iss1007
Browse files Browse the repository at this point in the history
fix target track z0/tanlambda bug
  • Loading branch information
cbravo135 authored Sep 6, 2023
2 parents 2771eb8 + 716cafa commit 1a8b05e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 1a8b05e

Please sign in to comment.