ekomark.benchmark.external package

Tools to run external benchmark programs.

Submodules

ekomark.benchmark.external.LHA_utils module

Implementation of [G+02] and [D+05] (NNLO and polarized).

ekomark.benchmark.external.LHA_utils.rotate_data(raw, is_ffns_nnlo=False, rotate_to_evolution_basis=False)[source]

Rotate data in flavor space.

Rotate either to flavor basis or evolution basis from the LHA basis, which is yet an other basis.

Parameters:
  • raw (dict) – data

  • is_ffns_nnlo (bool) – special table for NNLO FFNS

  • rotate_to_evolution_basis (bool) – to evolution basis?

Returns:

rotated data

Return type:

dict

ekomark.benchmark.external.LHA_utils.compute_LHA_data(theory, operators, rotate_to_evolution_basis=False)[source]

Implement LHA benchmark [G+02].

Parameters:
  • theory (dict) – theory card

  • operators (dict) – operators card

  • rotate_to_evolution_basis (bool) – rotate to evolution basis

Returns:

output containing: target_xgrid, values

Return type:

dict

ekomark.benchmark.external.LHA_utils.save_initial_scale_plots_to_pdf(path, is_pol)[source]

Plot all PDFs at the initial scale.

The reference values are given in Table 2 part 1 [G+02] or Table 16 part 1 (polarized) [D+05] .

This exercise was useful in order to detect the missing 2 in the definition of \(L_+ = 2(\\bar u + \\bar d)\)

Parameters:
  • path (str) – output path

  • is_pol (bool) – polarized pdf data

ekomark.benchmark.external.apfel_utils module

APFEL interface.

ekomark.benchmark.external.apfel_utils.compute_apfel_data(theory, operators, pdf, skip_pdfs, rotate_to_evolution_basis=False)[source]

Run APFEL to compute operators.

Parameters:
  • theory (dict) – theory card

  • operators (dict) – operators card

  • pdf (lhapdf_type) – pdf

  • skip_pdfs (list) – list of pdfs (pid or name) to skip

  • rotate_to_evolution_basis (bool) – rotate to evolution basis

Returns:

ref – output containing: target_xgrid, values

Return type:

dict

ekomark.benchmark.external.lhapdf_utils module

LHAPDF interface.

ekomark.benchmark.external.lhapdf_utils.compute_LHAPDF_data(theory, operators, pdf, skip_pdfs, rotate_to_evolution_basis=False)[source]

Run LHAPDF to compute operators.

Parameters:
  • operators (dict) – operators card

  • pdf (lhapdf_type) – pdf

  • skip_pdfs (list) – list of pdfs (pid or name) to skip

  • rotate_to_evolution_basis (bool) – rotate to evolution basis

Returns:

ref – output containing: target_xgrid, values

Return type:

dict

ekomark.benchmark.external.pegasus_utils module

Pegasus interface.

ekomark.benchmark.external.pegasus_utils.compute_pegasus_data(theory, operators, skip_pdfs, rotate_to_evolution_basis=False)[source]

Run Pegasus to compute operators.

Parameters:
  • theory (dict) – theory card

  • operators (dict) – operators card

  • skip_pdfs (list) – list of pdfs (pid or name) to skip

  • rotate_to_evolution_basis (bool) – rotate to evolution basis

Returns:

ref – output containing: target_xgrid, values

Return type:

dict