3.1.1.4.1.18. opengate.geometry.VolumeManager

3.1.1.4.1.18.1. Module Contents

3.1.1.4.1.18.1.1. Classes

VolumeManager

Implementation of G4VUserDetectorConstruction.

3.1.1.4.1.18.1.2. Attributes

__world_name__

opengate.geometry.VolumeManager.__world_name__ = 'world'[source]
class opengate.geometry.VolumeManager.VolumeManager(simulation)[source]

Implementation of G4VUserDetectorConstruction. In ‘Construct’ function, build all volumes in the scene. Keep a list of solid, logical volumes, physical volumes, materials.

__del__()[source]
__str__()[source]

Return str(self).

__getstate__()[source]

This is important : to get actor’s outputs from a simulation run in a separate process, the class must be serializable (pickle). The g4 material databases and the info_volume containing volume from solid have to be removed first.

get_volume_user_info(name)[source]
new_solid(solid_type, name)[source]
get_solid_info(user_info)[source]

Temporary build a solid from the user info, in order to retrieve information (volume etc). Can be used before initialization

get_volume_depth(volume_name)[source]
_pop_keys_unused_by_solid()[source]
add_volume(vol_type, name)[source]
add_volume_from_solid(solid, name)[source]
add_material_database(filename)[source]
dump_volumes()[source]
dump_tree_of_volumes()[source]
_add_volume_to_tree(already_done, tree, vol)[source]