Skip to content

Commit

Permalink
Merge branch 'numerical_fonll' into massive_n3lo
Browse files Browse the repository at this point in the history
  • Loading branch information
giacomomagni committed Oct 7, 2023
2 parents ef006c1 + 62022b1 commit 1566045
Show file tree
Hide file tree
Showing 10 changed files with 9 additions and 50 deletions.
1 change: 0 additions & 1 deletion benchmarks/runners/sandbox.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,6 @@ def run_pineappl(self):
# t["FNS"] = "FFNS"
t["NfFF"] = 4
t["PTO"] = 1
# t["kDISbThr"] = 10
# t["mb"] = 1e6
# t["mt"] = 1e7
self.run([t], [o], [
Expand Down
3 changes: 0 additions & 3 deletions extras/fonll_hq_treatment/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,6 @@
"Comments": "NNPDF4.0 NNLO alphas=0.118",
"global_nx": 0,
"EScaleVar": 1,
"kDIScThr": 1.0,
"kDISbThr": 1.0,
"kDIStThr": 1.0,
}

observables_card = {
Expand Down
2 changes: 1 addition & 1 deletion src/yadbox/runcards/theory.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ def ffns(nf):

for i, q in enumerate("cbt"):
theory[f"ZM{q}"] = True
theory[f"kDIS{q}Thr"] = 0.0 if nf >= i + 4 else float("inf")
theory[f"k{q}Thr"] = 0.0 if nf >= i + 4 else float("inf")

return theory
9 changes: 4 additions & 5 deletions src/yadism/input/compatibility.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def update_target(obs):

def update_fns(theory):
"""
Shifts kcThr around and add the kDIScThr parameter (likewise for all heavy quarks).
Sets k{fl}Thr and ZM{fl} for all heavy flavours depending on the scheme.
Parameters
----------
Expand Down Expand Up @@ -140,9 +140,8 @@ def update_fns(theory):
else:
raise ValueError(f"Scheme '{fns}' not recognized.")

# here there is no difference between DGLAP and DIS
for fl in hqfl:
theory[f"kDIS{fl}Thr"] = theory[f"k{fl}Thr"]

if "PTODIS" not in theory:
theory["PTODIS"] = theory["PTO"]

if "FONLLParts" not in theory:
theory["FONLLParts"] = "full"
30 changes: 0 additions & 30 deletions src/yadism/input/domains.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -166,36 +166,6 @@
domain:
- 3 <= nf <= 6

- name: CharmThresholdRatio
known_as: kDIScThr
runcard: theory
description: >
Ratio between the charm threshold for VFNS and the specified value for
charm mass `mc`
type: real
domain:
- kDIScThr > 0

- name: BottomThresholdRatio
known_as: kDISbThr
runcard: theory
description: >
Ratio between the bottom threshold for VFNS and the specified value for
bottom mass `mb`
type: real
domain:
- kDISbThr > 0

- name: TopThresholdRatio
known_as: kDIStThr
runcard: theory
description: >
Ratio between the top threshold for VFNS and the specified value for top
mass `mt`
type: real
domain:
- kDIStThr > 0

# Masses
# ~~~~~~
- name: MassScheme
Expand Down
2 changes: 1 addition & 1 deletion src/yadism/input/inspector.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def check_domains(self):

# check value provided by user
try:
# retroeve the checker from available checkers and value from
# retrieve the checker from available checkers and value from
# user input, apply the first on the latter
name = dom_def["known_as"] if "known_as" in dom_def else dom_def["name"]
checker.check_value(
Expand Down
4 changes: 2 additions & 2 deletions src/yadism/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ def __init__(self, theory: dict, observables: dict):
# Initialize structure functions
masses = np.power([new_theory["mc"], new_theory["mb"], new_theory["mt"]], 2)
thresholds_ratios = np.power(
[new_theory["kDIScThr"], new_theory["kDISbThr"], new_theory["kDIStThr"]], 2
[new_theory["kcThr"], new_theory["kbThr"], new_theory["ktThr"]], 2
)
managers = dict(
interpolator=interpolator,
Expand Down Expand Up @@ -146,7 +146,7 @@ def __init__(self, theory: dict, observables: dict):
GF=theory["GF"],
M2W=theory["MW"] ** 2,
M2target=theory["MP"] ** 2,
fonllparts=theory["FONLLParts"],
fonllparts=new_theory["FONLLParts"],
n3lo_cf_variation=theory["n3lo_cf_variation"]
)
logger.info(
Expand Down
3 changes: 0 additions & 3 deletions tests/yadism/input/test_inspector.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,6 @@ def test_domain(self):
"kcThr": 1.0,
"kbThr": 1.0,
"ktThr": 1.0,
"kDIScThr": 1.0,
"kDISbThr": 1.0,
"kDIStThr": 1.0,
"MZ": 91.1876,
"MW": 90.398,
"GF": 1.1663787e-05,
Expand Down
3 changes: 0 additions & 3 deletions tests/yadism/test_init.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,6 @@
"kcThr": 1.0,
"kbThr": 1.0,
"ktThr": 1.0,
"kDIScThr": 1.0,
"kDISbThr": 1.0,
"kDIStThr": 1.0,
"MaxNfPdf": 6,
"MaxNfAs": 6,
"MZ": 91.1876,
Expand Down
2 changes: 1 addition & 1 deletion tests/yadism/test_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def fake_update(*args):

pto = data.draw(st.integers(0, 3))
masses = {f"m{q}": v + 2.0 for v, q in enumerate("cbt")}
kthr = {f"kDIS{q}Thr": v + 2.0 for v, q in enumerate("cbt")}
kthr = {f"k{q}Thr": v + 2.0 for v, q in enumerate("cbt")}
zm_masses = {f"ZM{q}": True for q in "cbt"}
theory = dict(
PTO=pto,
Expand Down

0 comments on commit 1566045

Please sign in to comment.