preparations for new vegas

This commit is contained in:
hiro98 2020-05-07 09:59:15 +02:00
parent 8ffd096b33
commit 2841680c05
5 changed files with 19 additions and 13 deletions

View file

@ -92,3 +92,5 @@ For the numeric analysis a proton beam energy of
\result{xs/python/pdf/e_proton} has been chosen, in accordance to
\lhc{} beam energies. As for the cuts, \result{xs/python/pdf/eta} and
\result{xs/python/pdf/min_pT} have been set.
The result

View file

@ -29,7 +29,7 @@
** Global Config
#+begin_src jupyter-python :exports both :results raw drawer
η = 1
min_pT = 20
min_pT = 1000
e_proton = 6500 # GeV
interval_η = [-η, η]
interval = η_to_θ([-η, η])
@ -37,6 +37,10 @@
pdf = lhapdf.mkPDF("NNPDF31_lo_as_0118", 0)
#+end_src
#+RESULTS:
: LHAPDF 6.2.3 loading /usr/share/lhapdf/LHAPDF/NNPDF31_lo_as_0118/NNPDF31_lo_as_0118_0000.dat
: NNPDF31_lo_as_0118 PDF set, member #0, version 1; LHAPDF ID = 315000
We gonna export that for reference in the tex document.
#+begin_src jupyter-python :exports both :results raw drawer
tex_value(min_pT, prefix=r"\pt \geq ", prec=0, unit=r"\giga\electronvolt", save=("results/pdf/", "min_pT.tex"))
@ -486,23 +490,23 @@ Now, it would be interesting to know the total cross section.
xs_int_res, xs_sample = monte_carlo.integrate(
lambda x: gev_to_pb(2 * np.pi * dist_η_vec(x)),
np.array([interval_η, [pdf.xMin, 1], [pdf.xMin, 1]]),
num_points=20000000,
num_points=100000, #40000000,
adapt=False,
return_sample=True,
cache="cache/pdf/total_xs_20",
#cache="cache/pdf/total_xs_20",
)
xs_int_res.result, xs_int_res.sigma
xs_int_res.result*2, xs_int_res.sigma*2
#+end_src
#+RESULTS:
| 4.749435703415442 | 0.22221593406904638 |
| 2.9756849800991106e-05 | 6.610709581501955e-07 |
#+begin_src jupyter-python :exports both :results raw drawer
xs_int_res.result*(3/2)**2, xs_int_res.sigma*(3/2)**2
#+end_src
#+RESULTS:
| 10.686230332684746 | 0.49998585165535436 |
| 10.160028081500599 | 0.33149821547417074 |
#+begin_src jupyter-python :exports both :results raw drawer
sherpa, sherpa_σ = np.loadtxt("../../runcards/pp_sherpa_299_port/sherpa_xs")[0:2]
@ -520,7 +524,7 @@ there are two identical protons.
#+end_src
#+RESULTS:
: 1.4743867004729503
: 1.512085037578425
A factor of (3/2)^2. Hmm.
#+begin_src jupyter-python :exports both :results raw drawer
@ -528,7 +532,7 @@ np.abs(sherpa - xs_int_res.result*(3/2)**2)
#+end_src
#+RESULTS:
: 0.36183033268474496
: 0.16437191849940191
We use this as upper bound, as the maximizer is bogus because of the
cuts!

View file

@ -12,7 +12,7 @@ BEAMS: [2212, 2212]
BEAM_ENERGIES: 6500
PDF_LIBRARY: LHAPDFSherpa
PDF_SET: NNPDF31_lo_as_0118
PDF_SET_VERSIONS: [0, 1]
PDF_SET_VERSIONS: [0, 0]
# SHERPA_LDADD:
# - FlatPDF
@ -43,7 +43,7 @@ MI_HANDLER: None
# cuts
SELECTORS:
- [Eta, 22, -1, 1]
- [PT, 22, 20, 200000000]
- [PT, 22, 1000, 200000000]
# no transverse impulses
BEAM_REMNANTS: false

View file

@ -1,5 +1,5 @@
sherpa_xs: Sherpa.yaml
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
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";}' | tee sherpa_xs
ROOT_DIR:=$(shell dirname $(realpath $(firstword $(MAKEFILE_LIST))))
analysis: Sherpa.yaml

View file

@ -1,2 +1,2 @@
9.72383
0.00966458
2.88725e-05
3.86638e-08