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

Open
redeboer opened this issue Apr 29, 2024 · 0 comments
Open

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

redeboer opened this issue Apr 29, 2024 · 0 comments
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

@redeboer redeboer added the 🔨 Maintenance Maintenance and upkeep improvements label Apr 29, 2024
@redeboer redeboer added this to the 0.1.0 milestone Apr 29, 2024
@redeboer redeboer self-assigned this Apr 29, 2024
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

No branches or pull requests

1 participant