Usage¶
Main interface¶
The expertsystem
consists of three main components: particle
, reaction
, and amplitude
that build on each other. Here’s a small example of how to use them!
import expertsystem as es
pdg = es.particle.load_pdg()
pdg.filter(lambda p: p.spin == 2 and p.charmness).names
{'D(2)*(2460)+',
'D(2)*(2460)-',
'D(2)*(2460)0',
'D(2)*(2460)~0',
'D(s2)*(2573)+',
'D(s2)*(2573)-'}
result = es.reaction.generate(
initial_state="J/psi(1S)",
final_state=["K0", "Sigma+", "p~"],
allowed_interaction_types="strong",
formalism_type="canonical-helicity",
)
import graphviz
dot = es.io.asdot(result, collapse_graphs=True)
graphviz.Source(dot)
Finally, you use the amplitude
module to convert these transitions into a mathematical description that you can use to fit your data and perform Partial Wave Analysis!
Advanced¶
Each of the expertsystem
’s sub-modules offer functionality to handle more advanced reaction types. The following notebooks illustrate how use them.