-
Notifications
You must be signed in to change notification settings - Fork 173
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: correct phi and theta for periodicity changes in KalmanVertexUpdater #2769
refactor: correct phi and theta for periodicity changes in KalmanVertexUpdater #2769
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #2769 +/- ##
=======================================
Coverage 48.90% 48.90%
=======================================
Files 494 494
Lines 28822 28822
Branches 13668 13668
=======================================
Hits 14095 14095
Misses 4874 4874
Partials 9853 9853 ☔ View full report in Codecov by Sentry. |
📊: Physics performance monitoring for 93b3f13physmon summary
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So we can end up with phi-theta values that are outside
Seems like a no-brainer to me.
I triggered the Athena jobs, let's see what this looks like now.
So in the run 2 test it changes the vertex chi2 on 2 vertices in the ESD and 3 vertices in the AOD and in the run 3 test it's 2 vertices changed in the AOD and 10 vertices in the ESD. You can see this in the data18 ART job here: |
Yes that's why we kept this change for the next major version! As usual, I don't know if this makes athena "worse" or "better". But I think we have enough arguments to get this in |
@felix-russo I guess this we'll have to argue. |
…mment-athena-breaking-code
…mment-athena-breaking-code
Hi, I think - as the phi wrapping into range makes totally sense, we should argue for this change. |
@paulgessinger and I had a discussion about this last week and we think if we wrap the angle we would also have to modify the chi2 code @paulgessinger did you check the results after wrapping the difference again? |
…so/acts into uncomment-athena-breaking-code
FYI: this is also done at a different place of the Kalman Updater; I think it was just forgotten here: acts/Core/src/Vertexing/KalmanVertexTrackUpdater.cpp Lines 148 to 153 in 2dbf768
|
the problem I see is that we later subtract other track params which are not pi/2pi wrapped acts/Core/src/Vertexing/KalmanVertexUpdater.cpp Lines 121 to 135 in e283c46
so not correcting them in the first place will result in small differences while correcting the angle needs another difference wrapping otherwise we can end up with big angle differences. I think this is the reason why we see higher chi2 in the ref/obs plot |
Which params are not pi/2pi wrapped? We should also wrap |
this could be the reason why the chi2 gets bigger in the monitoring not wrapping the angle here might be fine after all because we only check the difference at the end which is hopefully small after the update anyways |
Sorry, but I don’t follow…
With the proposed change:
Don’t we subtract unwrapped from wrapped in both cases? Wouldn’t it be best to wrap all three quantities? |
but we should either wrap everything or rely on the changes being small and ignore the wrapping (as it will be removed by the subtraction I think?) |
I am not sure if we can ignore the wrapping: If If we then subtract, however, we get a contribution |
that would be the case after this change but the chi2 contribution should be 0 no? because they actually represent the same direction |
I think the undesired contribution to the chi2 would arise both with and without this change! Or am I missing shtg? The code is not ready to go in, I am just trying to get on the same page before I update it |
in principle I guess so yes but at the same time we see more chi2 outliers in the comparison plot #2769 (comment) . the values missing from the peek end up overflowing on the right |
Ok I guess since we don't understand this but the previous version of the code just works better, I suggest to just leave everything as is. The PR just removes the TODO now, should we get this in? @andiwand @paulgessinger |
…mment-athena-breaking-code
…exUpdater (acts-project#2769) will break athena
will break athena