CMS 3D CMS Logo

muNtupleProducer_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
4 
11 
12 muDPGNanoProducer = cms.Sequence(lhcInfoTableProducer
13  + lumiTableProducer
14  + muDigiProducers
15  + muLocalRecoProducers
16  + muRecoProducers
17  + muL1TriggerProducers
18  )
19 
20 def muDPGNanoCustomize(process) :
21 
22  if hasattr(process, "dtrpcPointFlatTableProducer") and \
23  hasattr(process, "cscrpcPointFlatTableProducer") and \
24  hasattr(process, "RawToDigiTask"):
25  process.load("RecoLocalMuon.RPCRecHit.rpcPointProducer_cff")
26  process.rpcPointProducer.dt4DSegments = 'dt4DSegments'
27  process.rpcPointProducer.cscSegments = 'cscSegments'
28  process.rpcPointProducer.ExtrapolatedRegion = 0.6
29  process.RawToDigiTask.add(process.rpcPointProducer)
30 
31  if hasattr(process, "muGEMMuonExtTableProducer") or hasattr(process, "muCSCTnPFlatTableProducer"):
32  process.load("TrackingTools/TransientTrack/TransientTrackBuilder_cfi")
33  process.load("TrackPropagation.SteppingHelixPropagator.SteppingHelixPropagatorAny_cfi")
34  process.load("TrackPropagation.SteppingHelixPropagator.SteppingHelixPropagatorAlong_cfi")
35  process.load("TrackPropagation.SteppingHelixPropagator.SteppingHelixPropagatorOpposite_cfi")
36 
37  for output in ["NANOEDMAODoutput", "NANOAODoutput", "NANOEDMAODSIMoutput", "NANOAODSIMoutput"]:
38  if hasattr(process, output):
39  getattr(process,output).outputCommands.append("keep nanoaodFlatTable_*Table*_*_*")
40  getattr(process,output).outputCommands.append("drop edmTriggerResults_*_*_*")
41 
42  return process