CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
RecoMuon_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 # Standard pp setup
5 
6 ########################################################
7 
8 # Sequence for cosmic reconstruction
9 # Seed generator
11 CosmicMuonSeed.DTRecSegmentLabel = 'dt4DCosmicSegments'
12 # Stand alone muon track producer
14 cosmicMuons.TrajectoryBuilderParameters.DTRecSegmentLabel = 'dt4DCosmicSegments'
15 
16 # Muon Id producer
17 muonsFromCosmics = RecoMuon.MuonIdentification.muons1stStep_cfi.muons1stStep.clone()
18 muonsFromCosmics.inputCollectionLabels = ['cosmicMuons']
19 muonsFromCosmics.inputCollectionTypes = ['outer tracks']
20 muonsFromCosmics.TrackAssociatorParameters.DTRecSegment4DCollectionLabel = 'dt4DCosmicSegments'
21 muonsFromCosmics.TrackExtractorPSet.inputTrackCollection = 'cosmicMuons'
22 muonsFromCosmics.TimingFillerParameters.MatchParameters.DTsegments = 'dt4DCosmicSegments'
23 muonsFromCosmics.TimingFillerParameters.DTTimingParameters.PruneCut = 9999
24 muonsFromCosmics.TimingFillerParameters.CSCTimingParameters.PruneCut = 9999
25 muonsFromCosmics.fillIsolation = False
26 muonsFromCosmics.fillGlobalTrackQuality = False
27 muonsFromCosmics.fillGlobalTrackRefits = False
28 
29 #add regional cosmic tracks here
30 muoncosmicreco2legsSTA = cms.Sequence(CosmicMuonSeed*cosmicMuons)
31 muoncosmicreco2legsHighLevel = cms.Sequence(muonsFromCosmics)
32 
33 # 1 Leg type
34 # Stand alone muon track producer
35 cosmicMuons1Leg = cosmicMuons.clone()
36 cosmicMuons1Leg.TrajectoryBuilderParameters.BuildTraversingMuon = True
37 cosmicMuons1Leg.TrajectoryBuilderParameters.Strict1Leg = True
38 cosmicMuons1Leg.TrajectoryBuilderParameters.DTRecSegmentLabel = 'dt4DCosmicSegments'
39 cosmicMuons1Leg.MuonSeedCollectionLabel = 'CosmicMuonSeed'
40 
41 # Muon Id producer
42 muonsFromCosmics1Leg = muons1stStep.clone()
43 muonsFromCosmics1Leg.inputCollectionLabels = ['cosmicMuons1Leg']
44 muonsFromCosmics1Leg.inputCollectionTypes = ['outer tracks']
45 muonsFromCosmics1Leg.TrackAssociatorParameters.DTRecSegment4DCollectionLabel = 'dt4DCosmicSegments'
46 muonsFromCosmics1Leg.TrackExtractorPSet.inputTrackCollection = 'cosmicMuons1Leg'
47 muonsFromCosmics1Leg.TimingFillerParameters.MatchParameters.DTsegments = 'dt4DCosmicSegments'
48 muonsFromCosmics1Leg.TimingFillerParameters.DTTimingParameters.PruneCut = 9999
49 muonsFromCosmics1Leg.TimingFillerParameters.CSCTimingParameters.PruneCut = 9999
50 muonsFromCosmics1Leg.fillIsolation = False
51 muonsFromCosmics1Leg.fillGlobalTrackQuality = False
52 muonsFromCosmics1Leg.fillGlobalTrackRefits = False
53 muoncosmicreco1legSTA = cms.Sequence(CosmicMuonSeed*cosmicMuons1Leg)
54 muoncosmicreco1legHighLevel = cms.Sequence(muonsFromCosmics1Leg)
55 
56 muoncosmicreco = cms.Sequence(muoncosmicreco2legsSTA+muoncosmicreco1legSTA)
57 muoncosmichighlevelreco = cms.Sequence((muoncosmicreco2legsHighLevel+muoncosmicreco1legHighLevel)*cosmicsMuonIdSequence)
58 #### High level sequence (i.e., post PF reconstruction) ###
61 muonshighlevelreco = cms.Sequence(muonPFIsolationSequence*muons)
High level sequence (i.e., post PF reconstruction) ###.