Skip to content
This repository has been archived by the owner on May 6, 2024. It is now read-only.

Commit

Permalink
Generalize LHEReader so it can read LHE v3.0 input as well
Browse files Browse the repository at this point in the history
  • Loading branch information
tvami authored and tomeichlersmith committed Mar 18, 2024
1 parent c8a30c1 commit 191f2ec
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/SimCore/LHE/LHEReader.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ LHEEvent* LHEReader::readNextEvent() {
LHEEvent* nextEvent = new LHEEvent(line);

while (getline(ifs_, line)) {
if (line == "</event>") {
if (line == "</event>" || line == "<mgrwt>") {
// break if the event ended or in LHE 3.0 if we reach the mgrwt block
break;
}

Expand Down

0 comments on commit 191f2ec

Please sign in to comment.