-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
GDML: Fix material properties #11888
GDML: Fix material properties #11888
Conversation
Can one of the admins verify this patch? |
Add missing conversion of const property to 1x1 GDML matrix.
@phsft-bot build |
Starting build on |
Remove missing line from earlier material commit.
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.
@MarkusFrankATcernch there are some changes related to units and clang-format-only that should not appear, can you please remove them?
geom/gdml/src/TGDMLWrite.cxx
Outdated
@@ -728,7 +728,6 @@ XMLNodePointer_t TGDMLWrite::CreateAtomN(Double_t atom, const char * unit) | |||
{ | |||
const TString fltPrecision = TString::Format("%%.%dg", fFltPrecision); | |||
XMLNodePointer_t atomN = fGdmlE->NewChild(nullptr, nullptr, "atom", nullptr); | |||
if ( gGeoManager->GetDefaultUnits() != TGeoManager::kRootUnits ) atom /= 1e19; // Correct for G4 unit system |
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.
This is unrelated to the PR
geom/gdml/src/TGDMLWrite.cxx
Outdated
@@ -741,7 +740,6 @@ XMLNodePointer_t TGDMLWrite::CreateDN(Double_t density, const char * unit) | |||
{ | |||
const TString fltPrecision = TString::Format("%%.%dg", fFltPrecision); | |||
XMLNodePointer_t densN = fGdmlE->NewChild(nullptr, nullptr, "D", nullptr); | |||
if ( gGeoManager->GetDefaultUnits() != TGeoManager::kRootUnits ) density /= 1e16; // Correct for G4 unit system |
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.
This is unrelated to the PR
@phsft-bot build |
Starting build on |
@MarkusFrankATcernch these commits should be squashed unless you want to do an interactive rebase and merge some of them manually. It does not make sense to have commits like "re-introducing bug to maximize number of commits" ;-) |
@agheata How is a "squash" done ? I am not at all a git expert....actually git is my outspoken enemy! |
I can do it from the git web interface when merging, but this will squash all commits into one. Otherwise, if your branch started after say commit #N, you can locally rebase interactively the branch on top of that commit using |
@agheata Will you do the "squash" please? I have no real clue what to type to get there .... |
Sure, I will |
@agheata Thanks a lot! |
This Pull request:
<atom>
attributes.const property
to the TGeoManager.Changes or fixes:
Creation of GDML files understood by Geant4
Checklist:
This PR fixes #