-
Notifications
You must be signed in to change notification settings - Fork 176
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: add material conversion + test for TGeo #2496
feat: add material conversion + test for TGeo #2496
Conversation
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 multiple place the factor 2 *
is introduced. Why?
Plugins/TGeo/include/Acts/Plugins/TGeo/TGeoMaterialConverter.hpp
Outdated
Show resolved
Hide resolved
That was a bug - but this code what not yet used, the half length and length was wrongly matched. |
It is indeed the TGeoConversion to change output. Checking this in detail now. |
Invalidated by push of 4cd855a
The change happens in I will verify the correct behaviour and if correct, change the references. |
Codecov Report
@@ Coverage Diff @@
## main #2496 +/- ##
=======================================
Coverage 49.81% 49.81%
=======================================
Files 466 466
Lines 26253 26253
Branches 12054 12054
=======================================
Hits 13077 13077
Misses 4606 4606
Partials 8570 8570 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
Hey @AJPfleger - I have checked that this behaviour is correct now (and have put this information also into the unit tests). Thus, I updated the references. |
The tiny differences in the |
7158a65
to
f460c07
Compare
Invalidated by push of f460c07
Merging this after approval and updating references. |
This PR is part 2 of the odd + detector series: - it promotes the `LayerStructure::Support` to `ProtoSupport`, just as done with the `ProtoBinning`. It sits on top of #2496 and is thus marked blocked.
@asalzburger After updating from v30.0.0 to v30.3.0 I have found that this PR (and specifically the factor of 2 in the
This happens for all of our TPC layers where we create fake boxes that approximate the pad plane readout layers. It turns out if I remove this factor of 2 from a local build these error messages go away, as is the case in v30.0.0. The really strange part is that the code functions completely normally with v30.3.0, passes all CI and performance checks etc. So the error message is somehow anamolous. I'll find a way to suppress it for now but can you comment further on why this change was made and if we should expect this behavior? It says above that this was a bug but the boxes that we build in TGeo have not had any overlap issues and we have a TGeo overlap check in our CI that runs and it does not warn about any overlaps. Perhaps there is some difference in definition or expectation between the Acts geometry and TGeo geometry that we are somehow mixing up? |
This is a first PR in a set of a series PRs to establish the ODD in the new Detector schema.
This particular PR adds the possibility to convert material via
TGeoMaterial
and adds tests for this.It also cleans ups the TGeoSurface converter slightly.
Note:
6.25.01
the unit tests on thisMaterial
conversion test is enables only for ROOT versions after this change.