Interactive examples

This page exposes some of the functionality of the expertsystem as online utilities.

Check allowed reactions

The expertsystem can be used to check whether a transition between an initial and final state is violated by any conservation rules:

import expertsystem as es

es.check_reaction_violations(
    initial_state="pi0",
    final_state=["gamma", "gamma", "gamma"],
)

Investigate intermediate resonances

The expertsystem is designed to be a tool when doing Partial Wave Analysis. Its main features are therefore thegenerate_transitions() and generate_amplitudes() functions. Here’s a small applet with which to visualize these transitions online:

from graphviz import Source

import expertsystem as es

result = es.generate_transitions(
    initial_state=("J/psi(1S)", [-1, +1]),
    final_state=["p", "p~", "eta"],
    allowed_interaction_types="strong",
)
graphs = result.collapse_graphs()
Source(es.io.convert_to_dot(graphs))

This example takes around 2 minutes to compute on Binder.