Shell scripts that convert common HEP formats into Mathematica readable arrays. It can be used for parton-level output from MadGraph. It can be also used for Delphes ROOT output after converting it to LHCO format through root2lhco (e.g. ./Delphes/root2lhco /path/to/xx.root /path/to/xx.lhco
).
LHCOtoMathematica: The script transfers the LHCO information of a particle into an array of {particle ID, x momentum, y momentum, z momentum, energy, number of tracks}. Note that in the case of a lepton, the number of tracks is multiplied by the charge of the lepton (i.e. a muon -1, a positron +1).
LHEtoMathematica: The script transfers the LHE information of a particle into an array of {particle ID, x momentum, y momentum, z momentum, energy}.
- Ensure the script is executable (i.e. - run chmod a+x scriptname)
- Run
./LHCOtoMathematica /path/to/event.lhco >> /path/to/event.dat
or
./LHEtoMathematica /path/to/event.lhe 1 1 1 >> /path/to/event.dat
MIT