-
Notifications
You must be signed in to change notification settings - Fork 6
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
G4TransportationWithMsc: Always update momentum direction #76
G4TransportationWithMsc: Always update momentum direction #76
Conversation
This fixes a very rare bug when G4Transportation runs without field, G4TransportationWithMsc is allowed to make multiple internal steps, and the last internal step does *not* sample scattering (because the track is either ranging out, or the step is very small). In this case G4Transportation will reset fMomentumChanged = false because linear propagation does not change the momentum direction, when in fact earlier internal steps updated the direction due to scattering. Instead always update the momentum direction because the above is rare. Numerical differences are observed in the simulation histories, but not statistically significant.
A new Pull Request was created by @hahnjo (Jonas Hahnfeld) for branch cms/v11.1.2. @smuzaffar, @iarspider, @aandvalenzuela, @cmsbuild can you please review it and eventually sign? Thanks. |
please test |
-1 Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-bbaa5c/35405/summary.html |
-1 Failed Tests: UnitTests The following merge commits were also included on top of IB + this PR after doing git cms-merge-topic:
You can see more details here: Unit TestsI found 1 errors in the following unit tests: ---> test testTauEmbeddingProducers had ERRORS Comparison SummarySummary:
|
This PR has nothing to do with the failed unit test. Regression for standard tests is seen as expected. Should tests be resubmitted? |
@civanch , are you happy with this change? |
+externals lets get this in and update cmsdist/geant4.spec |
This pull request is fully signed and it will be integrated in one of the next cms/v11.1.2 IBs (but tests are reportedly failing). This pull request will now be reviewed by the release team before it's merged. @antoniovilela, @rappoccio, @sextonkennedy (and backports should be raised in the release meeting by the corresponding L2) |
This fixes a very rare bug when
G4Transportation
runs without field,G4TransportationWithMsc
is allowed to make multiple internal steps, and the last internal step does not sample scattering (because the track is either ranging out, or the step is very small). In this caseG4Transportation
will resetfMomentumChanged = false
because linear propagation does not change the momentum direction, when in fact earlier internal steps updated the direction due to scattering.Instead always update the momentum direction because the above is rare. Numerical differences are observed in the simulation histories, but not statistically significant.