Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
101 changes: 62 additions & 39 deletions benchmarks/mplstyle.mplstyle
Original file line number Diff line number Diff line change
@@ -1,39 +1,62 @@
axes.grid : True
axes.axisbelow : True
axes.titlesize : medium
axes.prop_cycle : cycler(color=['1f77b4', 'd62728', '9467bd', '2ca02c', 'ff7f0e', '8c564b', 'e377c2', '7f7f7f', 'bcbd22', '17becf'])
axes.labelsize : small
axes.formatter.use_mathtext : True
axes.spines.top : True
axes.spines.right : True

errorbar.capsize : 2

font.size : 12

figure.figsize : 5.6, 3.9

text.usetex : True
text.latex.preamble : \usepackage{amsmath}

grid.color : cccccc
grid.linestyle : -
grid.linewidth : 0.05

legend.fontsize : small
legend.numpoints : 1
legend.scatterpoints : 1
legend.loc : best
legend.fancybox : True
legend.framealpha : 0.8

lines.markersize : 4

mathtext.default : regular

xtick.labelsize : small
ytick.labelsize : small
xtick.top : False
ytick.right : False

svg.fonttype : none
axes.grid : False
axes.axisbelow : True
axes.titlesize : 16
axes.labelsize : 16
axes.labelpad : 6
axes.formatter.use_mathtext : True
axes.linewidth : 1.2
axes.spines.top : True
axes.spines.right : True
axes.prop_cycle : cycler(color=['000000', '1f77b4', 'd62728', '2ca02c', '9467bd', 'ff7f0e', '8c564b', 'e377c2', '7f7f7f', 'bcbd22', '17becf'])

errorbar.capsize : 2

font.family : sans-serif
font.sans-serif : DejaVu Sans, Helvetica, Arial, Liberation Sans
font.size : 14

figure.figsize : 6.0, 4.5

# text.usetex : True
# text.latex.preamble : \usepackage{amsmath}
text.usetex : False

grid.color : cccccc
grid.linestyle : -
grid.linewidth : 0.2

legend.fontsize : 14
legend.numpoints : 1
legend.scatterpoints : 1
legend.loc : best
legend.frameon : False
legend.fancybox : False
legend.borderaxespad : 0.6
legend.handlelength : 2.0

lines.linewidth : 2.0
lines.markersize : 4.0

mathtext.default : regular
mathtext.fontset : dejavusans

xtick.direction : in
ytick.direction : in
xtick.top : True
ytick.right : True
xtick.minor.visible : True
ytick.minor.visible : True
xtick.major.size : 7
ytick.major.size : 7
xtick.minor.size : 4
ytick.minor.size : 4
xtick.major.width : 1.2
ytick.major.width : 1.2
xtick.minor.width : 1.0
ytick.minor.width : 1.0
xtick.labelsize : 12
ytick.labelsize : 12

savefig.bbox : tight
savefig.pad_inches : 0.03
svg.fonttype : none
23 changes: 3 additions & 20 deletions docs/configuration-cards.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,37 +115,20 @@ tabulation:
xi: [1.0, 1.0, 1.0]

# --- Optional: SIDIS grid filling only ---
# Omit these for DIS/SIA-only workflows. DIS/SIA Q^2 tabulation in build_grid().
# Omit these for DIS/SIA-only workflows.
#
# sidis_mode: legacy | bsf_exact
# sidis_int_eps: <double> # APFEL++ InitializeSidisObjects tolerance (default 1e-3)
# sidis_q2_n_intermediate: <int>
# sidis_q2_include_thresholds: <bool>
# sidis_q2_use_bin_centers_only: <bool>
# sidis_z_quad_subdivisions: <int>
```

#### SIDIS-only YAML fields {#operator-card-sidis-fields}

These keys are parsed into `pineapfel::OperatorCard` and affect **`build_grid()` only
when the grid card has `Process: SIDIS`**. They are **ignored for \(Q^2\) node
generation** in DIS and SIA (those processes use fixed legacy \(Q^2\) rules inside
the library).
when the grid card has `Process: SIDIS`**.

| YAML key | C++ default (if omitted) | Purpose |
|----------|-------------------------|---------|
| `sidis_mode` | `legacy` | `legacy` = Gauss–Legendre \(z\) quadrature in each \(z\) bin; `bsf_exact` = APFEL++-style \(z\) weights (`IntInterpolant`) for extended \(z\) bins. |
| `sidis_int_eps` | `1e-3` | Relative tolerance for `InitializeSidisObjects` / SIDIS NNLO setup (tests often use `1e-1`). |
| `sidis_q2_n_intermediate` | `3` | Extra geometric \(Q^2\) nodes between each bin’s lower/upper edge (SIDIS global \(Q^2\) list). |
| `sidis_q2_include_thresholds` | `true` | Insert \(m_q^2\) into the SIDIS global \(Q^2\) list when in range. |
| `sidis_q2_use_bin_centers_only` | `false` | If `true`, global \(Q^2\) nodes are only \(\sqrt{Q^2_\mathrm{lo} Q^2_\mathrm{hi}}\) per bin (typical for point \(Q^2\) bins; fill activates one slice per bin). |
| `sidis_z_quad_subdivisions` | `1` | Legacy mode: number of \(z\)-subintervals per bin for internal 8-point GL quadrature. |

For **recommended values** when matching APFEL++ BSF-style SIDIS (and for avoiding
PineAPPL \(Q^2\)-axis over-counting on point grids), set `sidis_mode: bsf_exact` and

`sidis_q2_n_intermediate: 0`, `sidis_q2_include_thresholds: false`,
`sidis_q2_use_bin_centers_only: true`, `sidis_z_quad_subdivisions: 32`

explicitly on the operator YAML. Full rationale, workflow, and copy-paste block:
[Grid creation — Operator card: SIDIS-only settings](grid-creation.md#sidis-operator-card).
See [Grid creation — Operator card: SIDIS-only settings](grid-creation.md#sidis-operator-card) for details.
Loading
Loading