Skip to content

Commit c84e36f

Browse files
author
Norraphat
committed
Use DIGI instead of DIGI:pdigi_valid in prodlike wfs
1 parent 7971fe9 commit c84e36f

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

Configuration/PyReleaseValidation/python/upgradeWorkflowComponents.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -547,6 +547,8 @@ class UpgradeWorkflow_ProdLike(UpgradeWorkflow):
547547
def setup_(self, step, stepName, stepDict, k, properties):
548548
if 'Digi' in step and 'Trigger' not in step:
549549
stepDict[stepName][k] = merge([{'-s': 'DIGI,L1,DIGI2RAW,HLT:@relval2021', '--datatier':'GEN-SIM-DIGI-RAW', '--eventcontent':'RAWSIM'}, stepDict[step][k]])
550+
elif 'DigiTrigger' in step: # for Phase-2
551+
stepDict[stepName][k] = merge([{'-s': 'DIGI,L1TrackTrigger,L1,DIGI2RAW,HLT:@fake2'}, stepDict[step][k]])
550552
elif 'Reco' in step:
551553
stepDict[stepName][k] = merge([{'-s': 'RAW2DIGI,L1Reco,RECO,RECOSIM', '--datatier':'AODSIM', '--eventcontent':'AODSIM'}, stepDict[step][k]])
552554
elif 'MiniAOD' in step:
@@ -562,6 +564,7 @@ def condition(self, fragment, stepList, key, hasHarvest):
562564
upgradeWFs['ProdLike'] = UpgradeWorkflow_ProdLike(
563565
steps = [
564566
'Digi',
567+
'DigiTrigger',
565568
'Reco',
566569
'RecoGlobal',
567570
'HARVEST',
@@ -572,6 +575,7 @@ def condition(self, fragment, stepList, key, hasHarvest):
572575
],
573576
PU = [
574577
'Digi',
578+
'DigiTrigger',
575579
'Reco',
576580
'RecoGlobal',
577581
'HARVEST',
@@ -906,6 +910,17 @@ def setup_(self, step, stepName, stepDict, k, properties):
906910
# copy steps, then apply specializations
907911
UpgradeWorkflowPremix.setup_(self, step, stepName, stepDict, k, properties)
908912
UpgradeWorkflow_ProdLike.setup_(self, step, stepName, stepDict, k, properties)
913+
#
914+
if 'Digi' in step:
915+
d = merge([stepDict[self.getStepName(step)][k]])
916+
tmpsteps = []
917+
for s in d["-s"].split(","):
918+
if s == "DIGI:pdigi_valid" in s:
919+
tmpsteps.append("DIGI")
920+
else:
921+
tmpsteps.append(s)
922+
d = merge([{"-s" : ",".join(tmpsteps)},d])
923+
stepDict[stepName][k] = d
909924
def condition(self, fragment, stepList, key, hasHarvest):
910925
# use both conditions
911926
return UpgradeWorkflowPremix.condition(self, fragment, stepList, key, hasHarvest) and UpgradeWorkflow_ProdLike.condition(self, fragment, stepList, key, hasHarvest)

0 commit comments

Comments
 (0)