Skip to content

Commit

Permalink
Merge pull request #228 from oliviermattelaer/patch-1
Browse files Browse the repository at this point in the history
Fix parsing issue for LHE reader
  • Loading branch information
BFuks authored Mar 18, 2024
2 parents 36e391a + 7887c2b commit 23e191d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tools/SampleAnalyzer/Process/Reader/LHEReader.cpp
Original file line number Diff line number Diff line change
@@ -133,7 +133,7 @@ MAbool LHEReader::ReadHeader(SampleFormat& mySample)
tag_simplified_pythia=true;
if ( (line.find("<MA5Format> Simplified LHE format </MA5Format>")!=std::string::npos) )
tag_simplified_ma5=true;
EndOfLoop = (line.find("<event>")!=std::string::npos);
EndOfLoop = (line.find("<event")!=std::string::npos);
}
while(!EndOfLoop);

@@ -224,7 +224,7 @@ StatusCode::Type LHEReader::ReadEvent(EventFormat& myEvent, SampleFormat& mySamp
// Read the line
if (!firstevent_ && !ReadLine(line)) return StatusCode::FAILURE;
// Detect tags
if (line.find("<event>")!=std::string::npos || firstevent_)
if (line.find("<event")!=std::string::npos || firstevent_)
{
event_block=true;
event_header=true;
@@ -288,7 +288,7 @@ StatusCode::Type LHEReader::ReadEvent(EventFormat& myEvent, SampleFormat& mySamp
do
{
if (!ReadLine(line)) return StatusCode::FAILURE;
EndOfLoop = (line.find("<event>")!=std::string::npos);
EndOfLoop = (line.find("<event")!=std::string::npos);
}
while(!EndOfLoop);
}

0 comments on commit 23e191d

Please sign in to comment.