3.1.1.6.1.4. opengate.physics.helpers_physics

3.1.1.6.1.4.1. Module Contents

3.1.1.6.1.4.1.1. Functions

create_phys_list(physics)

set_cuts_NOT_USED_YET(physics, g4_PhysList)

create_modular_physics_list_class(pl_class)

Create a class (not on object!) which:

modular_physics_list_constructor(self)

Constructor of the above, dynamically created class.

modular_physics_list_destructor(self)

For debug

create_modular_physics_list(pl_name)

Dynamically create a class with the given PhysicList

3.1.1.6.1.4.1.2. Attributes

available_additional_physics_lists

opengate.physics.helpers_physics.create_phys_list(physics)[source]
opengate.physics.helpers_physics.set_cuts_NOT_USED_YET(physics, g4_PhysList)[source]
opengate.physics.helpers_physics.available_additional_physics_lists = ['G4EmStandardPhysics_option1', 'G4EmStandardPhysics_option2', 'G4EmStandardPhysics_option3',...[source]
opengate.physics.helpers_physics.create_modular_physics_list_class(pl_class)[source]

Create a class (not on object!) which: - inherit from g4.G4VModularPhysicsList - register a single G4 PhysicList (G4VPhysicsConstructor) - is named with the name of this PhysicList

opengate.physics.helpers_physics.modular_physics_list_constructor(self)[source]

Constructor of the above, dynamically created class. - call the constructor of the super class (G4VModularPhysicsList) - Create and register the physic list (G4VPhysicsConstructor)

opengate.physics.helpers_physics.modular_physics_list_destructor(self)[source]

For debug

opengate.physics.helpers_physics.create_modular_physics_list(pl_name)[source]

Dynamically create a class with the given PhysicList Only possible if the class exist in g4