Skip to content

Commit

Permalink
Use DIGI instead of DIGI:pdigi_valid in prodlike wfs
Browse files Browse the repository at this point in the history
  • Loading branch information
Norraphat committed May 26, 2021
1 parent 7971fe9 commit c84e36f
Showing 1 changed file with 15 additions and 0 deletions.
Expand Up @@ -547,6 +547,8 @@ class UpgradeWorkflow_ProdLike(UpgradeWorkflow):
def setup_(self, step, stepName, stepDict, k, properties):
if 'Digi' in step and 'Trigger' not in step:
stepDict[stepName][k] = merge([{'-s': 'DIGI,L1,DIGI2RAW,HLT:@relval2021', '--datatier':'GEN-SIM-DIGI-RAW', '--eventcontent':'RAWSIM'}, stepDict[step][k]])
elif 'DigiTrigger' in step: # for Phase-2
stepDict[stepName][k] = merge([{'-s': 'DIGI,L1TrackTrigger,L1,DIGI2RAW,HLT:@fake2'}, stepDict[step][k]])
elif 'Reco' in step:
stepDict[stepName][k] = merge([{'-s': 'RAW2DIGI,L1Reco,RECO,RECOSIM', '--datatier':'AODSIM', '--eventcontent':'AODSIM'}, stepDict[step][k]])
elif 'MiniAOD' in step:
Expand All @@ -562,6 +564,7 @@ def condition(self, fragment, stepList, key, hasHarvest):
upgradeWFs['ProdLike'] = UpgradeWorkflow_ProdLike(
steps = [
'Digi',
'DigiTrigger',
'Reco',
'RecoGlobal',
'HARVEST',
Expand All @@ -572,6 +575,7 @@ def condition(self, fragment, stepList, key, hasHarvest):
],
PU = [
'Digi',
'DigiTrigger',
'Reco',
'RecoGlobal',
'HARVEST',
Expand Down Expand Up @@ -906,6 +910,17 @@ def setup_(self, step, stepName, stepDict, k, properties):
# copy steps, then apply specializations
UpgradeWorkflowPremix.setup_(self, step, stepName, stepDict, k, properties)
UpgradeWorkflow_ProdLike.setup_(self, step, stepName, stepDict, k, properties)
#
if 'Digi' in step:
d = merge([stepDict[self.getStepName(step)][k]])
tmpsteps = []
for s in d["-s"].split(","):
if s == "DIGI:pdigi_valid" in s:
tmpsteps.append("DIGI")
else:
tmpsteps.append(s)
d = merge([{"-s" : ",".join(tmpsteps)},d])
stepDict[stepName][k] = d
def condition(self, fragment, stepList, key, hasHarvest):
# use both conditions
return UpgradeWorkflowPremix.condition(self, fragment, stepList, key, hasHarvest) and UpgradeWorkflow_ProdLike.condition(self, fragment, stepList, key, hasHarvest)
Expand Down

0 comments on commit c84e36f

Please sign in to comment.