-
Notifications
You must be signed in to change notification settings - Fork 168
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(gx2f): new error
UsedUnreachableMeasurements
(#3653)
This fixes a super rare bug. 1 in 17k segfaulted at `calculateTrackQuantities(track)`. This was, because the `tipIndex` was set outside the actual track. The wrong `tipIndex` comes from the last propagation where we didn't try to hit all `inputMeasurements` on `insertExternalSurface`s. The created track contains measurement information, that is missing in the final track. We could think about having this as an outlier or refit ignoring the missed measurements. For now, I would just return an error, because: - We have no proper outlier definition in the GX2F yet - Refitting should be maybe a user-task. The whole refitting logic with a dropped measurement might make the whole fitter quite complicated - The error is so rare, that it is fine, to just avoid crashing We discussed an would refrain from creating a unit test, since it is quite difficult to reproduce this edge case in an isolated environment. Due to its rarity, it might be not worth the time.
- Loading branch information
Showing
3 changed files
with
36 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters