Hierarchical particle physics data I/O.
Project description
heparchy
Hierarchical database storage and access for high energy physics event data.
Docstrings are available, markdown documentation coming soon.
Installation
pip install heparchy
Features
- Fast and efficient storage
- Writes and reads from HDF5 files
- Data stored hierarchically
- Files contain processes
- Processes contain events
- Events contain datasets for the final state particles
- Process level metadata can be attached
- Context managers provide access to these containers
Data writing interface
Process
- Metadata writing methods:
string()
: MadGraph formatted string, ie.p p > t t~
decay()
: pdgids of incoming and outgoing particles for the hard eventcom_energy()
signal_id()
: pdgid of the particle of interest in the hard eventcustom()
: extend with your own key / value metadata pair for the process
Events
- Data writing methods for final state particles:
pmu()
: 2dnumpy
array of 4-momenta, each row[px, py, pz, e]
pdg()
: pdgidsis_signal()
: boolean tags identifying if particle constituent of signalcustom()
: extend with your own key / value dataset pair for the event
Coming soon
- Direct interface from HepMC files to HDF5 format
- Jupyter notebook examples
- Pip installation script
Warning: before the first release, the read interface may change to improve consistency with the write interface.
Breaking changes will be avoided following the iminent release of 1.0.0.
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
heparchy-0.2b1.tar.gz
(29.4 kB
view details)
Built Distribution
File details
Details for the file heparchy-0.2b1.tar.gz
.
File metadata
- Download URL: heparchy-0.2b1.tar.gz
- Upload date:
- Size: 29.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.9.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 87b88197573a77c6e5025d8c0952641a99b9d184a819cb0573833b2bdd8b0e7e |
|
MD5 | 63572bfc75e64229bf67d1de8ef2889c |
|
BLAKE2b-256 | dbca5807d0b3f969df4e8844d049cedba632153e7e009fcbf4f12dadd96935d4 |
File details
Details for the file heparchy-0.2b1-py3-none-any.whl
.
File metadata
- Download URL: heparchy-0.2b1-py3-none-any.whl
- Upload date:
- Size: 4.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.9.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e85cfdf15c078187aada1c3140a063f50f15194965c2537f007ddda8af2c8bb4 |
|
MD5 | 54a2e1bea0e355be8220e5a8fef25384 |
|
BLAKE2b-256 | e0abc711621719871d7eb99ca102c47999902b8f036fca2e200149920a9525d7 |