Skip to content

Commit 1250f1d

Browse files
author
AdrianoDee
committed
Fix ALCA input
1 parent 86a8712 commit 1250f1d

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Configuration/PyReleaseValidation/python/WorkFlowRunner.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -159,10 +159,11 @@ def closeCmd(i,ID):
159159
# Disable input for premix stage2 in FastSim to allow combined stage1+stage2 workflow (in FS, stage2 does also GEN)
160160
# Ugly hack but works
161161
if istep!=1 and not '--filein' in cmd and not 'premix_stage1' in cmd and not ("--fast" in cmd and "premix_stage2" in cmd):
162-
if "ALCA" not in cmd:
162+
steps = cmd.split("-s ")[1].split(" ")[0] ## relying on the syntax: cmsDriver -s STEPS --otherFlags
163+
if "ALCA" not in steps:
164+
cmd+=' --filein file:step%s.root '%(istep-1,)
165+
elif "ALCA" in steps and "RECO" in steps:
163166
cmd+=' --filein file:step%s.root '%(istep-1,)
164-
elif "ALCA" in cmd and "RECO" in cmd:
165-
cmd+=' --filein file:step%s.root '%(istep-1,)
166167
else:
167168
cmd+=' --filein %s'%(self.recoOutput)
168169
if not '--fileout' in com:

0 commit comments

Comments
 (0)