Skip to content

Commit

Permalink
Changed calculation of F1 to 2xF1 (a.k.a. F1)
Browse files Browse the repository at this point in the history
  • Loading branch information
toonhasenack committed Oct 18, 2023
1 parent d8e3acb commit 56f1420
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/yadism/esf/exs.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def xs_coeffs(kind, y, x=None, Q2=None, params=None):
yp = 1.0
yL = y**2 / (2 * (y**2 / 2 + (1 - y) - (mn * x * y) ** 2 / Q2))
elif kind == "F1":
return np.array([1 / (2 * x), -1 / (2 * x), 0])
return np.array([1.0, -1.0, 0.0])
elif kind == "XSFPFCC":
INV_GEV_TO_PB = GEV_CM2_CONV / 100.0 # pb
norm = (INV_GEV_TO_PB * params["GF"] ** 2) / (2.0 * np.pi)
Expand Down
2 changes: 1 addition & 1 deletion tests/yadism/esf/test_exs.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def test_xs_coeffs():

f1 = xs_coeffs(
"F1",
x=0.5,
x=1.0,
Q2=1.0,
y=0.0,
params=dict(projectilePID=1, M2target=0.0, M2W=1.0),
Expand Down

0 comments on commit 56f1420

Please sign in to comment.