Hi! I am using the following code:
import model modelN_UFO
import_events decay Upsilon-distr.hepmc
decay ups4s > b+ b-
add process displaced_decay ups4s
output test
launch test
where the file Upsilon-distr.hepmc has the form
HepMC::Version 2.06.09
HepMC::IO_GenEvent-START_EVENT_LISTING
E 0 -1 -1.0000000000000000e+00 -1.0000000000000000e+00 -1.0000000000000000e+00 0 0 1 0 0 0 0
U GEV MM
V -1 0 0 0 0 0 0 1 0
P 1 300553 0.0000000000000000e+00 0.0000000000000000e+00 3.0000000000000000e+00 1.099710871092943e+01 1.02800000000000000e+01 0 0 0 0 0
E 1 -1 -1.0000000000000000e+00 -1.0000000000000000e+00 -1.0000000000000000e+00 0 0 1 0 0 0 0
U GEV MM
V -1 0 0 0 0 0 0 1 0
P 1 300553 0.0000000000000000e+00 0.0000000000000000e+00 3.0000000000000000e+00 1.099710871092943e+01 1.02800000000000000e+01 0 0 0 0 0
E 2 -1 -1.0000000000000000e+00 -1.0000000000000000e+00 -1.0000000000000000e+00 0 0 1 0 0 0 0
U GEV MM
V -1 0 0 0 0 0 0 1 0
P 1 300553 0.0000000000000000e+00 0.0000000000000000e+00 3.0000000000000000e+00 1.099710871092943e+01 1.02800000000000000e+01 0 0 0 0 0
E 3 -1 -1.0000000000000000e+00 -1.0000000000000000e+00 -1.0000000000000000e+00 0 0 1 0 0 0 0
U GEV MM
V -1 0 0 0 0 0 0 1 0
P 1 300553 0.0000000000000000e+00 0.0000000000000000e+00 3.0000000000000000e+00 1.099710871092943e+01 1.02800000000000000e+01 0 0 0 0 0
E 4 -1 -1.0000000000000000e+00 -1.0000000000000000e+00 -1.0000000000000000e+00 0 0 1 0 0 0 0
U GEV MM
V -1 0 0 0 0 0 0 1 0
P 1 300553 0.0000000000000000e+00 0.0000000000000000e+00 3.0000000000000000e+00 1.099710871092943e+01 1.02800000000000000e+01 0 0 0 0 0
E 5 -1 -1.0000000000000000e+00 -1.0000000000000000e+00 -1.0000000000000000e+00 0 0 1 0 0 0 0
U GEV MM
V -1 0 0 0 0 0 0 1 0
P 1 300553 0.0000000000000000e+00 0.0000000000000000e+00 3.0000000000000000e+00 1.099710871092943e+01 1.02800000000000000e+01 0 0 0 0 0
E 6 -1 -1.0000000000000000e+00 -1.0000000000000000e+00 -1.0000000000000000e+00 0 0 1 0 0 0 0
U GEV MM
V -1 0 0 0 0 0 0 1 0
P 1 300553 0.0000000000000000e+00 0.0000000000000000e+00 3.0000000000000000e+00 1.099710871092943e+01 1.02800000000000000e+01 0 0 0 0 0
E 7 -1 -1.0000000000000000e+00 -1.0000000000000000e+00 -1.0000000000000000e+00 0 0 1 0 0 0 0
U GEV MM
V -1 0 0 0 0 0 0 1 0
P 1 300553 0.0000000000000000e+00 0.0000000000000000e+00 3.0000000000000000e+00 1.099710871092943e+01 1.02800000000000000e+01 0 0 0 0 0
E 8 -1 -1.0000000000000000e+00 -1.0000000000000000e+00 -1.0000000000000000e+00 0 0 1 0 0 0 0
U GEV MM
V -1 0 0 0 0 0 0 1 0
P 1 300553 0.0000000000000000e+00 0.0000000000000000e+00 3.0000000000000000e+00 1.099710871092943e+01 1.02800000000000000e+01 0 0 0 0 0
E 9 -1 -1.0000000000000000e+00 -1.0000000000000000e+00 -1.0000000000000000e+00 0 0 1 0 0 0 0
U GEV MM
V -1 0 0 0 0 0 0 1 0
P 1 300553 0.0000000000000000e+00 0.0000000000000000e+00 3.0000000000000000e+00 1.099710871092943e+01 1.02800000000000000e+01 0 0 0 0 0
E 10 -1 -1.0000000000000000e+00 -1.0000000000000000e+00 -1.0000000000000000e+00 0 0 1 0 0 0 0
U GEV MM
V -1 0 0 0 0 0 0 1 0
P 1 300553 0.0000000000000000e+00 0.0000000000000000e+00 3.0000000000000000e+00 1.099710871092943e+01 1.02800000000000000e+01 0 0 0 0 0
E 11 -1 -1.0000000000000000e+00 -1.0000000000000000e+00 -1.0000000000000000e+00 0 0 1 0 0 0 0
U GEV MM
V -1 0 0 0 0 0 0 1 0
P 1 300553 0.0000000000000000e+00 0.0000000000000000e+00 3.0000000000000000e+00 1.099710871092943e+01 1.02800000000000000e+01 0 0 0 0 0
...
E 100000 -1 -1.0000000000000000e+00 -1.0000000000000000e+00 -1.0000000000000000e+00 0 0 1 0 0 0 0
U GEV MM
V -1 0 0 0 0 0 0 1 0
P 1 300553 0.0000000000000000e+00 0.0000000000000000e+00 3.0000000000000000e+00 1.099710871092943e+01 1.02800000000000000e+01 0 0 0 0 0
HepMC::IO_GenEvent-END_EVENT_LISTING
When launching, it says
AttributeError : 'HEPMC_EventFile' object has no attribute 'zip_mode'. Could you please tell me where I may made an error?