k4bench.geometry.references¶
k4bench.geometry.references ¶
Shared rules for DD4hep filesystem and document references.
resolve_local_ref ¶
Return where a local filesystem ref points, or None if unresolved.
An empty ref or one carrying $ is deliberately left to ddsim. Checking
the raw value makes indexing deterministic regardless of the environment.
Source code in k4bench/geometry/references.py
is_geometry_document_ref ¶
Whether DD4hep recursively loads node as a geometry document.
<include> is a document edge wherever DD4hep accepts it.
<includes><file> is also loaded through Detector.fromXML when its
root is not a materials/elements collection.