amanmdesai / LHEReader

Python Program to read LHE file and convert into ROOT Tree

Home Page:https://amanmdesai.github.io/LHEReader/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

LHEReader

DOI ![Website]

A python script to read Les Houches Event (LHE) files

Uses PyROOT to convert the output into a ROOT Tree

The structure of the LHE file is:

Event Level Info: Number of Particles, Status, event weight, scales, alpha_QED, alpha_QCD

Particle Level Info: PDG id, status, mother1, mother2, color1, color2, px, py, pz, energy, mass, lifetime, spin

Installation

git clone https://github.com/amanmdesai/LHEReader.git

Usage

python LHEReader --input input.lhe --output output.root


usage: LHEReader [-h] [--input INPUT] [--output OUTPUT]

Converts LHE files to ROOT Trees

options:
  -h, --help       show this help message and exit
  --input INPUT    Input file path and Name
  --output OUTPUT  Output file path and Name

where input and output refer to the path of the input and output files respectively

References:

  1. http://arxiv.org/abs/hep-ph/0609017

About

Python Program to read LHE file and convert into ROOT Tree

https://amanmdesai.github.io/LHEReader/

License:MIT License


Languages

Language:Python 100.0%