a robust measure of event isotropy at colliders
Project description
Event Isotropy
A Robust Measure of Event Isotropy at Colliders (https://arxiv.org/abs/2004.06125)
C. Cesarotti and J. Thaler
Repository created December 2019 by Cari Cesarotti (ccesarotti@g.harvard.edu)
Installation
From this repository
In your Python environment from the top level of this repository run
python -m pip install .
From GitHub
In your Python environment run
python -m pip install "git+https://github.com/caricesarotti/event_isotropy.git#egg=eventIsotropy"
Event Isotropy Code
emdVar.py
This is the module with the functions to calculate the distances between sets for several distance measures as well as the event isotropy.
- Geometries
For the spherical case, one can calculate the measure (
_cdist_cos(X,Y)
) or the measure (_cdist_sqrt_cos(X,Y)
). To calculate, pass these functions arrays X, Y of the 3 momenta of each set.
For the cylindrical case, one can calculate the squared Euclidean distance in space (_cdist_phi_y(X,Y,ymax)
) or the unnormalized Euclidean distance in (_cdist_phi_y_sqrt(X,Y)
) space. Pass these functions arrays of the position in space and the maximum value of y
ymax.
For the ring case, one can calculate the distance in (_cdist_phi(X,Y)
) and (_cdist_phicos(X,Y)
). Pass the function the arrays of values X, Y.
- Event Isotropy Calculation
To calculate the event isotropy, use the function
emd_Calc(ev0,ev1,M)
where ev0, ev1 are the energy weights of the event and the uniform event, and M is the distance matrix between them as computed by one of the previous functions. Note, this function will also accept user defined distance matrices of the correct dimension.
spherGen.py
Generates spherical samples and some related quantities. To generate a spherical quasi-uniform event with particles for , use sphericalGen(i)
cylGen.py
Generates cylindrical samples and ring-like samples, as well as related quatities. To generate a cylinder with uniform tiling in the plane, use cylinderGen(piSeg, etaMax)
where piSeg is an integer, the number of slices in .
For a ring-like sample, use ringGen(piSeg)
where piSeg is an integer, the number of slices in .
Examples
There are three example programs in the examples
directory.
The examples have external dependencies, but can be installed through the test
extra with
python -m pip install --upgrade -e .[test]
evIsoSphere.py
file i
Calculates the spherical event isotropy of an uploaded event. User specifies file
name of event and spherical index i
. The file should be saved as the four momenta of the particles. i
is the sphere index, not particle number, and corresponds to the tiling of the quasi uniform comparison sphere. The number of particles in the sphere will be .
evIsoCyl.py
Calculates the cylindrical event isotropy of very coarse to very finely gridded cylinders for random extremal transverse dijet configurations. In the limit of large n
, we expect to see the event isotropy drop to zero. No user input needed.
evIsoRing.py
Calculates the ring isotropy between two rings at random orientations and with potentially different particle number. Generates 1000 random configurations to average event isotropy for given configuration. No user input needed.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file eventIsotropy-0.0.1.tar.gz
.
File metadata
- Download URL: eventIsotropy-0.0.1.tar.gz
- Upload date:
- Size: 9.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | aafc0b70ef66746f1f2f44057ac5e60d31cb7a88f33452365da35d9927172181 |
|
MD5 | cb7ea0cc817b0bb9e070f0c881d250a3 |
|
BLAKE2b-256 | e49e9ba90f5f96004db8f53b5ae0aa342d4c944a313098e56ce9876157852988 |
File details
Details for the file eventIsotropy-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: eventIsotropy-0.0.1-py3-none-any.whl
- Upload date:
- Size: 9.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a36fa91331758a37463a09ce43316f69e87a6904d8effd3b4fcc9d5616454345 |
|
MD5 | d02babfdec06eabde791745e696ad9b6 |
|
BLAKE2b-256 | 9dd165e58d5ce82a1a18281f78d33dd8139695c67597243934673b1a4a11ef9a |