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

Make dynamics builder more configurable #139

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

Make dynamics builder more configurable #139

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

Comments

@shenvitor
Copy link
Member

shenvitor commented Aug 14, 2024

We want to add the options to switch off Form Factor(s) of production and/or decay

def formulate_breit_wigner_with_form_factor(
decay: ThreeBodyDecayChain,
) -> tuple[sp.Expr, dict[sp.Symbol, complex | float]]:
decay_node = decay.decay_node
s = get_mandelstam_s(decay_node)
parameter_defaults = {}
production_ff, new_pars = _create_form_factor(s, decay.production_node)
parameter_defaults.update(new_pars)
decay_ff, new_pars = _create_form_factor(s, decay_node)
parameter_defaults.update(new_pars)
breit_wigner, new_pars = _create_breit_wigner(s, decay_node)
parameter_defaults.update(new_pars)
return (
production_ff * decay_ff * breit_wigner,
parameter_defaults,
)

@shenvitor shenvitor added the ✨ Feature New feature added to the package label Aug 14, 2024
@redeboer
Copy link
Member

This requires a builder pattern that produces callables. There's something like this in AmpForm, see here.

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