Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(gx2f): constrain update to initial volume (#3411)
During the Athena integration, I ran again into the issue described in - #3267 This PR does not fix the navigation itself but avoids the GX2F ending up in a state, where the above issue would occur. I investigated different approaches to avoid ending up in a situation, where an FPE would occur. ### Simulate division The FPE occurs, when we are calling the path correction. Checking and aborting if the x-y components for position and direction are zero would be sufficient. However, we should also apply the transformation to the position first, which seemed a bit difficult in the actor. Using this approach too many tracks were filtered out. I didn't not check, if all of them would fail anyhow, though. ### Constrain parameters (Used) I had the issue only, when starting from a volume, that was different from the initial volume of the starting parameters. However, there were also cases, where I switched volumes and didn't crash. After looking into all non-crashing cases (analysed 13 tracks, because then the Athena truth tracking crashed), I saw, that all of them would later end with the error `NotEnoughMeasurements. Therefore, we effectively do not lose any tracks but detect their failure earlier. In the physmon, we also see with larger statistics no change to the current behaviour. ## Testing I built a new detector for testing this behaviour. I tried to reuse the old one by adding extra parameters, but I didn't succeed. Somehow, I had to flip the detector to force the volume change. I also added a visualisation script to it, that generates an `.obj` of the detector and draws the measurements. This one I used for the development since the beginning but didn't find a proper place to put it in. The new detector might be complex enough, that we maybe want to visualise it during development. <img width="1210" alt="image" src="https://github.com/user-attachments/assets/dcf5b91f-f98c-4511-8507-0fc7e4a23ace"> ## Blocked - #3463
- Loading branch information