Changes between Initial Version and Version 1 of Ticket #1498, comment 2
- Timestamp:
- May 25, 2021, 10:31:23 AM (3 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #1498, comment 2
initial v1 17 17 writer2 = hm.WriterAsciiHepMC2(sys.argv[2]) 18 18 if writer2.failed(): 19 sys.exit(1) 19 sys.exit(2) 20 21 event = hm.GenEvent() 22 reader3.read_event(event) 20 23 21 24 while not reader3.failed(): 22 event = hm.GenEvent()23 reader3.read_event(event)24 if reader3.failed():25 break26 25 writer2.write_event(event) 27 26 event.clear() 27 reader3.read_event(event) 28 28 29 29 writer2.close()