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

Allow muon scattering #265

Open
felixhekhorn opened this issue Mar 11, 2024 · 0 comments
Open

Allow muon scattering #265

felixhekhorn opened this issue Mar 11, 2024 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers physics physics features

Comments

@felixhekhorn
Copy link
Contributor

          this isn't always true, right? Compass at least is muon scattering ... yadism and the whole of NNPDF is actually completely lepton-blind, so maybe it is not important, but I believe you can just do an simple `if` similar to the one above
    obs["ProjectileDIS"] = "muon" if "_mup_" in str(src_path.stem) or blub or bla else "electron"

Originally posted by @felixhekhorn in #232 (comment)

          but will yadism work then? 

proj = observables.get("ProjectileDIS", "electron")
projectile_pids = {
"electron": 11,
"positron": -11,
"neutrino": 12,
"antineutrino": -12,
}
if proj not in projectile_pids:
raise ValueError(f"Unknown projectile {proj}")

Originally posted by @giacomomagni in #232 (comment)

the answer to the last question is: it won't - let's fix that;

note that "electron" there gets translated to 11 and then later there are a few more of those in the code e.g. here:

if projectile_pid in [-11, 12]:

a relevant function may be is_left_handed_lepton

@felixhekhorn felixhekhorn added enhancement New feature or request physics physics features labels Mar 11, 2024
@giacomomagni giacomomagni added the good first issue Good for newcomers label Sep 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers physics physics features
Projects
None yet
Development

No branches or pull requests

2 participants