Metadata-Version: 2.1
Name: lhe2sqlite
Version: 0.1.1
Summary: Simple utility to convert LesHouchesEvents files to a sqlite database
Home-page: https://github.com/cfangmeier/lhe2sqlite
Author: Caleb Fangmeier
Author-email: caleb@fangmeier.tech
License: MIT
Description: # lhe2sqlite
        Simple utility to convert LesHouchesEvents files to a sqlite database
        
        ## Setup
        
        To run, simply install the package
        
        ```sh
        pip install lhe2sqlite [--user]
        ```
        
        Then run with:
        
        ```sh
        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.
        
        ```sql
        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
        );
        ```
        
Keywords: lhe sqlite
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: License :: OSI Approved :: MIT License
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: End Users/Desktop
Classifier: Operating System :: Unix
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3.6
Description-Content-Type: text/markdown
