hepmc2dot module

class hepmc2dot.HepDotWriter(dotfile)[source]

Bases: object

Generates a dot file representing the given particles, interaction vertices and events

add_outgoing_particle(raw_hepmc_line)[source]
close()[source]

Terminates the currently open event and closes the output file.

start_new_event(raw_hepmc_line)[source]
start_new_vertex(raw_hepmc_line)[source]
hepmc2dot.convert(hepmc_file, dot_file)[source]

Converts the given HepMC::IO_GenEvent formatted file into a DOT formatted file

hepmc2dot.main(argv)[source]

Parses the given command line arguments and runs the conversion from the specified input HepMC::IO_GenEvent to the specified DOT output file