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

107 reco track direction is not correct #109

Merged
merged 3 commits into from
May 14, 2024

Conversation

AsaNehm
Copy link
Contributor

@AsaNehm AsaNehm commented May 14, 2024

Correct the track direction calculation. This now allows for a calculation at the beginning of the track, but the actual distance is tune-able

@AsaNehm AsaNehm requested review from LiamOS and jdkio May 14, 2024 09:54
@AsaNehm AsaNehm linked an issue May 14, 2024 that may be closed by this pull request
@AsaNehm AsaNehm merged commit 1758549 into main May 14, 2024
1 check passed
aTrack.Direction[0] = aTrack.End[0] - aTrack.Start[0];
aTrack.Direction[1] = aTrack.End[1] - aTrack.Start[1];
aTrack.Direction[2] = aTrack.End[2] - aTrack.Start[2];
aTrack.Direction[0] = aTrack.Start[0] - aTrack.Hits[TMS_Manager::GetInstance().Get_Reco_TRACKMATCH_DirectionDistance()].GetRecoX(); //aTrack.End[0] - aTrack.Start[0];
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will give a seg fault if DirectionDistance >= len(Hits)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Reco Track Direction is Not Correct
2 participants