CMS 3D CMS Logo

/data/doxygen/doxygen-1.7.3/gen/CMSSW_4_2_8/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.muons_cfi.muons.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 
00036 #from RecoTracker.Configuration.RecoTrackerNotStandard_cff import *
00037 #add regional cosmic tracks here
00038 #muoncosmicreco2legs = cms.Sequence(cosmicMuons*regionalCosmicTracksSeq*globalCosmicMuons*muonsFromCosmics)
00039 muoncosmicreco2legsSTA = cms.Sequence(CosmicMuonSeed*cosmicMuons)
00040 muoncosmicreco2legsHighLevel = cms.Sequence(globalCosmicMuons*muonsFromCosmics)
00041 
00042 # 1 Leg type
00043 
00044 # Stand alone muon track producer
00045 cosmicMuons1Leg = cosmicMuons.clone()
00046 cosmicMuons1Leg.TrajectoryBuilderParameters.BuildTraversingMuon = True
00047 cosmicMuons1Leg.TrajectoryBuilderParameters.Strict1Leg = True
00048 cosmicMuons1Leg.TrajectoryBuilderParameters.DTRecSegmentLabel = 'dt4DCosmicSegments'
00049 cosmicMuons1Leg.MuonSeedCollectionLabel = 'CosmicMuonSeed'
00050 
00051 # Global muon track producer
00052 globalCosmicMuons1Leg = globalCosmicMuons.clone()
00053 globalCosmicMuons1Leg.MuonCollectionLabel = 'cosmicMuons1Leg'
00054 globalCosmicMuons1Leg.TrajectoryBuilderParameters.TkTrackCollectionLabel = 'regionalCosmicTracks'
00055 
00056 # Muon Id producer
00057 muonsFromCosmics1Leg = muons.clone()
00058 muonsFromCosmics1Leg.inputCollectionLabels = ['globalCosmicMuons1Leg', 'cosmicMuons1Leg',  'regionalCosmicTracks' ]
00059 muonsFromCosmics1Leg.inputCollectionTypes = ['links', 'outer tracks', 'inner tracks' ]
00060 muonsFromCosmics1Leg.TrackAssociatorParameters.DTRecSegment4DCollectionLabel = 'dt4DCosmicSegments'
00061 muonsFromCosmics1Leg.TrackExtractorPSet.inputTrackCollection = 'regionalCosmicTracks'
00062 muonsFromCosmics1Leg.TimingFillerParameters.DTTimingParameters.MatchParameters.DTsegments = 'dt4DCosmicSegments'
00063 muonsFromCosmics1Leg.TimingFillerParameters.DTTimingParameters.DTsegments = 'dt4DCosmicSegments' 
00064 muonsFromCosmics1Leg.TimingFillerParameters.CSCTimingParameters.MatchParameters.DTsegments = 'dt4DCosmicSegments'
00065 muonsFromCosmics1Leg.fillIsolation = False
00066 muonsFromCosmics1Leg.fillGlobalTrackQuality = False
00067 
00068 #muoncosmicreco1leg = cms.Sequence(cosmicMuons1Leg*globalCosmicMuons1Leg*muonsFromCosmics1Leg)
00069 muoncosmicreco1legSTA = cms.Sequence(CosmicMuonSeed*cosmicMuons1Leg)
00070 muoncosmicreco1legHighLevel = cms.Sequence(globalCosmicMuons1Leg*muonsFromCosmics1Leg)
00071 
00072 #muoncosmicreco = cms.Sequence(CosmicMuonSeed*(muoncosmicreco2legs+muoncosmicreco1leg)*cosmicsMuonIdSequence)
00073 muoncosmicreco = cms.Sequence(muoncosmicreco2legsSTA+muoncosmicreco1legSTA)
00074 muoncosmichighlevelreco = cms.Sequence((muoncosmicreco2legsHighLevel+muoncosmicreco1legHighLevel)*cosmicsMuonIdSequence)