-
Notifications
You must be signed in to change notification settings - Fork 157
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
feat: particle killing 4 Geant4 and refactor user actions #2057
feat: particle killing 4 Geant4 and refactor user actions #2057
Conversation
Codecov Report
@@ Coverage Diff @@
## main #2057 +/- ##
=======================================
Coverage 49.37% 49.37%
=======================================
Files 427 427
Lines 24779 24779
Branches 11430 11430
=======================================
Hits 12234 12234
Misses 4484 4484
Partials 8061 8061 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
Makes totally sense, thanks, @benjaminhuth |
As of your question, I think this comes from the singleton usage/desing of Geant4 in the past. But as of the chances you did, they are all in line what Geant4 expects to do - and were just missing on our side. |
Oh - I misread this - I will check, I was under the impression that you can attach different UserActions, just not the the same one twice, I will check that. |
📊 Physics performance monitoring for 7cda786Full report VertexingSeedingCKFAmbiguity resolutionTruth tracking (Kalman Filter)Truth tracking (GSF) |
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.
nice catch - well done! left a few questions but looks good in general to me
Examples/Algorithms/Geant4/include/ActsExamples/Geant4/ActsSteppingActionList.hpp
Show resolved
Hide resolved
Examples/Algorithms/Geant4/include/ActsExamples/Geant4/ActsSteppingActionList.hpp
Show resolved
Hide resolved
@asalzburger I implemented the particle killing now with I also directly included the particle killing into |
I wonder if we could have a more dedicated test for that. Or will the full chain actually break if you remove it? I only worry that we might silently remove rouge particles which should not be there in the first place and we will catch the error at a different place later in time |
Out Geant4 algorithm allows to pass
std::vector
s of user actions. However, multiple actions per type seem not to be supported by Geant4. This changes this to allow only one user action per type (run, event, particle, step).I'm not sure if this was possible in former Geant4 versions, there is also a comment in the Geant4 source code that indicates it is possible to add multiple actions per type. However, this is not the case.