ui

Module contents

Main interface of the expertsystem.

This module contains the functions that you need for the most common use cases of the expertsystem.

class StateTransitionManager(initial_state, final_state, allowed_intermediate_particles=None, interaction_type_settings=None, formalism_type='helicity', topology_building='isobar', number_of_threads=4, propagation_mode='fast')[source]

Bases: object

Main handler for decay topologies.

add_final_state_grouping(fs_group)[source]
find_solutions(graph_setting_groups)[source]

Check for solutions for a specific set of interaction settings.

property formalism_type
Return type

str

prepare_graphs()[source]
set_allowed_interaction_types(allowed_interaction_types)[source]
set_topology_builder(topology_builder)[source]
write_amplitude_model(solutions, output_file)[source]

Generate an amplitude model from the solutions.

The type of amplitude model (HelicityAmplitudeGenerator or CanonicalAmplitudeGenerator) is determined from the formalism_type that was chosen when constructing the StateTransitionManager.

Return type

None

load_default_particle_list()[source]

Load the default particle list that comes with the expertsystem.

Warning

This resets all particle definitions and the removes particles that don’t exist in the particle list that ships with the expertsystem!

Return type

None

class InteractionTypes[source]

Bases: enum.Enum

Types of interactions in the form of an enumerate.

EM = 2
Strong = 1
Weak = 3