yadmark.benchmark.external package
yadmark.benchmark.external.apfel_utils module
Utilities to help run APFEL.
-
yadmark.benchmark.external.apfel_utils.compute_apfel_data(theory, observables, pdf)[source]
Run APFEL to compute observables.
- Parameters:
theory (dict) – theory runcard
observables (dict) – observables runcard
pdf (lahapdf_like) – PDF set
- Returns:
AFPEL numbers
- Return type:
dict
-
yadmark.benchmark.external.apfel_utils.load_apfel(theory, observables, pdf='ToyLH', use_external_grid=False)[source]
Set APFEL parameter from theory dictionary.
- Parameters:
-
- Returns:
loaded apfel wrapper
- Return type:
module
yadmark.benchmark.external.apfelpy_utils module
Utilities to help run APFEL++ benchmarks.
-
yadmark.benchmark.external.apfelpy_utils.compute_apfelpy_data(theory, observables, pdf)[source]
Run APFEL++ to compute observables.
- Parameters:
theory (dict) – theory runcard
observables (dict) – observables runcard
pdf (lahapdf_like) – PDF set
- Returns:
AFPEL numbers
- Return type:
dict
-
yadmark.benchmark.external.apfelpy_utils.couplings(ap, pids, proc_type, obs_name)[source]
Return the corresponding coupling given a process type and an observable.
- Parameters:
pids (int) – PDG ID of the projectile
proc_type – type of the DIS process
obs_name (str) – name of the Yadism observable
- Returns:
a callable function that computes the coupling as a
function of the scale Q
- Return type:
callable
-
yadmark.benchmark.external.apfelpy_utils.map_apfelpy_sf(init, observables, fns)[source]
Get required structure function.
- Parameters:
init (ap.initializers) – Apfel++ initializers
observables (dict) – observables runcard
fns (str) – flavor number scheme
- Return type:
Apfel++ structure function initalizer
-
yadmark.benchmark.external.apfelpy_utils.tabulate_cc(ap, obs_name, sfobj, nq, qmin, qmax, thrs)[source]
Tabulate the CC structure function predictions.
- Parameters:
obs_name (str) – name of the observable
sfobj (list(ap.init.InitalizeSFNCOjbectsZM)) – list of SF objects in Zero-Mass Flavour Number Scheme
nq (int) – number of Q points
qmin (float) – minimal value of Q
qmax (float) – maximal value of Q
thrs (list) – list of quark masses and thresholds
- Returns:
Apfel++ callable functions to evaluate SF from
- Return type:
callable
-
yadmark.benchmark.external.apfelpy_utils.tabulate_nc(ap, obs_name, sfobj, nq, qmin, qmax, thrs)[source]
Tabulate the NC/EM structure function predictions.
- Parameters:
obs_name (str) – name of the observable
sfobj (ap.init.InitalizeSFNCOjbectsZM) – SF objects in Zero-Mass Flavour Number Scheme
nq (int) – number of Q points
qmin (float) – minimal value of Q
qmax (float) – maximal value of Q
thrs (list) – list of quark masses and thresholds
- Returns:
Apfel++ callable functions to evaluate SF from
- Return type:
callable
yadmark.benchmark.external.qcdnum_utils module
Benchmark to QCDNUM.
-
class yadmark.benchmark.external.qcdnum_utils.PdfCallable(pdf)[source]
Bases: object
Wrapper to introduce lhapdf under QCDNUM.
- Parameters:
pdf (lhapdf_like) – PDF set
-
__call__(ipdf, x, qmu2, first)[source]
Functor function.
- Parameters:
-
- Return type:
pdf(x)
-
yadmark.benchmark.external.qcdnum_utils.compute_qcdnum_data(theory, observables, pdf)[source]
Run QCDNUM to compute observables.
- Parameters:
theory (dict) – theory runcard
observables (dict) – observables runcard
pdf (lhapdf_like) – PDF set
- Returns:
num_tab – QCDNUM numbers
- Return type:
dict
yadmark.benchmark.external.xspace_bench_utils module
Benchmark to xspace_bench (the original FONLL implementation).
-
yadmark.benchmark.external.xspace_bench_utils.compute_xspace_bench_data(theory, observables, pdf)[source]
Run xspace_bench to compute observables.
- Parameters:
theory (dict) – theory runcard
observables (dict) – observables runcard
pdf (lhapdf_like) – PDF set
- Returns:
xspace_bench numbers
- Return type:
dict