-
Notifications
You must be signed in to change notification settings - Fork 168
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(Fatras): Photon conversion #597
Conversation
Codecov Report
@@ Coverage Diff @@
## master #597 +/- ##
=======================================
Coverage 49.00% 49.00%
=======================================
Files 331 331
Lines 16549 16549
Branches 7723 7723
=======================================
Hits 8110 8110
Misses 3009 3009
Partials 5430 5430 Continue to review full report at Codecov.
|
82aa586
to
ab3e46e
Compare
ab3e46e
to
acf87f0
Compare
This issue/PR has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
acf87f0
to
528acfd
Compare
a84dda2
to
8f226df
Compare
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.
@FabianKlimpel Thanks for updating this to the new interfaces. The general structure looks good. I did not check the numerics but I assume that they are just copied from existing code. I have some requests on naming and some implementation details below.
I would also ask you to add some unit tests for this physics module. Either as a regression test against a well-known setup or as consistency tests for one or two corner cases, e.g. energy-momentum relation is conserved, direction is reasonable, particle ids are correct. Have a look at how this is done for the existing energy loss and scattering modules.
I saw a few comments that some of the code originates from Geant4. What license was the code initially under?
Fatras/include/ActsFatras/Physics/PhotonConversion/PhotonConversion.hpp
Outdated
Show resolved
Hide resolved
Fatras/include/ActsFatras/Physics/PhotonConversion/PhotonConversion.hpp
Outdated
Show resolved
Hide resolved
Fatras/include/ActsFatras/Physics/PhotonConversion/PhotonConversion.hpp
Outdated
Show resolved
Hide resolved
Fatras/include/ActsFatras/Physics/PhotonConversion/PhotonConversion.hpp
Outdated
Show resolved
Hide resolved
Fatras/include/ActsFatras/Physics/PhotonConversion/PhotonConversion.hpp
Outdated
Show resolved
Hide resolved
Fatras/include/ActsFatras/Physics/PhotonConversion/PhotonConversion.hpp
Outdated
Show resolved
Hide resolved
Fatras/include/ActsFatras/Physics/PhotonConversion/PhotonConversion.hpp
Outdated
Show resolved
Hide resolved
b38ed63
to
146a4be
Compare
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.
@FabianKlimpel Thanks for all the fixes and for adding the unit tests. I have some minor comments and I would recommend to split the single unit test case into multiple ones. After that, this can go in.
Fatras/include/ActsFatras/Physics/PhotonConversion/PhotonConversion.hpp
Outdated
Show resolved
Hide resolved
Fatras/include/ActsFatras/Physics/PhotonConversion/PhotonConversion.hpp
Outdated
Show resolved
Hide resolved
Fatras/include/ActsFatras/Physics/PhotonConversion/PhotonConversion.hpp
Outdated
Show resolved
Hide resolved
Fatras/include/ActsFatras/Physics/PhotonConversion/PhotonConversion.hpp
Outdated
Show resolved
Hide resolved
Fatras/include/ActsFatras/Physics/PhotonConversion/PhotonConversion.hpp
Outdated
Show resolved
Hide resolved
568de96
to
49fc3e3
Compare
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.
@FabianKlimpel Thanks for all the changes. This looks great and can go in. I have found two points in the tests where the documentation was wrong, that could be fixed.
@FabianKlimpel can you resolve the conflicts, and I will merge. |
ee5d61b
to
971dbee
Compare
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.
@FabianKlimpel The test doc is wrong again.
Add photon conversion to Fatras.
Add photon conversion to Fatras.
Add the photon conversion process to the Fatras algorithm in the examples. The photon conversion implementation itself was previously added to Fatras in #597. This adds the command line option and necessary implementation details in the examples algorithm. This also switches constants in the photon conversion implementation to `static const` to make the process compatible with the physics list. Removing the constant member variables re-enables all default implicit constructors and assignment operators. Depends on #726 and can only be merged afterwards.
This PR adds the photon conversion to ActsFatras. This class is a decomposition of the corresponding Geant4 class. Due to #588 this PR remains WIP until the required interface is available.
Closes #189.