Break Pythia8B Infinite Loop
There was an issue in Pythia 8B where, if the call to Pythia's next()
function failed repeatedly, the Gen_tf
script would enter an infinite loop. This would happen, for example, if the input LHE file ran out of events. Here, I've added some checks so that the script will throw an exception if a) the input LHE file runs out of events or, b) there are MaxFailures
(a JO property) consecutive failures of next()
for any reason.