Fork me on GitHub

Changes between Initial Version and Version 1 of Ticket #1498, comment 2


Ignore:
Timestamp:
May 25, 2021, 10:31:23 AM (3 years ago)
Author:
Pavel Demin

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #1498, comment 2

    initial v1  
    1717writer2 = hm.WriterAsciiHepMC2(sys.argv[2])
    1818if writer2.failed():
    19   sys.exit(1)
     19  sys.exit(2)
     20
     21event = hm.GenEvent()
     22reader3.read_event(event)
    2023
    2124while not reader3.failed():
    22   event = hm.GenEvent()
    23   reader3.read_event(event)
    24   if reader3.failed():
    25     break
    2625  writer2.write_event(event)
    2726  event.clear()
     27  reader3.read_event(event)
    2828
    2929writer2.close()