FastJet Contrib for computing the Energy Mover's Distance and related geometric quantities
Project description
EventGeometry
EventGeometry is a Python package as well as FastJet contrib written primarily in C++. It incorporates the Wasserstein package for computing Wasserstein distances (known in particle physics as the Energy Mover's Distance) into the FastJet ecosystem.
Documentation
The Wasserstein package has good Python and C++ documentation. The main additions of the EventGeometry package are a FastJetEvent
class that enables events composed either of a PseudoJet
with constituents, or a vector of PseudoJets that can represent any particles.
Particle Weights
The EMD requires a notion of "weight" to use for each particle. EventGeometry is quite flexible in this regard, and allows for the following options:
For use primarily with hadronic/pp events:
For use primarily with e+e- events:
For more details, see the source code.
Pairwise Distances
The EMD also requires a notion of distance between particles. EventGeometry supports several options:
For use primarily with hadronic/pp events:
For use primarily with e+e- events:
Preprocessors
The EMD
and PairwiseEMD
classes can preprocess events before computing the Energy Mover's Distance. Available preprocessors include:
CenterEScheme
: Computes the E-scheme axis (by adding Cartesian four-momenta) and centers the particles such that the axis is at the origin.CenterPtCentroid
: Computes the pT-weighted centroid of the particles in the rapidity-azimuth plane and centers the particles such that the axis is at the origin.CenterWeightedCentroid
: Computes the weighted centroid axis (according to whatever particle weight is being used) and centers the particles that the axis is at the origin.MaskCircle(Rmax)
: Removes particles from the event that are farther thanRmax
away from the axis of the event. Note that this generally only makes sense after using one of the previous Preprocessors to center the event so that the axis is defined.
C++ Usage
The EventGeometry library can be used in header-only mode by including the file EventGeometry.hh
(note that the path to the wasserstein
folder should be known to the compiler). If compiling an EventGeometry library is desired, one can run make shared
(this should work on Linux and MacOS) in order to compile a shared library with appropriate multi-threading capabilities (fully thread-safe even though FastJet may not be). In this case, one should include the line #define DECLARE_EVENTGEOMETRY_TEMPLATES
prior to including EventGeometry.hh
and one should also link appropriately with the EventGeometry library.
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 Distributions
File details
Details for the file EventGeometry-1.0.0.tar.gz
.
File metadata
- Download URL: EventGeometry-1.0.0.tar.gz
- Upload date:
- Size: 196.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/57.0.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.8.11
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 015df7a0c0cfbda16a9350ba8b466613138d438d5faaf73c53adc5871234caaf |
|
MD5 | c0005fa6db752b54de8c057d0bc55024 |
|
BLAKE2b-256 | 37003ab46a6703be851528c3b57ea5931caa172e69a6483c3c2605c18cbfeb83 |
File details
Details for the file EventGeometry-1.0.0-cp39-cp39-win_amd64.whl
.
File metadata
- Download URL: EventGeometry-1.0.0-cp39-cp39-win_amd64.whl
- Upload date:
- Size: 520.5 kB
- Tags: CPython 3.9, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b8c24633928ff4043a15ce414fab8c33886f074b28b5d4bd0eb2383ed970e5fe |
|
MD5 | 2fb4a045d3fcd5dfacf30a3bb68826ad |
|
BLAKE2b-256 | 31f2bea9b1f142f7cc8c3954c696f187306d80c1afd87ab47c8b5ff9167bfc9b |
File details
Details for the file EventGeometry-1.0.0-cp39-cp39-win32.whl
.
File metadata
- Download URL: EventGeometry-1.0.0-cp39-cp39-win32.whl
- Upload date:
- Size: 425.2 kB
- Tags: CPython 3.9, Windows x86
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e5f496c5662f5befb7adf105e5b401f25c356550cfe91715f997d0871ff027fa |
|
MD5 | 8e5bdd0f620de5ca911233ea930e0067 |
|
BLAKE2b-256 | 520b20592b2a2e5385f1eb8148917cf51b9e84b83111d86339050e3c5caaee01 |
File details
Details for the file EventGeometry-1.0.0-cp39-cp39-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
.
File metadata
- Download URL: EventGeometry-1.0.0-cp39-cp39-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
- Upload date:
- Size: 676.7 kB
- Tags: CPython 3.9, manylinux: glibc 2.12+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.8.11
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4c704f73d0681902bdc2d9489b9192fc08fb609ae08a3ac16ab54dbe9ed9e5af |
|
MD5 | 0ed5f61605221a69da8cf4be1b9788a4 |
|
BLAKE2b-256 | 9625a545d77260bb578e40489fca680a2e8bfbc39ebaf8c773eb3461eeb44fae |
File details
Details for the file EventGeometry-1.0.0-cp39-cp39-manylinux_2_12_i686.manylinux2010_i686.whl
.
File metadata
- Download URL: EventGeometry-1.0.0-cp39-cp39-manylinux_2_12_i686.manylinux2010_i686.whl
- Upload date:
- Size: 662.5 kB
- Tags: CPython 3.9, manylinux: glibc 2.12+ i686
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.8.11
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5208c1b85afc21ab358b362b43808b3d4026b470bfdd3ffebb8a94a0e018441c |
|
MD5 | f8bfa1e127c4007b7674c12c5861973f |
|
BLAKE2b-256 | e548f7452ad77b1880d1fbad5a6c8415719234d9f0e7b3549dd02cec405338a3 |
File details
Details for the file EventGeometry-1.0.0-cp39-cp39-macosx_10_9_x86_64.whl
.
File metadata
- Download URL: EventGeometry-1.0.0-cp39-cp39-macosx_10_9_x86_64.whl
- Upload date:
- Size: 920.9 kB
- Tags: CPython 3.9, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.8.11
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 333a9f582a8c552e95b087f63b9af35a7de7f563a564da955de56a86b1d3b76b |
|
MD5 | 9aa92570c72f213a5cfc9d14ce7acb7d |
|
BLAKE2b-256 | eb576025cec03615bc30b68371fbee63304b3096e5b5b521727a80151705ebe2 |
File details
Details for the file EventGeometry-1.0.0-cp38-cp38-win_amd64.whl
.
File metadata
- Download URL: EventGeometry-1.0.0-cp38-cp38-win_amd64.whl
- Upload date:
- Size: 521.1 kB
- Tags: CPython 3.8, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7bf2e2c1854722225420a80768bbd83e8becb6c16e70ac140793109cc89ef9e8 |
|
MD5 | 3df3bf0a944d0cd576d9e78370e79582 |
|
BLAKE2b-256 | 8f09daf739003510ef05b1ba44954ada71bd37850c968cde06ae4590436b56b6 |
File details
Details for the file EventGeometry-1.0.0-cp38-cp38-win32.whl
.
File metadata
- Download URL: EventGeometry-1.0.0-cp38-cp38-win32.whl
- Upload date:
- Size: 424.2 kB
- Tags: CPython 3.8, Windows x86
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fd6a00dcd726d481f92c89a4a14b68a1af8640288840256a389dae43a0c23320 |
|
MD5 | 5f1d555de5b35dcde2f4bdbaacd8a913 |
|
BLAKE2b-256 | 7e4d8e3572395cb941ef029772d72600acb882dd3c0ebd02b561c72266e1c133 |
File details
Details for the file EventGeometry-1.0.0-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
.
File metadata
- Download URL: EventGeometry-1.0.0-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
- Upload date:
- Size: 676.3 kB
- Tags: CPython 3.8, manylinux: glibc 2.12+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.8.11
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7b78a965072aeae69b097b8ce3a4da011fafc359799d65e57cbf28c46a2eb687 |
|
MD5 | 5375ab44be25c8662325b455ab756fe9 |
|
BLAKE2b-256 | 25004d65bf65caaa2dcd3ffbcf02cde13ce504dcbe2ddba3af6f964159084862 |
File details
Details for the file EventGeometry-1.0.0-cp38-cp38-manylinux_2_12_i686.manylinux2010_i686.whl
.
File metadata
- Download URL: EventGeometry-1.0.0-cp38-cp38-manylinux_2_12_i686.manylinux2010_i686.whl
- Upload date:
- Size: 664.0 kB
- Tags: CPython 3.8, manylinux: glibc 2.12+ i686
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.8.11
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 56a4234477303eceb691f9d4883f3741cf3e31e30ce9677dcc9697b0f4a5dfeb |
|
MD5 | a3939030def9cbebd5e6872dd7f648db |
|
BLAKE2b-256 | f0420fc23fc802a8b91d3e182faf305fdb9b9bfdabde5dfb5136d0d67732f255 |
File details
Details for the file EventGeometry-1.0.0-cp38-cp38-macosx_10_9_x86_64.whl
.
File metadata
- Download URL: EventGeometry-1.0.0-cp38-cp38-macosx_10_9_x86_64.whl
- Upload date:
- Size: 921.5 kB
- Tags: CPython 3.8, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.8.11
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6a6c1aec56b27212b1278615a188fea9f314b08c9bcc0dad22ae8c463a180fc6 |
|
MD5 | 9de14be91f304144445027a876597640 |
|
BLAKE2b-256 | 13d400023c2e761e2cf0cce20ca770251e150a07f1d1aeaf7541716cda9d7161 |
File details
Details for the file EventGeometry-1.0.0-cp37-cp37m-win_amd64.whl
.
File metadata
- Download URL: EventGeometry-1.0.0-cp37-cp37m-win_amd64.whl
- Upload date:
- Size: 520.9 kB
- Tags: CPython 3.7m, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0599da9935e5db5de58104de14080b13d907f500e4ce65dbdf401d1a67098a50 |
|
MD5 | 36ee358d21ef3137f6953ffa72d42861 |
|
BLAKE2b-256 | fb2c5a994c6e8173a77f9247478aaa737270e8e12ed52d5cebec68499d1880c9 |
File details
Details for the file EventGeometry-1.0.0-cp37-cp37m-win32.whl
.
File metadata
- Download URL: EventGeometry-1.0.0-cp37-cp37m-win32.whl
- Upload date:
- Size: 423.8 kB
- Tags: CPython 3.7m, Windows x86
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a2d0d9caabaf42c93901fd1fe2f9b0752ed7d4a0f47af0bb7ced53b9c0a95a40 |
|
MD5 | 0e769f4fc2d7b9fdd02e8767e404bf1d |
|
BLAKE2b-256 | 4e23809b8af650d21c58ab8a805b57ed1dc1b07d7321fc101ddcaa9956f8d49d |
File details
Details for the file EventGeometry-1.0.0-cp37-cp37m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
.
File metadata
- Download URL: EventGeometry-1.0.0-cp37-cp37m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
- Upload date:
- Size: 674.7 kB
- Tags: CPython 3.7m, manylinux: glibc 2.12+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.8.11
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 092878d76cc25da1319b3787161260c25f60f5881f3f1360d1fd6d6653ff9272 |
|
MD5 | c84da4259b137f04f4129448e2120bb6 |
|
BLAKE2b-256 | 4002ea00394ee09fd7a5fb82753bd5ef63e69b6b170ce8bfccb9452999312a92 |
File details
Details for the file EventGeometry-1.0.0-cp37-cp37m-manylinux_2_12_i686.manylinux2010_i686.whl
.
File metadata
- Download URL: EventGeometry-1.0.0-cp37-cp37m-manylinux_2_12_i686.manylinux2010_i686.whl
- Upload date:
- Size: 661.7 kB
- Tags: CPython 3.7m, manylinux: glibc 2.12+ i686
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.8.11
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | da22c3a52b5d01eecab9efd4fd0f83da8dfa0c20579719fa59bc72fffbf6eee0 |
|
MD5 | f07a66f1ff7327ba3df48fbf806e140b |
|
BLAKE2b-256 | 6cbc80dd6304b1f0fefd7d4fa1a834d7c31e9b892dc649d048db7db1f26fbcff |
File details
Details for the file EventGeometry-1.0.0-cp37-cp37m-macosx_10_9_x86_64.whl
.
File metadata
- Download URL: EventGeometry-1.0.0-cp37-cp37m-macosx_10_9_x86_64.whl
- Upload date:
- Size: 920.9 kB
- Tags: CPython 3.7m, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.8.11
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3c3e8d9015496d086ef8ac003b1842a6f4eb806f6047029d7a87a2e9aa898d0f |
|
MD5 | f3a0769dd4396db61376b52bb0c53eb5 |
|
BLAKE2b-256 | ff821ae3316ace00208adf2a3076a5655542c84eccecc06bffb4ccfe470169e4 |
File details
Details for the file EventGeometry-1.0.0-cp36-cp36m-win_amd64.whl
.
File metadata
- Download URL: EventGeometry-1.0.0-cp36-cp36m-win_amd64.whl
- Upload date:
- Size: 520.7 kB
- Tags: CPython 3.6m, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 849755b5f75ed1d4b6f41861351cfd56899dc151c1326e36d31ebe3206a4e66e |
|
MD5 | 5d4ef1fbf7146581036122fb62a0e8f2 |
|
BLAKE2b-256 | 8c39a82c1d6c638188924819d2bf08bb5eddec4985a17f94cf37d2b5cbaade70 |
File details
Details for the file EventGeometry-1.0.0-cp36-cp36m-win32.whl
.
File metadata
- Download URL: EventGeometry-1.0.0-cp36-cp36m-win32.whl
- Upload date:
- Size: 423.8 kB
- Tags: CPython 3.6m, Windows x86
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 31bb58c6306cfd4ce62ea7c3eb887bedf51f9a8703deedc3c7d43bda5b81061f |
|
MD5 | 7711d5973e2def1f5dfa205725a93c5d |
|
BLAKE2b-256 | 29af7f98785662a32f46c23b655743092eb3a1d0776be7fe3643347cdf282b65 |
File details
Details for the file EventGeometry-1.0.0-cp36-cp36m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
.
File metadata
- Download URL: EventGeometry-1.0.0-cp36-cp36m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
- Upload date:
- Size: 674.7 kB
- Tags: CPython 3.6m, manylinux: glibc 2.12+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.8.11
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0f20d5a82f83c0da89278ce53f58e24ce4723faa997056d60ca063372129f955 |
|
MD5 | b2f8ba3991eed4ce9f9e07c59b4ed2a5 |
|
BLAKE2b-256 | 9fd272577979c840976d83ceea65d4ead654c4482aef06f231096f1231ac3ccb |
File details
Details for the file EventGeometry-1.0.0-cp36-cp36m-manylinux_2_12_i686.manylinux2010_i686.whl
.
File metadata
- Download URL: EventGeometry-1.0.0-cp36-cp36m-manylinux_2_12_i686.manylinux2010_i686.whl
- Upload date:
- Size: 661.7 kB
- Tags: CPython 3.6m, manylinux: glibc 2.12+ i686
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.8.11
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a430acb22a2bea6a43cce025f5fe5affda3f7d86c5c8268c9676afcd87dbcb2c |
|
MD5 | 636db17e9c8a96d1b62ff6cc37ac4393 |
|
BLAKE2b-256 | c2f480ff09c8ae033ce92424fa88bb74df262155df42838abbb7994e3720669f |
File details
Details for the file EventGeometry-1.0.0-cp36-cp36m-macosx_10_9_x86_64.whl
.
File metadata
- Download URL: EventGeometry-1.0.0-cp36-cp36m-macosx_10_9_x86_64.whl
- Upload date:
- Size: 920.9 kB
- Tags: CPython 3.6m, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.8.11
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e30064c19713730ad8b28fc8747353c24a4df15efa70d48d6155447e4eb83f16 |
|
MD5 | 2ed6e5b02b08b57c359dcc55de07553c |
|
BLAKE2b-256 | 26d24dbd4418a0a52a0116557d321aca3511f63fa1bc6fbd8a037b68331a0997 |