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 'HLBeamSpot' in step
and '14TeV' in frag:
36 step =
'GenSimHLBeamSpot14'
37 stepMaker = makeStepNameSim
39 if 'HARVEST' in step: hasHarvest =
True
41 for specialType,specialWF
in six.iteritems(upgradeWFs):
42 if (specialType
is not 'baseline')
and ( (
'PU' in step
and step.replace(
'PU',
'')
in specialWF.PU)
or (step
in specialWF.steps) ):
43 stepList[specialType].
append(stepMaker(key,frag[:-4],step,specialWF.suffix))
45 if (specialType ==
'ProdLike' or specialType ==
'TestOldDigiProdLike')
and 'RecoGlobal' in step:
46 stepList[specialType].
append(stepMaker(key,frag[:-4],step.replace(
'RecoGlobal',
'MiniAOD'),specialWF.suffix))
47 elif specialType ==
'ProdLike' and 'Reco' in step:
48 stepList[specialType].
append(stepMaker(key,frag[:-4],step.replace(
'Reco',
'MiniAOD'),specialWF.suffix))
50 elif 'PMX' in specialType:
52 s = step.replace(
'GenSim',
'Premix')+
'PU'
53 if step
in specialWF.PU:
54 stepMade = stepMaker(key,
'PREMIX',s,specialWF.suffix)
56 if 'S2' in specialType: stepList[specialType].
append(stepMade)
58 else: stepList[specialType][-1] = stepMade
60 stepList[specialType].
append(stepMaker(key,frag[:-4],step,
''))
62 for specialType,specialWF
in six.iteritems(upgradeWFs):
64 if specialType==
"PMXS1":
65 stepList[specialType] = stepList[specialType][:1]
66 specialWF.workflow(workflows, numWF, info.dataset, stepList[specialType], key, hasHarvest)