Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Juan M. Cruz-Martinez <juacrumar@lairen.eu>
  • Loading branch information
Zaharid and scarlehoff committed Jun 22, 2023
1 parent fc568a0 commit cbde9eb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion validphys2/examples/pdf_lumi_plots.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ sqrts: 13000 # GeV

lumi_channel: "gg" # one of [gg, gq, qqbar, qq, ddbar, uubar, ssbar,
# ccbar, bbbar, dubar, udbar, scbar, csbar, pp, gp,
# wlum, zlum]
# wlum1, zlum1]

PDFscalespecs:
- xscale: log
Expand Down
8 changes: 4 additions & 4 deletions validphys2/src/validphys/gridvalues.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@
'csbar': r'c\bar{s}',
'pp': r'\gamma\gamma',
'gp': r'g\gamma',
'zlum': r'u\bar{u} + d\bar{d}',
'wlum': r'u\bar{d} + d\bar{u}',
'zlum1': r'u\bar{u} + d\bar{d}',
'wlum1': r'u\bar{d} + d\bar{u}',
}

QUARK_COMBINATIONS = {
Expand Down Expand Up @@ -166,14 +166,14 @@ def evaluate_luminosity(

# as in the second of Eq.(4) in arXiv:1607.01831
res = sum(a*b for a,b in itertools.product(r1,r2))
elif channel == 'zlum':
elif channel == 'zlum1':
u, ubar = 2, -2
d, dbar = -1, 1
res = (
_parton_pair_lumi_inner(pdf_set=pdf_set, n=n, mx=mx, x1=x1, x2=x2, i=u, j=ubar) +
_parton_pair_lumi_inner(pdf_set=pdf_set, n=n, mx=mx, x1=x1, x2=x2, i=d, j=dbar)
)
elif channel == 'wlum':
elif channel == 'wlum1':
u, dbar = 2, -1
d, ubar = 1, -2
res = (
Expand Down

0 comments on commit cbde9eb

Please sign in to comment.