Skip to content

Commit

Permalink
set skipEvents for LHE input. Fix #8904 (#8912)
Browse files Browse the repository at this point in the history
  • Loading branch information
belforte authored Feb 4, 2025
1 parent d8d0d05 commit 925b896
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions scripts/TweakPSet.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,11 @@ def createScriptLines(opts, pklIn):
tweak.addParameter("process.maxEvents.input",
f"customTypeCms.untracked.int32({maxEvents})")

# special handling for LHE input files
if opts.lheInputFiles:
tweak.addParameter("process.source.skipEvents",
f"customTypeCms.untracked.uint32({int(opts.firstEvent) - 1})")

if opts.lastEvent:
tweak.addParameter("process.source.lastEvent",
f"customTypeCms.untracked.uint32({opts.lastEvent})")
Expand Down

0 comments on commit 925b896

Please sign in to comment.