From 191f2eccfefb20f293f9c2e8ab5e89ec3da1d9aa Mon Sep 17 00:00:00 2001 From: Tamas Vami Date: Wed, 13 Mar 2024 08:59:40 -0700 Subject: [PATCH] Generalize LHEReader so it can read LHE v3.0 input as well --- src/SimCore/LHE/LHEReader.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/SimCore/LHE/LHEReader.cxx b/src/SimCore/LHE/LHEReader.cxx index dffec200..58af19c8 100644 --- a/src/SimCore/LHE/LHEReader.cxx +++ b/src/SimCore/LHE/LHEReader.cxx @@ -33,7 +33,8 @@ LHEEvent* LHEReader::readNextEvent() { LHEEvent* nextEvent = new LHEEvent(line); while (getline(ifs_, line)) { - if (line == "") { + if (line == "" || line == "") { + // break if the event ended or in LHE 3.0 if we reach the mgrwt block break; }