ComPWA / pdg-api

API for programmatic access to PDG data
https://pdgapi.lbl.gov/doc
Other
0 stars 0 forks source link

Data structure for decay description #2

Open redeboer opened 6 months ago

redeboer commented 6 months ago

Decays are described by a PdgBranchingFraction. Information about decay products can be found by inspecting its description string property.

>>> import pdg
>>> PDG = pdg.connect()
>>> decay = PDG.get("M070.313/2023")
>>> decay.description
'J/psi(1S) --> rho(1700) pi --> pi+ pi- pi0'

It would be handy if this decay information is provided in the form of a data structure à la decaylanguage. Note that this does not always work, however, for instance:

>>> PDG.get("M070.3/2023").description
'J/psi(1S) --> hadrons'
redeboer commented 6 months ago

@mmikhasenko posted issues in this fork for now because the source repo disabled issues. Is there an official place where these issues can/should be transferred to?