-
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
fix: Skipping un-physical steps in material mapping (#1882) #1968
fix: Skipping un-physical steps in material mapping (#1882) #1968
Conversation
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.
Looks great, thanks a lot for solving this issue !
Codecov Report
@@ Coverage Diff @@
## main #1968 +/- ##
=======================================
Coverage 49.83% 49.83%
=======================================
Files 415 415
Lines 23593 23593
Branches 10681 10681
=======================================
Hits 11758 11758
Misses 4330 4330
Partials 7505 7505 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
📊 Physics performance monitoring for 934306fFull report VertexingSeedingCKFAmbiguity resolutionTruth tracking (Kalman Filter)Truth tracking (GSF) |
cba1ebf
to
df87f7a
Compare
@Corentin-Allaire , do you understand why the tests fail? |
Yes now that you have fixed the issue in the material mapping the map created in the test are different from the on in the reference.
|
Yes, Thanks. My question was if we expect the tests to fail. This PR skips empty steps, so we did have empty steps in the input file used in the tests, which were messing up the results there as well? |
If I understood you MR correctly those empty step appear a the end of the detector so we probably have some in all of our files. |
5a615fd
to
ec4e70b
Compare
ec4e70b
to
6240193
Compare
This PR fixes #1882.
The reason why the outer boundary was not seen is due to the accumulation of invalid material on it. Skipping un-physical steps (step length = 0) restores a sane behaviour of the mapping procedure.
I have also added a check on existence of the
event_id
branch in theTChain
. If the branch doesn't exist, the batch size is evaluated to be 1.@Corentin-Allaire @goetzgaycken