Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:26:54

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 from RecoMuon.TrackingTools.MuonServiceProxy_cff import *
0004 from RecoMuon.TrackingTools.MuonTrackLoader_cff import *
0005 from RecoMuon.GlobalTrackingTools.GlobalTrajectoryBuilderCommon_cff import *
0006 globalMuons = cms.EDProducer("GlobalMuonProducer",
0007     MuonServiceProxy,
0008     MuonTrackLoaderForGLB,
0009     GLBTrajBuilderParameters = cms.PSet(
0010         GlobalTrajectoryBuilderCommon
0011     ),
0012     TrackerCollectionLabel = cms.InputTag("generalTracks"),
0013     MuonCollectionLabel = cms.InputTag("standAloneMuons","UpdatedAtVtx"),
0014     VertexCollectionLabel = cms.InputTag("offlinePrimaryVertices"),
0015     selectHighPurity = cms.bool(False)
0016 )
0017 
0018 globalMuons.GLBTrajBuilderParameters.GlobalMuonTrackMatcher.Propagator = 'SmartPropagatorRK'
0019 globalMuons.GLBTrajBuilderParameters.TrackTransformer.Propagator = cms.string('SmartPropagatorAnyRK')
0020 
0021 # FastSim has no template fit on tracker hits
0022 # FastSim doesn't use Runge Kute for propagation
0023 from Configuration.Eras.Modifier_fastSim_cff import fastSim
0024 fastSim.toModify(globalMuons,
0025                  GLBTrajBuilderParameters =dict(GlbRefitterParameters = dict(TrackerRecHitBuilder = 'WithoutRefit',
0026                                                                              Propagator = 'SmartPropagatorAny'),
0027                                                 TrackerRecHitBuilder = 'WithoutRefit',
0028                                                 TrackTransformer = dict(TrackerRecHitBuilder = 'WithoutRefit',
0029                                                                         Propagator = 'SmartPropagatorAny'),
0030                                                 GlobalMuonTrackMatcher = dict(Propagator = 'SmartPropagator') 
0031                                                 )
0032 )
0033 
0034 from Configuration.ProcessModifiers.pp_on_AA_cff import pp_on_AA
0035 pp_on_AA.toModify(globalMuons, selectHighPurity = True)