lhe2sqlite
Simple utility to convert LesHouchesEvents files to a sqlite database
Setup
To run, simply install the package
pip install lhe2sqlite [--user]
Then run with:
convertlhe2sqlite input.lhe output.sqlite3
Then you can examine the content with either stright SQL or your analysis tool of choice (eg pandas).
Schema
The resulting database has just 2 tables, event, and particle with a one-to-many relationship between them.
CREATE TABLE event (
event_number INTEGER PRIMARY KEY,
procId INTEGER,
weight FLOAT,
scale FLOAT,
aqed FLOAT,
aqcd FLOAT
);
CREATE TABLE particle (
event_number INTEGER REFERENCES event(event_number),
pdgId INTEGER,
status INTEGER,
mother1 INTEGER,
mother2 INTEGER,
color1 INTEGER,
color2 INTEGER,
px FLOAT,
py FLOAT,
pz FLOAT,
e FLOAT,
m FLOAT,
lifetime FLOAT,
spin FLOAT
);
Metadata
Release files for lhe2sqlite 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| lhe2sqlite-0.1.1.tar.gz | 2.6 kB | Details |
Release files / lhe2sqlite-0.1.1.tar.gz
| Download URL | lhe2sqlite-0.1.1.tar.gz |
|---|---|
| Size | 2.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ebb77df5b6b2e4b2db9378dd7539000d25d13d4831fe6e949179644dad587d56
|
|
BLAKE2b-256 checksum How to use checksums |
beb85e5194d1b47129186a52e121d50bf54d6793f42eac8d924a673019ef409e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1
|