Skip to content

Commit 3b25687

Browse files
committed
Add HLT customization function.
1 parent c549a75 commit 3b25687

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

HLTrigger/Configuration/python/customizeHLTforCMSSW.py

+18
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,23 @@ def customiseHLTFor46647(process):
6363
delattr(prod, "TripletCollection")
6464

6565
return process
66+
67+
def customizeHLTforEcalPR(process):
68+
"""Changes parameter names of EcalUncalibRecHitSoAToLegacy producer"""
69+
for prod in producers_by_type(process, 'EcalUncalibRecHitSoAToLegacy'):
70+
if hasattr(prod, 'uncalibRecHitsPortableEB'):
71+
prod.inputCollectionEB = prod.uncalibRecHitsPortableEB
72+
delattr(prod, 'uncalibRecHitsPortableEB')
73+
if hasattr(prod, 'uncalibRecHitsPortableEE'):
74+
prod.inputCollectionEE = prod.uncalibRecHitsPortableEE
75+
delattr(prod, 'uncalibRecHitsPortableEE')
76+
if hasattr(prod, 'recHitsLabelCPUEB'):
77+
prod.outputLabelEB = prod.recHitsLabelCPUEB
78+
delattr(prod, 'recHitsLabelCPUEB')
79+
if hasattr(prod, 'recHitsLabelCPUEE'):
80+
prod.outputLabelEE = prod.recHitsLabelCPUEE
81+
delattr(prod, 'recHitsLabelCPUEE')
82+
return process
6683

6784
# CMSSW version specific customizations
6885
def customizeHLTforCMSSW(process, menuType="GRun"):
@@ -73,5 +90,6 @@ def customizeHLTforCMSSW(process, menuType="GRun"):
7390
# process = customiseFor12718(process)
7491

7592
process = customiseHLTFor46647(process)
93+
process = customizeHLTforEcalPR(process)
7694

7795
return process

0 commit comments

Comments
 (0)