Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix target track z0/tanlambda bug #1008

Merged
merged 1 commit into from
Sep 6, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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