Skip to content

Commit

Permalink
remove kDIS{fl}Thr in favour of k{fl}Thr
Browse files Browse the repository at this point in the history
  • Loading branch information
RoyStegeman committed Oct 6, 2023
1 parent c9ba28f commit e2d6d67
Show file tree
Hide file tree
Showing 9 changed files with 4 additions and 48 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
6 changes: 1 addition & 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,5 @@ 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"]
30 changes: 0 additions & 30 deletions src/yadism/input/domains.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -155,36 +155,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/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
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 e2d6d67

Please sign in to comment.