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

Commit 191f2ec

Browse files
tvamitomeichlersmith
authored andcommitted
Generalize LHEReader so it can read LHE v3.0 input as well
1 parent c8a30c1 commit 191f2ec

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/SimCore/LHE/LHEReader.cxx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ LHEEvent* LHEReader::readNextEvent() {
3333
LHEEvent* nextEvent = new LHEEvent(line);
3434

3535
while (getline(ifs_, line)) {
36-
if (line == "</event>") {
36+
if (line == "</event>" || line == "<mgrwt>") {
37+
// break if the event ended or in LHE 3.0 if we reach the mgrwt block
3738
break;
3839
}
3940

0 commit comments

Comments
 (0)