Skip to main content

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 git+https://github.com/jacanchaplais/heparchy.git#egg=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 event
    • com_energy()
    • signal_id(): pdgid of the particle of interest in the hard event
    • custom(): extend with your own key / value metadata pair for the process

Events

  • Data writing methods for final state particles:
    • pmu(): 2d numpy array of 4-momenta, each row [px, py, pz, e]
    • pdg(): pdgids
    • is_signal(): boolean tags identifying if particle constituent of signal
    • custom(): 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


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.1.2.tar.gz (25.2 kB view details)

Uploaded Source

Built Distribution

heparchy-0.1.2-py3-none-any.whl (14.8 kB view details)

Uploaded Python 3

File details

Details for the file heparchy-0.1.2.tar.gz.

File metadata

  • Download URL: heparchy-0.1.2.tar.gz
  • Upload date:
  • Size: 25.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.1

File hashes

Hashes for heparchy-0.1.2.tar.gz
Algorithm Hash digest
SHA256 e664540b8723b49523bee116bd1d8b33ca35abd5a1a94835261cd7e34ac266bb
MD5 e3020b1b11b8ea84c3aa0b833e42b137
BLAKE2b-256 aa6533de74b82e54e47e224fb6273564ea84fe5b88b57bc08a4aaf0ce9cf2f38

See more details on using hashes here.

File details

Details for the file heparchy-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: heparchy-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 14.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.1

File hashes

Hashes for heparchy-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 26b96b9f5ce79c2f1f95b52af59f43e71f9d671d772c45594a30ae6ad51036c9
MD5 5a68793b7d5edcefaea4a4c8ece869b5
BLAKE2b-256 12b6602c30ef28f1add93438ed2df305522d67225da6bad086ee409c5c2c7279

See more details on using hashes here.

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