CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_10/src/RecoMuon/Configuration/python/RecoMuon_cff.py

Go to the documentation of this file.
00001 import FWCore.ParameterSet.Config as cms
00002 
00003 # Standard pp setup
00004 from RecoMuon.Configuration.RecoMuonPPonly_cff import *
00005 
00006 ########################################################
00007 
00008 # Sequence for cosmic reconstruction
00009 
00010 # Seed generator
00011 from RecoMuon.MuonSeedGenerator.CosmicMuonSeedProducer_cfi import *
00012 CosmicMuonSeed.DTRecSegmentLabel = 'dt4DCosmicSegments'
00013 
00014 
00015 # Stand alone muon track producer
00016 from RecoMuon.CosmicMuonProducer.cosmicMuons_cff import *
00017 cosmicMuons.TrajectoryBuilderParameters.DTRecSegmentLabel = 'dt4DCosmicSegments'
00018 
00019 # Global muon track producer
00020 from RecoMuon.CosmicMuonProducer.globalCosmicMuons_cff import *
00021 globalCosmicMuons.TrajectoryBuilderParameters.TkTrackCollectionLabel = 'regionalCosmicTracks'
00022 
00023 # Muon Id producer
00024 muonsFromCosmics = RecoMuon.MuonIdentification.muons1stStep_cfi.muons1stStep.clone()
00025 
00026 muonsFromCosmics.inputCollectionLabels = ['globalCosmicMuons', 'cosmicMuons', 'regionalCosmicTracks']
00027 muonsFromCosmics.inputCollectionTypes = ['links', 'outer tracks', 'inner tracks' ]
00028 muonsFromCosmics.TrackAssociatorParameters.DTRecSegment4DCollectionLabel = 'dt4DCosmicSegments'
00029 muonsFromCosmics.TrackExtractorPSet.inputTrackCollection = 'regionalCosmicTracks'
00030 muonsFromCosmics.TimingFillerParameters.DTTimingParameters.MatchParameters.DTsegments = 'dt4DCosmicSegments'
00031 muonsFromCosmics.TimingFillerParameters.DTTimingParameters.DTsegments = 'dt4DCosmicSegments' 
00032 muonsFromCosmics.TimingFillerParameters.CSCTimingParameters.MatchParameters.DTsegments = 'dt4DCosmicSegments'
00033 muonsFromCosmics.fillIsolation = False
00034 muonsFromCosmics.fillGlobalTrackQuality = False
00035 muonsFromCosmics.fillGlobalTrackRefits = False
00036 
00037 #from RecoTracker.Configuration.RecoTrackerNotStandard_cff import *
00038 #add regional cosmic tracks here
00039 #muoncosmicreco2legs = cms.Sequence(cosmicMuons*regionalCosmicTracksSeq*globalCosmicMuons*muonsFromCosmics)
00040 muoncosmicreco2legsSTA = cms.Sequence(CosmicMuonSeed*cosmicMuons)
00041 muoncosmicreco2legsHighLevel = cms.Sequence(globalCosmicMuons*muonsFromCosmics)
00042 
00043 # 1 Leg type
00044 
00045 # Stand alone muon track producer
00046 cosmicMuons1Leg = cosmicMuons.clone()
00047 cosmicMuons1Leg.TrajectoryBuilderParameters.BuildTraversingMuon = True
00048 cosmicMuons1Leg.TrajectoryBuilderParameters.Strict1Leg = True
00049 cosmicMuons1Leg.TrajectoryBuilderParameters.DTRecSegmentLabel = 'dt4DCosmicSegments'
00050 cosmicMuons1Leg.MuonSeedCollectionLabel = 'CosmicMuonSeed'
00051 
00052 # Global muon track producer
00053 globalCosmicMuons1Leg = globalCosmicMuons.clone()
00054 globalCosmicMuons1Leg.MuonCollectionLabel = 'cosmicMuons1Leg'
00055 globalCosmicMuons1Leg.TrajectoryBuilderParameters.TkTrackCollectionLabel = 'regionalCosmicTracks'
00056 
00057 # Muon Id producer
00058 muonsFromCosmics1Leg = muons1stStep.clone()
00059 muonsFromCosmics1Leg.inputCollectionLabels = ['globalCosmicMuons1Leg', 'cosmicMuons1Leg',  'regionalCosmicTracks' ]
00060 muonsFromCosmics1Leg.inputCollectionTypes = ['links', 'outer tracks', 'inner tracks' ]
00061 muonsFromCosmics1Leg.TrackAssociatorParameters.DTRecSegment4DCollectionLabel = 'dt4DCosmicSegments'
00062 muonsFromCosmics1Leg.TrackExtractorPSet.inputTrackCollection = 'regionalCosmicTracks'
00063 muonsFromCosmics1Leg.TimingFillerParameters.DTTimingParameters.MatchParameters.DTsegments = 'dt4DCosmicSegments'
00064 muonsFromCosmics1Leg.TimingFillerParameters.DTTimingParameters.DTsegments = 'dt4DCosmicSegments' 
00065 muonsFromCosmics1Leg.TimingFillerParameters.CSCTimingParameters.MatchParameters.DTsegments = 'dt4DCosmicSegments'
00066 muonsFromCosmics1Leg.fillIsolation = False
00067 muonsFromCosmics1Leg.fillGlobalTrackQuality = False
00068 muonsFromCosmics1Leg.fillGlobalTrackRefits = False
00069 
00070 #muoncosmicreco1leg = cms.Sequence(cosmicMuons1Leg*globalCosmicMuons1Leg*muonsFromCosmics1Leg)
00071 muoncosmicreco1legSTA = cms.Sequence(CosmicMuonSeed*cosmicMuons1Leg)
00072 muoncosmicreco1legHighLevel = cms.Sequence(globalCosmicMuons1Leg*muonsFromCosmics1Leg)
00073 
00074 #muoncosmicreco = cms.Sequence(CosmicMuonSeed*(muoncosmicreco2legs+muoncosmicreco1leg)*cosmicsMuonIdSequence)
00075 muoncosmicreco = cms.Sequence(muoncosmicreco2legsSTA+muoncosmicreco1legSTA)
00076 muoncosmichighlevelreco = cms.Sequence((muoncosmicreco2legsHighLevel+muoncosmicreco1legHighLevel)*cosmicsMuonIdSequence)
00077 
00078 
00079 #### High level sequence (i.e., post PF reconstruction) ###
00080 
00081 from RecoMuon.MuonIdentification.muons_cfi import *
00082 from RecoMuon.MuonIsolation.muonPFIsolation_cff import *
00083 
00084 muonshighlevelreco = cms.Sequence(muonPFIsolationSequence*muons)