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: List[Union[str, Tuple[str, List[float]]]], final_state: List[Union[str, Tuple[str, List[float]]]], particles: expertsystem.data.ParticleCollection = {}, allowed_intermediate_particles: Optional[List[str]] = None, interaction_type_settings: Dict[expertsystem.state.propagation.InteractionTypes, expertsystem.state.propagation.InteractionNodeSettings] = None, formalism_type: str = 'helicity', topology_building: str = 'isobar', number_of_threads: int = 4, propagation_mode: str = 'fast', reload_pdg: bool = False)[source]¶ Bases:
object
Main handler for decay topologies.
-
find_solutions
(graph_setting_groups: Dict[float, List[Tuple[expertsystem.topology.StateTransitionGraph, Dict[int, expertsystem.state.propagation.InteractionNodeSettings]]]]) → Tuple[List[expertsystem.topology.StateTransitionGraph], List[str]][source]¶ Check for solutions for a specific set of interaction settings.
-
property
formalism_type
¶
-
prepare_graphs
() → Dict[float, List[Tuple[expertsystem.topology.StateTransitionGraph, Dict[int, expertsystem.state.propagation.InteractionNodeSettings]]]][source]¶
-
set_allowed_interaction_types
(allowed_interaction_types: List[expertsystem.state.propagation.InteractionTypes]) → None[source]¶
-
set_topology_builder
(topology_builder: expertsystem.topology.SimpleStateTransitionTopologyBuilder) → None[source]¶
-
write_amplitude_model
(solutions: list, output_file: str) → None[source]¶ Generate an amplitude model from the solutions.
The type of amplitude model (
HelicityAmplitudeGenerator
orCanonicalAmplitudeGenerator
) is determined from theformalism_type
that was chosen when constructing theStateTransitionManager
.
-
-
load_default_particles
() → expertsystem.data.ParticleCollection[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
!