Celeritas
0.5.0-86+4a8eea4
|
Convert a Geant4 base LV to a VecGeom LV. More...
#include <LogicalVolumeConverter.hh>
Public Types | |
Type aliases | |
using | arg_type = G4LogicalVolume const & |
using | result_type = vecgeom::LogicalVolume * |
using | VecLv = std::vector< G4LogicalVolume const * > |
Public Member Functions | |
LogicalVolumeConverter (SolidConverter &convert_solid) | |
Construct with solid conversion helper. | |
result_type | operator() (arg_type) |
Convert a Geant4 logical volume to a VecGeom LogicalVolume. More... | |
VecLv | make_volume_map () const |
Construct a mapping from VolumeId to G4 volume ID. | |
Convert a Geant4 base LV to a VecGeom LV.
This does not convert or add any of the daughters, which must be placed as physical volumes.
auto celeritas::g4vg::LogicalVolumeConverter::operator() | ( | arg_type | lv | ) |
Convert a Geant4 logical volume to a VecGeom LogicalVolume.
This uses a cache to look up any previously converted volume.