-
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
fix: G4 material converter #1803
fix: G4 material converter #1803
Conversation
Codecov Report
@@ Coverage Diff @@
## main #1803 +/- ##
=======================================
Coverage 49.54% 49.54%
=======================================
Files 407 407
Lines 22618 22618
Branches 10318 10318
=======================================
Hits 11207 11207
Misses 4230 4230
Partials 7181 7181 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
📊 Physics performance monitoring for 9a8774eFull report VertexingSeedingCKFAmbiguity resolutionTruth tracking (Kalman Filter)Truth tracking (GSF) |
@@ -301,12 +303,14 @@ std::shared_ptr<Acts::HomogeneousSurfaceMaterial> | |||
Acts::Geant4MaterialConverter::surfaceMaterial(const G4Material& g4Material, | |||
ActsScalar original, | |||
ActsScalar compressed) { | |||
assert(g4Material.GetNumberOfElements() == 1); |
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.
In fact, if is a compound, one would have to do the averaging ...
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.
followed up on this here #1805
nucleus charge VS effective mass
somehow there is no nice solution to get the relative atomic mass in G4 so I had to go through the element class