3.1.2.11. opengate.physics
¶
3.1.2.11.1. Module Contents¶
3.1.2.11.1.1. Classes¶
Class to be registered to physics list. |
|
FIXME: Documentation of the Region class. |
|
Class used to create an Optical Surface between two volumes |
3.1.2.11.1.2. Functions¶
Convenience function to translate from names |
|
|
|
This function extracts the information related to multiple surfaces |
|
This function parses an xml file containing optical material properties. |
|
Creates and fills a G4MaterialPropertiesTable with values from a dictionary created by a parsing function, |
3.1.2.11.1.3. Attributes¶
- 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.
- class opengate.physics.Region(*args, **kwargs)[source]¶
Bases:
opengate.base.GateObject
FIXME: Documentation of the Region class.
- 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.