3.1.2.11. opengate.physics

3.1.2.11.1. Module Contents

3.1.2.11.1.1. Classes

UserLimitsPhysics

Class to be registered to physics list.

Region

FIXME: Documentation of the Region class.

OpticalSurface

Class used to create an Optical Surface between two volumes

3.1.2.11.1.2. Functions

translate_particle_name_gate_to_geant4(name)

Convenience function to translate from names

get_enum_values(enum_class)

load_optical_surface_properties_from_xml(...)

This function extracts the information related to multiple surfaces

load_optical_properties_from_xml(...)

This function parses an xml file containing optical material properties.

create_g4_optical_properties_table(...)

Creates and fills a G4MaterialPropertiesTable with values from a dictionary created by a parsing function,

3.1.2.11.1.3. Attributes

cut_particle_names

opengate.physics.cut_particle_names[source]
opengate.physics.translate_particle_name_gate_to_geant4(name)[source]

Convenience function to translate from names used in Gate to those in G4, if necessary. Concerns e.g. ‘electron’ -> ‘e-’

class opengate.physics.UserLimitsPhysics[source]

Bases: opengate_core.G4VPhysicsConstructor

Class to be registered to physics list.

It is essentially a refined version of StepLimiterPhysics which considers the user’s particles choice of particles to which the step limiter should be added.

close()[source]
ConstructParticle()[source]

Needs to be defined because C++ base class declares this as purely virtual member.

ConstructProcess()[source]

Overrides method from G4VPhysicsConstructor that is called when the physics list is constructed.

class opengate.physics.Region(*args, **kwargs)[source]

Bases: opengate.base.GateObject

FIXME: Documentation of the Region class.

user_info_defaults[source]
reset()[source]
close()[source]
release_g4_references()[source]
to_dictionary()[source]
from_dictionary(d)[source]
need_step_limiter()[source]
need_user_special_cut()[source]
associate_volume(volume)[source]
dump_production_cuts()[source]
initialize()[source]

This method wraps around all initialization methods of this class.

It should be called from the physics_engine, after setting the self.physics_engine attribute.

initialize_volume_dictionaries()[source]
initialize_g4_region()[source]
initialize_g4_production_cuts()[source]
initialize_g4_user_limits()[source]
initialize_em_switches()[source]
opengate.physics.get_enum_values(enum_class)[source]
opengate.physics.load_optical_surface_properties_from_xml(surface_properties_file, surface_name)[source]

This function extracts the information related to multiple surfaces from SurfaceProperties.xml

opengate.physics.load_optical_properties_from_xml(optical_properties_file, material_name)[source]

This function parses an xml file containing optical material properties. Fetches property elements and property vector elements.

Returns a dictionary with the properties or None if the material is not found in the file.

opengate.physics.create_g4_optical_properties_table(material_properties_dictionary)[source]

Creates and fills a G4MaterialPropertiesTable with values from a dictionary created by a parsing function, e.g. from an xml file. Returns G4MaterialPropertiesTable.

class opengate.physics.OpticalSurface(*args, **kwargs)[source]

Bases: opengate.base.GateObject

Class used to create an Optical Surface between two volumes

G4OpticalSurface is used to create an optical surface

G4LogicalBorderSurface is used to assign the optical surface between two volumes.

user_info_defaults[source]
release_g4_references()[source]
close()[source]
reset()[source]
__getstate__()[source]
initialize()[source]