Skip to main content

Interface to High Energy Physics tools.

Project description

HEPi

Python interface for gluing together several HEP programs (e.g. from HEPForge https://www.hepforge.org/).

PyPI version downloads DOI SSLBinder MyBinder Unstable test Coverage Status Codacy Badge Codacy Badge Documentation

Goals

The goal of this project is to provide a simple and easy to use interface to common high-energy-physics tools (currently mainly SUSY related Tools). Parameter scans and plotting is also included. Different tools should just be plugged in and out as desired (i.e. generate a SUSY spectrum before running a scan with MadGraph).

Idea

First generate a list of interested parameter points i.e. mass 100 to 1000 GeV squark. Then if you also want to scan over the gluino mass just ask for a scan over previous list, and you get a 2d scan. After generating all parameters they can be used to directly run the codes (in parallel or sequential) or just generate the input file for distribution across several clusters. The results then can be imported again and plotted nicely.

Realization

In the working directory you have an input and output folder. The input would typically contain the baseline slha file. The output will contain the produced scripts to execute the tools. To avoid file collisions the files in the output folder correspond to a hashed value of all input parameters. If a result already exists hepi won't rerun the tool.

Documentation

For more details on the usage of different tools, called runners, check the respective documentation.

Versions

Stable

pip install hepi[opt] [--user] [--upgrade]

[opt] can be omitted to avoid optional dependencies (ie. lhapdf).

HEPi-fast

HEPi-fast interpolates grids similarly to (n)nll-fast but also for Resummino.
They are given as JSON files as for the CERN SUSY wiki in xsec. A default set of grids is in the source folder hepi/data/json/. HEPi can be used to generate such JSON files for convenient reloading of the data. Just enter a mass point and the cross sections are returned:

$ hepi-fast --help
[...]
$ hepi-fast 13600_sleptons_1000011_-1000011_NNLL.json
547
0 547.0 0.0003595877111213834 2.524930051307783e-05 -2.520906052972218e-05 1.7378151961260709e-06 -9.940418204744763e-07 2.5189449167488203e-05 -2.5189449167488203e-05
988
0 988.0 1.431846191827644e-05 2.44205862446039e-06 -2.4413596449724868e-06 6.14033144355307e-08 -2.0494188119845572e-08 2.4412735921747426e-06 -2.4412735921747426e-06
547
0 547.0 0.00035958771606265744 -2.5249300930888148e-05 2.5209060862746587e-05 -1.737815390324732e-06 9.940418677810902e-07 -2.5189449417355387e-05 2.5189449417355387e-05
988
0 988.0 1.4318461918225316e-05 -2.4420586244508355e-06 2.441359644963803e-06 -6.140331443352323e-08 2.0494188119359375e-08 -2.4412735921671295e-06 2.4412735921671295e-06
[...]

Above shows slepton-pair cross section for requested 547 and 988 GeV mass at aNNLO+NNLL. The order of the output is

ID | Central value | error up | error down | error scale up | error scale down | error pdf up | error pdf down

If you just want to look at a quick plot of the interpolation run

$ hepi-fast pp13_squark_NNLO+NNLL.json --plot

for something like

plot

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hepi-0.3.5.tar.gz (673.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hepi-0.3.5-py3-none-any.whl (717.2 kB view details)

Uploaded Python 3

File details

Details for the file hepi-0.3.5.tar.gz.

File metadata

  • Download URL: hepi-0.3.5.tar.gz
  • Upload date:
  • Size: 673.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.27.2

File hashes

Hashes for hepi-0.3.5.tar.gz
Algorithm Hash digest
SHA256 5e486b8a1b15613bcff4e46edeb2763b81664661a704c2a199eb5bcb7a40ddd6
MD5 957a3bcac7b69aecf0e506dd6743a8d9
BLAKE2b-256 cff6d06dc55a7fd0ccb68231de146873e7b665409c977df669cc9e3701f5d223

See more details on using hashes here.

File details

Details for the file hepi-0.3.5-py3-none-any.whl.

File metadata

  • Download URL: hepi-0.3.5-py3-none-any.whl
  • Upload date:
  • Size: 717.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.27.2

File hashes

Hashes for hepi-0.3.5-py3-none-any.whl
Algorithm Hash digest
SHA256 25ee6aaec0e4439eaab1bef5005605bce88ba0268f0f28e9dce8cb0e0f2673a4
MD5 8e412d7877e780bb7b1aa280849856a8
BLAKE2b-256 ce3527c663af06a3b84625b9c3be90297083756499d06f0c6495dbbc3a3bdb8b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page