Skip to content
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

[gdmlFile] optionally import physvol below top level #860

Conversation

wdconinc
Copy link
Contributor

@wdconinc wdconinc commented Aug 4, 2021

This allows syntax like

  <detectors>
    <detector id="1" name="FT_MT" type="DD4hep_GdmlDetector" vis="InvisibleWithChildren">
      <gdmlFile ref="GdmlDetector.gdml" physvol="lvUpstreamRegion_0"/>
      <parent name="/world"/>
    </detector>
  </detectors>

to only load the specific physvol in examples/ClientTests/compact/GdmlDetector.gdml.

The benefit of this is to allow imports of gdml assemblies or volumes into the existing world without having to import a separate gdml world. This can be used to great effect when there would otherwise be overlaps between volumes placed by dd4hep and the world volume in gdml.

Comments welcome.

BEGINRELEASENOTES

  • Optionally import gdml physvol below top level, avoiding world

ENDRELEASENOTES

This allows syntax like
```xml
  <detectors>
    <detector id="1" name="FT_MT" type="DD4hep_GdmlDetector" vis="InvisibleWithChildren">
      <gdmlFile ref="GdmlDetector.gdml" physvol="lvUpstreamRegion_0"/>
      <parent name="/world"/>
    </detector>
  </detectors>
```
to only load the specific `physvol` in `examples/ClientTests/compact/GdmlDetector.gdml`.
@MarkusFrankATcernch
Copy link
Contributor

This looks like a valid enhancement of the GDML plugin.

@wdconinc
Copy link
Contributor Author

Failing check on dev3/x86_64-centos7-clang10-opt currently also fails on master itself.

@MarkusFrankATcernch MarkusFrankATcernch merged commit 5dbf9b8 into AIDASoft:master Aug 10, 2021
@wdconinc wdconinc deleted the gdml-plugins-import-top-level-volume-instead-of-world branch September 23, 2021 19:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants