Skip to content

Commit

Permalink
remove skip_heavylight from light.kernels.generate inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
RoyStegeman committed Oct 9, 2023
1 parent fdc153a commit 73aacec
Showing 1 changed file with 4 additions and 13 deletions.
17 changes: 4 additions & 13 deletions src/yadism/coefficient_functions/light/kernels.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ def import_pc_module(kind, process):
return kernels.import_local(kind, process, __name__)


def generate(esf, nf, skip_heavylight=False):
def generate(esf, nf):
"""
Collect the light coefficient functions
Expand All @@ -26,9 +26,6 @@ def generate(esf, nf, skip_heavylight=False):
elems : list(yadism.kernels.Kernel)
list of elements
"""
nl = nf
if skip_heavylight:
nl = nf - 1
kind = esf.info.obs_name.kind
pcs = import_pc_module(kind, esf.process)
coupling = esf.info.coupling_constants
Expand Down Expand Up @@ -57,36 +54,30 @@ def generate(esf, nf, skip_heavylight=False):
esf.Q2,
nf,
esf.info.obs_name.is_parity_violating,
skip_heavylight=skip_heavylight,
)

# remove also singlet contributions which is added while subtracting light_asy with light
if skip_heavylight:
weights["s"][nl + 1] = 0
weights["s"][-nl - 1] = 0

ns = kernels.Kernel(
weights["ns"],
pcs.NonSinglet(
esf,
nf,
fl=nc_color_factor(coupling, nf, "ns", skip_heavylight),
fl=nc_color_factor(coupling, nf, "ns", False),
),
)
g = kernels.Kernel(
weights["g"],
pcs.Gluon(
esf,
nf,
flg=nc_color_factor(coupling, nf, "g", skip_heavylight),
flg=nc_color_factor(coupling, nf, "g", False),
),
)
s = kernels.Kernel(
weights["s"],
pcs.Singlet(
esf,
nf,
flps=nc_color_factor(coupling, nf, "s", skip_heavylight),
flps=nc_color_factor(coupling, nf, "s", False),
),
)
return [ns, g, s]
Expand Down

0 comments on commit 73aacec

Please sign in to comment.