Skip to content

Latest commit

 

History

History
47 lines (31 loc) · 1.75 KB

README.rst

File metadata and controls

47 lines (31 loc) · 1.75 KB

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.