Skip to content

Commit

Permalink
Allow Patatrack workflows to drop unused steps
Browse files Browse the repository at this point in the history
  • Loading branch information
fwyzard committed Oct 5, 2021
1 parent ffe0bbf commit 928ab07
Showing 1 changed file with 12 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -456,11 +456,20 @@ def condition(self, fragment, stepList, key, hasHarvest):

def setup_(self, step, stepName, stepDict, k, properties):
if 'Digi' in step:
stepDict[stepName][k] = merge([self.__digi, stepDict[step][k]])
if self.__digi is None:
stepDict[stepName][k] = None
else:
stepDict[stepName][k] = merge([self.__digi, stepDict[step][k]])
elif 'Reco' in step:
stepDict[stepName][k] = merge([self.__reco, stepDict[step][k]])
if self.__reco is None:
stepDict[stepName][k] = None
else:
stepDict[stepName][k] = merge([self.__reco, stepDict[step][k]])
elif 'HARVEST' in step:
stepDict[stepName][k] = merge([self.__harvest, stepDict[step][k]])
if self.__harvest is None:
stepDict[stepName][k] = None
else:
stepDict[stepName][k] = merge([self.__harvest, stepDict[step][k]])


upgradeWFs['PatatrackPixelOnlyCPU'] = PatatrackWorkflow(
Expand Down

0 comments on commit 928ab07

Please sign in to comment.