Celeritas 0.7.0-dev.79+develop.b3dc2e108
|
Extra metadata for the "background" volume. More...
#include <OrangeInput.hh>
Public Member Functions | |
operator bool () const | |
Whether the background metadata is used. | |
Public Attributes | |
VolumeId | label |
LocalVolumeId | volume |
Extra metadata for the "background" volume.
Unlike a regular volume, the "background" represents a volume rather than a volume instance. Note that this can be an explicit volume (i.e., made of booleans) or implicit (i.e., have the lowest "Z order").
This is something of a hack: the background volume in a orangeinp::UnitProto
is annotated by setting the label to VolumeInstanceId{}
in g4org::ProtoConstructor
; then converted from a proto to a UnitInput
by the InputBuilder
, and finally in g4org::Converter
the empty volume instance IDs are replaced by (1) the world VolumeInstanceId
for the top-level background volume, or (2) the VolumeId
corresponding to the unit's label.