-
Notifications
You must be signed in to change notification settings - Fork 35
Upgrade to latest g4hepem #375
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
Upgrade to latest g4hepem #375
Conversation
18633c3
to
31cbce4
Compare
Can one of the admins verify this patch? |
2b21932
to
7ffe5ef
Compare
@@ -412,17 +415,38 @@ void CopySurfaceModelToGPU() | |||
#endif | |||
} | |||
|
|||
G4HepEmState *InitG4HepEm() | |||
G4HepEmState *InitG4HepEm(G4HepEmConfig *hepEmConfig) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since these calls are a bit more complex now we could think of eventually moving them to a common header
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Noted in the codimd
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me, thank you for the changes!
This PR updates AdePT such that it can use the latest version of G4HepEm.
It enables to use the perRegion parameters in G4HepEm.
Furthermore, the positron cut is now used from G4HepEm. The ApplyCut value is taken directly from G4HepEm and not via a global constant. Some default parameters are set correctly. This fixes a bug, as before, if the
MinimalMSCStepLimit
was set, the results were wrong and it could even lead to stalls.This PR will also require updating the CI to the latest tagged version of G4HepEm.
In fact, the fix of the incorrect default parameters changed and fixed the physics:
