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

Add an observable relevant for FPF studies #161

Merged
merged 3 commits into from
Dec 5, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions docs/source/theory/intro.rst
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,12 @@ normalization, the following are available in ``yadism``:
y_{+} &= 1.0 \\
y_{L} &= \frac{y^2}{2 (y^2/2 + (1-y) - (M_{h} x y/ Q)^2)}

- ``XSFPFCC`` for the FPF projection:

.. math::

N = \frac{G_F^2}{8 \pi x ( 1 + Q^2 / M_W^2 )^2}


Heavyness
---------
Expand Down
4 changes: 4 additions & 0 deletions src/yadism/esf/exs.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,10 @@ def xs_coeffs(kind, y, x=None, Q2=None, params=None):
ym = 0
yp = 1.0
yL = y**2 / (2 * (y**2 / 2 + (1 - y) - (mn * x * y) ** 2 / Q2))
elif kind == "XSFPFCC":
INV_GEV_TO_PB = GEV_CM2_CONV / 100.0 # Pb
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess the comment should be rather pb (note the small p - as in pico) (just to not confuse with lead 🙃 )

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To really nitpick Pb in this context would mean "PetaBarn", instead of "picoBarn", according to SI.

Copy link
Member Author

@Radonirinaunimi Radonirinaunimi Dec 6, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is definitely a fair point! In addition, in what we are doing we also need the observable name added to the observable_name.py. Let me restore this branch and add these changes here.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Now in #163.

norm = (INV_GEV_TO_PB * params["GF"] ** 2) / (4.0 * np.pi)
norm *= 1.0 / (2.0 * x * (1.0 + Q2 / params["M2W"])**2)
else:
mn = np.sqrt(params["M2target"])
m2w = params["M2W"]
Expand Down
9 changes: 9 additions & 0 deletions tests/yadism/esf/test_exs.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,15 @@ def test_xs_coeffs():
assert fw[0] == 1.0
assert fw[2] == 0.0

xsfpfcc = xs_coeffs(
"XSFPFCC",
x=0.5,
Q2=1.0,
y=1.0,
params=dict(projectilePID=1, M2target=0.0, M2W=1.0, GF=1.0),
)
assert xsfpfcc[0] == 3.893793e8 / (32.0 * 0.5 * np.pi)

nutev = xs_coeffs(
"XSNUTEVCC",
x=0.5,
Expand Down