Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Breit Wigner without energy dependent width #140

Open
shenvitor opened this issue Aug 15, 2024 · 1 comment
Open

Support Breit Wigner without energy dependent width #140

shenvitor opened this issue Aug 15, 2024 · 1 comment
Assignees
Labels
✨ Feature New feature added to the package

Comments

@shenvitor
Copy link
Member

shenvitor commented Aug 15, 2024

I am trying to use the builder to formulate BW without $ls$ coupling (no angular momentum) in this work,
for now this is not possible when doing so, because in the BW class the energy dependent width don't accept angular_momentum = None. So it might be good to add this option.

See also #139.

class RelativisticBreitWigner(sp.Expr):
s: Any
mass0: Any
gamma0: Any
m1: Any
m2: Any
angular_momentum: Any
meson_radius: Any
_latex_repr_ = (
R"\mathcal{{R}}_{{{angular_momentum}}}\left({s}, {mass0}, {gamma0}\right)"
)
def evaluate(self):
from ampform.dynamics import EnergyDependentWidth # noqa: PLC0415
s, m0, w0, m1, m2, angular_momentum, meson_radius = self.args
width = EnergyDependentWidth(
s=s,
mass0=m0,
gamma0=w0,
m_a=m1,
m_b=m2,
angular_momentum=angular_momentum,
meson_radius=meson_radius,
name=Rf"\Gamma_{{{sp.latex(angular_momentum)}}}",
)
return (m0 * w0) / (m0**2 - s - width * m0 * sp.I)

@shenvitor shenvitor added the ❔ Question Discuss this matter in the team label Aug 15, 2024
@redeboer
Copy link
Member

Longterm it's better if all these expression classes move to AmpForm. See e.g. ComPWA/ampform#423.

@redeboer redeboer added ✨ Feature New feature added to the package and removed ❔ Question Discuss this matter in the team labels Aug 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨ Feature New feature added to the package
Projects
None yet
Development

No branches or pull requests

2 participants