decay#

to_decay(model: ModelDefinition, to_latex: Callable[[str], str] | None = None) ThreeBodyDecay[source]#
to_decay_chain(chain_definition: DecayChain, initial_state: State, final_state: dict[FinalStateID, State], to_latex: Callable[[str], str] | None = None) ThreeBodyDecayChain[source]#
get_states(model: ModelDefinition, to_latex: Callable[[str], str] | None = None) dict[StateID, State][source]#
get_initial_state(model: ModelDefinition, to_latex: Callable[[str], str] | None = None) State[source]#
get_final_state(model: ModelDefinition, to_latex: Callable[[str], str] | None = None) dict[FinalStateID, State][source]#
get_spectator_id(topology: list[Literal[1, 2, 3] | Topology]) Literal[1, 2, 3][source]#

Get the spectator ID from a reference topology.

>>> get_spectator_id([1, [2, 3]])
1