-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
migrate RPCPointProducer to a global::EDProducer (76x) #10936
Changes from all commits
e94aa04
9843140
8afbcee
e2346ae
4e2ef9c
a0c1b57
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -119,14 +119,24 @@ def customiseFor10418(process): | |
setattr(process.hltBSoftMuonMu5L3,'algorithmMaskContains', cms.vstring()) | ||
return process | ||
|
||
# migrate RPCPointProducer to a global::EDProducer (PR #10927) | ||
def customiseFor10927(process): | ||
if any(module.type_() is 'RPCPointProducer' for module in process.producers.itervalues()): | ||
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_6": | ||
process = customiseFor10418(process) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. how do the lines from customiseFor10927 make it to the 76X setup? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ... sorry, the logic is |
||
if cmsswVersion >= "CMSSW_7_5": | ||
process = customiseFor10927(process) | ||
process = customiseFor9232(process) | ||
process = customiseFor8679(process) | ||
process = customiseFor8356(process) | ||
|
@@ -136,4 +146,5 @@ def customiseHLTforCMSSW(process,menuType="GRun",fastSim=False): | |
process = customizeHLTforNewJetCorrectors(process) | ||
if cmsswVersion >= "CMSSW_7_4": | ||
process = customiseFor10234(process) | ||
|
||
return process |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import FWCore.ParameterSet.Config as cms | ||
|
||
# EventSetup modules | ||
from RecoLocalMuon.RPCRecHit.cscObjectMapESProducer_cfi import * | ||
from RecoLocalMuon.RPCRecHit.dtObjectMapESProducer_cfi import * | ||
|
||
# EDProducer | ||
from RecoLocalMuon.RPCRecHit.rpcPointProducer_cfi import * |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
does this number "10972" (instead of 10936 or 10935) matter?