Error in Pythia8 To hepmc To ROOT

I have been trying to plot data from a .hepmc file using ROOT by following a guide, and after the last step, this is what I’m getting. I’m not sure what to do. I’m new to this and any help would be appreciated.

(pythia8withhepmc2) raseeb@raseeb:~/hepmc2root/bin$ python hepmc2root.py madgraph2/ttbar_test/Events/run_03/tag_1_pythia8_events.hepmc.gz
** hepmc2root.py: can't open file madgraph2/ttbar_test/Events/run_03/tag_1_pythia8_events.hepmc.gz
Exception AttributeError: "hepmc2root instance has no attribute 'tree'" in <bound method hepmc2root.__del__ of <__main__.hepmc2root instance at 0x7f3350156780>> ignored

ROOT Version: ROOT 6.26/06
Platform: Ubuntu 20.04
Compiler: Not Provided


I guess it cannot open the file you specified? But we don’t maintain hepmc2root - maybe you could ask the maintainers?

Hi Raseeb Firdous Haroon,
Try following this:

Cheers,
Dharmender

1 Like