Skip to content

Commit

Permalink
Correct c and bmatching to be squared
Browse files Browse the repository at this point in the history
  • Loading branch information
andreab1997 committed Dec 1, 2023
1 parent cd948b7 commit dd852d8
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."""
cmatching = theorycard_constituent_fks["kcThr"] * theorycard_constituent_fks["mc"]
bmatching = theorycard_constituent_fks["kbThr"] * theorycard_constituent_fks["mb"]
cmatching2 = (theorycard_constituent_fks["kcThr"] * theorycard_constituent_fks["mc"]) **2
bmatching2 = (theorycard_constituent_fks["kbThr"] * theorycard_constituent_fks["mb"]) **2
q2grid = fonll_info.Q2grid
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]
step_function_charm = cmatching2 < q2grid
step_function_bottom = bmatching2 < q2grid
damping_factor_charm = (1 - cmatching2 / q2grid) ** damp[1]
damping_factor_bottom = (1 - bmatching2 / 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 dd852d8

Please sign in to comment.