Skip to main content

pyhf implementation of the ABCD method for background estimation

Project description

PyPI version

pyhf implementation of the ABCD method for background estimation

Instructions for lxplus

The code can be run on lxplus by following the instruction given below.

First, set up your environment with default version of python 3:

setupATLAS
lsetup "python pilot-default"

Then create a virtual python environment:

python3 -m venv env

This will create a directory named env which will contain all the necessary packages to run the code. Activate the virtual python environment with the following command:

source env/bin/activate

Any moment, you can shut down the virtual python environment with the bash command deactivate. You can later reactivate the environment by setting up the necessary python version on lxplus and run the bash command source env/bin/activate.

To run the code, you will have to download the necessary packages in the python environment (this only need to be done once):

pip install numpy matplotlib pyhf[contrib] iminuit

You can then use the package in python (in the src folder):

from abcd_pyhf import ABCD

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

abcd-pyhf-0.0.2.tar.gz (5.1 kB view hashes)

Uploaded Source

Built Distribution

abcd_pyhf-0.0.2-py3-none-any.whl (5.6 kB view hashes)

Uploaded Python 3

Supported by

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