3.10.1.16. opengate.physics

3.10.1.16.1. Attributes

cut_particle_names

3.10.1.16.2. Classes

UserLimitsPhysics

Class to be registered to physics list.

Region

FIXME: Documentation of the Region class.

3.10.1.16.3. Functions

translate_particle_name_gate2G4(name)

Convenience function to translate from names

3.10.1.16.4. Module Contents

opengate.physics.cut_particle_names[source]
opengate.physics.translate_particle_name_gate2G4(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.

physics_engine = None[source]
g4_step_limiter_storage[source]
g4_special_user_cuts_storage[source]
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]
physics_engine = None[source]
root_logical_volumes[source]
g4_region = None[source]
g4_user_limits = None[source]
g4_production_cuts = None[source]
_g4_region_initialized = False[source]
_g4_user_limits_initialized = False[source]
_g4_production_cuts_initialized = False[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]