Skip to content
Snippets Groups Projects

fix LHE counting for NLO setups

Merged Christian Gutschow requested to merge cgutscho/athena:lhe_count_fix into 21.6
2 files
+ 5
5
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -789,15 +789,15 @@ if hasattr(runArgs, "outputTXTFile"):
# counting the number of events in LHE output
count_ev = 0
with open(eventsFile) as f:
for l in f:
count_ev += l.count('<event>')
lines = f.read()
count_ev = lines.count('/event')
print "MetaData: %s = %s" % ("Number of produced LHE events ", count_ev)
elif hasattr(runArgs, "inputGeneratorFile"):
# counting the number of events in LHE output
count_ev = 0
with open(eventsFile) as f:
for l in f:
count_ev += l.count('<event>')
lines = f.read()
count_ev = lines.count('/event')
print "MetaData: %s = %s" % ("Number of input LHE events ", count_ev)
if _checkattr("description", required=True):
Loading