13 return frag+
'_'+key+
'_'+step+suffix
16 return step+suffix+
'_'+key
20 for year
in upgradeKeys:
21 for i,key
in enumerate(upgradeKeys[year]):
22 numWF=numWFAll[year][i]
23 for frag,info
in six.iteritems(upgradeFragments):
25 if (
"CE_E" in frag
or "CE_H" in frag)
and year==2017:
29 for specialType
in upgradeWFs.keys():
30 stepList[specialType] = []
32 for step
in upgradeProperties[year][key][
'ScenToRun']:
33 stepMaker = makeStepName
35 if 'HLBeamSpotFull' in step
and '14TeV' in frag:
36 step =
'GenSimHLBeamSpotFull14'
37 stepMaker = makeStepNameSim
39 if 'HARVEST' in step: hasHarvest =
True
41 for specialType,specialWF
in six.iteritems(upgradeWFs):
43 if specialType ==
'Premix':
53 s = step.replace(
'GenSim',
'Premix')
54 if not s
in specialWF.PU:
59 stepList[specialType].
append(stepMaker(key,
'PREMIX',s,specialWF.suffix))
60 elif (specialType
is not 'baseline')
and ( (
'PU' in step
and step.replace(
'PU',
'')
in specialWF.PU)
or (step
in specialWF.steps) ):
61 stepList[specialType].
append(stepMaker(key,frag[:-4],step,specialWF.suffix))
63 if (specialType ==
'ProdLike' or specialType ==
'TestOldDigiProdLike')
and 'RecoFullGlobal' in step:
64 stepList[specialType].
append(stepMaker(key,frag[:-4],step.replace(
'RecoFullGlobal',
'MiniAODFullGlobal'),specialWF.suffix))
65 elif specialType ==
'ProdLike' and 'RecoFull' in step:
66 stepList[specialType].
append(stepMaker(key,frag[:-4],step.replace(
'RecoFull',
'MiniAODFullGlobal'),specialWF.suffix))
68 stepList[specialType].
append(stepMaker(key,frag[:-4],step,
''))
70 for specialType,specialWF
in six.iteritems(upgradeWFs):
71 specialWF.workflow(workflows, numWF, info.dataset, stepList[specialType], key, hasHarvest)
73 inclPremix =
'PU' in key
76 for y
in [
'2021',
'2023',
'2024',
'2026']:
82 if info.dataset==
"NuGun":
84 datasetName =
'PREMIXUP' + key[2:].
replace(
"PU",
"").
replace(
"Design",
"") +
'_PU25'
85 workflows[numWF+upgradeWFs[
'Premix'].offset] = [datasetName, stepList[
'Premix']]
89 for step
in stepList[
'baseline']:
91 if "Digi" in step
or "Reco" in step:
92 s = s.replace(
"PU",
"PUPRMX", 1)
94 workflows[numWF+upgradeWFs[
'premixS2'].offset] = [info.dataset, slist]
100 return s.replace(
"_",
"PUPRMXCombined_")
101 return s+
"PUPRMXCombined"
103 workflows[numWF+upgradeWFs[
'premixS1S2'].offset] = [info.dataset,
106 [slist[1].
replace(
"PUPRMX",
"PUPRMXCombined")] +