@@ -547,6 +547,8 @@ class UpgradeWorkflow_ProdLike(UpgradeWorkflow):
547547 def setup_ (self , step , stepName , stepDict , k , properties ):
548548 if 'Digi' in step and 'Trigger' not in step :
549549 stepDict [stepName ][k ] = merge ([{'-s' : 'DIGI,L1,DIGI2RAW,HLT:@relval2021' , '--datatier' :'GEN-SIM-DIGI-RAW' , '--eventcontent' :'RAWSIM' }, stepDict [step ][k ]])
550+ elif 'DigiTrigger' in step : # for Phase-2
551+ stepDict [stepName ][k ] = merge ([{'-s' : 'DIGI,L1TrackTrigger,L1,DIGI2RAW,HLT:@fake2' }, stepDict [step ][k ]])
550552 elif 'Reco' in step :
551553 stepDict [stepName ][k ] = merge ([{'-s' : 'RAW2DIGI,L1Reco,RECO,RECOSIM' , '--datatier' :'AODSIM' , '--eventcontent' :'AODSIM' }, stepDict [step ][k ]])
552554 elif 'MiniAOD' in step :
@@ -562,6 +564,7 @@ def condition(self, fragment, stepList, key, hasHarvest):
562564upgradeWFs ['ProdLike' ] = UpgradeWorkflow_ProdLike (
563565 steps = [
564566 'Digi' ,
567+ 'DigiTrigger' ,
565568 'Reco' ,
566569 'RecoGlobal' ,
567570 'HARVEST' ,
@@ -572,6 +575,7 @@ def condition(self, fragment, stepList, key, hasHarvest):
572575 ],
573576 PU = [
574577 'Digi' ,
578+ 'DigiTrigger' ,
575579 'Reco' ,
576580 'RecoGlobal' ,
577581 'HARVEST' ,
@@ -906,6 +910,17 @@ def setup_(self, step, stepName, stepDict, k, properties):
906910 # copy steps, then apply specializations
907911 UpgradeWorkflowPremix .setup_ (self , step , stepName , stepDict , k , properties )
908912 UpgradeWorkflow_ProdLike .setup_ (self , step , stepName , stepDict , k , properties )
913+ #
914+ if 'Digi' in step :
915+ d = merge ([stepDict [self .getStepName (step )][k ]])
916+ tmpsteps = []
917+ for s in d ["-s" ].split ("," ):
918+ if "DIGI:pdigi_valid" in s :
919+ tmpsteps .append ("DIGI" )
920+ else :
921+ tmpsteps .append (s )
922+ d = merge ([{"-s" : "," .join (tmpsteps )},d ])
923+ stepDict [stepName ][k ] = d
909924 def condition (self , fragment , stepList , key , hasHarvest ):
910925 # use both conditions
911926 return UpgradeWorkflowPremix .condition (self , fragment , stepList , key , hasHarvest ) and UpgradeWorkflow_ProdLike .condition (self , fragment , stepList , key , hasHarvest )
0 commit comments