Celeritas  0.5.0-57+aeecb15
Public Member Functions | List of all members
celeritas::g4vg::LogicalVolumeConverter Class Reference

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.
 

Detailed Description

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.

Member Function Documentation

◆ operator()()

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.


The documentation for this class was generated from the following files: