CMS 3D CMS Logo

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_5_3_14/src/RecoMuon/Configuration/python/RecoMuonPPonly_cff.py

Go to the documentation of this file.
00001 import FWCore.ParameterSet.Config as cms
00002 
00003 # Seed generator
00004 from RecoMuon.MuonSeedGenerator.standAloneMuonSeeds_cff import *
00005 
00006 # Stand alone muon track producer
00007 from RecoMuon.StandAloneMuonProducer.standAloneMuons_cff import *
00008 
00009 # Global muon track producer
00010 from RecoMuon.GlobalMuonProducer.GlobalMuonProducer_cff import *
00011 
00012 # TeV refinement
00013 from RecoMuon.GlobalMuonProducer.tevMuons_cfi import *
00014 
00015 # Muon Id producer
00016 from RecoMuon.MuonIdentification.muonIdProducerSequence_cff import *
00017 muons1stStep.fillGlobalTrackQuality = True
00018 
00019 #Muon Id isGood flag ValueMap producer sequence
00020 from RecoMuon.MuonIdentification.muonSelectionTypeValueMapProducer_cff import *
00021 
00022 # Muon Isolation sequence
00023 from RecoMuon.MuonIsolationProducers.muIsolation_cff import *
00024 # Muon Tracking sequence
00025 muontracking = cms.Sequence(standAloneMuonSeeds*standAloneMuons*globalMuons)
00026 muontracking_with_TeVRefinement = cms.Sequence(muontracking*tevMuons)
00027 
00028 # sequence with SET standalone muons
00029 globalSETMuons = RecoMuon.GlobalMuonProducer.GlobalMuonProducer_cff.globalMuons.clone()
00030 globalSETMuons.MuonCollectionLabel = cms.InputTag("standAloneSETMuons","UpdatedAtVtx")
00031 from RecoMuon.MuonSeedGenerator.SETMuonSeed_cff import *
00032 muontracking_with_SET = cms.Sequence(SETMuonSeed*standAloneSETMuons*globalSETMuons)
00033 
00034 # Muon Reconstruction
00035 muonreco = cms.Sequence(muontracking*muonIdProducerSequence)
00036 muonrecowith_TeVRefinemen = cms.Sequence(muontracking_with_TeVRefinement*muonIdProducerSequence)
00037 
00038 muonsWithSET = RecoMuon.MuonIdentification.muons1stStep_cfi.muons1stStep.clone()
00039 muonsWithSET.inputCollectionLabels = ['generalTracks', 'globalSETMuons', cms.InputTag('standAloneSETMuons','UpdatedAtVtx')] 
00040 muonsWithSET.inputCollectionTypes = ['inner tracks', 'links', 'outer tracks']   
00041 #muonreco_with_SET = cms.Sequence(muontracking_with_SET*muonsWithSET)
00042 #run only the tracking part for SET, after that it should be merged with the main ones at some point
00043 muonreco_with_SET = cms.Sequence(muontracking_with_SET)
00044 
00045 # Muon Reconstruction plus Isolation
00046 muonreco_plus_isolation = cms.Sequence(muonrecowith_TeVRefinemen*muIsolation)
00047 muonreco_plus_isolation_plus_SET = cms.Sequence(muonrecowith_TeVRefinemen*muonreco_with_SET*muIsolation)
00048 
00049 # .. plus muIDmaps
00050 # this makes me wonder if we should make this a new default name (drop all _plusX)
00051 muonreco_plus_isolation_plus_SET_plus_muIDmaps = cms.Sequence(muonreco_plus_isolation_plus_SET*muonSelectionTypeSequence)
00052 
00053 # Add the refitted stand-alone muons.
00054 refittedStandAloneMuons = standAloneMuons.clone()
00055 refittedStandAloneMuons.STATrajBuilderParameters.DoRefit = True
00056 muontracking *= refittedStandAloneMuons
00057 
00058 muonrecoComplete = cms.Sequence(muonreco_plus_isolation_plus_SET*muonSelectionTypeSequence)
00059 muonrecoComplete_minus_muIDmaps = cms.Sequence(muonreco_plus_isolation_plus_SET)
00060 muonrecoComplete_minus_SET_minus_muIDmaps = cms.Sequence(muonrecowith_TeVRefinemen*muIsolation)
00061 
00062 
00063 ########################################################