Skip to content

Commit

Permalink
add n3lo variations grids and other fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
giacomomagni committed Sep 21, 2023
1 parent 264372b commit 96daca5
Show file tree
Hide file tree
Showing 28 changed files with 423 additions and 361 deletions.
776 changes: 419 additions & 357 deletions poetry.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ eko = "^0.13.4"
pandas = "^1.3.0"
rich = "^12.4.4"
LeProHQ = "^0.2.3"
adani = "^0.12"
adani = "^0.13"
# pineappl dependency
pineappl = { version = "^0.6.0", optional = true }
# yadmark
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
4 changes: 2 additions & 2 deletions src/yadism/esf/result.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,8 @@ def apply_pdf(self, lhapdf_like, pids, xgrid, alpha_s, alpha_qed, xiR, xiF):
lnF = 1.0 if o[3] == 0 else (np.log((1 / xiF) ** 2)) ** o[3]
lnR = 1.0 if o[2] == 0 else (np.log((1 / xiR) ** 2)) ** o[2]
prefactor = (a_s ** o[0]) * (alph_qed ** o[1]) * lnR * lnF
res += prefactor * np.einsum("aj,aj", v, pdfs)
err += prefactor * np.einsum("aj,aj", e, pdfs)
res += prefactor * np.einsum("aj,aj", v, pdfs, optimize="optimal")
err += prefactor * np.einsum("aj,aj", e, pdfs, optimize="optimal")

return dict(x=self.x, Q2=self.Q2, result=res, error=err)

Expand Down
2 changes: 1 addition & 1 deletion src/yadism/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ def __init__(self, theory: dict, observables: dict):
M2W=theory["MW"] ** 2,
M2target=theory["MP"] ** 2,
fonllparts=theory["FONLLParts"],
n3lo_cf_variation=theory.get("n3lo_cf_variation",0)
n3lo_cf_variation=theory["n3lo_cf_variation"]
)
logger.info(
"PTO: %d, PTO@evolution: %d, process: %s",
Expand Down

0 comments on commit 96daca5

Please sign in to comment.