From db4550fa318a8bcca9008b0d24bcd201a869f055 Mon Sep 17 00:00:00 2001 From: Andrea Bocci Date: Tue, 25 Aug 2015 02:18:08 +0200 Subject: [PATCH] add CSCObjectMapESProducer and DTObjectMapESProducer to the HLT configuration --- .../Configuration/python/customizeHLTforCMSSW.py | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/HLTrigger/Configuration/python/customizeHLTforCMSSW.py b/HLTrigger/Configuration/python/customizeHLTforCMSSW.py index 58a731f1ca871..f39f716c84d64 100644 --- a/HLTrigger/Configuration/python/customizeHLTforCMSSW.py +++ b/HLTrigger/Configuration/python/customizeHLTforCMSSW.py @@ -104,12 +104,23 @@ def customiseFor10234(process): delattr(process.hltCaloStage1Digis, 'FedId') return process + +# migrate RPCPointProducer to a global::EDProducer (PR #10927) +def customiseFor10927(process): + if not hasattr(process, 'CSCObjectMapESProducer'): + process.CSCObjectMapESProducer = cms.ESProducer( 'CSCObjectMapESProducer' ) + if not hasattr(process, 'DTObjectMapESProducer'): + process.DTObjectMapESProducer = cms.ESProducer( 'DTObjectMapESProducer' ) + return process + + # CMSSW version specific customizations -def customiseHLTforCMSSW(process,menuType="GRun",fastSim=False): +def customiseHLTforCMSSW(process, menuType="GRun", fastSim=False): import os cmsswVersion = os.environ['CMSSW_VERSION'] if cmsswVersion >= "CMSSW_7_5": + process = customiseFor10927(process) process = customiseFor9232(process) process = customiseFor8679(process) process = customiseFor8356(process) @@ -118,4 +129,5 @@ def customiseHLTforCMSSW(process,menuType="GRun",fastSim=False): process = customizeHLTforNewJetCorrectors(process) if cmsswVersion >= "CMSSW_7_4": process = customiseFor10234(process) + return process