3.1.2.17. opengate.userhooks

3.1.2.17.1. Module Contents

3.1.2.17.1.1. Functions

get_ions_generated_per_spot(simulation_engine)

check_production_cuts(simulation_engine)

Function to be called by opengate after initialization

user_hook_dump_material_properties(simulation_engine)

user_hook_em_switches(simulation_engine)

user_hook_active_regions(simulation_engine)

opengate.userhooks.get_ions_generated_per_spot(simulation_engine)[source]
opengate.userhooks.check_production_cuts(simulation_engine)[source]

Function to be called by opengate after initialization of the simulation, i.e. when G4 volumes and regions exist. The purpose is to check whether Geant4 has properly set the production cuts in the specific region.

The value max_step_size is stored in the attribute hook_log which can be accessed via the output of the simulation.

opengate.userhooks.user_hook_dump_material_properties(simulation_engine)[source]
opengate.userhooks.user_hook_em_switches(simulation_engine)[source]
opengate.userhooks.user_hook_active_regions(simulation_engine)[source]