From 97083d676eaf964e9073750ddb9b429f085bc96c Mon Sep 17 00:00:00 2001 From: hiro98 Date: Sun, 3 May 2020 12:26:52 +0200 Subject: [PATCH] read in partonic xs --- prog/python/qqgg/parton_density_function_stuff.org | 8 ++++++++ prog/runcards/pp_partonic/makefile | 2 +- prog/runcards/pp_partonic/sherpa_xs | 2 ++ 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/prog/python/qqgg/parton_density_function_stuff.org b/prog/python/qqgg/parton_density_function_stuff.org index 7b69829..72d7074 100644 --- a/prog/python/qqgg/parton_density_function_stuff.org +++ b/prog/python/qqgg/parton_density_function_stuff.org @@ -377,6 +377,14 @@ We have to convert that to picobarn. | 2.1137030945166285e-05 | 3.175822429495981e-08 | That is compatible with sherpa! +#+begin_src jupyter-python :exports both :results raw drawer + sherpa_part, sherpa_part_σ = np.loadtxt('../../runcards/pp_partonic/sherpa_xs') + sherpa_part, sherpa_part_σ # GeV +#+end_src + +#+RESULTS: +| 2.11499e-05 | 6.8969e-09 | + We can take some samples as well. #+begin_src jupyter-python :exports both :results raw drawer diff --git a/prog/runcards/pp_partonic/makefile b/prog/runcards/pp_partonic/makefile index af22636..fc5eedf 100644 --- a/prog/runcards/pp_partonic/makefile +++ b/prog/runcards/pp_partonic/makefile @@ -1,5 +1,5 @@ sherpa_xs: Sherpa.yaml - Sherpa -e 0 -a "" 'GENERATE_RESULT_DIRECTORY: false' | sed 's/\x1b\[[0-9;]*m//g' | sed -n 's/.*\s:\s\([0-9]*\.[0-9]*\)\spb\s+-\s(\s\([0-9]*\.[0-9]*e-*[0-9]*\).*/\\\sigma = \\\SI{\1\\\pm \2}{\\\pico\\\barn}/p' > sherpa_xs + Sherpa -e 0 -a "" 'GENERATE_RESULT_DIRECTORY: false' | sed 's/\x1b\[[0-9;]*m//g' | perl -ne 'while(/.*\s:\s([0-9]\.[0-9]+e-?[0-9]+)\spb\s\+-\s\(\s([0-9]\.[0-9]+e-?[0-9]+).*/g){print "$$1\n$$2";}' > sherpa_xs ROOT_DIR:=$(shell dirname $(realpath $(firstword $(MAKEFILE_LIST)))) analysis: Sherpa.yaml diff --git a/prog/runcards/pp_partonic/sherpa_xs b/prog/runcards/pp_partonic/sherpa_xs index e69de29..02c9905 100644 --- a/prog/runcards/pp_partonic/sherpa_xs +++ b/prog/runcards/pp_partonic/sherpa_xs @@ -0,0 +1,2 @@ +2.11499e-05 +6.8969e-09 \ No newline at end of file