12 return frag+
'_'+key+
'_'+step+suffix
15 return step+suffix+
'_'+key
21 return "GenOnly" in key
and specialType !=
'baseline' 23 for year
in upgradeKeys:
24 for i,key
in enumerate(upgradeKeys[year]):
25 numWF=numWFAll[year][i]
26 for frag,info
in upgradeFragments.items():
28 if (
"CE_E" in frag
or "CE_H" in frag)
and year==2017:
32 for specialType
in upgradeWFs.keys():
35 stepList[specialType] = []
37 for step
in upgradeProperties[year][key][
'ScenToRun']:
38 stepMaker = makeStepName
39 if 'Sim' in step
and 'Fast' not in step
and step !=
"Sim":
40 if 'HLBeamSpot' in step:
42 step =
'GenSimHLBeamSpot14' 43 if 'CloseByParticle' in frag
or 'CE_E' in frag
or 'CE_H' in frag:
44 step =
'GenSimHLBeamSpotHGCALCloseBy' 45 stepMaker = makeStepNameSim
47 if 'HLBeamSpot' in step:
49 step =
'GenHLBeamSpot14' 50 stepMaker = makeStepNameSim
52 if 'HARVEST' in step: hasHarvest =
True 54 for specialType,specialWF
in upgradeWFs.items():
59 if (specialType !=
'baseline')
and ( (
'PU' in step
and step.replace(
'PU',
'')
in specialWF.PU)
or (step
in specialWF.steps) ):
60 stepList[specialType].
append(
stepMaker(key,frag[:-4],step,specialWF.suffix))
62 if 'ProdLike' in specialType:
64 stepWoFakeHLT = step.replace(
'FakeHLT',
'')
65 stepList[specialType].
append(
stepMaker(key,frag[:-4],stepWoFakeHLT.replace(
'RecoGlobal',
'MiniAOD').
replace(
'RecoNano',
'MiniAOD').
replace(
'Reco',
'MiniAOD'),specialWF.suffix))
66 if 'RecoNano' in stepWoFakeHLT:
67 stepList[specialType].
append(
stepMaker(key,frag[:-4],stepWoFakeHLT.replace(
'RecoNano',
'Nano'),specialWF.suffix))
69 if 'HLT75e33' in specialType:
70 if 'RecoGlobal' in step:
71 stepList[specialType].
append(
stepMaker(key,frag[:-4],step.replace(
'RecoGlobal',
'HLT75e33'),specialWF.suffix))
73 if 'PMX' in specialType:
74 if 'GenSim' in step
or 'Gen' in step:
75 s = step.replace(
'GenSim',
'Premix').
replace(
'Gen',
'Premix')+
'PU' 76 if step
in specialWF.PU:
77 stepMade =
stepMaker(key,
'PREMIX',s,specialWF.suffix)
79 if 'S2' in specialType: stepList[specialType].
append(stepMade)
81 else: stepList[specialType][-1] = stepMade
85 for specialType,specialWF
in upgradeWFs.items():
89 if specialType==
"PMXS1":
90 stepList[specialType] = stepList[specialType][:1]
91 specialWF.workflow(workflows, numWF, info.dataset, stepList[specialType], key, hasHarvest)
def makeStepName(key, frag, step, suffix)
def replace(string, replacements)
def notForGenOnly(key, specialType)
...
portabletest::Matrix Matrix
def makeStepNameSim(key, frag, step, suffix)