CMS 3D CMS Logo

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 muoncosmicreco2legsSTATask = cms.Task(CosmicMuonSeed,cosmicMuons)
31 muoncosmicreco2legsSTA = cms.Sequence(muoncosmicreco2legsSTATask)
32 muoncosmicreco2legsHighLevelTask = cms.Task(muonsFromCosmics)
33 muoncosmicreco2legsHighLevel = cms.Sequence(muoncosmicreco2legsHighLevelTask)
34 
35 # 1 Leg type
36 # Stand alone muon track producer
37 cosmicMuons1Leg = cosmicMuons.clone()
38 cosmicMuons1Leg.TrajectoryBuilderParameters.BuildTraversingMuon = True
39 cosmicMuons1Leg.TrajectoryBuilderParameters.Strict1Leg = True
40 cosmicMuons1Leg.TrajectoryBuilderParameters.DTRecSegmentLabel = 'dt4DCosmicSegments'
41 cosmicMuons1Leg.MuonSeedCollectionLabel = 'CosmicMuonSeed'
42 
43 # Muon Id producer
44 muonsFromCosmics1Leg = muons1stStep.clone()
45 muonsFromCosmics1Leg.inputCollectionLabels = ['cosmicMuons1Leg']
46 muonsFromCosmics1Leg.inputCollectionTypes = ['outer tracks']
47 muonsFromCosmics1Leg.TrackAssociatorParameters.DTRecSegment4DCollectionLabel = 'dt4DCosmicSegments'
48 muonsFromCosmics1Leg.TrackExtractorPSet.inputTrackCollection = 'cosmicMuons1Leg'
49 muonsFromCosmics1Leg.TimingFillerParameters.MatchParameters.DTsegments = 'dt4DCosmicSegments'
50 muonsFromCosmics1Leg.TimingFillerParameters.DTTimingParameters.PruneCut = 9999
51 muonsFromCosmics1Leg.TimingFillerParameters.CSCTimingParameters.PruneCut = 9999
52 muonsFromCosmics1Leg.fillIsolation = False
53 muonsFromCosmics1Leg.fillGlobalTrackQuality = False
54 muonsFromCosmics1Leg.fillGlobalTrackRefits = False
55 muoncosmicreco1legSTATask = cms.Task(CosmicMuonSeed,cosmicMuons1Leg)
56 muoncosmicreco1legSTA = cms.Sequence(muoncosmicreco1legSTATask)
57 muoncosmicreco1legHighLevelTask = cms.Task(muonsFromCosmics1Leg)
58 muoncosmicreco1legHighLevel = cms.Sequence(muoncosmicreco1legHighLevelTask)
59 
60 muoncosmicrecoTask = cms.Task(muoncosmicreco2legsSTATask,muoncosmicreco1legSTATask)
61 muoncosmicreco = cms.Sequence(muoncosmicrecoTask)
62 muoncosmichighlevelrecoTask = cms.Task(muoncosmicreco2legsHighLevelTask,muoncosmicreco1legHighLevelTask,cosmicsMuonIdTask)
63 muoncosmichighlevelreco = cms.Sequence(muoncosmichighlevelrecoTask)
64 #### High level sequence (i.e., post PF reconstruction) ###
67 muonshighlevelrecoTask = cms.Task(muonPFIsolationTask,muons)
68 muonshighlevelreco = cms.Sequence(muonshighlevelrecoTask)
High level sequence (i.e., post PF reconstruction) ###.