Skip to content

Commit

Permalink
Merge pull request #134 from NNPDF/fix_thresholds_nfonll
Browse files Browse the repository at this point in the history
account for k{fl}Thr in damping step function fonll
  • Loading branch information
RoyStegeman authored Oct 27, 2023
2 parents c4ea638 + c5927eb commit 92f8c95
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/pineko/fonll.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,13 +120,13 @@ def update_fk_theorycard(combined_fk, input_theorycard_path):

def produce_dampings(theorycard_constituent_fks, fonll_info, damp):
"""Return the damping factors for each of the relevant masses."""
mc = theorycard_constituent_fks["mc"]
mb = theorycard_constituent_fks["mb"]
cmatching = theorycard_constituent_fks["kcThr"] * theorycard_constituent_fks["mc"]
bmatching = theorycard_constituent_fks["kbThr"] * theorycard_constituent_fks["mb"]
q2grid = fonll_info.Q2grid
step_function_charm = mc**2 < q2grid
step_function_bottom = mb**2 < q2grid
damping_factor_charm = (1 - mc / q2grid) ** damp[1]
damping_factor_bottom = (1 - mb / q2grid) ** damp[1]
step_function_charm = (cmatching) ** 2 < q2grid
step_function_bottom = (bmatching) ** 2 < q2grid
damping_factor_charm = (1 - cmatching / q2grid) ** damp[1]
damping_factor_bottom = (1 - bmatching / q2grid) ** damp[1]
damping_factor_charm *= step_function_charm
damping_factor_bottom *= step_function_bottom
return {"mc": damping_factor_charm, "mb": damping_factor_bottom}
Expand Down

0 comments on commit 92f8c95

Please sign in to comment.