You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Take the following hepmc2 file containing a single semileptonic ttH event: events.zip and visualize this event using pyhepmc version 2.13.2 to a pdf (I am piping to dot -Tpdf > event.pdf):
with pyhepmc.open("test.hepmc") as f:
event = f.read()
print(to_dot(event))
The resulting event contains two W bosons (which one can easily search for in the PDF) one of which contains into a single up quark and nothing else. However if I do
import pyhepmc
import numpy as np
with pyhepmc.open("test.hepmc") as f:
event = f.read()
for particle in event.particles:
if np.abs(particle.pid) == 24:
print(len(particle.children))
I can see that len(particle.children) is 2 for both W bosons as it should be. Seems like there is a bug in the to_dot function.
The text was updated successfully, but these errors were encountered:
Take the following hepmc2 file containing a single semileptonic ttH event: events.zip and visualize this event using pyhepmc version 2.13.2 to a pdf (I am piping to
dot -Tpdf > event.pdf
):The resulting event contains two W bosons (which one can easily search for in the PDF) one of which contains into a single up quark and nothing else. However if I do
I can see that
len(particle.children)
is2
for both W bosons as it should be. Seems like there is a bug in theto_dot
function.The text was updated successfully, but these errors were encountered: