CMS 3D CMS Logo

muNtupleProducer_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
4 
10 
11 muDPGNanoProducer = cms.Sequence(globalTables
12  + muDigiTables
13  + muLocalRecoTables
14  + muRecoTables
15  + muL1TriggerTables
16  )
17 
18 def muDPGNanoCustomize(process) :
19 
20  if hasattr(process, "dtrpcPointFlatTable") and \
21  hasattr(process, "cscrpcPointFlatTable") and \
22  hasattr(process, "RawToDigiTask"):
23  process.load("RecoLocalMuon.RPCRecHit.rpcPointProducer_cff")
24  process.rpcPointProducer.dt4DSegments = 'dt4DSegments'
25  process.rpcPointProducer.cscSegments = 'cscSegments'
26  process.rpcPointProducer.ExtrapolatedRegion = 0.6
27  process.RawToDigiTask.add(process.rpcPointProducer)
28 
29  if hasattr(process, "muGEMMuonExtTable") or hasattr(process, "muCSCTnPFlatTable"):
30  process.load("TrackingTools/TransientTrack/TransientTrackBuilder_cfi")
31  process.load("TrackPropagation.SteppingHelixPropagator.SteppingHelixPropagatorAny_cfi")
32  process.load("TrackPropagation.SteppingHelixPropagator.SteppingHelixPropagatorAlong_cfi")
33  process.load("TrackPropagation.SteppingHelixPropagator.SteppingHelixPropagatorOpposite_cfi")
34 
35  for output in ["NANOEDMAODoutput", "NANOAODoutput", "NANOEDMAODSIMoutput", "NANOAODSIMoutput"]:
36  if hasattr(process, output) and "keep edmTriggerResults_*_*_*" in getattr(process,output).outputCommands:
37  getattr(process,output).outputCommands.remove("keep edmTriggerResults_*_*_*")
38 
39  return process