Repository navigation
Conversation
This fixes the safety of the relocating VecGeom navigator with the parallel world and adds a unit test. - The nodes were searched only up to the caller's bound, and the safety never exceeded it. - Tracks far from any node were therefore transported differently, which caused the deficit of TPC tracks with at least 150 clusters. - The node search now goes up to the full safety. https://its.cern.ch/jira/browse/O2-7358
…ator This fixes a spurious zero-length step after a crossing in the relocating VecGeom navigator and adds unit tests. - In a field Geant4 can end a step slightly short of the face it crosses. - The lean locate finds the next volume beyond the face, so the next step from Geant4's point was a zero-step exit and a 1 nm visit to the mother. - At the TPC inner field cage this gave a spurious TPC track reference for about 8 % of slow near-radial protons. - Such a zero step is now redone from where the step direction enters the volume. https://its.cern.ch/jira/browse/O2-7355
This branch has not been deployed
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is fixing two bugs in the relocating VecGeom navigator (
G4.navmode=kVecGeom) that showed up in the kVecGeom GRID validation.With the parallel world,
ComputeSafetyclipped the safety to the caller's bound. Geant4 then saw smaller safeties everywhere, which changed the transport far from any parallel-world node and gave a 4 % deficit of TPC tracks with at least 150 clusters, mostly slow secondary protons. With the full safety, the transport with and without the parallel world is identical away from the nodes. On 23 GRID seeds the deficit is gone: secondary protons +7.0 ± 2.4 %, bulk unchanged.In a field, Geant4 can end a step a little short of the face it crosses. The next step from that point was then a zero-step exit, followed by a 1 nm visit to the mother volume. At the TPC inner field cage this produced a spurious TPC track reference for about 8 % of slow near-radial protons. Such a zero step is now redone from where the step direction enters the volume. In a 2000-event proton gun the spurious references go from 8 % to 0.
Both fixes come with unit tests. Navigation with kTGeo and kG4 is not affected. Note that the wider safety search may cost about 2 % CPU in pp with the parallel world; this is not settled yet.
Fixes https://its.cern.ch/jira/browse/O2-7358
Relates to https://its.cern.ch/jira/browse/O2-7355