From 3fab10eec3e5672b79cb8974679fa35ada84b4cd Mon Sep 17 00:00:00 2001 From: Andrew Pietraszkiewicz Date: Sun, 3 May 2026 21:37:50 +0200 Subject: [PATCH] add ploughshare pinecards for CMS and ATLAS 1JET_8TEV --- ATLAS_1JET_8TEV_R06/metadata.txt | 7 ++-- ATLAS_1JET_8TEV_R06/ploughshare_link.txt | 1 + ATLAS_1JET_8TEV_R06/postrun.sh | 31 ++++++++++++++++-- .../analysis.f | 0 .../change_scale_to_ht_hat.patch | 0 .../disable_njet_cut.patch | 0 .../launch.txt | 0 ATLAS_1JET_8TEV_R06_legacy/metadata.txt | 13 ++++++++ .../output.txt | 0 ATLAS_1JET_8TEV_R06_legacy/postrun.sh | 4 +++ CMS_1JET_8TEV/metadata.txt | 14 ++++++++ CMS_1JET_8TEV/ploughshare_link.txt | 1 + CMS_1JET_8TEV/postrun.sh | 32 +++++++++++++++++++ 13 files changed, 98 insertions(+), 5 deletions(-) create mode 100644 ATLAS_1JET_8TEV_R06/ploughshare_link.txt rename {ATLAS_1JET_8TEV_R06 => ATLAS_1JET_8TEV_R06_legacy}/analysis.f (100%) rename {ATLAS_1JET_8TEV_R06 => ATLAS_1JET_8TEV_R06_legacy}/change_scale_to_ht_hat.patch (100%) rename {ATLAS_1JET_8TEV_R06 => ATLAS_1JET_8TEV_R06_legacy}/disable_njet_cut.patch (100%) rename {ATLAS_1JET_8TEV_R06 => ATLAS_1JET_8TEV_R06_legacy}/launch.txt (100%) create mode 100644 ATLAS_1JET_8TEV_R06_legacy/metadata.txt rename {ATLAS_1JET_8TEV_R06 => ATLAS_1JET_8TEV_R06_legacy}/output.txt (100%) create mode 100755 ATLAS_1JET_8TEV_R06_legacy/postrun.sh create mode 100644 CMS_1JET_8TEV/metadata.txt create mode 100644 CMS_1JET_8TEV/ploughshare_link.txt create mode 100755 CMS_1JET_8TEV/postrun.sh diff --git a/ATLAS_1JET_8TEV_R06/metadata.txt b/ATLAS_1JET_8TEV_R06/metadata.txt index 9f806692..a3a1db63 100644 --- a/ATLAS_1JET_8TEV_R06/metadata.txt +++ b/ATLAS_1JET_8TEV_R06/metadata.txt @@ -1,5 +1,6 @@ arxiv=1706.03192 -description=ATLAS double-differential inclusive jet cross section at 8 TeV +ploughshare=https://ploughshare.web.cern.ch/ploughshare/db/applfast/applfast-atlas-incjets-appl-arxiv-1706.03192/applfast-atlas-incjets-appl-arxiv-1706.03192.tgz +description=ATLAS double-differential inclusive jet cross section at 8 TeV. Downloaded from ploughshare, central scale mu=HT_parton. hepdata=10.17182/hepdata.76967.v1/t1, 10.17182/hepdata.76967.v1/t2, 10.17182/hepdata.76967.v1/t3, 10.17182/hepdata.76967.v1/t4, 10.17182/hepdata.76967.v1/t5, 10.17182/hepdata.76967.v1/t6 nnpdf_id=ATLAS_1JET_8TEV_R06 x1_label=yj @@ -8,6 +9,6 @@ x1_unit= x2_label=ptj x2_label_tex=$p_{\mathrm{T},\mathrm{jet}}$ x2_unit=GeV -y_label=dsig/dptj -y_label_tex=$\frac{\mathrm{d}\sigma}{\mathrm{d}p_{\mathrm{T},\mathrm{jet}}$ +y_label=d^2sig/dptdy +y_label_tex=$\frac{\mathrm{d}^2\sigma}{\mathrm{d}p_{\mathrm{T},\mathrm{jet}\mathrm{d}y}$ y_unit=pb/GeV diff --git a/ATLAS_1JET_8TEV_R06/ploughshare_link.txt b/ATLAS_1JET_8TEV_R06/ploughshare_link.txt new file mode 100644 index 00000000..aff2ee35 --- /dev/null +++ b/ATLAS_1JET_8TEV_R06/ploughshare_link.txt @@ -0,0 +1 @@ +https://ploughshare.web.cern.ch/ploughshare/db/applfast/applfast-atlas-incjets-appl-arxiv-1706.03192/applfast-atlas-incjets-appl-arxiv-1706.03192.tgz \ No newline at end of file diff --git a/ATLAS_1JET_8TEV_R06/postrun.sh b/ATLAS_1JET_8TEV_R06/postrun.sh index 002fe282..c1db7d4d 100755 --- a/ATLAS_1JET_8TEV_R06/postrun.sh +++ b/ATLAS_1JET_8TEV_R06/postrun.sh @@ -1,4 +1,31 @@ #!/bin/bash -pineappl remap "${GRID}" "${GRID}".tmp '0,0.5,1,1.5,2,2.5,3;70,85,100,116,134,152,172,194,216,240,264,290,318,346,376,408,442,478,516,556,598,642,688,736,786,838,894,952,1012,1076,1162,1310,1530,1992,2500|70,85,100,116,134,152,172,194,216,240,264,290,318,346,376,408,442,478,516,556,598,642,688,736,786,838,894,952,1012,1076,1162,1310,1530,2500|70,85,100,116,134,152,172,194,216,240,264,290,318,346,376,408,442,478,516,556,598,642,688,736,786,838,894,952,1012,1076,1162,1310,1992|70,85,100,116,134,152,172,194,216,240,264,290,318,346,376,408,442,478,516,556,598,642,688,736,786,838,894,952,1012,1076,1310|70,85,100,116,134,152,172,194,216,240,264,290,318,346,376,408,442,478,516,556,598,642,688,736,838|70,85,100,116,134,152,172,194,216,240,264,290,318,346,376,408,442,478,556' --ignore_obs_norm 1 -mv "${GRID}".tmp "${GRID}" +mkdir tmp + +# Bin mapping +bins[1]="0.0 <= |y| < 0.5" +bins[2]="0.5 <= |y| < 1.0" +bins[3]="1.0 <= |y| < 1.5" +bins[4]="1.5 <= |y| < 2.0" +bins[5]="2.0 <= |y| < 2.5" +bins[6]="2.5 <= |y| < 3.0" + +# Convert the grids to pineappl format under the right names. +# We only take the first 6, as they correspond to mu=H_T. +for i in {0..5}; do + j=$((i+1)) + src="grid_00${i}.appl" + temp_dst="tmp/ATLAS_1JET_8TEV_R06_PTY_BIN${j}.pineappl.lz4" + dst="ATLAS_1JET_8TEV_R06_PTY_BIN${j}.pineappl.lz4" + pineappl import "$src" "$temp_dst" NNPDF40_nnlo_as_01180 + current_bin=${bins[$j]} + pineappl write --set-key-value kin_bin "${current_bin}" ${temp_dst} ${dst} + rm ${temp_dst} + rm ${src} +done + +# Remove the non-H_T grids +rm *.appl +rm *.root + +rmdir tmp \ No newline at end of file diff --git a/ATLAS_1JET_8TEV_R06/analysis.f b/ATLAS_1JET_8TEV_R06_legacy/analysis.f similarity index 100% rename from ATLAS_1JET_8TEV_R06/analysis.f rename to ATLAS_1JET_8TEV_R06_legacy/analysis.f diff --git a/ATLAS_1JET_8TEV_R06/change_scale_to_ht_hat.patch b/ATLAS_1JET_8TEV_R06_legacy/change_scale_to_ht_hat.patch similarity index 100% rename from ATLAS_1JET_8TEV_R06/change_scale_to_ht_hat.patch rename to ATLAS_1JET_8TEV_R06_legacy/change_scale_to_ht_hat.patch diff --git a/ATLAS_1JET_8TEV_R06/disable_njet_cut.patch b/ATLAS_1JET_8TEV_R06_legacy/disable_njet_cut.patch similarity index 100% rename from ATLAS_1JET_8TEV_R06/disable_njet_cut.patch rename to ATLAS_1JET_8TEV_R06_legacy/disable_njet_cut.patch diff --git a/ATLAS_1JET_8TEV_R06/launch.txt b/ATLAS_1JET_8TEV_R06_legacy/launch.txt similarity index 100% rename from ATLAS_1JET_8TEV_R06/launch.txt rename to ATLAS_1JET_8TEV_R06_legacy/launch.txt diff --git a/ATLAS_1JET_8TEV_R06_legacy/metadata.txt b/ATLAS_1JET_8TEV_R06_legacy/metadata.txt new file mode 100644 index 00000000..9f806692 --- /dev/null +++ b/ATLAS_1JET_8TEV_R06_legacy/metadata.txt @@ -0,0 +1,13 @@ +arxiv=1706.03192 +description=ATLAS double-differential inclusive jet cross section at 8 TeV +hepdata=10.17182/hepdata.76967.v1/t1, 10.17182/hepdata.76967.v1/t2, 10.17182/hepdata.76967.v1/t3, 10.17182/hepdata.76967.v1/t4, 10.17182/hepdata.76967.v1/t5, 10.17182/hepdata.76967.v1/t6 +nnpdf_id=ATLAS_1JET_8TEV_R06 +x1_label=yj +x1_label_tex=$y_{\mathrm{jet}}$ +x1_unit= +x2_label=ptj +x2_label_tex=$p_{\mathrm{T},\mathrm{jet}}$ +x2_unit=GeV +y_label=dsig/dptj +y_label_tex=$\frac{\mathrm{d}\sigma}{\mathrm{d}p_{\mathrm{T},\mathrm{jet}}$ +y_unit=pb/GeV diff --git a/ATLAS_1JET_8TEV_R06/output.txt b/ATLAS_1JET_8TEV_R06_legacy/output.txt similarity index 100% rename from ATLAS_1JET_8TEV_R06/output.txt rename to ATLAS_1JET_8TEV_R06_legacy/output.txt diff --git a/ATLAS_1JET_8TEV_R06_legacy/postrun.sh b/ATLAS_1JET_8TEV_R06_legacy/postrun.sh new file mode 100755 index 00000000..002fe282 --- /dev/null +++ b/ATLAS_1JET_8TEV_R06_legacy/postrun.sh @@ -0,0 +1,4 @@ +#!/bin/bash + +pineappl remap "${GRID}" "${GRID}".tmp '0,0.5,1,1.5,2,2.5,3;70,85,100,116,134,152,172,194,216,240,264,290,318,346,376,408,442,478,516,556,598,642,688,736,786,838,894,952,1012,1076,1162,1310,1530,1992,2500|70,85,100,116,134,152,172,194,216,240,264,290,318,346,376,408,442,478,516,556,598,642,688,736,786,838,894,952,1012,1076,1162,1310,1530,2500|70,85,100,116,134,152,172,194,216,240,264,290,318,346,376,408,442,478,516,556,598,642,688,736,786,838,894,952,1012,1076,1162,1310,1992|70,85,100,116,134,152,172,194,216,240,264,290,318,346,376,408,442,478,516,556,598,642,688,736,786,838,894,952,1012,1076,1310|70,85,100,116,134,152,172,194,216,240,264,290,318,346,376,408,442,478,516,556,598,642,688,736,838|70,85,100,116,134,152,172,194,216,240,264,290,318,346,376,408,442,478,556' --ignore_obs_norm 1 +mv "${GRID}".tmp "${GRID}" diff --git a/CMS_1JET_8TEV/metadata.txt b/CMS_1JET_8TEV/metadata.txt new file mode 100644 index 00000000..cd350d43 --- /dev/null +++ b/CMS_1JET_8TEV/metadata.txt @@ -0,0 +1,14 @@ +arxiv=1609.05331 +ploughshare=https://ploughshare.web.cern.ch/ploughshare/db/applfast/applfast-cms-incjets-appl-arxiv-1609.05331/applfast-cms-incjets-appl-arxiv-1609.05331.tgz +description=CMS double-differential inclusive jet cross section at 8 TeV. Downloaded from ploughshare, central scale mu=HT_parton. +hepdata=10.17182/hepdata.77222.v1/t1, 10.17182/hepdata.77222.v1/t2, 10.17182/hepdata.77222.v1/t3, 10.17182/hepdata.77222.v1/t4, 10.17182/hepdata.77222.v1/t5, 10.17182/hepdata.77222.v1/t6, 10.17182/hepdata.77222.v1/t7 +nnpdf_id=CMS_1JET_8TEV +x1_label=yj +x1_label_tex=$y_{\mathrm{jet}}$ +x1_unit= +x2_label=ptj +x2_label_tex=$p_{\mathrm{T},\mathrm{jet}}$ +x2_unit=GeV +y_label=d^2sig/dptdy +y_label_tex=$\frac{\mathrm{d}^2\sigma}{\mathrm{d}p_{\mathrm{T},\mathrm{jet}\mathrm{d}y}$ +y_unit=pb/GeV diff --git a/CMS_1JET_8TEV/ploughshare_link.txt b/CMS_1JET_8TEV/ploughshare_link.txt new file mode 100644 index 00000000..5b3dd345 --- /dev/null +++ b/CMS_1JET_8TEV/ploughshare_link.txt @@ -0,0 +1 @@ +https://ploughshare.web.cern.ch/ploughshare/db/applfast/applfast-cms-incjets-appl-arxiv-1609.05331/applfast-cms-incjets-appl-arxiv-1609.05331.tgz \ No newline at end of file diff --git a/CMS_1JET_8TEV/postrun.sh b/CMS_1JET_8TEV/postrun.sh new file mode 100755 index 00000000..992e9234 --- /dev/null +++ b/CMS_1JET_8TEV/postrun.sh @@ -0,0 +1,32 @@ +#!/bin/bash + +mkdir tmp + +# Bin mapping +bins[1]="0.0 <= |y| < 0.5" +bins[2]="0.5 <= |y| < 1.0" +bins[3]="1.0 <= |y| < 1.5" +bins[4]="1.5 <= |y| < 2.0" +bins[5]="2.0 <= |y| < 2.5" +bins[6]="2.5 <= |y| < 3.0" +bins[7]="3.2 <= |y| < 4.7" + +# Convert the grids to pineappl format under the right names. +# We only take the first 6, as they correspond to mu=H_T. +for i in {0..6}; do + j=$((i+1)) + src="grid_00${i}.appl" + temp_dst="tmp/CMS_1JET_8TEV_PTY_BIN${j}.pineappl.lz4" + dst="CMS_1JET_8TEV_PTY_BIN${j}.pineappl.lz4" + pineappl import "$src" "$temp_dst" NNPDF40_nnlo_as_01180 + current_bin=${bins[$j]} + pineappl write --set-key-value kin_bin "${current_bin}" ${temp_dst} ${dst} + rm ${temp_dst} + rm ${src} +done + +# Remove the non-H_T grids +rm *.appl +rm *.root + +rmdir tmp \ No newline at end of file