Skip to content

Commit f77cffe

Browse files
authored
Merge pull request cms-sw#33847 from srimanob/120_CorrectPhase2ProdLikeDigi
Fix prodlike workflow to use DIGI instead of DIGI:pdigi_valid
2 parents 75b3627 + d1a025c commit f77cffe

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
lines changed

Configuration/PyReleaseValidation/python/upgradeWorkflowComponents.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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):
562564
upgradeWFs['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)

SimGeneral/MixingModule/python/digitizers_cfi.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@
5858
hgceeDigitizer = cms.PSet(hgceeDigitizer),
5959
hgchebackDigitizer = cms.PSet(hgchebackDigitizer),
6060
hgchefrontDigitizer = cms.PSet(hgchefrontDigitizer),
61+
calotruth = cms.PSet(caloParticles), #HGCAL still needs calotruth for production mode
6162
)
6263

6364
from SimCalorimetry.HGCalSimProducers.hgcalDigitizer_cfi import hfnoseDigitizer
@@ -88,6 +89,7 @@
8889
hgceeDigitizer = dict(premixStage1 = True),
8990
hgchebackDigitizer = dict(premixStage1 = True),
9091
hgchefrontDigitizer = dict(premixStage1 = True),
92+
calotruth = dict(premixStage1 = True), #HGCAL still needs calotruth for production mode
9193
)
9294
(premix_stage2 & phase2_hfnose).toModify(theDigitizers,
9395
hfnoseDigitizer = dict(premixStage1 = True),
@@ -104,10 +106,9 @@
104106

105107
from Configuration.ProcessModifiers.run3_ecalclustering_cff import run3_ecalclustering
106108
(run3_ecalclustering | phase2_hgcal).toModify( theDigitizersValid,
107-
calotruth = cms.PSet( caloParticles ) ) # Doesn't HGCal need these also without validation?
109+
calotruth = cms.PSet( caloParticles ) )
108110
(premix_stage2 & phase2_hgcal).toModify(theDigitizersValid, calotruth = dict(premixStage1 = True))
109111

110-
111112
phase2_timing.toModify( theDigitizersValid.mergedtruth,
112113
createInitialVertexCollection = cms.bool(True) )
113114

0 commit comments

Comments
 (0)