Skip to content

Convert ASCII files generated by HepMC::IO_GenEvent to DOT graphs

License

Notifications You must be signed in to change notification settings

spagangriso/hepmc2dot

 
 

Repository files navigation

HepMC2DOT - Convert HepMC ASCII files to DOT graphs

Build Status Code Coverage Docs Status

The hepmc2dot.py scripts converts ASCII files generated by HepMC::IO_GenEvent to the common DOT graph format. It is tested only for Python 2.7 at this point.

HepMC is a High Energy Physics package for storing Monte Carlo event records. These records can typically be represented in a tree structure, where particles are edges and interaction vertices are nodes.

The official HepMC documentation is at: http://hepmc.web.cern.ch/hepmc/

Usage

Convert HepMC ASCII file hepmcfile.txt to DOT graph and store there result in dotfile.dot:

hepmc2dot.py hepmcfile.txt dotfile.dot [nevents] [skip]

where nevents limits the number of processed events and skip skips the given number of events from the start of the input file.

The utility script create-graph-pdf.sh is also provided to easily convert input HepMC or generated .dot files to a nicely formatted PDF file with one event per page.

Source

The source repository is on GitHub.

Documentation

Documentation can be found on Read the Docs.

About

Convert ASCII files generated by HepMC::IO_GenEvent to DOT graphs

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 96.2%
  • Shell 2.6%
  • Makefile 1.2%