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 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.2b5.tar.gz (26.9 kB view details)

Uploaded Source

Built Distribution

heparchy-0.2b5-py3-none-any.whl (24.9 kB view details)

Uploaded Python 3

File details

Details for the file heparchy-0.2b5.tar.gz.

File metadata

  • Download URL: heparchy-0.2b5.tar.gz
  • Upload date:
  • Size: 26.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.15

File hashes

Hashes for heparchy-0.2b5.tar.gz
Algorithm Hash digest
SHA256 11fe534623acc0ef22913a5f3eda9f3d0ef0bfc9e268b2acc5481cb461877048
MD5 557231155278a7ca8da885413c2a4a05
BLAKE2b-256 b43ca84b4eebd81c51460c3caeb648490acca808f8f99ed5c60f5dd6c9781d76

See more details on using hashes here.

File details

Details for the file heparchy-0.2b5-py3-none-any.whl.

File metadata

  • Download URL: heparchy-0.2b5-py3-none-any.whl
  • Upload date:
  • Size: 24.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.15

File hashes

Hashes for heparchy-0.2b5-py3-none-any.whl
Algorithm Hash digest
SHA256 c1ce2d882d6aa9b3ec7ff5fc331c36821cdefabf3bbda56f59e93327c00d2049
MD5 2174158fb3257856ef021287e49c24bc
BLAKE2b-256 f8b7297a4478aa31bf6b6b528f2ef99c5c18da85cf8fab1e2df55d2c5daba823

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