| Summary: | neutrals tracking fails under certain circumstances | ||
|---|---|---|---|
| Product: | Geant4 | Reporter: | Richard Jones <richard.t.jones> |
| Component: | processes/transportation | Assignee: | John Apostolakis <John.Apostolakis> |
| Status: | RESOLVED FIXED | ||
| Severity: | minor | CC: | laurie.nevay |
| Priority: | P4 | ||
| Version: | 10.2 | ||
| Hardware: | All | ||
| OS: | All | ||
| Attachments: | Draft patch for issues | ||
|
Description
Richard Jones
2019-03-04 15:54:10 CET
Thank you for the clear report and proposed fix. My first evaluation is that your proposed fix is correct. I will need to evaluate it a bit more carefully, and test it further. Once the fix is confirmed (or revised) I will include it in the subsequent patch(es) and the development branch (for the next beta and full release.) Best regards, John Apostolakis Thanks again for your detailed explanations. Reading it again carefully, thinking about the use cases and inspecting the code, it was clear to me that you exposed two different bugs: - For neutral particles the 'flag' that a particle is looping should simply be false. This was overwritten in G4CoupledTransportation using the G4PropagatorInField's value - which is incorrect. - In the case that a global field does not exist, but at least one local fields exists, the values held in G4PropagatorInField must be reset when tracking starts for a new charged track (or one which has a different force associated with it). I am creating revised versions of G4CoupledTransportation and G4Transportation which will address these problems, and will share them with you for your feedback. Best regards, John Apostolakis Created attachment 588 [details]
Draft patch for issues
Closing the issue as it appears resolved. |