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

Simplify builder implementation with AmpForm-DPD v0.2 #357

Closed
redeboer opened this issue Apr 29, 2024 · 0 comments · Fixed by #371
Closed

Simplify builder implementation with AmpForm-DPD v0.2 #357

redeboer opened this issue Apr 29, 2024 · 0 comments · Fixed by #371
Assignees
Labels
🔨 Maintenance Maintenance and upkeep improvements
Milestone

Comments

@redeboer
Copy link
Member

Since AmpForm-DPD v0.2.0, final state particles carry an index (State class). This makes it possible to simplify/generalize code like this

if resonance.name.startswith("K"):
child1, child2, spectator = π, K, p
elif resonance.name.startswith("L"):
child1, child2, spectator = K, p, π
elif resonance.name.startswith("D"):
child1, child2, spectator = p, π, K
else:
raise NotImplementedError

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🔨 Maintenance Maintenance and upkeep improvements
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant