Skip to content

Commit

Permalink
add toyFF
Browse files Browse the repository at this point in the history
  • Loading branch information
t7phy committed Jun 10, 2024
1 parent de2e142 commit ddb3c93
Showing 1 changed file with 25 additions and 1 deletion.
26 changes: 25 additions & 1 deletion src/banana/toy.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class MockPDF:
xpdf = {}

def xfxQ2(self, pid, x, _Q2):
"""Get the PDF xf(x) value at (x,q2) for the given PID.
"""Get the PDF/FF xf(x) value at (x,q2) for the given PID.
Parameters
----------
Expand Down Expand Up @@ -159,6 +159,30 @@ def __init__(self):
self.name = "ToyLH_polarized"


class toyFF_unpolarized(MockPDF):
"""ToyFF from 1501.00494, Eqn. 3.3 and 3.4"""

def __init__(self):
N_v = 0.401
N_s = 0.094
N_g = 0.238

D_u = lambda x: N_v * x**(-0.963) * (1 - x)**1.370
D_ub = lambda x: N_s * x**0.718 * (1 - x)**6.266
D_g = lambda x: N_g * x**1.943 * (1 - x)**8

self.xpdf = {}
self.xpdf[-3] = D_ub
self.xpdf[-2] = D_ub
self.xpdf[-1] = D_u
self.xpdf[0] = D_g
self.xpdf[1] = D_ub
self.xpdf[2] = D_u
self.xpdf[3] = D_ub
self.xpdf[21] = self.xpdf[0]
self.name = "ToyFF_unpol"


def mkPDF(setname, _member):
"""
Factory functions for making single PDF members.
Expand Down

0 comments on commit ddb3c93

Please sign in to comment.