Skip to main content

Data driven extraction of jet energy loss distributions in heavy ion collisions

Code Authors: Long-Gang Pang, Ya-Yun He and Xin-Nian Wang

Introduction

This python package is a simple tool to extract the pt loss distribution and the mean pt loss as a function of jet pt, from the experimental single jet RAA for AA collisions at a specific beam energy (with pt spectra in proton+proton collisions at the same beam energy) or the single hadron/gamma hadron pt spectra (without pt spectra in proton+proton collisions).

Example:

from jeteloss import PythiaPP, RAA2Eloss
pp_x, pp_y = PythiaPP(sqrts_in_gev = 2760)
raa_fname = "RAA_2760.txt"
eloss = RAA2Eloss(raa_fname, pp_x, pp_y)
eloss.train()
eloss.save_results()
eloss.plot_mean_ptloss()
eloss.plot_pt_loss_dist()

The format of input data "RAA_2760.txt": The first row is the comment row start with "#" and data description for the following columns, "RAA_x, RAA_xerr, RAA_y, RAA_yerr" where RAA_x is the pt bins, RAA_xerr is the uncertainties of these pt bins, RAA_y is the RAA value in one A+A collisions, RAA_yerr is the uncertainties of RAA_y.

Results

Citation

If you have used this package to produce results for presentation/publications, please cite the following two papers, from where one can find the detailed information of the underlying physics.

Installation

Method 1: using pip

Step 1:

pip install jeteloss

Step 2:

git clone git@github.com:lgpang/jeteloss.git

Step 3:

cd jeteloss/examples

python example1.py

Method 2: install from local directory

Step 1: download the code from github

git clone git@github.com:lgpang/jeteloss.git

Step 2: install jeteloss and dependences

cd jeteloss

python setup.py install

Step 3: run example code

cd examples

python example1.py

Method 3: using anaconda

Step 1: To create one clean python virtual environment

conda create -n test_jeteloss python=3.6

Step 2: To activate this environment, use:

source activate test_jeteloss

Step 3: Install jeteloss module and its dependences

pip install jeteloss

Step 4: Run the example code downloaded using:

git clone git@github.com:lgpang/jeteloss.git

cd jeteloss/examples

python example1.py

Step 5: To deactivate an active environment, use:

source deactivate

Step 6: Clean up To see how many environments do you have, use:

conda env list

To remove one environment, use:

conda remove --name test_jeteloss --all

Release files for jeteloss 0.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for jeteloss 0.7
File Size Uploaded
jeteloss-0.7.tar.gz 31.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for jeteloss 0.7
File Interpreter ABI Platform
jeteloss-0.7-py3-none-any.whl Python 3 none any Details

Total release size:62.3 kB

Release files / jeteloss-0.7.tar.gz

Download URL jeteloss-0.7.tar.gz
Size 31.1 kB
Tags Source
SHA-256 checksum
How to use checksums
ae6c2e53dd05668809be15b911c2312d10214e3a4e49b6ebee478f51b9fc6014
BLAKE2b-256 checksum
How to use checksums
8649bfc73b6bcef0b877aceeccf796325d10f895d27c0172c8b46f203cb20d3d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.6.6

Release files / jeteloss-0.7-py3-none-any.whl

Download URL jeteloss-0.7-py3-none-any.whl
Size 31.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1fa16de37f6080bdcb37c40c124cac2737c97350d0d7f38e4f95285f07dd5185
BLAKE2b-256 checksum
How to use checksums
b1693a7c9944c0f19cc4a434c258ebbc0dc357bf4a9a655efa02a6ab7bf82082
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.6.6

Release history Release notifications | RSS feed

This release

0.7 This release

2 release files

0.6

2 release files

0.4

2 release files

0.3

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page