Celeritas 0.7.0-dev.79+develop.b3dc2e108
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
celeritas::BackgroundInput Struct Reference

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
 

Detailed Description

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.


The documentation for this struct was generated from the following file: