Skip to content

Commit adc94e6

Browse files
authored
Merge pull request #47393 from cms-tsg-storm/fix_customizeHLTfor47047
fix `customizeHLTfor47047` to work also on menus already customized
2 parents d221f02 + 684a2f6 commit adc94e6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

HLTrigger/Configuration/python/customizeHLTforCMSSW.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,8 @@ def customizeHLTfor47047(process):
118118
delattr(process, esProducer.label())
119119

120120
for prod in producers_by_type(process, "HBHERecHitProducerPortable@alpaka", "alpaka_serial_sync::HBHERecHitProducerPortable"):
121+
if not hasattr(prod, 'mahiPulseOffSets'):
122+
continue
121123
pulseOffsetLabel = prod.mahiPulseOffSets.getModuleLabel()
122124
if hasattr(process, pulseOffsetLabel):
123125
esProducer = getattr(process, pulseOffsetLabel)
@@ -127,6 +129,8 @@ def customizeHLTfor47047(process):
127129
delattr(process, prod.label())
128130

129131
for prod in producers_by_type(process, "PFClusterSoAProducer@alpaka", "alpaka_serial_sync::PFClusterSoAProducer"):
132+
if not hasattr(prod, 'pfClusterParams'):
133+
continue
130134
clusterParamsLabel = prod.pfClusterParams.getModuleLabel()
131135
if hasattr(process, clusterParamsLabel):
132136
esProducer = getattr(process, clusterParamsLabel)

0 commit comments

Comments
 (0)