-
Notifications
You must be signed in to change notification settings - Fork 157
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: fittedParams -> fittedMomentum in TrackAtVertex struct #2359
refactor: fittedParams -> fittedMomentum in TrackAtVertex struct #2359
Conversation
This reverts commit 59a494b.
Codecov Report
@@ Coverage Diff @@
## main #2359 +/- ##
==========================================
+ Coverage 49.60% 49.70% +0.10%
==========================================
Files 452 452
Lines 25515 25467 -48
Branches 11701 11650 -51
==========================================
+ Hits 12656 12658 +2
+ Misses 4579 4578 -1
+ Partials 8280 8231 -49
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
…ed-params-to-fitted-momenta
Explanation of the physmon failure:
|
…ed-params-to-fitted-momenta
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.
one conceptional question:
I guess the fitter is only modifying the momentum but not the position of the track right? Do we constrain the position somehow, e.g. the position of the vertex?
Is it still possible to access the full refitted track parameters in some way? I don't have a use case in mind but I guess it could be handy if somebody wants to use them for something.
Examples/Io/Performance/ActsExamples/Io/Performance/VertexPerformanceWriter.cpp
Outdated
Show resolved
Hide resolved
Examples/Io/Performance/ActsExamples/Io/Performance/VertexPerformanceWriter.cpp
Outdated
Show resolved
Hide resolved
Examples/Io/Performance/ActsExamples/Io/Performance/VertexPerformanceWriter.cpp
Outdated
Show resolved
Hide resolved
Tests/UnitTests/Core/Vertexing/AdaptiveMultiVertexFitterTests.cpp
Outdated
Show resolved
Hide resolved
that's the thing (if i understand correctly). previously we would use the vertex position, but that gives an inconsistent parameter set and an inconsistent covariance, which I found confusing / surprising. |
Co-authored-by: Andreas Stefl <stefl.andreas@gmail.com>
…sso/acts into fitted-params-to-fitted-momenta
Thanks a lot for the review!
Yes, the model assumes that the position of the track is exactly at the reconstructed vertex.
The full refitted track parameters would be Since the vertex fitting model does not provide covariances for the impact parameters, we previously used the vertex covariance matrix to compute them. For example One could argue that we could set |
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.
do we know if this interface is consumed in Athena? if not we can go forward and merge this
Let's get this in for v29! |
…ed-params-to-fitted-momenta
…sso/acts into fitted-params-to-fitted-momenta
Hey @felix-russo, @andiwand. I realize now that the output of this is extensively used in Athena. In any case, this will need some amount of validation. |
Oh really? I thought they didn't care about the refitted momenta?
Egoistically, I would like to get this in as fast as possible to continue working on the negative AMVF variances. However, I realize that it's you who will have to pick up the pieces. So, in the end, it's your call!
I am happy to provide it (please let me know what you would like to see). |
In both the IVF and AMVF tool we construct |
The output of a vertex fitter is
Previously, the track momenta from the vertex fit were saved as
GenericTrackParameters
, where we setd0 = z0 = 0
. For the corresponding covariance matrices, we partly used incorrect values (one cannot, in fact, compute entries likeCov(d0, phi)
orCov(z0, z0)
asd0
andz0
are not part of the vertex fitting model).In this PR,
fittedParams
are replaced byfittedMomenta
(i.e., a 3 vector + its covariance matrix). My aim is