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

refactor!: Unify floating point type for chi2 in Track(State) #2562

Merged

Conversation

paulgessinger
Copy link
Member

This was previously (not really intentionally) different.

This was previously (not really intentionally) different.
@paulgessinger paulgessinger added this to the next milestone Oct 20, 2023
@paulgessinger
Copy link
Member Author

paulgessinger commented Oct 20, 2023

I'm changing the track state type to float first. I'm guessing this has an impact on the fit results, but let's see.

@github-actions github-actions bot added Component - Core Affects the Core module Event Data Model labels Oct 20, 2023
@codecov
Copy link

codecov bot commented Oct 20, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (abae9b3) 49.73% compared to head (c0a3258) 49.73%.
Report is 1 commits behind head on main.

❗ Current head c0a3258 differs from pull request most recent head 4887d19. Consider uploading reports for the commit 4887d19 to get more accurate results

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2562   +/-   ##
=======================================
  Coverage   49.73%   49.73%           
=======================================
  Files         474      474           
  Lines       26872    26872           
  Branches    12364    12364           
=======================================
  Hits        13366    13366           
  Misses       4702     4702           
  Partials     8804     8804           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@paulgessinger
Copy link
Member Author

Seems like output hashes change (makes sense), but physmon is unchanged.

andiwand
andiwand previously approved these changes Oct 20, 2023
@kodiakhq
Copy link
Contributor

kodiakhq bot commented Oct 20, 2023

This PR currently has a merge conflict. Please resolve this and then re-add the automerge label.

@benjaminhuth
Copy link
Member

Is this breaking actually? Because it touches the concept and so on?

@paulgessinger
Copy link
Member Author

@benjaminhuth Depends I guess.

@paulgessinger
Copy link
Member Author

Failures after #2094 went in, as this still expects the other type.

@paulgessinger paulgessinger changed the title fix: Unify floating point type for chi2 in Track(State) refactor!: Unify floating point type for chi2 in Track(State) Oct 24, 2023
@github-actions github-actions bot added the Component - Plugins Affects one or more Plugins label Oct 24, 2023
@paulgessinger paulgessinger modified the milestones: next, v31.0.0 Oct 25, 2023
@tboldagh
Copy link
Contributor

tboldagh commented Nov 8, 2023

Just in case this would need to be changed once more is there some Acts::Scalar type for float that could be used instead of explicity type?

@github-actions github-actions bot removed Component - Examples Affects the Examples module Changes Performance labels Nov 8, 2023
@paulgessinger
Copy link
Member Author

@tboldagh There is, but I'm wondering if that makes sense. Is the goal really to have everything use the same precision? I can't imagine we would actually ever need double for things like this $\chi^2$ value.

@github-actions github-actions bot added Component - Examples Affects the Examples module Changes Performance labels Nov 8, 2023
@acts-project-service acts-project-service added the Fails Athena tests This PR causes a failure in the Athena tests label Nov 8, 2023
@tboldagh
Copy link
Contributor

tboldagh commented Nov 8, 2023

@tboldagh There is, but I'm wondering if that makes sense. Is the goal really to have everything use the same precision? I can't imagine we would actually ever need double for things like this
χ2 value.

I was acually suggesting (indirectly and eveidently not very suggestive way) that a type: Acts::SmallScalar could be defined and used in this case.
(the name sould be better of course).

@paulgessinger
Copy link
Member Author

@tboldagh Seems like a wider discussion. Should we merge this to start with so we can land it in Athena soon?

@tboldagh
Copy link
Contributor

tboldagh commented Nov 9, 2023

@tboldagh Seems like a wider discussion. Should we merge this to start with so we can land it in Athena soon?

Yes. Definitely.

@github-actions github-actions bot removed Component - Examples Affects the Examples module Changes Performance labels Nov 14, 2023
Copy link
Contributor

@tboldagh tboldagh left a comment

Choose a reason for hiding this comment

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

Yes, this looks alright.
Maybe I tag @CarloVarni - we will need to update xAOD class when this arrives in ATLAS.
This is breaking change (in a not so pleasent way - missing update will result in quite obscure runtime issue). If I understood well the discussion at last ACTS developers, there was plan to flag such breaking changes.

@github-actions github-actions bot added Component - Examples Affects the Examples module Changes Performance labels Nov 15, 2023
@kodiakhq kodiakhq bot merged commit 040a896 into acts-project:main Nov 16, 2023
@paulgessinger paulgessinger deleted the fix/unify-chi2-track-trackstate branch November 16, 2023 17:04
@timadye
Copy link
Contributor

timadye commented Nov 20, 2023

Just to be clear, the effect of this PR is that the TrackState chi2 type changes from double to float, right?

The v31.0.0 release notes has it the other way round in the Breaking section. Can the release notes be fixed, or it made clear at the top of this PR?

@paulgessinger
Copy link
Member Author

paulgessinger commented Nov 20, 2023

@timadye My mistake, sorry! Fixed in the release notes now.

@paulgessinger paulgessinger removed the Fails Athena tests This PR causes a failure in the Athena tests label Nov 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Changes Performance Component - Core Affects the Core module Component - Examples Affects the Examples module Component - Plugins Affects one or more Plugins Event Data Model
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants