-
Notifications
You must be signed in to change notification settings - Fork 6
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
Support for "assembly" in Gdml geometries #3
Comments
In a first guess, I imagine this issue is more connected with The only way it might affect to Regarding the |
…ry to associate unequivocally a logical volume to a physical volume. This is a workaround for assembly support (#3).
One additional problem I just noticed is that the names generated for the physical volumes (e.g. |
A good geometry to test if this features is working: https://raw.githubusercontent.com/iaxo/detector-geometry/master/experiment/BabyIAXO/gdml.kt/gdml/reference/Setup.gdml?token=AIRFBEAVZVGQXCZMHQFPPB3A3CMG2 |
This PR #30 partially solves this. However I detected a bug in previous Geant4 version (current "official" REST Geant4 version) which makes this impossible to fix. This is solved in more recent versions such as 11.0.0 |
As far as I know, until now we had been considering only Gdml geometries which were one level deep in the world, or what is the same, didn't have Gdml assemblies. Gdml assembly is a feature I wasn't aware of until recently were you can group different groups of physical volumes into one making it easier to place and rotate the volume. Also in the root event viewer, you can see a hierarchy of volumes, and can turn on/off visualization for the whole assembly as you can see on the image below.
You can explore one geometry defined this way in: https://lfna.unizar.es/iaxo/iaxo-geometry/-/blob/555ac3a2210cf2469dbb4539195ecbdec2a42d8d/BabyIAXO/experimental/Setup.gdml.
I think using assemblies is the most efficient way to manage complex geometries, however it makes the geometry more complex, now its not just a flat list of volumes that you can iterate. This brings additional problems. One such problem that happens when you try to launch a simulation in the geometry I just linked, is that
restG4
does not find thegas
volume, since its not defined at the root level, but its under theChamber
assembly. This issue has an easy fix but I am sure we would need to modify many other things ingeant4lib
, and perhaps the framework, in order to fully support assemblies.The text was updated successfully, but these errors were encountered: