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

Improve documentation of parity prefactor #284

Open
redeboer opened this issue May 16, 2022 · 1 comment
Open

Improve documentation of parity prefactor #284

redeboer opened this issue May 16, 2022 · 1 comment
Assignees
Labels
📝 Docs Improvements or additions to documentation
Milestone

Comments

@redeboer
Copy link
Member

redeboer commented May 16, 2022

It's not well documented how the parity_prefactor is imported when building an amplitude.

Example

import qrules
import ampform
result_helicity = qrules.generate_transitions(
    initial_state=("J/psi(1S)", [-1, +1]),
    final_state=["K0", "p~", "Sigma+"],
    allowed_intermediate_particles=["N(1880)","Sigma(1750)"],
    formalism="helicity",
    max_angular_momentum=10,
    max_spin_magnitude=10,
    allowed_interaction_types="strong",
    particle_db=pdg,
)
model_builder_helicity = ampform.get_builder(result_helicity)

model_builder_helicity.align_spin=False
model_helicity = model_builder_helicity.formulate()
amplitude=list(model_helicity.amplitudes.keys())[-1]
display(amplitude)
model_helicity.amplitudes[amplitude]
@redeboer redeboer added the 📝 Docs Improvements or additions to documentation label May 16, 2022
@redeboer redeboer self-assigned this May 16, 2022
@Leongrim
Copy link
Contributor

Leongrim commented May 16, 2022

The factor 1.0 is affected by whether helicities are inserted into the coefficient names.

import ampform
result_helicity = qrules.generate_transitions(
    initial_state=("J/psi(1S)", [-1, +1]),
    final_state=["K0", "p~", "Sigma+"],
    allowed_intermediate_particles=["N(1880)"],
    formalism="helicity",
    max_angular_momentum=10,
    max_spin_magnitude=10,
    allowed_interaction_types="strong",
    particle_db=pdg,
)
model_builder_helicity = ampform.get_builder(result_helicity)

model_builder_helicity.naming.insert_parent_helicities = True

model_builder_helicity.align_spin=False
model_helicity = model_builder_helicity.formulate()
amplitude=list(model_helicity.amplitudes.keys())[-1]
display(amplitude)
model_helicity.amplitudes[amplitude]

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
📝 Docs Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants