@@ -1830,7 +1830,13 @@ def setup_(self, step, stepName, stepDict, k, properties):
18301830 if ('ALCA' in step ) or ('Reco' in step ) or ('HLT' in step ):
18311831 stepDict [stepName ][k ] = None
18321832 elif 'DigiTrigger' in step :
1833- stepDict [stepName ][k ] = merge ([self .step2 , stepDict [step ][k ]])
1833+ # Add the aging customization
1834+ mergedStep = merge ([self .step2 , stepDict [step ][k ]])
1835+ if '--customise' in mergedStep :
1836+ mergedStep ['--customise' ] += ',SLHCUpgradeSimulations/Configuration/aging.customise_aging_1000'
1837+ else :
1838+ mergedStep ['--customise' ] = 'SLHCUpgradeSimulations/Configuration/aging.customise_aging_1000'
1839+ stepDict [stepName ][k ] = mergedStep
18341840 elif 'HARVEST' in step :
18351841 stepDict [stepName ][k ] = merge ([self .step3 , stepDict [step ][k ]])
18361842 else :
@@ -2004,13 +2010,19 @@ def setup_(self, step, stepName, stepDict, k, properties):
20042010 if ('ALCA' in step ) or ('Reco' in step ) or ('HLT' in step ) or ('HARVEST' in step ):
20052011 stepDict [stepName ][k ] = None
20062012 elif 'DigiTrigger' in step :
2007- stepDict [stepName ][k ] = merge ([self .step2 , stepDict [step ][k ]])
2013+ # Add the aging customization
2014+ mergedStep = merge ([self .step2 , stepDict [step ][k ]])
2015+ if '--customise' in mergedStep :
2016+ mergedStep ['--customise' ] += ',SLHCUpgradeSimulations/Configuration/aging.customise_aging_1000'
2017+ else :
2018+ mergedStep ['--customise' ] = 'SLHCUpgradeSimulations/Configuration/aging.customise_aging_1000'
2019+ stepDict [stepName ][k ] = mergedStep
20082020 else :
20092021 stepDict [stepName ][k ] = merge ([stepDict [step ][k ]])
20102022 def condition (self , fragment , stepList , key , hasHarvest ):
20112023 return fragment == "TTbar_14TeV" and 'Run4' in key
20122024
2013- upgradeWFs ['HLTPhaseWithNano ' ] = UpgradeWorkflow_HLTPhase2_WithNano (
2025+ upgradeWFs ['HLTPhase2WithNano ' ] = UpgradeWorkflow_HLTPhase2_WithNano (
20142026 steps = [
20152027 'Reco' ,
20162028 'RecoGlobal' ,
@@ -2035,16 +2047,16 @@ def condition(self, fragment, stepList, key, hasHarvest):
20352047 'HARVESTGlobal' ,
20362048 'HARVESTGlobalFakeHLT' ,
20372049 ],
2038- suffix = '_HLTPhaseWithNano ' ,
2050+ suffix = '_HLTPhase2WithNano ' ,
20392051 offset = 0.759 ,
20402052)
2041- upgradeWFs ['HLTPhaseWithNano ' ].step2 = {
2053+ upgradeWFs ['HLTPhase2WithNano ' ].step2 = {
20422054 '-s' :'DIGI:pdigi_valid,L1TrackTrigger,L1,L1P2GT,DIGI2RAW,HLT:75e33,NANO:@Phase2HLT' ,
20432055 '--datatier' :'GEN-SIM-DIGI-RAW,NANOAODSIM' ,
20442056 '--eventcontent' :'FEVTDEBUGHLT,NANOAODSIM'
20452057}
20462058
2047- upgradeWFs ['NGTScoutingWithNano' ] = deepcopy (upgradeWFs ['HLTPhaseWithNano ' ])
2059+ upgradeWFs ['NGTScoutingWithNano' ] = deepcopy (upgradeWFs ['HLTPhase2WithNano ' ])
20482060upgradeWFs ['NGTScoutingWithNano' ].suffix = '_NGTScoutingWithNano'
20492061upgradeWFs ['NGTScoutingWithNano' ].offset = 0.771
20502062upgradeWFs ['NGTScoutingWithNano' ].step2 = {
@@ -2054,7 +2066,7 @@ def condition(self, fragment, stepList, key, hasHarvest):
20542066 '--eventcontent' :'FEVTDEBUGHLT,NANOAODSIM'
20552067}
20562068
2057- upgradeWFs ['NGTScoutingWithNanoValid' ] = deepcopy (upgradeWFs ['HLTPhaseWithNano ' ])
2069+ upgradeWFs ['NGTScoutingWithNanoValid' ] = deepcopy (upgradeWFs ['HLTPhase2WithNano ' ])
20582070upgradeWFs ['NGTScoutingWithNanoValid' ].suffix = '_NGTScoutingWithNanoVal'
20592071upgradeWFs ['NGTScoutingWithNanoValid' ].offset = 0.772
20602072upgradeWFs ['NGTScoutingWithNanoValid' ].step2 = {
@@ -2087,7 +2099,13 @@ def setup_(self, step, stepName, stepDict, k, properties):
20872099 if ('ALCA' in step ) or ('Reco' in step ) or ('HLT' in step ):
20882100 stepDict [stepName ][k ] = None
20892101 elif 'DigiTrigger' in step :
2090- stepDict [stepName ][k ] = merge ([self .step2 , stepDict [step ][k ]])
2102+ # Add the aging customization
2103+ mergedStep = merge ([self .step2 , stepDict [step ][k ]])
2104+ if '--customise' in mergedStep :
2105+ mergedStep ['--customise' ] += ',SLHCUpgradeSimulations/Configuration/aging.customise_aging_1000'
2106+ else :
2107+ mergedStep ['--customise' ] = 'SLHCUpgradeSimulations/Configuration/aging.customise_aging_1000'
2108+ stepDict [stepName ][k ] = mergedStep
20912109 elif 'HARVEST' in step :
20922110 stepDict [stepName ][k ] = merge ([self .step3 , stepDict [step ][k ]])
20932111 else :
0 commit comments