1 from copy
import copy, deepcopy
2 from collections
import OrderedDict
4 from .MatrixUtil
import merge, Kby
64 numWFConflict = [[20000,23200],[23600,28200],[28600,31400],[31800,32200],[32600,34600],[50000,51000]]
70 for year
in upgradeKeys:
71 for i
in range(0,len(upgradeKeys[year])):
72 numWFtmp = numWFStart[year]
if i==0
else (numWFAll[year][i-1] + numWFSkip)
73 for conflict
in numWFConflict:
74 if numWFtmp>=conflict[0]
and numWFtmp<conflict[1]:
75 numWFtmp = conflict[1]
77 numWFAll[year].
append(numWFtmp)
84 preventReuseKeyword =
'NOREUSE'
93 if not step
in self.
steps:
100 raise ValueError(
"Special workflow offset must be between 0.0 and 1.0")
102 stepName = step + self.
suffix + extra
105 stepNamePU = step +
'PU' + self.
suffix + extra
108 for step
in self.
steps:
114 def setup(self, stepDict, k, properties):
115 for step
in self.
steps:
122 def setup_(self, step, stepName, stepDict, k, properties):
124 def setupPU_(self, step, stepName, stepDict, k, properties):
126 def workflow(self, workflows, num, fragment, stepList, key, hasHarvest):
127 if self.condition(fragment, stepList, key, hasHarvest):
128 self.workflow_(workflows, num, fragment, stepList, key)
129 def workflow_(self, workflows, num, fragment, stepList, key):
130 fragmentTmp = [fragment, key]
132 workflows[num+self.
offset] = [ fragmentTmp, stepList ]
133 def condition(self, fragment, stepList, key, hasHarvest):
136 if "Sim" in stepName:
137 stepDict[stepName][k] =
None
138 upgradeWFs = OrderedDict()
141 def setup_(self, step, stepName, stepDict, k, properties):
142 cust=properties.get(
'Custom',
None)
143 era=properties.get(
'Era',
None)
144 modifier=properties.get(
'ProcessModifier',
None)
145 if cust
is not None: stepDict[stepName][k][
'--customise']=cust
146 if era
is not None: stepDict[stepName][k][
'--era']=era
147 if modifier
is not None: stepDict[stepName][k][
'--procModifier']=modifier
148 def condition(self, fragment, stepList, key, hasHarvest):
154 'GenSimHLBeamSpot14',
189 def condition(self, fragment, stepList, key, hasHarvest):
190 result = (fragment==
"TTbar_13" or fragment==
"TTbar_14TeV")
and not 'PU' in key
and hasHarvest
and self.
condition_(fragment, stepList, key, hasHarvest)
193 skipList = [s
for s
in stepList
if ((
"ALCA" in s)
or (
"Nano" in s))]
194 for skip
in skipList:
195 stepList.remove(skip)
201 def setup_(self, step, stepName, stepDict, k, properties):
202 if 'Reco' in step: stepDict[stepName][k] =
merge([self.
step3, stepDict[step][k]])
203 elif 'HARVEST' in step: stepDict[stepName][k] =
merge([{
'-s':
'HARVESTING:@trackingOnlyValidation+@trackingOnlyDQM'}, stepDict[step][k]])
212 suffix =
'_trackingOnly',
215 upgradeWFs[
'trackingOnly'].step3 = {
216 '-s':
'RAW2DIGI,RECO:reconstruction_trackingOnly,VALIDATION:@trackingOnlyValidation,DQM:@trackingOnlyDQM',
217 '--datatier':
'GEN-SIM-RECO,DQMIO',
218 '--eventcontent':
'RECOSIM,DQM',
221 step3_trackingOnly = upgradeWFs[
'trackingOnly'].step3
224 def setup_(self, step, stepName, stepDict, k, properties):
225 if 'Reco' in step
and stepDict[step][k][
'--era']==
'Run2_2017':
226 stepDict[stepName][k] =
merge([{
'--era':
'Run2_2017_trackingRun2'}, stepDict[step][k]])
234 suffix =
'_trackingRun2',
239 def setup_(self, step, stepName, stepDict, k, properties):
240 if 'Reco' in step
and stepDict[step][k][
'--era']==
'Run2_2017':
241 stepDict[stepName][k] =
merge([{
'--era':
'Run2_2017_trackingRun2'}, self.
step3, stepDict[step][k]])
242 elif 'HARVEST' in step: stepDict[stepName][k] =
merge([{
'-s':
'HARVESTING:@trackingOnlyValidation+@trackingOnlyDQM'}, stepDict[step][k]])
251 suffix =
'_trackingOnlyRun2',
254 upgradeWFs[
'trackingOnlyRun2'].step3 = upgradeWFs[
'trackingOnly'].step3
257 def setup_(self, step, stepName, stepDict, k, properties):
258 if 'Reco' in step
and stepDict[step][k][
'--era']==
'Run2_2017':
259 stepDict[stepName][k] =
merge([{
'--era':
'Run2_2017_trackingLowPU'}, stepDict[step][k]])
267 suffix =
'_trackingLowPU',
272 def setup_(self, step, stepName, stepDict, k, properties):
273 if 'Reco' in step: stepDict[stepName][k] =
merge([self.
step3, stepDict[step][k]])
274 elif 'HARVEST' in step: stepDict[stepName][k] =
merge([{
'-s':
'HARVESTING:@trackingOnlyValidation+@pixelTrackingOnlyDQM'}, stepDict[step][k]])
276 return '2017' in key
or '2018' in key
or '2021' in key
285 suffix =
'_pixelTrackingOnly',
288 upgradeWFs[
'pixelTrackingOnly'].step3 = {
289 '-s':
'RAW2DIGI:RawToDigi_pixelOnly,RECO:reconstruction_pixelTrackingOnly,VALIDATION:@pixelTrackingOnlyValidation,DQM:@pixelTrackingOnlyDQM',
290 '--datatier':
'GEN-SIM-RECO,DQMIO',
291 '--eventcontent':
'RECOSIM,DQM',
295 def setup_(self, step, stepName, stepDict, k, properties):
296 if 'Reco' in step: stepDict[stepName][k] =
merge([self.
step3, stepDict[step][k]])
298 return '2017' in key
or '2021' in key
305 suffix =
'_trackingMkFit',
308 upgradeWFs[
'trackingMkFit'].step3 = {
309 '--procModifiers':
'trackingMkFit'
314 def setup_(self, step, stepName, stepDict, k, properties):
315 if 'Reco' in step
or 'HARVEST' in step: stepDict[stepName][k] =
merge([{
'--procModifiers':
'seedingDeepCore'}, stepDict[step][k]])
316 def condition(self, fragment, stepList, key, hasHarvest):
317 result = (fragment==
"QCD_Pt_1800_2400_14" or fragment==
"TTbar_14TeV" )
and (
'2021' in key
or '2024' in key)
and hasHarvest
320 skipList = [s
for s
in stepList
if ((
"ALCA" in s)
or (
"Nano" in s))]
321 for skip
in skipList:
322 stepList.remove(skip)
332 suffix =
'_seedingDeepCore',
338 def setup_(self, step, stepName, stepDict, k, properties):
339 stepDict[stepName][k] =
merge([{
'--procModifiers':
'vectorHits'}, stepDict[step][k]])
340 def condition(self, fragment, stepList, key, hasHarvest):
341 return fragment==
"TTbar_14TeV" and '2026' in key
349 suffix =
'_vectorHits',
356 def setup_(self, step, stepName, stepDict, k, properties):
357 stepDict[stepName][k] =
merge([{
'--procModifiers':
'trackdnn'}, stepDict[step][k]])
359 def condition(self, fragment, stepList, key, hasHarvest):
360 return fragment==
"TTbar_14TeV" and '2021' in key
368 suffix =
'_trackdnn',
375 def setup_(self, step, stepName, stepDict, k, properties):
377 stepDict[stepName][k] =
merge([self.
step3, stepDict[step][k]])
378 def condition(self, fragment, stepList, key, hasHarvest):
379 return fragment==
"TTbar_14TeV" and '2021' in key
391 upgradeWFs[
'mlpf'].step3 = {
392 '--datatier':
'GEN-SIM-RECO,RECOSIM,MINIAODSIM,DQMIO',
393 '--eventcontent':
'FEVTDEBUGHLT,RECOSIM,MINIAODSIM,DQM',
394 '--procModifiers':
'mlpf'
405 super(PatatrackWorkflow, self).
__init__(
418 '--datatier':
'GEN-SIM-RECO,DQMIO',
419 '--eventcontent':
'RECOSIM,DQM'
423 def condition(self, fragment, stepList, key, hasHarvest):
426 (
'2018' in key
and fragment ==
"TTbar_13"),
427 (
'2021' in key
and fragment ==
"TTbar_14TeV"),
428 (
'2018' in key
and fragment ==
"ZMM_13"),
429 (
'2021' in key
and fragment ==
"ZMM_14"),
431 result =
any(selected)
and hasHarvest
434 for skip
in copy(stepList):
435 if (
"ALCA" in skip)
or (
"Nano" in skip):
436 stepList.remove(skip)
439 def setup_(self, step, stepName, stepDict, k, properties):
441 stepDict[stepName][k] =
merge([self.
__reco, stepDict[step][k]])
442 elif 'HARVEST' in step:
443 stepDict[stepName][k] =
merge([self.
__harvest, stepDict[step][k]])
448 '-s':
'RAW2DIGI:RawToDigi_pixelOnly,RECO:reconstruction_pixelTrackingOnly,VALIDATION:@pixelTrackingOnlyValidation,DQM:@pixelTrackingOnlyDQM',
449 '--procModifiers':
'pixelNtupletFit'
452 '-s':
'HARVESTING:@trackingOnlyValidation+@pixelTrackingOnlyDQM'
454 suffix =
'Patatrack_PixelOnlyCPU',
460 '-s':
'RAW2DIGI:RawToDigi_pixelOnly,RECO:reconstruction_pixelTrackingOnly,VALIDATION:@pixelTrackingOnlyValidation,DQM:@pixelTrackingOnlyDQM',
461 '--procModifiers':
'pixelNtupletFit,gpu'
464 '-s':
'HARVESTING:@trackingOnlyValidation+@pixelTrackingOnlyDQM'
466 suffix =
'Patatrack_PixelOnlyGPU',
472 '-s':
'RAW2DIGI:RawToDigi_pixelOnly,RECO:reconstruction_pixelTrackingOnly,VALIDATION:@pixelTrackingOnlyValidation,DQM:@pixelTrackingOnlyDQM',
473 '--procModifiers':
'pixelNtupletFit',
474 '--customise' :
'RecoPixelVertexing/Configuration/customizePixelTracksForTriplets.customizePixelTracksForTriplets'
477 '-s':
'HARVESTING:@trackingOnlyValidation+@pixelTrackingOnlyDQM'
479 suffix =
'Patatrack_PixelOnlyTripletsCPU',
485 '-s':
'RAW2DIGI:RawToDigi_pixelOnly,RECO:reconstruction_pixelTrackingOnly,VALIDATION:@pixelTrackingOnlyValidation,DQM:@pixelTrackingOnlyDQM',
486 '--procModifiers':
'pixelNtupletFit,gpu',
487 '--customise':
'RecoPixelVertexing/Configuration/customizePixelTracksForTriplets.customizePixelTracksForTriplets'
490 '-s':
'HARVESTING:@trackingOnlyValidation+@pixelTrackingOnlyDQM'
492 suffix =
'Patatrack_PixelOnlyTripletsGPU',
498 '-s':
'RAW2DIGI:RawToDigi_ecalOnly,RECO:reconstruction_ecalOnly,VALIDATION:@ecalOnlyValidation,DQM:@ecalOnly',
501 '-s':
'HARVESTING:@ecalOnlyValidation+@ecal'
503 suffix =
'Patatrack_ECALOnlyCPU',
509 '-s':
'RAW2DIGI:RawToDigi_ecalOnly,RECO:reconstruction_ecalOnly,VALIDATION:@ecalOnlyValidation,DQM:@ecalOnly',
510 '--procModifiers':
'gpu'
513 '-s':
'HARVESTING:@ecalOnlyValidation+@ecal'
515 suffix =
'Patatrack_ECALOnlyGPU',
521 '-s':
'RAW2DIGI:RawToDigi_hcalOnly,RECO:reconstruction_hcalOnly,VALIDATION:@hcalOnlyValidation,DQM:@hcalOnly+@hcal2Only',
524 '-s':
'HARVESTING:@hcalOnlyValidation+@hcalOnly+@hcal2Only'
526 suffix =
'Patatrack_HCALOnlyCPU',
532 '-s':
'RAW2DIGI:RawToDigi_hcalOnly,RECO:reconstruction_hcalOnly,VALIDATION:@hcalOnlyValidation,DQM:@hcalOnly+@hcal2Only',
533 '--procModifiers':
'gpu'
536 '-s':
'HARVESTING:@hcalOnlyValidation+@hcalOnly+@hcal2Only'
538 suffix =
'Patatrack_HCALOnlyGPU',
545 def setup_(self, step, stepName, stepDict, k, properties):
546 if 'Digi' in step
and 'Trigger' not in step:
547 stepDict[stepName][k] =
merge([{
'-s':
'DIGI,L1,DIGI2RAW,HLT:@relval2021',
'--datatier':
'GEN-SIM-DIGI-RAW',
'--eventcontent':
'RAWSIM'}, stepDict[step][k]])
548 elif 'DigiTrigger' in step:
549 stepDict[stepName][k] =
merge([{
'-s':
'DIGI,L1TrackTrigger,L1,DIGI2RAW,HLT:@fake2'}, stepDict[step][k]])
551 stepDict[stepName][k] =
merge([{
'-s':
'RAW2DIGI,L1Reco,RECO,RECOSIM',
'--datatier':
'AODSIM',
'--eventcontent':
'AODSIM'}, stepDict[step][k]])
552 elif 'MiniAOD' in step:
554 stepDict[stepName][k] = deepcopy(stepDict[step][k])
555 if 'ALCA' in step
or 'HARVEST' in step:
557 stepDict[stepName][k] =
None
559 stepDict[stepName][k] =
merge([{
'--filein':
'file:step4.root'}, stepDict[step][k]])
560 def condition(self, fragment, stepList, key, hasHarvest):
561 return fragment==
"TTbar_14TeV" and (
'2026' in key
or '2021' in key)
585 suffix =
'_ProdLike',
590 def setup_(self, step, stepName, stepDict, k, properties):
592 custNew =
"SimG4Core/Application/NeutronBGforMuonsXS_cff.customise"
594 custNew =
"SLHCUpgradeSimulations/Configuration/customise_mixing.customise_Mix_LongLived_Neutrons"
595 stepDict[stepName][k] = deepcopy(stepDict[step][k])
596 if '--customise' in stepDict[stepName][k].
keys():
597 stepDict[stepName][k][
'--customise'] +=
","+custNew
599 stepDict[stepName][k][
'--customise'] = custNew
600 def condition(self, fragment, stepList, key, hasHarvest):
606 'GenSimHLBeamSpot14',
618 upgradeWFs[
'Neutron'].neutronKeys = [x
for x
in upgradeKeys[2026]
if 'PU' not in x]
619 upgradeWFs[
'Neutron'].neutronFrags = [
'ZMM_14',
'MinBias_14TeV']
622 def setup_(self, step, stepName, stepDict, k, properties):
623 stepDict[stepName][k] =
merge([{
'--procModifiers':
'run2_HECollapse_2018'}, stepDict[step][k]])
624 def condition(self, fragment, stepList, key, hasHarvest):
625 return fragment==
"TTbar_13" and '2018' in key
639 suffix =
'_heCollapse',
644 def setup_(self, step, stepName, stepDict, k, properties):
646 mods = {
'--era': stepDict[step][k][
'--era']+
',phase2_ecal_devel'}
648 mods[
'-s'] =
'DIGI:pdigi_valid'
649 stepDict[stepName][k] =
merge([mods, stepDict[step][k]])
650 def condition(self, fragment, stepList, key, hasHarvest):
651 return fragment==
"TTbar_14TeV" and '2026' in key
663 suffix =
'_ecalDevel',
668 def setup_(self, step, stepName, stepDict, k, properties):
669 myGT=stepDict[step][k][
'--conditions']
671 stepDict[stepName][k] =
merge([{
'-n':
'1',
'--magField':
'0T',
'--conditions':myGT}, stepDict[step][k]])
672 def condition(self, fragment, stepList, key, hasHarvest):
673 return (fragment==
"TTbar_13" or fragment==
"TTbar_14TeV")
and (
'2017' in key
or '2018' in key
or '2021' in key)
692 def setup_(self, step, stepName, stepDict, k, properties):
693 if 'Reco' in step
and 'Run2_2018' in stepDict[step][k][
'--era']:
694 stepDict[stepName][k] =
merge([{
'--era':
'Run2_2018,bParking'}, stepDict[step][k]])
695 def condition(self, fragment, stepList, key, hasHarvest):
696 return fragment==
"TTbar_13" and '2018' in key
702 suffix =
'_ParkingBPH',
707 def setup_(self, step, stepName, stepDict, k, properties):
709 stepDict[stepName][k] =
merge([{
'--customise':
'PhysicsTools/NanoAOD/custom_jme_cff.PrepJMECustomNanoAOD_MC'}, stepDict[step][k]])
710 def condition(self, fragment, stepList, key, hasHarvest):
711 return fragment==
"TTbar_13" and (
'2017' in key
or '2018' in key)
724 def setup_(self, step, stepName, stepDict, k, properties):
725 if 'Digi' in step
or 'Reco' in step:
726 stepDict[stepName][k] =
merge([{
'--customise':
'SLHCUpgradeSimulations/Configuration/aging.customise_aging_'+self.
lumi}, stepDict[step][k]])
727 def condition(self, fragment, stepList, key, hasHarvest):
728 return fragment==
"TTbar_14TeV" and '2026' in key
745 suffix =
'Aging1000',
748 upgradeWFs[
'Aging1000'].lumi =
'1000'
749 upgradeWFs[
'Aging3000'] = deepcopy(upgradeWFs[
'Aging1000'])
750 upgradeWFs[
'Aging3000'].suffix =
'Aging3000'
751 upgradeWFs[
'Aging3000'].offset = 0.103
752 upgradeWFs[
'Aging3000'].lumi =
'3000'
760 digiPremixLocalPileup = {
761 "--filein":
"file:step1.root",
762 "--pileup_input":
"file:step2.root"
767 def setup_(self, step, stepName, stepDict, k, properties):
769 stepDict[stepName][k] =
merge([stepDict[step][k]])
770 def setupPU_(self, step, stepName, stepDict, k, properties):
772 if "GenSim" in stepName:
773 stepNamePmx = stepName.replace(
'GenSim',
'Premix')
774 if not stepNamePmx
in stepDict: stepDict[stepNamePmx] = {}
775 stepDict[stepNamePmx][k] =
merge([
777 '-s':
'GEN,SIM,DIGI:pdigi_valid',
778 '--datatier':
'PREMIX',
779 '--eventcontent':
'PREMIX',
780 '--procModifiers':
'premix_stage1'
782 stepDict[stepName][k]
785 elif "Digi" in step
or "Reco" in step:
791 for s
in d[
"-s"].
split(
","):
792 if s ==
"DIGI" or "DIGI:" in s:
793 tmpsteps.extend([s,
"DATAMIX"])
797 "--datamix" :
"PreMix",
798 "--procModifiers":
"premix_stage2"},
801 if "_PMXS1S2" in self.
suffix:
802 d =
merge([digiPremixLocalPileup, d])
804 if "--procModifiers" in d:
805 d[
"--procModifiers"] +=
",premix_stage2"
807 d[
"--procModifiers"] =
"premix_stage2"
808 stepDict[stepName][k] = d
814 filein = d[
"--filein"]
815 m = re.search(
"step(?P<ind>\d+)_", filein)
817 d[
"--filein"] = filein.replace(m.group(),
"step%d_"%(
int(m.group(
"ind"))+1))
818 stepDict[stepName][k] = d
821 def condition(self, fragment, stepList, key, hasHarvest):
824 if not any(y
in key
for y
in [
'2021',
'2023',
'2024',
'2026']):
826 if self.
suffix.endswith(
"S1"):
827 return "NuGun" in fragment
829 def workflow_(self, workflows, num, fragment, stepList, key):
830 fragmentTmp = fragment
831 if self.
suffix.endswith(
"S1"):
832 fragmentTmp =
'PREMIXUP' + key[2:].
replace(
"PU",
"").
replace(
"Design",
"") +
'_PU25'
833 super(UpgradeWorkflowPremix,self).
workflow_(workflows, num, fragmentTmp, stepList, key)
841 'GenSimHLBeamSpot14',
866 'GenSimHLBeamSpot14',
879 def setupPU_(self, step, stepName, stepDict, k, properties):
881 if '--pileup' in stepDict[stepName][k]:
882 stepDict[stepName][k][
'--pileup'] =
'AVE_50_BX_25ns_m3p3'
883 super(UpgradeWorkflowAdjustPU,self).
setupPU_(step, stepName, stepDict, k, properties)
884 def condition(self, fragment, stepList, key, hasHarvest):
886 return super(UpgradeWorkflowAdjustPU,self).
condition(fragment, stepList, key, hasHarvest)
and '2026' in key
892 'GenSimHLBeamSpot14',
902 suffix =
'_PMXS1S2PR',
907 def setup_(self, step, stepName, stepDict, k, properties):
909 UpgradeWorkflowPremix.setup_(self, step, stepName, stepDict, k, properties)
910 UpgradeWorkflow_ProdLike.setup_(self, step, stepName, stepDict, k, properties)
915 for s
in d[
"-s"].
split(
","):
916 if "DIGI:pdigi_valid" in s:
917 tmpsteps.append(
"DIGI")
920 d =
merge([{
"-s" :
",".
join(tmpsteps)},d])
921 stepDict[stepName][k] = d
922 def condition(self, fragment, stepList, key, hasHarvest):
924 return UpgradeWorkflowPremix.condition(self, fragment, stepList, key, hasHarvest)
and UpgradeWorkflow_ProdLike.condition(self, fragment, stepList, key, hasHarvest)
940 suffix =
'_PMXS2ProdLike',
949 'GenSimHLBeamSpot14',
961 suffix =
'_PMXS1S2ProdLike',
966 def setup_(self, step, stepName, stepDict, k, properties):
967 if 'Run3' in stepDict[step][k][
'--era']:
968 stepDict[stepName][k] =
merge([{
'--geometry':
'DD4hepExtended2021',
'--procModifiers':
'dd4hep'}, stepDict[step][k]])
969 elif 'Phase2' in stepDict[step][k][
'--era']:
971 dd4hepGeom+=stepDict[step][k][
'--geometry']
972 stepDict[stepName][k] =
merge([{
'--geometry' : dd4hepGeom,
'--procModifiers':
'dd4hep'}, stepDict[step][k]])
973 def condition(self, fragment, stepList, key, hasHarvest):
974 return '2021' in key
or '2026' in key
979 'GenSimHLBeamSpot14',
992 upgradeWFs[
'DD4hep'].allowReuse =
False
995 def setup_(self, step, stepName, stepDict, k, properties):
996 stepDict[stepName][k] =
merge([{
'--procModifiers':
'allSonicTriton'}, stepDict[step][k]])
997 def condition(self, fragment, stepList, key, hasHarvest):
998 return (fragment==
'TTbar_13' and '2021' in key) \
999 or (fragment==
'TTbar_14TeV' and '2026' in key)
1004 'GenSimHLBeamSpot14',
1016 'GenSimHLBeamSpot14',
1025 suffix =
'_SonicTriton',
1030 offsets = [specialWF.offset
for specialType,specialWF
in six.iteritems(upgradeWFs)]
1032 dups = set(x
for x
in offsets
if x
in seen
or seen.add(x))
1034 raise ValueError(
"Duplicate special workflow offsets not allowed: "+
','.
join([
str(x)
for x
in dups]))
1036 upgradeProperties = {}
1038 upgradeProperties[2017] = {
1040 'Geom' :
'DB:Extended',
1041 'GT' :
'auto:phase1_2017_realistic',
1042 'HLTmenu':
'@relval2017',
1043 'Era' :
'Run2_2017',
1044 'ScenToRun' : [
'GenSim',
'Digi',
'RecoFakeHLT',
'HARVESTFakeHLT',
'ALCA',
'Nano'],
1047 'Geom' :
'DB:Extended',
1048 'GT' :
'auto:phase1_2017_design',
1049 'HLTmenu':
'@relval2017',
1050 'Era' :
'Run2_2017',
1051 'BeamSpot':
'GaussSigmaZ4cm',
1052 'ScenToRun' : [
'GenSim',
'Digi',
'RecoFakeHLT',
'HARVESTFakeHLT'],
1055 'Geom' :
'DB:Extended',
1056 'GT' :
'auto:phase1_2018_realistic',
1057 'HLTmenu':
'@relval2018',
1058 'Era' :
'Run2_2018',
1059 'BeamSpot':
'Realistic25ns13TeVEarly2018Collision',
1060 'ScenToRun' : [
'GenSim',
'Digi',
'RecoFakeHLT',
'HARVESTFakeHLT',
'ALCA',
'Nano'],
1063 'Geom' :
'DB:Extended',
1064 'GT' :
'auto:phase1_2018_design',
1065 'HLTmenu':
'@relval2018',
1066 'Era' :
'Run2_2018',
1067 'BeamSpot':
'GaussSigmaZ4cm',
1068 'ScenToRun' : [
'GenSim',
'Digi',
'RecoFakeHLT',
'HARVESTFakeHLT'],
1071 'Geom' :
'DB:Extended',
1072 'GT' :
'auto:phase1_2021_realistic',
1073 'HLTmenu':
'@relval2021',
1075 'BeamSpot':
'Run3RoundOptics25ns13TeVLowSigmaZ',
1076 'ScenToRun' : [
'GenSim',
'Digi',
'Reco',
'HARVEST',
'ALCA'],
1079 'Geom' :
'DB:Extended',
1080 'GT' :
'auto:phase1_2021_design',
1081 'HLTmenu':
'@relval2021',
1083 'BeamSpot':
'GaussSigmaZ4cm',
1084 'ScenToRun' : [
'GenSim',
'Digi',
'Reco',
'HARVEST'],
1087 'Geom' :
'DB:Extended',
1088 'GT' :
'auto:phase1_2023_realistic',
1089 'HLTmenu':
'@relval2021',
1091 'BeamSpot':
'Run3RoundOptics25ns13TeVLowSigmaZ',
1092 'ScenToRun' : [
'GenSim',
'Digi',
'Reco',
'HARVEST',
'ALCA'],
1095 'Geom' :
'DB:Extended',
1096 'GT' :
'auto:phase1_2024_realistic',
1097 'HLTmenu':
'@relval2021',
1099 'BeamSpot':
'Run3RoundOptics25ns13TeVLowSigmaZ',
1100 'ScenToRun' : [
'GenSim',
'Digi',
'Reco',
'HARVEST',
'ALCA'],
1105 for key
in list(upgradeProperties[2017].
keys()):
1106 upgradeProperties[2017][key+
'PU'] = deepcopy(upgradeProperties[2017][key])
1107 upgradeProperties[2017][key+
'PU'][
'ScenToRun'] = [
'GenSim',
'DigiPU'] + \
1108 ([
'RecoPU',
'HARVESTPU']
if '202' in key
else [
'RecoFakeHLTPU',
'HARVESTFakeHLTPU']) + \
1109 ([
'Nano']
if 'Design' not in key
else [])
1111 upgradeProperties[2026] = {
1113 'Geom' :
'Extended2026D49',
1114 'HLTmenu':
'@fake2',
1115 'GT' :
'auto:phase2_realistic_T15',
1117 'ScenToRun' : [
'GenSimHLBeamSpot',
'DigiTrigger',
'RecoGlobal',
'HARVESTGlobal'],
1120 'Geom' :
'Extended2026D60',
1121 'HLTmenu':
'@fake2',
1122 'GT' :
'auto:phase2_realistic_T15',
1123 'Era' :
'Phase2C10',
1124 'ScenToRun' : [
'GenSimHLBeamSpot',
'DigiTrigger',
'RecoGlobal',
'HARVESTGlobal'],
1127 'Geom' :
'Extended2026D68',
1128 'HLTmenu':
'@fake2',
1129 'GT' :
'auto:phase2_realistic_T21',
1130 'Era' :
'Phase2C11',
1131 'ScenToRun' : [
'GenSimHLBeamSpot',
'DigiTrigger',
'RecoGlobal',
'HARVESTGlobal'],
1134 'Geom' :
'Extended2026D70',
1135 'HLTmenu':
'@fake2',
1136 'GT' :
'auto:phase2_realistic_T21',
1137 'Era' :
'Phase2C11',
1138 'ScenToRun' : [
'GenSimHLBeamSpot',
'DigiTrigger',
'RecoGlobal',
'HARVESTGlobal'],
1141 'Geom' :
'Extended2026D76',
1142 'HLTmenu':
'@fake2',
1143 'GT' :
'auto:phase2_realistic_T21',
1144 'Era' :
'Phase2C11I13M9',
1145 'ScenToRun' : [
'GenSimHLBeamSpot',
'DigiTrigger',
'RecoGlobal',
'HARVESTGlobal'],
1148 'Geom' :
'Extended2026D77',
1149 'HLTmenu':
'@fake2',
1150 'GT' :
'auto:phase2_realistic_T21',
1151 'Era' :
'Phase2C11I13M9',
1152 'ScenToRun' : [
'GenSimHLBeamSpot',
'DigiTrigger',
'RecoGlobal',
'HARVESTGlobal'],
1155 'Geom' :
'Extended2026D78',
1156 'HLTmenu':
'@fake2',
1157 'GT' :
'auto:phase2_realistic_T22',
1158 'ProcessModifier':
'PixelCPEGeneric',
1159 'Era' :
'Phase2C11I13T22M9',
1160 'ScenToRun' : [
'GenSimHLBeamSpot',
'DigiTrigger',
'RecoGlobal',
'HARVESTGlobal'],
1163 'Geom' :
'Extended2026D79',
1164 'HLTmenu':
'@fake2',
1165 'GT' :
'auto:phase2_realistic_T23',
1166 'Era' :
'Phase2C11I13T23M9',
1167 'ScenToRun' : [
'GenSimHLBeamSpot',
'DigiTrigger',
'RecoGlobal',
'HARVESTGlobal'],
1170 'Geom' :
'Extended2026D80',
1171 'HLTmenu':
'@fake2',
1172 'GT' :
'auto:phase2_realistic_T25',
1173 'Era' :
'Phase2C11I13T25M9',
1174 'ScenToRun' : [
'GenSimHLBeamSpot',
'DigiTrigger',
'RecoGlobal',
'HARVESTGlobal'],
1177 'Geom' :
'Extended2026D81',
1178 'HLTmenu':
'@fake2',
1179 'GT' :
'auto:phase2_realistic_T26',
1180 'Era' :
'Phase2C11I13T26M9',
1181 'ScenToRun' : [
'GenSimHLBeamSpot',
'DigiTrigger',
'RecoGlobal',
'HARVESTGlobal'],
1184 'Geom' :
'Extended2026D82',
1185 'HLTmenu':
'@fake2',
1186 'GT' :
'auto:phase2_realistic_T21',
1187 'Era' :
'Phase2C11I13M9',
1188 'ScenToRun' : [
'GenSimHLBeamSpot',
'DigiTrigger',
'RecoGlobal',
'HARVESTGlobal'],
1191 'Geom' :
'Extended2026D83',
1192 'HLTmenu':
'@fake2',
1193 'GT' :
'auto:phase2_realistic_T21',
1194 'Era' :
'Phase2C11I13M9',
1195 'ScenToRun' : [
'GenSimHLBeamSpot',
'DigiTrigger',
'RecoGlobal',
'HARVESTGlobal'],
1200 for key
in list(upgradeProperties[2026].
keys()):
1201 upgradeProperties[2026][key+
'PU'] = deepcopy(upgradeProperties[2026][key])
1202 upgradeProperties[2026][key+
'PU'][
'ScenToRun'] = [
'GenSimHLBeamSpot',
'DigiTriggerPU',
'RecoGlobalPU',
'HARVESTGlobalPU']
1205 defaultDataSets = {}
1206 for year
in upgradeKeys:
1207 for key
in upgradeKeys[year]:
1208 if 'PU' in key:
continue
1209 defaultDataSets[key] =
''
1217 upgradeFragments = OrderedDict([
1219 (
'SingleElectronPt10_pythia8_cfi',
UpgradeFragment(
Kby(9,100),
'SingleElectronPt10')),
1220 (
'SingleElectronPt35_pythia8_cfi',
UpgradeFragment(
Kby(9,100),
'SingleElectronPt35')),
1221 (
'SingleElectronPt1000_pythia8_cfi',
UpgradeFragment(
Kby(9,50),
'SingleElectronPt1000')),
1228 (
'FourMuExtendedPt_1_200_pythia8_cfi',
UpgradeFragment(
Kby(10,100),
'FourMuExtendedPt1_200')),
1229 (
'TenMuExtendedE_0_200_pythia8_cfi',
UpgradeFragment(
Kby(10,100),
'TenMuExtendedE_0_200')),
1230 (
'DoubleElectronPt10Extended_pythia8_cfi',
UpgradeFragment(
Kby(9,100),
'SingleElPt10Extended')),
1231 (
'DoubleElectronPt35Extended_pythia8_cfi',
UpgradeFragment(
Kby(9,100),
'SingleElPt35Extended')),
1232 (
'DoubleElectronPt1000Extended_pythia8_cfi',
UpgradeFragment(
Kby(9,50),
'SingleElPt1000Extended')),
1233 (
'DoubleGammaPt10Extended_pythia8_cfi',
UpgradeFragment(
Kby(9,100),
'SingleGammaPt10Extended')),
1234 (
'DoubleGammaPt35Extended_pythia8_cfi',
UpgradeFragment(
Kby(9,50),
'SingleGammaPt35Extended')),
1235 (
'DoubleMuPt1Extended_pythia8_cfi',
UpgradeFragment(
Kby(25,100),
'SingleMuPt1Extended')),
1236 (
'DoubleMuPt10Extended_pythia8_cfi',
UpgradeFragment(
Kby(25,100),
'SingleMuPt10Extended')),
1237 (
'DoubleMuPt100Extended_pythia8_cfi',
UpgradeFragment(
Kby(9,100),
'SingleMuPt100Extended')),
1238 (
'DoubleMuPt1000Extended_pythia8_cfi',
UpgradeFragment(
Kby(9,100),
'SingleMuPt1000Extended')),
1241 (
'MinBias_13TeV_pythia8_TuneCUETP8M1_cfi',
UpgradeFragment(
Kby(90,100),
'MinBias_13')),
1244 (
'QCD_Pt_600_800_13TeV_TuneCUETP8M1_cfi',
UpgradeFragment(
Kby(9,50),
'QCD_Pt_600_800_13')),
1245 (
'Wjet_Pt_80_120_14TeV_TuneCUETP8M1_cfi',
UpgradeFragment(
Kby(9,100),
'Wjet_Pt_80_120_14TeV')),
1246 (
'Wjet_Pt_3000_3500_14TeV_TuneCUETP8M1_cfi',
UpgradeFragment(
Kby(9,50),
'Wjet_Pt_3000_3500_14TeV')),
1248 (
'QCD_Pt_3000_3500_14TeV_TuneCUETP8M1_cfi',
UpgradeFragment(
Kby(9,50),
'QCD_Pt_3000_3500_14TeV')),
1249 (
'QCD_Pt_80_120_14TeV_TuneCUETP8M1_cfi',
UpgradeFragment(
Kby(9,100),
'QCD_Pt_80_120_14TeV')),
1250 (
'H200ChargedTaus_Tauola_14TeV_cfi',
UpgradeFragment(
Kby(9,100),
'Higgs200ChargedTaus_14TeV')),
1254 (
'ZTT_Tauola_All_hadronic_14TeV_TuneCP5_cfi',
UpgradeFragment(
Kby(9,100),
'ZTT_14TeV')),
1255 (
'H130GGgluonfusion_14TeV_TuneCUETP8M1_cfi',
UpgradeFragment(
Kby(9,100),
'H130GGgluonfusion_14TeV')),
1256 (
'PhotonJet_Pt_10_14TeV_TuneCUETP8M1_cfi',
UpgradeFragment(
Kby(9,100),
'PhotonJets_Pt_10_14TeV')),
1257 (
'QQH1352T_Tauola_14TeV_TuneCUETP8M1_cfi',
UpgradeFragment(
Kby(9,100),
'QQH1352T_Tauola_14TeV')),
1261 (
'QCDForPF_14TeV_TuneCP5_cfi',
UpgradeFragment(
Kby(50,100),
'QCD_FlatPt_15_3000HS_14')),
1263 (
'DYToTauTau_M-50_14TeV_pythia8_tauola_cff',
UpgradeFragment(
Kby(9,100),
'DYtoTauTau_M_50_14TeV')),
1265 (
'QCD_Pt_80_120_13TeV_TuneCUETP8M1_cfi',
UpgradeFragment(
Kby(9,100),
'QCD_Pt_80_120_13')),
1266 (
'H125GGgluonfusion_13TeV_TuneCP5_cfi',
UpgradeFragment(
Kby(9,50),
'H125GGgluonfusion_13')),
1267 (
'QCD_Pt20toInf_MuEnrichedPt15_14TeV_TuneCP5_cff',
UpgradeFragment(
Kby(19565, 217391),
'QCD_Pt20toInfMuEnrichPt15_14')),
1269 (
'QCD_Pt15To7000_Flat_14TeV_TuneCP5_cff',
UpgradeFragment(
Kby(9,50),
'QCD_Pt15To7000_Flat_14')),
1270 (
'H125GGgluonfusion_14TeV_TuneCP5_cfi',
UpgradeFragment(
Kby(9,50),
'H125GGgluonfusion_14')),
1271 (
'QCD_Pt_600_800_14TeV_TuneCUETP8M1_cfi',
UpgradeFragment(
Kby(9,50),
'QCD_Pt_600_800_14')),
1274 (
'H200ChargedTaus_Tauola_13TeV_cfi',
UpgradeFragment(
Kby(9,50),
'Higgs200ChargedTaus_13')),
1275 (
'ADDMonoJet_13TeV_d3MD3_TuneCUETP8M1_cfi',
UpgradeFragment(
Kby(9,50),
'ADDMonoJet_d3MD3_13')),
1277 (
'QCD_Pt_3000_3500_13TeV_TuneCUETP8M1_cfi',
UpgradeFragment(
Kby(9,50),
'QCD_Pt_3000_3500_13')),
1284 (
'PhotonJet_Pt_10_13TeV_TuneCUETP8M1_cfi',
UpgradeFragment(
Kby(9,50),
'PhotonJets_Pt_10_13')),
1286 (
'Wjet_Pt_80_120_13TeV_TuneCUETP8M1_cfi',
UpgradeFragment(
Kby(9,50),
'Wjet_Pt_80_120_13')),
1287 (
'Wjet_Pt_3000_3500_13TeV_TuneCUETP8M1_cfi',
UpgradeFragment(
Kby(9,50),
'Wjet_Pt_3000_3500_13')),
1288 (
'SMS-T1tttt_mGl-1500_mLSP-100_13TeV-pythia8_cfi',
UpgradeFragment(
Kby(9,50),
'SMS-T1tttt_mGl-1500_mLSP-100_13')),
1289 (
'QCDForPF_13TeV_TuneCUETP8M1_cfi',
UpgradeFragment(
Kby(50,100),
'QCD_FlatPt_15_3000HS_13')),
1290 (
'PYTHIA8_PhiToMuMu_TuneCUETP8M1_13TeV_cff',
UpgradeFragment(
Kby(9,50),
'PhiToMuMu_13')),
1291 (
'RSKKGluon_m3000GeV_13TeV_TuneCUETP8M1_cff',
UpgradeFragment(
Kby(9,50),
'RSKKGluon_m3000GeV_13')),
1295 (
'Upsilon1SToMuMu_forSTEAM_13TeV_TuneCUETP8M1_cfi',
UpgradeFragment(
Kby(9,50),
'Upsilon1SToMuMu_13')),
1296 (
'EtaBToJpsiJpsi_forSTEAM_TuneCUEP8M1_13TeV_cfi',
UpgradeFragment(
Kby(9,50),
'EtaBToJpsiJpsi_13')),
1297 (
'JpsiMuMu_Pt-8_forSTEAM_13TeV_TuneCUETP8M1_cfi',
UpgradeFragment(
Kby(3100,100000),
'JpsiMuMu_Pt-8')),
1298 (
'BuMixing_BMuonFilter_forSTEAM_13TeV_TuneCUETP8M1_cfi',
UpgradeFragment(
Kby(900,10000),
'BuMixing_13')),
1299 (
'HSCPstop_M_200_TuneCUETP8M1_13TeV_pythia8_cff',
UpgradeFragment(
Kby(9,50),
'HSCPstop_M_200_13')),
1300 (
'RSGravitonToGammaGamma_kMpl01_M_3000_TuneCUETP8M1_13TeV_pythia8_cfi',
UpgradeFragment(
Kby(9,50),
'RSGravitonToGaGa_13')),
1301 (
'WprimeToENu_M-2000_TuneCUETP8M1_13TeV-pythia8_cff',
UpgradeFragment(
Kby(9,50),
'WpToENu_M-2000_13')),
1302 (
'DisplacedSUSY_stopToBottom_M_800_500mm_TuneCP5_13TeV_pythia8_cff',
UpgradeFragment(
Kby(9,50),
'DisplacedSUSY_stopToB_M_800_500mm_13')),
1304 (
'FlatRandomPtAndDxyGunProducer_cfi',
UpgradeFragment(
Kby(9,100),
'DisplacedMuonsDxy_0_500')),
1306 (
'SinglePiPt25Eta1p7_2p7_cfi',
UpgradeFragment(
Kby(9,100),
'SinglePiPt25Eta1p7_2p7')),
1307 (
'SingleMuPt15Eta1p7_2p7_cfi',
UpgradeFragment(
Kby(9,100),
'SingleMuPt15Eta1p7_2p7')),
1308 (
'SingleGammaPt25Eta1p7_2p7_cfi',
UpgradeFragment(
Kby(9,100),
'SingleGammaPt25Eta1p7_2p7')),
1309 (
'SingleElectronPt15Eta1p7_2p7_cfi',
UpgradeFragment(
Kby(9,100),
'SingleElectronPt15Eta1p7_2p7')),
1311 (
'CloseByParticle_Photon_ERZRanges_cfi',
UpgradeFragment(
Kby(9,100),
'CloseByParticleGun')),
1312 (
'CE_E_Front_300um_cfi',
UpgradeFragment(
Kby(9,100),
'CloseByPGun_CE_E_Front_300um')),
1313 (
'CE_E_Front_200um_cfi',
UpgradeFragment(
Kby(9,100),
'CloseByPGun_CE_E_Front_200um')),
1314 (
'CE_E_Front_120um_cfi',
UpgradeFragment(
Kby(9,100),
'CloseByPGun_CE_E_Front_120um')),
1318 (
'CE_H_Coarse_Scint_cfi',
UpgradeFragment(
Kby(9,100),
'CloseByPGun_CE_H_Coarse_Scint')),
1319 (
'CE_H_Coarse_300um_cfi',
UpgradeFragment(
Kby(9,100),
'CloseByPGun_CE_H_Coarse_300um')),
1320 (
'SingleElectronFlatPt2To100_cfi',
UpgradeFragment(
Kby(9,100),
'SingleEFlatPt2To100')),
1323 (
'SingleGammaFlatPt8To150_cfi',
UpgradeFragment(
Kby(9,100),
'SingleGammaFlatPt8To150')),
1326 (
'FlatRandomPtAndDxyGunProducer_MuPt2To10_cfi',
UpgradeFragment(
Kby(9,100),
'DisplacedMuPt2To10')),
1327 (
'FlatRandomPtAndDxyGunProducer_MuPt10To30_cfi',
UpgradeFragment(
Kby(9,100),
'DisplacedMuPt10To30')),
1328 (
'FlatRandomPtAndDxyGunProducer_MuPt30To100_cfi',
UpgradeFragment(
Kby(9,100),
'DisplacedMuPt30To100')),
1329 (
'B0ToKstarMuMu_14TeV_TuneCP5_cfi',
UpgradeFragment(
Kby(304,3030),
'B0ToKstarMuMu_14TeV')),
1331 (
'BsToJpsiGamma_14TeV_TuneCP5_cfi',
UpgradeFragment(
Kby(2500,25000),
'BsToJpsiGamma_14TeV')),
1332 (
'BsToJpsiPhi_mumuKK_14TeV_TuneCP5_cfi',
UpgradeFragment(
Kby(910,9090),
'BsToJpsiPhi_mumuKK_14TeV')),
1334 (
'BsToPhiPhi_KKKK_14TeV_TuneCP5_cfi',
UpgradeFragment(
Kby(556,5555),
'BsToPhiPhi_KKKK_14TeV')),
1335 (
'TauToMuMuMu_14TeV_TuneCP5_cfi',
UpgradeFragment(
Kby(18939,189393),
'TauToMuMuMu_14TeV')),
1336 (
'BdToKstarEleEle_14TeV_TuneCP5_cfi',
UpgradeFragment(
Kby(206,2061),
'BdToKstarEleEle_14TeV')),
1338 (
'BuMixing_BMuonFilter_forSTEAM_14TeV_TuneCP5_cfi',
UpgradeFragment(
Kby(900,10000),
'BuMixing_14')),
1339 (
'Upsilon1SToMuMu_forSTEAM_14TeV_TuneCP5_cfi',
UpgradeFragment(
Kby(9,50),
'Upsilon1SToMuMu_14')),
1340 (
'TenTau_E_15_500_Eta3p1_pythia8_cfi',
UpgradeFragment(
Kby(9,100),
'TenTau_15_500_Eta3p1')),
1341 (
'QCD_Pt_1800_2400_14TeV_TuneCP5_cfi',
UpgradeFragment(
Kby(9,50),
'QCD_Pt_1800_2400_14')),
1342 (
'DisplacedSUSY_stopToBottom_M_800_500mm_TuneCP5_14TeV_pythia8_cff',
UpgradeFragment(
Kby(9,50),
'DisplacedSUSY_14TeV')),
1343 (
'GluGluTo2Jets_M_300_2000_14TeV_Exhume_cff',
UpgradeFragment(
Kby(9,100),
'GluGluTo2Jets_14TeV')),